diff --git a/make-includes/standard_rules.make b/make-includes/standard_rules.make index dd2b5e1..f5bcfbd 100644 --- a/make-includes/standard_rules.make +++ b/make-includes/standard_rules.make @@ -27,11 +27,19 @@ # Default rules. # # -# PDF from LaTeX via DVI, typically for images drawn using PSTricks). +# PDF from LaTeX, typically for images drawn using PSTricks. # %.pdf %-print.pdf: $(IMGDIR)/%.tex +ifdef UNICODE + $(XELATEX) --jobname=$(IMGDIR)/$* $< + $(XELATEX) --jobname=$(IMGDIR)/$* $< + $(PDFCROP) $(IMGDIR)/$@ $(IMGDIR)/$*-crop.pdf + -$(MV) $(IMGDIR)/$*-crop.pdf $(IMGDIR)/$@ +else + $(LATEX) --jobname=$(IMGDIR)/$* $< $(LATEX) --jobname=$(IMGDIR)/$* $< $(DVIPS) -q -f $(IMGDIR)/$* | $(PS2EPS) --quiet --loose | $(EPSTOPDF) --filter --outfile=$(IMGDIR)/$@ +endif # # PDF from LaTeX. #