#!/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