Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # compile a given Pandoc-flavored Markdown document into a PDF
- # exit if no document (1st) argument is provided
- [ -z "$1" ] && exit
- # if no output (2nd) argument is provided, use a default output name
- [ -z "$2" ] && OUT="out.pdf" || OUT=$2
- # TODO: Tweak this to use settings defined in a separate file
- # compile
- pandoc "$DOC" -V geometry:a4paper -V geometry:margin=1cm -V mainfont="Dejavu Serif" -V monofont="DejaVu Sans Mono" -H no_page_num.tex -o "$OUT"
- # launch with zathura if zathura isn't already open
- [ "$(pidof zathura)" = "" ] && zathura "./$OUT" &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement