-
Notifications
You must be signed in to change notification settings - Fork 0
Citations
Annotation Manager can attach a BibTeX citation key to any annotation. The citation is stored inline in your note and is also exposed in the Dataview cc field.
A citation marker is placed immediately after an annotation's closing =}:
Important
Place curse immediately after annotation markup; do not leave a space!
{={math/hot}every non-vertical line=}{=/{riceMathematicalStatisticsData2007}/=}
- Format:
{=/{key}/=}wherekeyis the BibTeX entry key - The citation follows immediately after the annotation — no space between them
- Multiple annotations can each have their own citation
The intended workflow uses Zotero with the Better BibTeX plugin to export references into your vault.
- Collect references in Zotero — add articles, books, and other sources to your Zotero library.
-
Install Better BibTeX — the Better BibTeX for Zotero plugin generates stable, human-readable citation keys (e.g.
riceMathematicalStatisticsData2007). -
Export to .bib — in Zotero, right-click a collection → Export Collection → choose Better BibTeX format → save the
.bibfile into your vault's bib folder (e.g.Meta/Bibs/ToRead.bib). - Keep it updated — enable Keep updated in the Zotero export dialog to automatically re-export whenever your Zotero collection changes.
- Insert citations in Obsidian — use the Insert citation command (see below).
Open Settings → Annotation Manager → Bibliography.
| Setting | Description |
|---|---|
| Bib files folder | Vault-relative path to the folder containing .bib files (e.g. Meta/Bibs). Required before you can insert citations. |
| Citation color | Font color applied to citation markers {=/{key}/=} including the delimiters. Leave blank to inherit the normal text color. |
| Show .bib files in file browser | When enabled (default), the plugin sets Obsidian's Show all file types option so .bib files appear in the file explorer. When disabled, .bib files are hidden via CSS. |
Note: When Show .bib files in file browser is enabled, the plugin programmatically enables Obsidian's Show all file types setting. This affects all non-native file types in your vault. You may need to reopen the file explorer or restart Obsidian for the change to take effect. Clicking a
.bibfile opens a read-only in-plugin tab rather than an external application.
Each annotation identifier can have a preferred .bib file. Set this in:
-
Settings UI — open the identifier's block and enter the filename in the Bib file field (e.g.
ToRead.bib) - Config file — add the filename to the Bib File column of the config table (see Annotations#Config file mode)
When you run Insert citation with the cursor immediately after an annotation that has a linked .bib file, that file appears first in the file picker (marked linked).
- Place the cursor immediately after an annotation's
=}closing tag (to get the linked.bibfile at the top), or anywhere else (to see all.bibfiles alphabetically). - Run Insert citation from the command palette.
- Step 1 — Pick a .bib file from the list. The annotation's linked file (if any) appears first.
- Step 2 — Pick a citation from the alphabetized list of entries. Each row shows the citation key, author, year, and title. Type to filter.
- The key is inserted as
{=/{key}/=}at the cursor position.
Each annotation in the cc field includes a citation property containing the associated key (or an empty string if none). See DataviewJS Examples for query examples.