diff --git a/make-includes/standard_rules.make b/make-includes/standard_rules.make index 102823b..1aacc17 100755 --- a/make-includes/standard_rules.make +++ b/make-includes/standard_rules.make @@ -38,8 +38,13 @@ # PDF from LaTeX. # %.pdf: %.tex +ifdef UNICODE + $(XELATEX) $< + $(XELATEX) $< +else $(PDFLATEX) $< $(PDFLATEX) $< +endif # # 2-up PDF from 1-up PDF. # @@ -68,12 +73,20 @@ # LaTeX from derived XML. # %.tex: %-derived.xml +ifdef UNICODE + $(call xslt,$<,xml2xelatex.xsl,$(call xslt_parameter,subject-code,'$(SUBJECT_CODE)'),$(call xslt_parameter,paper-number,'$(PAPER_NUMBER)'),$(call xslt_parameter,paper-year,'$(PAPER_YEAR)'),$(call xslt_parameter,paper-period,'$(PAPER_PERIOD)')) > $@ +else $(call xslt,$<,xml2latex.xsl,$(call xslt_parameter,subject-code,'$(SUBJECT_CODE)'),$(call xslt_parameter,paper-number,'$(PAPER_NUMBER)'),$(call xslt_parameter,paper-year,'$(PAPER_YEAR)'),$(call xslt_parameter,paper-period,'$(PAPER_PERIOD)')) > $@ +endif # # HTML from derived XML. # %.html: %-derived.xml +ifdef UNICODE + $(call xslt,$<,xml2xhtml.xsl,$(call xslt_parameter,subject-code,'$(SUBJECT_CODE)'),$(call xslt_parameter,paper-number,'$(PAPER_NUMBER)'),$(call xslt_parameter,paper-year,'$(PAPER_YEAR)'),$(call xslt_parameter,paper-period,'$(PAPER_PERIOD)')) > $@ +else $(call xslt,$<,xml2html.xsl,$(call xslt_parameter,subject-code,'$(SUBJECT_CODE)'),$(call xslt_parameter,paper-number,'$(PAPER_NUMBER)'),$(call xslt_parameter,paper-year,'$(PAPER_YEAR)'),$(call xslt_parameter,paper-period,'$(PAPER_PERIOD)')) > $@ +endif # # PNG from TIFF (normal) #