config/scripts/md2pdf
2019-05-17 12:50:01 +02:00

11 lines
254 B
Bash
Executable File

#!/bin/bash
file=$1
extra=""
shift
if [ -e listings-setup.tex ]; then
extra=" --listings -H listings-setup.tex "
fi
pandoc -s -S "${file}" --toc -o "${file%.*}.pdf" --number-sections --variable urlcolor=cyan ${extra} $@ #--latex-engine=xelatex