compiles with pdflatex and xelatex now