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

    Interface ImageContext

    What placeImage needs beyond the node itself.

    design/measure/size are exactly LengthContext, so a width= key is resolved with resolveDocumentLength from layout/design.ts — the same function a p{} column uses, so the two cannot disagree about what 0.8\textwidth means.

    interface ImageContext {
        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;
        files: ImageFiles;
        measure: number;
        reported: Set<string>;
        size: number;
    }

    Hierarchy (View Summary)

    Index
    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.

    files: ImageFiles
    measure: number

    \linewidth: the measure in force where the construct sits, not the page's.

    reported: Set<string>

    Formats already reported for a given path, so one bad image is one diagnostic.

    size: number

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