Insert Zotero citations in Obsidian: every way to do it
Insert a Zotero citation such as [@smith2024] in Obsidian as you type, or from the command palette. Citation keys come from Better BibTeX in Zotero.
If you have never cited a paper in Obsidian, start with How to cite in Obsidian with Zotero (about 10 minutes).
- In your note, type
[@. A list of papers from your Zotero library opens. - Type a few words of the title or author, select the paper, and press
Enter. ZotLit inserts[@citationKey]and a space, so you can keep typing. - For the author-in-text form
@citationKey, pressShift+Enterinstead.
Insert while typing
-
Type
[@in the note (【@also works). A list of papers from your Zotero library opens under your cursor. Before you type a search term, the papers this note already cites appear first, each marked Cited in this note.
-
Keep typing words from the title or author to narrow the list. The list ranks papers by how well they match, and any paper the note already cites keeps its Cited in this note mark.
-
Select the paper and press
Enter. The citation appears in your note (for example,[@smith2024]), followed by a space, with your cursor placed after the space. -
For the author-in-text form, press
Shift+Enterinstead ofEnter, or end your search with/and pressEnter. The note receives@smith2024. The hint row at the bottom of the list confirms↵to insert citation, and/ ↵and⇧↵to insert alternate citation.
Open the command palette (Ctrl+P on Windows and Linux, Cmd+P on macOS) and run ZotLit: Insert Markdown citation. A picker showing your Zotero library opens. Search for the paper, then press Enter to insert the main citation or Shift+Enter for the alternate citation. A trailing / does not trigger the alternate form here; use Shift+Enter.
A citation names a paper by its citation key, such as smith2024. ZotLit reads this value from Zotero's own Citation Key field.
Install Better BibTeX, a Zotero add-on, to cite as you write: it fills that field for every paper with stable keys generated from a pattern. A paper with an empty field cannot be cited. In a group library where you lack edit permissions, Better BibTeX keeps generated keys local; ZotLit can only read keys that already exist in the item's field.
| You press | You get | With page 62 |
|---|---|---|
Enter (main citation) | [@smith2024] | [@smith2024, {p. 62}] |
Shift+Enter or a trailing / (alternate) | @smith2024 | @smith2024 [{p. 62}] |
One template, Citation text, formats both outputs. To modify how they appear, run ZotLit: Customize citation text (see Change the text a citation inserts). The full rendering table is in the Citation text reference.
Inserting citations works even if all display toggles are off; it does not require Pandoc citations or Show formatted citations. When both are enabled (the default), both forms can render as formatted text in Live Preview and reading view if you have configured the Pandoc engine and a style.
Use this format when the citation must function as an Obsidian link to the paper's literature note.
- Open Settings > ZotLit > Citations and enable Wikilink citations.
- Type
[[in your text, select the literature note, and keep the link without an alias:This finding follows the earlier analysis [[Doe 2020]]. - To cite a specific page, add it to the link:
[[Doe 2020#cite:locator=33]]. ReplaceDoe 2020with the literature note's exact file name.
[[@doe2024]] is not treated as a citation unless a literature note is named exactly that; write [@doe2024] to reference a citation key.
If you see something else
-
Nothing happens when I type
@alone: A bare@opens the suggester only when @ trigger is turned on in Settings > ZotLit > Citations (off by default). Type[@instead, or turn that setting on. - No list opens at all, even for
[@: Citation suggester is turned off. Open Settings > ZotLit > Citations and turn it back on. - My search stops at the first space after
@: When using a bare@, type_instead of a space (for example,@machine_learningmatches "machine learning"). Normal spaces work as expected after[@. - Notice: "Selected item has no citation key: {key}." The paper has an empty Citation Key field in Zotero. Add a citation key to the item in Zotero, then insert it again.
- Notice: "Citation key @{citekey} matches multiple Zotero items. Change it in Zotero before inserting a citation." Two items share the same citation key, in one library or in two libraries ZotLit reads. Give one paper a distinct key in Zotero, or narrow your Library scope to the intended library. For details, see A key that matches several items.
- A citation already in my note shows as a problem, and the References sidebar says "@{citekey} matches multiple items in your Zotero library." Two items share the same citation key. Change one key in Zotero or narrow your Library scope; until resolved, ZotLit leaves the raw key in place and omits it from the reference list.
- Each paper in the list names a library: ZotLit is currently searching more than one library. The label indicates which library contains that item; when only one library is active in scope, the label is omitted.
Next
- How to review, copy, and troubleshoot references — Inspect every paper cited in your note and copy the reference list.
- Export a note with citations — Convert your note into a Word document with formatted citations.
- Create and open literature notes — Jump directly from an inline citation to the paper's literature note.
Last updated on