← Overview

Add a .bib bibliography and cite from it anywhere in your text.

Add a bibliography

Embed a .bib file, alone on its own line, where you want the reference list to appear (usually a "References" page):

![[refs.bib]]

Obsitex registers the file in the preamble and prints the list at that spot:

% added to the preamble:
\addbibresource{./bib/refs.bib}

% at the embed location:
\printbibliography

<aside> ⚠️

Two “References” headings? Then your own # heading and the bibliography's built-in one are both printing. Write the command as \printbibliography[heading=none] in the bibliographyBodyCmd field of your document setup, and only your heading remains. A project folder built by /obsitex:obsitex-init already has it that way; the app's own default does not.

</aside>

Cite in your text

A direct citation [@meier2020] and one with a page number [@meier2020, p.~14].

A paraphrase with a prefix [cf. @meier2020, p.~14].
A direct citation \cite{meier2020} and one with a page number \cite[p.~14]{meier2020}.

A paraphrase with a prefix \cite[cf.][p.~14]{meier2020}.

Block quotes with a source

A longer, word-for-word quotation with its citation is covered on Callouts & block quotes.

How it looks in the PDF

bibliography.png

The three citation forms in the text, and the reference list generated from the .bib file below them.

Tips & pitfalls