Skip to main content

Module numerics

Module numerics 

Source
Expand description

Numerical values used in TeX, such as integers and dimensions.

Structs§

DefaultNumSet
The default NumSet used in plain TeX, using i32, Dim32 and Mu for integers, dimensions and mu dimensions, respectively.
Dim32
A plain TeX dimension, represented as a 32-bit integer in scaled points (sp), where 65536sp = 1pt.
Mu
A plain TeX mu dimension, represented as a 32-bit integer analogously to scaled points, i.e. Mu(65536) = 1mu. (where 18mu = 1em).
MuSkip
A math skip/glue consisting of a MuDim and optional stretch and shrink components.
Skip
A skip a.k.a. glue value, i.e. a dimension with optional stretch and shrink components.

Enums§

MuStretchShrink
A stretch/shrink component of a MuSkip.
StretchShrink
A stretch/shrink component of a Skip.

Constants§

DEFAULT_UNITS
The default units for dimension values used in plain TeX:
STRETCH_SHRINK_UNITS
The units for strech/shrink values: fil, fill and filll.

Traits§

MuDim
A math dimension; i.e. the base component of an \mskip
NumSet
Bundles the various numerical types used in some engine, and converts between them.
Numeric
Generalization of integers, dimensions, skips, etc. In particular, provides a scale method to scale all of them by their integer type.
TeXDimen
A TeX dimension. By default Dim32.
TeXInt
A TeX integer. By default i32.