ransford / pdflatex-makefile

Simple Makefile for pdflatex-produced documents
113 stars 37 forks source link

XeLaTeX support #33

Closed ido closed 7 years ago

ido commented 8 years ago

To add XeLaTeX support, make -draftmode optional. Optionally, for cosmetic reasons, you may want to separate out the PDFLATEX variable into PDFLATEX (path to the pdflatex/xelatex binary) and PDFLATEX_OPTS (default options such as -halt-on-error etc.).

Thank you for writing this Makefile. Detecting "Rerun to" was a very nice touch instead of blindly rerunning. :+1:

ransford commented 8 years ago

Hmm, I'm not sure what you mean by XeLaTeX support. This is what happens on my system (XeTeX 3.14159265-2.6-0.99991):

$ cd example
$ make PDFLATEX=xelatex >& /dev/null
$ ls example.pdf
example.pdf

Do you see build errors or some other problem?

ido commented 8 years ago

The -draftmode iteration of xelatex in that example is failing, but not being caught because when you set PDFLATEX in your example you remove the halt on error, etc. parameters. Try just changing pdflatex to xelatex in Makefile.include and see how it errors out because draftmode is not recognized?

On Apr 19, 2016, at 14:15, Ben Ransford notifications@github.com wrote:

Hmm, I'm not sure what you mean by XeLaTeX support. This is what happens on my system (XeTeX 3.14159265-2.6-0.99991):

$ cd example $ make PDFLATEX=xelatex >& /dev/null $ ls example.pdf example.pdf Do you see build errors or some other problem?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

ransford commented 7 years ago

Closing for lack of movement; patches welcome.