config/scripts/md2pdf

11 lines
254 B
Plaintext
Raw Normal View History

2018-04-12 16:38:07 +02:00
#!/bin/bash
file=$1
extra=""
shift
2019-05-17 12:49:42 +02:00
if [ -e listings-setup.tex ]; then
extra=" --listings -H listings-setup.tex "
2018-04-12 16:38:07 +02:00
fi
2019-05-17 12:49:42 +02:00
pandoc -s -S "${file}" --toc -o "${file%.*}.pdf" --number-sections --variable urlcolor=cyan ${extra} $@ #--latex-engine=xelatex