LinuxCommandLibrary

luatex

TLDR

Compile LaTeX document

$ luatex [document.tex]
copy
Compile LuaLaTeX document
$ lualatex [document.tex]
copy
Compile with shell escape
$ luatex --shell-escape [document.tex]
copy
Compile to DVI
$ luatex --output-format=dvi [document.tex]
copy
Specify output directory
$ luatex --output-directory=[dir] [document.tex]
copy

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
}
copy

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.

SEE ALSO

lualatex(1), pdflatex(1), xelatex(1), tex(1)

Copied to clipboard