Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Reference

    A source that runs cite with 'cite'. Cited references are listed in the footnote area of the slides that cite them, numbered per deck in order of first use; referencesSlide() builds an ordinary list slide of them.

    Metadata

    Definition
    #/$defs/Reference
    Form
    object
    Source
    spec/schemas/opf.schema.json

    Field index

    FieldTypeReq.Description
    idstringyesIdentifier runs cite. Unique within the references list.
    textstring | array<ref:TextRun>yesThe reference as it is listed: a string or TextRun[] for inline rich text.
    linkstring—Optional link for the reference: an http(s) URL, a 'mailto:' address or a 'tel:' number. A references slide links its entry to it.

    id

    typestringrequiredyesdefault—

    Identifier runs cite. Unique within the references list.

    id.json
    {
      "id": "gartner-2026"
    }

    text

    typestring | array<ref:TextRun>requiredyesdefault—

    The reference as it is listed: a string or TextRun[] for inline rich text.

    text (oneOf 2)[] (oneOf 2).color (anyOf 2).color · Named choices (see schema for other values and constraints)
    "accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "description": "A source that runs cite with 'cite'. Cited references are listed in the footnote area of the slides that cite them, numbered per deck in order of first use; referencesSlide() builds an ordinary list slide of them.",
      "additionalProperties": false,
      "required": [
        "id",
        "text"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "description": "Identifier runs cite. Unique within the references list.",
          "examples": [
            "gartner-2026",
            "annual-report"
          ]
        },
        "text": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TextRun"
              }
            }
          ],
          "description": "The reference as it is listed: a string or TextRun[] for inline rich text."
        },
        "link": {
          "type": "string",
          "pattern": "^(https?://|mailto:|tel:)\\S+$",
          "description": "Optional link for the reference: an http(s) URL, a 'mailto:' address or a 'tel:' number. A references slide links its entry to it.",
          "examples": [
            "https://acme.com/reports/2026"
          ]
        }
      }
    }