TeX/TeX dimensions

< TeX

A dimension specifies a distance. Dimension are used to specify sizes of things, such as the length of a line. Dimensions are written using a factor (a multiplier) and a unit of measure.

Units of measure

The font-independent units of measure that TeX understands are:

The font-dependent units of measure are:

Finally, TeX provides three "infinite" units of measure: 'fil', 'fill' and 'filll', in increasing order of strength.

Usage

A dimension is written as a factor (a multiplier) followed by a unit of measure, for example:

 1cm  -3.5in  0em  2fill

The last of these represents an infinite distance. TeX only accepts infinite distances when specifying the stretch or shrink of a glue. An infinite distance outweighs any finite distance or any weaker infinite distance. For example, if you add 1000in or 2fil to -1fill, then you obtain -1fill.

See also:

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.