tueda / makefile4latex

A GNU Makefile for typesetting LaTeX documents.
MIT License
26 stars 3 forks source link

Toolchain specification #2

Closed tueda closed 5 years ago

tueda commented 5 years ago

The toolchain for compiling documents may be specified by a variable in a unified way. For example

toolchain = latex-dvips-ps2pdf   (.tex -> .dvi -> .ps -> .pdf)
toolchain = latex-dvipdfmx       (.tex -> .dvi -> .pdf)
toolchain = platex-dvips-ps2pdf  (.tex -> .dvi -> .ps -> .pdf)
toolchain = platex-dvipdfmx      (.tex -> .dvi -> .pdf)
toolchain = uplatex-dvips-ps2pdf (.tex -> .dvi -> .ps -> .pdf)
toolchain = uplatex-dvipdfmx     (.tex -> .dvi -> .pdf)
toolchain = pdflatex             (.tex -> .pdf)
toolchain = xelatex              (.tex -> .pdf)
toolchain = luatex               (.tex -> .pdf)

The postfix -ps2pdf would be omitted. The variable can be set by (1) as an environment variable (2) a command argument for make (3) the user customization file.