detect pdflatex warnings