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

    Interface LatexDocument

    interface LatexDocument {
        blocks: Block[];
        classLoc: SourceRef | null;
        classOptions: string;
        documentClass: string;
        floatList: FloatListEntry[];
        footnotes: FootnoteInline[];
        labels: ReadonlyMap<string, LabelInfo>;
        packages: PackageUse[];
        toc: TocEntry[];
    }
    Index
    blocks: Block[]
    classLoc: SourceRef | null

    Where the \documentclass line is, so a complaint about a class option points at the line the author wrote — PackageUse.loc is the same field for \usepackage, and the two are read side by side when the page design is worked out. null only when the document has no \documentclass at all, which is itself an error and leaves no options to complain about.

    classOptions: string

    The raw [...] text of \documentclass, unparsed.

    documentClass: string

    From \documentclass; only article is implemented.

    floatList: FloatListEntry[]

    Every \caption, in document order, for \listoffigures and \listoftables — one list for both classes, filtered by floatClass where it is set, because the two lists are collected by the same code and splitting them here would only move the filter.

    footnotes: FootnoteInline[]

    Every footnote in document order, for callers that want them without a walk.

    labels: ReadonlyMap<string, LabelInfo>
    packages: PackageUse[]
    toc: TocEntry[]

    In document order, whether or not a \tableofcontents asked for them.