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

    Interface MathRequest

    One math run, as the document model hands it over.

    interface MathRequest {
        at: SourceRef;
        display: boolean;
        tex: string;
    }
    Index

    Where the run came from. Carried rather than recomputed, because the engine foundation treats a wrong line number as a bug and this subsystem has no source text to recover one from.

    display: boolean

    Display style (\[…\], equation, align) rather than inline ($…$). This is MathJax's { display } flag, and it changes the typesetting — limit placement on \sum, fraction size, spacing — not merely the surrounding whitespace, so it cannot be applied afterwards by the caller.

    tex: string

    The TeX between the delimiters — x^2, not $x^2$. Stripping $…$, \(…\), \[…\] and the environment wrappers is the document layer's job, because that is where the source positions are; by the time it reaches here a run is just an expression.