Skip to main content
Citations allow you to reference sources in your document and automatically generate a formatted bibliography. Autype uses the CSL-JSON standard for citation data.

Defining citations

The top-level citations array contains citation entries in CSL-JSON format. Each entry represents a single source (book, article, webpage, etc.).
The citations array supports up to 1000 entries.

CSL-JSON item properties

Every citation entry requires id and type. All other fields are optional.

Required fields

Names (authors, editors, etc.)

Name fields accept an array of name objects:
Available name fields: author, editor, translator, collection-editor, composer, container-author, director, editorial-director, illustrator, interviewer, original-author, recipient, reviewed-author

Dates

Date fields use the CSL-JSON date format:
Available date fields: issued, accessed, event-date, original-date, submitted

Titles

Numbers

Identifiers

Publisher

Other fields

Supported item types

article, article-journal, article-magazine, article-newspaper, bill, book, broadcast, chapter, classic, collection, dataset, document, entry, entry-dictionary, entry-encyclopedia, event, figure, graphic, hearing, interview, legal_case, legislation, manuscript, map, motion_picture, musical_score, pamphlet, paper-conference, patent, performance, periodical, personal_communication, post, post-weblog, regulation, report, review, review-book, software, song, speech, standard, thesis, treaty, webpage

Using citations in sections

To cite a source in your text content, use the @[citeKey] syntax where citeKey matches the id of a citation entry.

Basic citation

The @[citeKey] reference is replaced with the formatted in-text citation according to the configured citationStyle (e.g., (Smith, 2023) for APA7, [1] for IEEE).

Citation with locators

Add a locator after the cite key, separated by a comma:
Multiple locators can be combined: @[smith2023, vol. 2, p. 42]

Suppress author / author only

This renders as: “Smith argues that automation is key (2023, p. 42).”

Multiple citations

Place multiple @[...] references next to each other:
The @[citeKey] syntax works in all text content: headings, paragraphs (text, text2), list items, and table cells. It also works inside formatted text like **bold @[smith2023] text**.
When using ?strict=true on the render endpoint, any @[citeKey] reference to a citation that is not defined in the citations array will cause a validation error. Without strict mode, undefined citations produce warnings but do not block rendering.

Citation styles

The citation formatting style is configured via defaults.citationStyle:

Bibliography element

To render the formatted bibliography, add a bibliography element to a section:

Properties

Defaults for citations

Bibliography style

Customize the bibliography appearance via defaults.styles.bibliography:

Complete example