luatex
TLDR
Compile LaTeX document
$ luatex [document.tex]
Compile LuaLaTeX document$ lualatex [document.tex]
Compile with shell escape$ luatex --shell-escape [document.tex]
Compile to DVI$ luatex --output-format=dvi [document.tex]
Specify output directory$ luatex --output-directory=[dir] [document.tex]
SYNOPSIS
luatex [options] [file]
DESCRIPTION
LuaTeX is an extended TeX engine with embedded Lua scripting. It combines the typesetting power of TeX with Lua programming, enabling dynamic document generation and advanced customization.
LuaLaTeX is the LaTeX format for LuaTeX, replacing pdfLaTeX for modern documents.
PARAMETERS
--fmt format
Format file to use.--output-format fmt
pdf or dvi.--output-directory dir
Output directory.--shell-escape
Enable shell commands.--interaction mode
Interaction mode.--halt-on-error
Stop on first error.--lua file
Lua initialization file.
LUA IN DOCUMENTS
$ \directlua{
tex.print("Hello from Lua!")
for i=1,5 do
tex.print(i)
end
}
tex.print("Hello from Lua!")
for i=1,5 do
tex.print(i)
end
}
CAVEATS
Slower than pdfLaTeX for simple documents. Some packages need adaptation. Memory usage higher than other engines. Unicode-native.
HISTORY
LuaTeX development started in 2007 by Taco Hoekwater, Hartmut Henkel, and Hans Hagen as a successor to pdfTeX with scripting capabilities.


