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

    Type Alias DisplayOverrunCheck

    DisplayOverrunCheck: (
        block: DisplayMathBlock,
        renderedWidth: number,
        measure: number,
    ) => Diagnostic | null

    The math work's spec, "measure the rendered display width against the text width and report when it exceeds it".

    Line breaking inside math is explicitly Out — TeX barely does it either — so a display that overruns the measure must produce a diagnostic rather than running into the margin, and the author breaks it themselves. Only layout knows either number, which is why this is a type here and a function there. Returns null when the display fits.

    Type Declaration