Skip to main content

Module build

Module build 

Source
Expand description

Building boxes and lists (TeX: The Program §1055–§1135, with e-TeX’s and LuaTeX’s changes).

LuaTeX differences implemented here (established with black-box tests):

  • a paragraph starts with a local paragraph node (\localpar), then the indentation box;
  • \- takes its pre-break text from the language’s \prehyphenchar and its penalty from \exhyphenpenalty; \discretionary takes \hyphenpenalty (both at the time the node is made) and accepts an optional penalty <int>;
  • \hpack, \vpack and \tpack build boxes like \hbox, \vbox and \vtop but without node processing;
  • the boundary commands append boundary nodes, and start a paragraph in vertical mode.

Modules§

chr
Modifiers (chr codes) of list-building commands, LuaTeX numbering.

Enums§

PackSpec
The specification of a box being built (to/spread).

Functions§

box_with
Fields of a fresh box with the given dimensions (helper for tests).
ctx_from_i64
Decodes a box context from the save stack.
ctx_to_i64
Encodes a box context for the save stack.
glue_param_of_subtype
The glue parameter (eqtb index) belonging to a glue subtype.
norm_min
norm_min.