pdflatex support in build function