added name & style in building script

This commit is contained in:
Marc Beninca 2024-10-12 20:21:36 +02:00
parent 1ff57ee381
commit c005cc8aff
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -3,11 +3,13 @@
main() {
local file="$(readlink --canonicalize-existing "${0}")"
local root="$(dirname "${file}")"
local input="${root}/main.md"
local output="${root}/main.pdf"
local name="main"
local input="${root}/${name}.md"
local output="${root}/${name}.pdf"
local style="tango"
pandoc \
"${input}" \
--highlight-style "tango" \
--highlight-style "${style}" \
--output "${output}" \
--pdf-engine "xelatex" \
\