summaryrefslogtreecommitdiff
path: root/gup/pdf.gup
blob: 7604813f8bba8dc97a65a219ed397b349430a6a8 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env zsh

gup -u ${2%.pdf}.md

for i in 0 1; do
    pandoc -t latex -o $2 -V "geometry=margin=2cm" -V "fontfamily=libertine" -H preamble.tex --listings --latex-engine=lualatex ${2%.pdf}.md >&2
done
[[ -e $2 ]] && touch $2