simple script to use pandoc custom template and pdflatex