<unit>

The self-closing <unit/> tag is used to specify units inside a <quantity>. Adjacent units will be multiplied together. Units may optionally include a prefix via the prefix attribute and an exponent via the exp attribute. See The PreTeXt Guide for more information.

Syntax

Attributes

Attributes for <unit>
AttributeRequired?Values
base = "…"requiredstring
exp = "…"optionalstring
prefix = "…"optionalstring

Children

This tag must be empty (i.e., no children or text allowed).

Parents

This element may appear as an immediate child of the following elements: <quantity>

Examples