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() { main() {
local file="$(readlink --canonicalize-existing "${0}")" local file="$(readlink --canonicalize-existing "${0}")"
local root="$(dirname "${file}")" local root="$(dirname "${file}")"
local input="${root}/main.md" local name="main"
local output="${root}/main.pdf" local input="${root}/${name}.md"
local output="${root}/${name}.pdf"
local style="tango"
pandoc \ pandoc \
"${input}" \ "${input}" \
--highlight-style "tango" \ --highlight-style "${style}" \
--output "${output}" \ --output "${output}" \
--pdf-engine "xelatex" \ --pdf-engine "xelatex" \
\ \