%.pdf: %.tex $(XELATEX) -interaction=batchmode -halt-on-error --shell-escape --output-directory=$(@D) $< rm $*.aux rm $*.log