Expand description
The rule of last resort of the display-math environments: a display-math environment that no feature processing mathematics lowers is an Error.
A display-math environment (ENVIRONMENT, flm.math.environment) is
lowered by the rules of the feature that processes mathematics (the
module documentation of math, Processing mathematics). Where
no such feature has a rule for the environment on the backend at hand, in
a registry without a processing feature for instance, RULE lowers it,
as the lowering feature’s rule of last resort
(MathGroupRule)
lowers a math group: it reports MathUnprocessed
(flm.math.unprocessed, an Error) at the environment, and lowers the
content of the environment’s equation lines through the rules as ordinary
content, inside a flm.pres.span of role flm.math and kind display. A
character run is text, an unknown command its flm.pres.unknown, a text
command its flm.pres.math-text. The \\, \label, \tag and
\nonumber of the body are data of the lines (lines) and
are not written.
The rule is registered on every backend and marked DefaultMark::Never,
so it is chosen on a backend only where it is the sole candidate for the
environment: the rule of a processing feature applies wherever one is
registered for the backend. With it, every backend renders every
display-math environment, so the plan of a standard workflow builds for a
registry that holds the math feature and no processing feature.
Structs§
- Unprocessed
Environment Rule - The body of
RULE: it reportsMathUnprocessed(flm.math.unprocessed, an Error) at the environment’s span, and stages aflm.pres.spanof roleflm.mathand kinddisplayover the content of the environment’s equation lines, lowered through the rules as ordinary content. The fields of the body (\\,\label,\tag,\nonumber) are not lowered. See the module documentation.
Constants§
- RULE
- The name of the rule of last resort of
ENVIRONMENTon every backend,flm.math.environment.lower.default, whose body isUnprocessedEnvironmentRule.