How to use LuaTeX and LuaLaTeX on arXiv?

by Martin Monperrus

The arXiv open-access archive only supports pdftex/pdflatex. If you like using LuaLaTeX and all its wonderful features, it is very likely that you won’t be able to compile it identically using pdflatex.

The problem is that even if your document only compiles on LuaLaTeX, the resulting PDF is tagged as latex-produced by the arXiv backend, which asks you for the sources. This is an issue: on the one hand arXiv is not able to compile the document, on the other hand, it rejects the PDF.

The solution is to tweak LuaLaTeX so that the produced document passes all the checks of the arXiv backend. Basically, there are three things to do:

By doing this, one obtains a PDF file that arXiv accepts, without the sources.

This can also be done for pdflatex documents, see

1. Removing the PDF metadata

  pdfcreator = {},
  pdfproducer = {}

2. Removing the PDF special commands

\pdfvariable suppressoptionalinfo \numexpr 1+2+4+8+16+32+64+128+256+512 \relax

Credits: Ulrike Fischer on stackexchange

3. Removing math fonts

Some characters, especially in math mode, are recognized as Latex-produced by arXiv (eg the “+”, as in $a+b$) and consequently prevents upload to arXiv. The solution is to keep the character but to change the fonts. There is no ultimate solution, you can try:








See for more math fonts.

Tagged as: