use nonstopmode in pdflatex to stop Mathematica from freezing