LuaTeX online

Run LuaTeX online in your browser: plain TeX with a Lua interpreter inside the engine, so \directlua computes while the page is set.

First page of the LuaTeX example, compiled with LuaTeX

Open in LaTeX.to Download the example (zip)

How to compile with LuaTeX on LaTeX.to

Everything runs in your browser: nothing to install, no login, no compile timeout.

What LuaTeX is

LuaTeX is the engine underneath LuaLaTeX. Loaded with the plain format instead of LaTeX, it is Knuth's plain TeX, \bye and all, with a Lua interpreter compiled into the binary. Wherever TeX meets \directlua, the code inside runs and whatever it prints is typeset in place.

The example on this page computes the first eight square numbers and the sum from one to a hundred that way. None of those numbers is in the source; a loop produces them every time the file compiles.

When to use it

LuaTeX vs LuaLaTeX vs XeTeX

Auto picks LuaTeX for a \bye file that uses \directlua, and the example pins it with % !TeX program = luatex on the first line.

More engines: pdfTeX, XeTeX and all engines.