The server has six engines: pdfLaTeX, XeLaTeX, LuaLaTeX, upLaTeX, pLaTeX and LaTeX (through DVI). You rarely need to choose: the app picks one from your document.
How the engine is chosen
With Automatic (from the Source), the default, the server reads the top of your main file:
- A
% !TEX program = xelatexline (orlualatex,uplatex,platex,pdflatex,latex) wins — the way Overleaf and TeXShop projects often say it. - Then the document class and the packages:
jsarticle,jsbook,jsreportand the other pLaTeX classes → pLaTeX;ujarticleand the like, or theuplatexclass option → upLaTeX.jlreq→ LuaLaTeX, or pLaTeX / upLaTeX when itsplatex/dvipdfmxoption asks for them.luatexja→ LuaLaTeX.- ctex classes, Chinese university templates such as
thuthesis, or the packagesctex,xeCJKorfontspec→ XeLaTeX.
- Otherwise pdfLaTeX.
Choose one for a project 3.0.0 or later
When the automatic choice is wrong — for example fontspec loaded inside your own .sty file, or unicode-math, which needs XeLaTeX or LuaLaTeX — set the engine for that project:
- Tools › Compiler, then the engine.
- Compiler in the bar above the editor.
The choice is saved with the project (in its .rectoly-latex.json) and used from the next compile. It wins over a % !TEX program line. Choose Automatic (from the Source) to go back.
Japanese and Chinese papers
- Japanese:
jsarticleand the other Japanese classes compile with pLaTeX or upLaTeX and dvipdfmx,jlreqwith LuaLaTeX (or pLaTeX / upLaTeX). LuaLaTeX (luatexja) and XeLaTeX documents compile as they are. - Chinese: ctex documents and thesis templates such as thuthesis compile with XeLaTeX.
- No setup is needed: the fonts are on the server. Two of the templates are Japanese and one is Chinese.
Fonts
With XeLaTeX or LuaLaTeX you can choose fonts by name with fontspec. The fonts you can use are those on the server (TeX Live's fonts and the CJK fonts it uses) and font files you put in the project. Fonts installed on your own device are not on the server. If a font is not found, see Troubleshooting.