Equation Citator v1.3.7 Documentation
    Preparing search index...

    Service class for handling callout-related operations Similar to FigureServices but for callouts/quotes

    Index

    Constructors

    Properties

    plugin: default

    Methods

    • Retrieves callouts by their tags from a specified source file Handles both local and cross-file callout references IMPORTANT: All tags must be of the same type/prefix

      Parameters

      • calloutTagsAll: string[]

        An array of callout tags to retrieve (e.g., ["1.1", "1.2"])

      • prefix: string

        The prefix that identifies the callout type (e.g., "table:", "thm:")

      • sourcePath: string

        The path of the source file where the callouts are referenced

      Returns Promise<RenderedCallout[]>

      A promise that resolves to an array of RenderedCallout objects

    • Get callouts for autocomplete suggestions Searches for callouts matching the given tag prefix and callout prefix

      Parameters

      • tag: string

        The partial tag to search for (e.g., "1.1")

      • prefix: string

        The callout prefix (e.g., "table:", "thm:")

      • sourcePath: string

        The source file path

      Returns Promise<RenderedCallout[]>

      Array of matching callouts

    • Resolve cross-file reference using footnote cache Returns the file path and filename for the reference

      Parameters

      • sourcePath: string
      • crossFileIndex: string
      • footnotes: FootNote[]

      Returns { filename: string | null; path: string | null }