man > dviluatex(1)

LUATEX(1) – General Commands Manual

πŸ“ NAME

luatex, dviluatex, luahbtex, luajittex, texlua, texluac – An extended version of TeX using Lua as an embedded scripting language

πŸš€ Quick Reference

Use CaseCommandDescription
Run LuaTeX typesetterluatex [--lua=FILE] [OPTION]... TEXNAMEπŸ“„ Process TeX input and produce PDF/DVI
Use as Lua interpretertexlua [script]🐍 Execute Lua script directly
Use as Lua bytecode compilertexluac [script]βš™οΈ Compile Lua source to bytecode
Use HarfBuzz shapingluahbtex [options]πŸ”€ Use HarfBuzz for glyph shaping
Use with LuaJITluajittex [options]⚑ Include Lua just-in-time compiler

πŸ“‹ SYNOPSIS

luatex [--lua=FILE] [OPTION]...  [TEXNAME[.tex]] [COMMANDS]
luatex [--lua=FILE] [OPTION]...  \FIRST-LINE
luatex [--lua=FILE] [OPTION]...  &FMT [ARGS]

πŸ“– DESCRIPTION

Run the luaTeX typesetter on TEXNAME, usually creating TEXNAME.pdf. Any remaining COMMANDS are processed as luaTeX input, after TEXNAME is read.

Alternatively, if the first non-option argument begins with a backslash, interpret all non-option arguments as a line of luaTeX input.

Alternatively, if the first non-option argument begins with a &, the next word is taken as the FMT to read, overriding all else. Any remaining arguments are processed as above.

If no arguments or options are specified, prompt for input.

If called as texlua it acts as a Lua interpreter. If called as texluac it acts as a Lua bytecode compiler.

LuaTeX began as an extended version of pdfTeX with Unicode and OpenType font support, embedded Lua scripting language, the e-TeX and Omega extensions, as well as an integrated MetaPost engine, that can create PDF files as well as DVI files. For more information about luatex, see http://www.luatex.org; and you can read the LuaTeX manual using the texdoc utility (texdoc luatex).

All LuaTeX text input and output is considered to be Unicode text, although various filters make it possible to support any encoding.

In DVI mode, LuaTeX can be used as a complete replacement for the TeX engine.

In PDF mode, LuaTeX can natively handle the PDF, JPG, JBIG2, and PNG graphics formats. LuaTeX cannot include PostScript or Encapsulated PostScript (EPS) graphics files; first convert them to PDF using epstopdf (1).

The luajittex variant includes the Lua just-in-time compiler.

The luahbtex variant can use the HarfBuzz engine for glyph shaping, instead of LuaTeX's built-in shaper.

βš™οΈ OPTIONS

When the LuaTeX executable starts, it looks for the --lua command-line option. If there is no --lua option, the command line is interpreted in a similar fashion as in traditional pdfTeX and Aleph. But if the option is present, LuaTeX will enter an alternative mode of command-line parsing in comparison to the standard web2c programs. The presence of --lua makes most of other options unreliable, because the lua initialization file can disable kpathsea and/or hook functions into various callbacks.

πŸ”§ --lua=FILE

The lua initialization file.

The following two options alter the executable behaviour:

πŸ”§ --luaonly

Start LuaTeX as a Lua interpreter. In this mode, it will set Lua's arg[0] to the found script name, pushing preceding options in negative values and the rest of the command line in the positive values, just like the Lua interpreter. LuaTeX will exit immediately after executing the specified Lua script.

πŸ”§ --luaconly

Start LuaTeX as a Lua byte compiler. In this mode, LuaTeX is exactly like luac from the standalone Lua distribution, except that it does not have the -l switch, and that it accepts (but ignores) the --luaconly switch.

Then the regular web2c options:

The following options are ignored:

πŸ“š SEE ALSO

pdftex(1), etex(1), aleph(1), lua(1).

πŸ‘₯ AUTHORS

The primary authors of LuaTeX are Taco Hoekwater, Hartmut Henkel, Hans Hagen, and Luigi Scarso, with help from Martin SchrΓΆder, Karel Skoupy, and Han The Thanh.

TeX was designed by Donald E. Knuth, who implemented it using his Web system for Pascal programs. It was ported to Unix at Stanford by Howard Trickey, and at Cornell by Pavel Curtis. The version now offered with the Unix TeX distribution is that generated by the Web to C system (web2c), originally written by Tomas Rokicki and Tim Morgan.

The LuaTeX home page is http://luatex.org.

dviluatex(1)
LUATEX(1) – General Commands Manual πŸ“ NAME πŸš€ Quick Reference πŸ“‹ SYNOPSIS πŸ“– DESCRIPTION βš™οΈ OPTIONS
πŸ”§ --lua=FILE πŸ”§ --luaonly πŸ”§ --luaconly
πŸ“š SEE ALSO πŸ‘₯ AUTHORS

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-04 14:44 @216.73.216.128
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^