Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am a big fan of latexmk and lately I have been looking a bit towards LuaTeX. However I am am yet to find a way to get the functionality of latexmk (mainly recompilation on changes and automatic rerun an appropriate number of times to resolve cross references and such) for LuaTex. Is there something similar and if not how do you LuaTeX people survive without it? :)

share|improve this question

1 Answer 1

up vote 27 down vote accepted

You can use Lua(La)TeX with latexmk by setting the -pdflatex parameter:

-pdflatex=<program> - set program used for pdflatex.
(replace '<program>' by the program name)

So latexmk should call lualatex instead of pdflatex if you invoke it like this:

latexmk -pdflatex=lualatex -pdf <texfile>

or with newer versions of latexmk there is direct Lua(La)TeX/XeLaTeX support:

Use lualatex. That is, use lualatex to process the source file(s) to pdf (in place of pdflatex).
This option is exactly equivalent to specifying the following sequence of options:
-pdflatex="lualatex %O %S" -pdf -dvi- -ps-

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.