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

    Interface TableContext

    What setTable needs beyond the block.

    interface TableContext {
        bodySize: FontSize;
        budget: Budget;
        design: PageDesign;
        diagnostics: {
            code?:
                | "syntax"
                | "unsupported"
                | "undefined-command"
                | "undefined-environment"
                | "undefined-reference"
                | "duplicate-label"
                | "missing-file"
                | "missing-font"
                | "overfull-box"
                | "underfull-box"
                | "budget-exceeded"
                | "limit-exceeded"
                | "stopped"
                | "internal";
            column?: number;
            construct?: string;
            file: string;
            line: number;
            message: string;
            severity: "error"
            | "warning"
            | "info";
        }[];
        file: string;
        measure: number;
        shaper: Shaper;
        size: number;
        breakCell(hlist: HList, width: number, at: SourceRef): HBox[];
        setInlines(inlines: readonly Inline[], size: number, at: SourceRef): HList;
    }

    Hierarchy (View Summary)

    Index
    bodySize: FontSize

    The type size in force, which is also what em in a p{2em} column means.

    budget: Budget

    Spend steps for every cell measured and every line broken; stop when it says stop.

    design: PageDesign
    diagnostics: {
        code?:
            | "syntax"
            | "unsupported"
            | "undefined-command"
            | "undefined-environment"
            | "undefined-reference"
            | "duplicate-label"
            | "missing-file"
            | "missing-font"
            | "overfull-box"
            | "underfull-box"
            | "budget-exceeded"
            | "limit-exceeded"
            | "stopped"
            | "internal";
        column?: number;
        construct?: string;
        file: string;
        line: number;
        message: string;
        severity: "error"
        | "warning"
        | "info";
    }[]

    Where diagnostics go. Appended to, never replaced.

    file: string

    The entrypoint, for a diagnostic with no better position than the document.

    measure: number

    The measure a table may occupy: \linewidth where the table sits.

    shaper: Shaper
    size: number

    The type size in force, for an em/ex length.

    • Break a cell's horizontal list to width — the p{} column's internal line breaking, which is the reuse of the M1 breaker that makes p{} tractable. Returns the set lines, in order; diagnostics (overfull boxes) have already been reported.

      Parameters

      Returns HBox[]

    • Set a cell's inlines as one unbroken horizontal list — the measurement pass. Supplied by layout/vlist.ts; it resolves faces, reports a missing one once, and applies TeX's sentence spacing, none of which this file should re-implement. Measure the result with measure(hlist, "h") from layout/glue.ts.

      Parameters

      Returns HList