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 https://tex.stackexchange.com/questions/95080/making-an-anonymous-pdf-file-using-pdflatex

1. Removing the PDF metadata

\usepackage{hyperref}
\hypersetup{
  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:

\usepackage{mathastext}

OR

\usepackage{ccfonts}

OR

\usepackage{mathdesign}

OR

\usepackage[math]{iwona}

See http://mirrors.ircam.fr/pub/CTAN/info/Free_Math_Font_Survey/survey.html for more math fonts.

Tagged as: