Hide pdflatex output but add flag to show it