Bibliography
Zotero and Obsidian for your thesis: from your library to the bibliography in the PDF
A bibliography is the part of a thesis nobody wants to do by hand. You copy author names, check years, fix page numbers, and the moment you add one more source the numbering is off again. This article shows the setup I use instead: Zotero collects the sources, one file in your Obsidian vault stays up to date by itself, and the PDF ends with a finished bibliography.
I set this up from scratch for this article, on a fresh copy of the free Obsitex thesis template. Every step below is one I actually clicked through, including the places where I got stuck.
What you need
- Zotero, a free reference manager (I used Zotero 10)
- The Zotero Connector for your browser. The Zotero website offers it right after the installation
- Better BibTeX, a free add-on for Zotero (I used version 9.0.77)
- Obsidian with a thesis vault. The easiest start is the free template from Obsitex
Why Better BibTeX? Zotero can export a bibliography file on its own, but only once. Better BibTeX can keep that file up to date: every source you add or correct in Zotero ends up in your vault without another export.
Step 1: Collect your sources in Zotero
Zotero has to be running for the following.
- An article on a journal website: click the Zotero icon in your browser. In Chrome it may hide behind the puzzle icon.
- A book: click the magic wand in Zotero and enter the ISBN.
- An article you know by its DOI: the same magic wand, with the DOI.

If the article sits behind a paywall, Zotero still saves the entry with all its details. Only the PDF stays out. For the bibliography, the entry is what counts.
Step 2: Check every entry once
Zotero saves you the typing, not the looking. It takes its data from publishers and library catalogs, and that data is not always clean. In my test, three sources came in three different qualities:
- An article with a DOI (Deep learning, Nature 2015) came in complete and correct. Publishers deliver good data.
- A book via its ISBN (The TeXbook by Donald Knuth) came from the Library of Congress catalog with the author listed twice, two ISBNs in one field and the year of a later printing.
- A preprint from arXiv (Attention Is All You Need) came in as 2023 and "pre-published". arXiv gives the date of the latest revision. The paper was actually published at a conference in 2017.
So look at each new entry once, right after you add it. It takes ten seconds and saves you from a wrong year in your final PDF.
Fix mistakes in Zotero, never in the file
The bibliography file in your vault is rewritten after every change in Zotero. A fix made in the file itself would be lost the next time.
Step 3: Install Better BibTeX
- Download the .xpi file from the latest release of Better BibTeX on GitHub.
- In Zotero, open Tools, then Plugins.
- Click the gear icon and choose to install a plugin from a file.
- Pick the .xpi file you downloaded.
Step 4: Export once, and let Zotero keep it up to date
This is the one step that makes everything else work.
- Right-click My Library and choose Export Library.

- As the format, choose Better BibLaTeX. Take care: further down the list there is also a plain "BibLaTeX" without "Better". That one cannot keep the file up to date. The first time I opened the list, it was scrolled down, and Better BibLaTeX was hidden at the very top.
- Tick Keep updated.

- Save the file as refs.bib in the Manuscript folder of your vault. The template already has a sample refs.bib there; replace it.
From now on, every source you add or correct in Zotero lands in refs.bib by itself. I tested it by adding a book after the export: a few seconds later it was in the file.
One thing to know: the template cites a sample book, [@knuth1984], in the chapter Background and Related Work. After you replace refs.bib, that source is gone. Delete the sample sentence, or replace it with one of your own sources.
Step 5: Cite while you write
In your note, a citation is the key of the source in square brackets, with an @ in front:
[@lecunDeepLearning2015]cites the source.[@lecunDeepLearning2015, 437]cites page 437. Write the bare number; LaTeX adds "p." by itself.

You find the key in Zotero, at the top of the Info pane on the right, under Citation Key.

If you write with an AI assistant in your vault, it can read refs.bib and put in the right key for you. Obsitex has a ready prompt for this, "Cite a source", in the tool Blueprints. Add new sources in Zotero, though: Zotero rewrites refs.bib and would drop anything the AI adds there. With the Obsitex skills, the AI asks once whether Zotero writes your file and then leaves new sources to Zotero.
Faster: pick citations from Obsidian (optional)
Copying keys gets tedious. The Obsidian community plugin Zotero Integration lets you search your Zotero library from within a note instead.
- In Obsidian, open Settings, Community plugins, and install and enable Zotero Integration.
- In its settings, under Citation Formats, click Add Citation Format. Name it Cite, set the Output Format to Pandoc and turn on Include Brackets. Without the brackets, Obsitex does not recognize the citation.
- In a note, press Ctrl+P and run Zotero Integration: Cite.
- Zotero's citation window opens. Type an author's name and press Enter. The source becomes a bubble. Press Enter again to insert it.

Two things tripped me up. First, the citation window did not come to the front. Obsidian only showed "Awaiting item selection from Zotero…", and I had to find the window with Alt+Tab. Second, it takes two Enters: the first picks the source, the second inserts it. For a page, type it after the name, like "Silver p484".
To be fair: the plugin works, but it is hardly maintained any more. Its last release is from August 2024.
Step 6: Get the PDF
Obsitex turns your vault into a LaTeX document, and Overleaf makes the PDF from it. You do not have to touch any LaTeX: refs.bib travels along, and the bibliography is built from it.
In the text, each citation becomes a number in square brackets, with the page where you gave one:

At the end of the thesis, under Bibliography, every source you cited appears in full:

Look closely and you see the problems from Step 2: the TeXbook with 1986 and two ISBNs, and Attention Is All You Need as a 2023 preprint. That is exactly why the check is worth it.
When something looks wrong
| In the PDF | Why | Fix |
|---|---|---|
| The key in brackets, like [knuth1984] | The key is not in refs.bib | Copy the key from Zotero exactly |
| An empty bibliography | Only cited sources are listed | Cite at least one source |
| The numbers jump, like [3] before [1] | Sources are numbered by author name, not by order in the text | Nothing to fix, or switch to author and year |
| A wrong year | Preprint or book data | Fix the entry in Zotero |
Author and year instead of numbers
Many fields cite as (LeCun 2015) instead of [2]. That is not set in Zotero but in the document settings of your vault, in the note 00 Document Setup. Two lines change there. The easiest way is to ask your AI with the prompt "Change how citations look" from the tool Blueprints. The bibliography then follows the new style by itself.
Summary
Zotero collects your sources, Better BibTeX keeps refs.bib in your vault up to date, and you write [@key] where you cite. Check each new entry once and fix mistakes in Zotero, not in the file. The rest, numbering and the bibliography, comes by itself.