The source cited, by its tag, or with how it is cited, or several sources, cited together
Written as Word's citation content control, in place of a run
Adds a child element to this component.
The child component or text string to add
This component (for chaining)
Prepares this component and its children for XML serialization.
This method is called by the Formatter to convert the component tree into an object structure compatible with the xml library (https://www.npmjs.com/package/xml). It recursively processes all children and handles special cases like attribute-only elements and empty elements.
The method can be overridden by subclasses to customize XML representation or execute side effects during serialization (e.g., creating relationships).
The serialization context containing document state
The XML-serializable object, or undefined to exclude from output
A citation of one or more of the document's sources, by their tags, such as "(Baker, 2010)" in APA, as Word's References > Insert Citation inserts it. It is written in the style of the document's bibliography, and Word writes it again when it updates the document's fields, or when the style is changed.
The document needs its sources: give it
bibliography: createBibliography({ sources }).Public Api
Example