Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Interface DisplayMathBlock

    \[…\], equation, align and friends: mathematics set on its own lines.

    Not measured, and not rendered. Like TableBlock, this block is the parse of the construct and nothing more: source is TeX, and turning TeX into a box needs MathJax and a shaper, neither of which the document layer may know about. Rendering is src/math/, placement and the overrun diagnostic are layout/.

    interface DisplayMathBlock {
        construct: string;
        display: true;
        kind: "displaymath";
        lines: MathLine[];
        loc: SourceRef;
        numbered: boolean;
        source: string;
        variant: DisplayMathVariant;
    }

    Hierarchy

    • BlockBase
      • DisplayMathBlock
    Index
    construct: string

    "\\[...\\]" or the environment name as written — the construct for diagnostics.

    display: true

    Always true — see MathInline.display for why it is stated rather than derived.

    kind: "displaymath"
    lines: MathLine[]

    At least one entry, always.

    numbered: boolean

    Whether the variant numbers; an individual line may still opt out with \nonumber.

    source: string

    The complete TeX to hand the renderer, wrapper included: for an environment variant this is \begin{align}…\end{align}, because MathJax needs the environment to know about the alignment points, and for bracket/displaymath it is the bare body. \label, \nonumber and \notag are stripped — they are numbering instructions this engine has already carried out, and MathJax would either set them or refuse them.