Skip to main content

Module print

Module print 

Source
Expand description

Low-level output: terminal, log file, strings and \write streams.

This follows TeX’s printing model (TeX: The Program §54–§71): a selector chooses the destinations. Terminal and log lines are broken after max_print_line characters. The current \newlinechar starts a new line.

Character representation, as LuaTeX prints it to the terminal and log: characters below 32 appear in ^^ notation (^^A), except tab (9), line feed (10) and carriage return (13), which are output raw, like 127. Characters ≥ 128 are output as UTF-8. Line lengths count bytes, but a multi-byte character is never split across lines. \write files and strings receive raw UTF-8.

Structs§

Printer
The printer state.

Enums§

Selector
Where printed text goes (TeX’s selector).

Functions§

roman
Lowercase roman numerals as TeX’s print_roman_int produces them; nothing for values ≤ 0.