dossier/dossier de projet/build.sh

23 lines
369 B
Bash
Raw Permalink Normal View History

#! /usr/bin/env sh
main() {
local file="$(readlink --canonicalize-existing "${0}")"
local root="$(dirname "${file}")"
2024-10-12 18:21:36 +00:00
local name="main"
local input="${root}/${name}.md"
local output="${root}/${name}.pdf"
local style="espresso"
pandoc \
"${input}" \
2024-10-12 18:21:36 +00:00
--highlight-style "${style}" \
--output "${output}" \
--pdf-engine "xelatex" \
\
&& \
evince \
"${output}" \
&
}
main