(makeindex $(basename $(<F)) || true) && \
latex \\nonstopmode \\input $(<F) )
+$(outdir)/%.pdf: $(outdir)/%.dvi
+ cd $(outdir) \
+ && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) \
+ -o $(@F).pdfps $(<F) \
+ && gs -dCompatibilityLevel=1.2\
+ -sPAPERSIZE=a4\
+ -q\
+ -dNOPAUSE\
+ -dBATCH\
+ -sDEVICE=pdfwrite\
+ -dAutoRotatePages=/None\
+ -sOutputFile=$(@F)\
+ -dCompatibilityLevel=1.2\
+ -sPAPERSIZE=a4\
+ -c .setpdfwrite\
+ -f $(@F).pdfps
-$(outdir)/%.ps: $(outdir)/%.dvi
- cd $(outdir) && dvips -t $(DVIPS_PAPERSIZE) -o $(@F) $(<F)
-$(outdir)-$(PAPERSIZE)/%.ps: $(outdir)-$(PAPERSIZE)/%.dvi
- cd $(outdir)-$(PAPERSIZE) && dvips -t$(PAPERSIZE) -o $(@F) $(<F)
+# without -dSAFER
+# gs 8.15 complains of safety of loading a ttf directly
+