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

    Interface PageBuildOptions

    interface PageBuildOptions {
        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;
        floats?: ReadonlyMap<string, PreparedFloat>;
        fonts: FontProvider;
        footnotes: ReadonlyMap<string, PreparedFootnote>;
        maxPages: number;
        shaper: Shaper;
    }
    Index
    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

    The entrypoint, for diagnostics with no better position.

    floats?: ReadonlyMap<string, PreparedFloat>

    Float material, keyed by the marker vlist.ts put where the float was written. Iteration order is document order — vlist.ts names them float:0, float:1, … as it reaches them and a Map preserves insertion order — which is the whole basis of the no-reordering guarantee.

    Optional so that a caller laying out prose alone (and every test that predates floats) needs no empty map; compile() always passes the real one. An absent or empty map switches the queue off entirely.

    footnotes: ReadonlyMap<string, PreparedFootnote>

    Footnote material, keyed by the marker vlist.ts put beside each mark.

    maxPages: number
    shaper: Shaper