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

    Interface ReferenceInline

    \ref or \pageref. text is what gets set, and it is mutable on purpose: it starts as UNRESOLVED_REFERENCE, pass 2 fills in \ref, and resolvePageNumbers fills in \pageref after a layout pass. Chunk 7 reads text at shaping time, so re-running layout re-reads whatever is current.

    interface ReferenceInline {
        key: string;
        kind: "reference";
        loc: SourceRef;
        refKind: "ref" | "pageref";
        style: TextStyle;
        text: string;
    }

    Hierarchy

    • InlineBase
      • ReferenceInline
    Index
    key: string
    kind: "reference"

    Where this material starts in the source. Only start — see SourceSpan.

    refKind: "ref" | "pageref"
    style: TextStyle
    text: string