diff options
Diffstat (limited to 'gup')
-rw-r--r-- | gup/Gupfile | 2 | ||||
-rwxr-xr-x | gup/pdf.gup | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gup/Gupfile b/gup/Gupfile new file mode 100644 index 0000000..159f942 --- /dev/null +++ b/gup/Gupfile | |||
@@ -0,0 +1,2 @@ | |||
1 | pdf.gup: | ||
2 | **/*.pdf \ No newline at end of file | ||
diff --git a/gup/pdf.gup b/gup/pdf.gup new file mode 100755 index 0000000..9b6749e --- /dev/null +++ b/gup/pdf.gup | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/usr/bin/env zsh | ||
2 | |||
3 | gup -u ${2%.pdf}.md | ||
4 | |||
5 | pandoc -t latex -o $2 -V "geometry=margin=2cm" -V "fontfamily=libertine" ${2%.pdf}.md >&2 | ||
6 | touch $2 | ||