Zotero with LaTeX and Overleaf: Export a .bib, Keep It Updated with Better BibTeX, and Fix [?] Citations (2026)

How to use Zotero with LaTeX and Overleaf, checked in December 2026. Export a BibTeX or BibLaTeX file from Zotero, keep it updated by itself with Better BibTeX, citation keys that do not change, Overleaf's Zotero integration and which plans include it, \bibliography or \addbibresource, and what to do when a citation shows [?] or "Citation undefined".

LaTeX does not read your Zotero library. It reads a .bib file, and Zotero writes one: right-click a collection, choose Export…, pick BibTeX or BibLaTeX, and save the file next to your .tex file. Then cite with \cite{key}. Zotero's own export is a snapshot, so to have the .bib rewrite itself whenever you add a paper, install the free plugin Better BibTeX and tick Keep updated when you export. In Overleaf, upload that .bib, or link Zotero on a paid plan. This guide goes through each step, checked against Zotero 10 in December 2026.

The ways to get Zotero into LaTeX

WayStays up to dateCost
Zotero's Export… to BibTeXNo: export again after changesFree
Better BibTeX with Keep updatedYes, a few seconds after each changeFree plugin
Overleaf's Zotero integrationWhen the project owner clicks RefreshOverleaf Student plan or higher
Quick Copy as BibTeXNo: a one-off copy of the items you selectFree

Export a .bib file from Zotero

  1. In Zotero, right-click the collection that holds the papers for your paper or thesis and choose Export…. (In Zotero 9 and earlier it is called "Export Collection…".) For everything, use File › Export Library….
  2. Under Format:, choose BibTeX if your document ends with \bibliography{…}, or BibLaTeX if it uses \addbibresource{…}. Leave Export Files unticked; the PDFs are not needed.
  3. Save it as refs.bib in the folder of your .tex file, or upload it to your Overleaf project.

The citation key is the name you put in \cite{}. Since Zotero 8, every item has a Citation Key field, but Zotero does not fill it in itself. When it is empty, Zotero's export makes a key from the first author, the first word of the title and the year, such as mangen_comparing_2019. Because it is made at each export, it can change when you correct an item's details, and the \cite{} that used it then shows [?]. That is the main reason to use Better BibTeX.

For one or two entries, set Settings › Export › Quick Copy › Item Format: to BibTeX, select a paper and press Ctrl+Shift+C (Cmd+Shift+C on a Mac): the BibTeX entry is copied, ready to paste into your .bib.

Keep the .bib updated with Better BibTeX

Better BibTeX for Zotero is a free plugin made for LaTeX users. Version 9.0.77 (November 2026) supports Zotero 10; current versions need Zotero 8 or later.

Install it:

  1. Download the latest .xpi file from its releases page. In Firefox, right-click the link and save the file, or Firefox will try to install it itself.
  2. In Zotero, go to Tools › Plugins and drag the .xpi onto the Plugins window. Restart Zotero if it asks.

Citation keys that do not change. Better BibTeX gives every item a key and writes it into Zotero's Citation Key field, where it stays: keys are always fixed now, and they sync with your library. By default a key is the author's name, three words of the title and the year. Changing the key formula in Better BibTeX's settings does not touch existing keys; to make a key again, right-click the item and choose Regenerate BibTeX key.

A .bib that updates itself:

  1. Right-click the collection and choose Export….
  2. Under Format:, choose Better BibTeX (for \bibliography) or Better BibLaTeX (for \addbibresource).
  3. Tick Keep updated and save the file into your LaTeX project's folder.

From then on, Better BibTeX rewrites the file whenever the collection changes: add a paper to the collection, compile, and it can be cited. Its settings list every automatic export, where you can pause or remove one.

Zotero and Overleaf

On Overleaf's free plan, upload the .bib file: in the project, click Upload and choose your refs.bib. When you add papers, export and upload it again, replacing the old one. If you keep Better BibTeX's automatic export in a Dropbox folder, Overleaf's Dropbox sync can carry it across, but that sync is also a paid feature.

On a paid plan, Overleaf links to Zotero directly. Its integrations are included from the Student plan (US$8.25 a month, billed yearly) upward, and many universities provide a plan.

  1. In Overleaf's Account Settings, under Reference Managers, link your Zotero account.
  2. In a project, click the Upload button above the file list and choose From Zotero. Choose My Library or a group library and give the file a name.
  3. The .bib appears in the project, read-only. When your library changes, open it and click Refresh. Only the project's owner can refresh it.

What to know: Overleaf imports a whole library or group as one flat list, not a single collection. To cite only a thesis's papers, put them in a Zotero group, or use Better BibTeX and upload its file. Overleaf also links Mendeley and ReadCube Papers in the same way.

Use the .bib in your document

With BibTeX: put these two lines where the bibliography goes, without the .bib extension.

\bibliographystyle{plain}
\bibliography{refs}

With biblatex: load it in the preamble and print the bibliography at the end. Here the extension is needed, and the bibliography is processed by Biber, which Overleaf uses by default.

\usepackage[style=authoryear]{biblatex}
\addbibresource{refs.bib}
...
\printbibliography

Then cite with \cite{mangen_comparing_2019}, or with \citep{} and \citet{} when your template loads natbib. A paper you never cite does not appear in the bibliography.

When a citation shows [?] or "Citation undefined"

  1. Compile again. A bibliography needs several passes: LaTeX, then BibTeX or Biber, then LaTeX twice. Overleaf and latexmk do this for you; if it still shows [?], use Overleaf's Recompile from scratch.
  2. Check the file name. \bibliography{refs} looks for refs.bib, and the name is case-sensitive, on Overleaf too: Refs.bib will not do. \addbibresource{} needs the .bib at the end.
  3. Check the key. Keys are case-sensitive and cannot contain spaces. Search the .bib for the key in your \cite{}. If it is not there, the key changed at a new export: use Better BibTeX so it stays the same.
  4. Check the .bib for characters LaTeX cannot take. Zotero escapes them when it exports, but in an entry edited by hand, an & in a title must be written \&, and % does not start a comment in a .bib file.
  5. Match the format to the command. Use a BibTeX export with \bibliography, and a BibLaTeX export with \addbibresource. A BibLaTeX file read by BibTeX, for example, loses the years, because the file has date where BibTeX looks for year.

Mendeley and LaTeX

Mendeley Reference Manager can export a BibTeX (.bib) file, and right-clicking a reference gives Copy as BibTeX entry. Unlike the old Mendeley Desktop, it has no option to keep a .bib file up to date, so export again when your library changes, or use Overleaf's Mendeley integration on a paid plan. See also How to use Mendeley.

On an iPad or iPhone: Rectoly for LaTeX

Rectoly for LaTeX on an iPad: main.tex citing papers with \cite and ending with \bibliographystyle{plain} and \bibliography{refs}, refs.bib in the files, and the compiled PDF with its references

Zotero and Better BibTeX run on a computer. Rectoly for LaTeX is our own LaTeX editor, and on an iPad or iPhone it does what Better BibTeX does, with the library you read in Rectoly for Zotero or Rectoly for Mendeley:

It compiles on our server with a full TeX Live, BibTeX and Biber included, and syncs with Overleaf through Git if the project's owner has a paid Overleaf plan. These features need Pro in both apps on the same device; both have a 14-day trial. Pro is a one-time purchase of US$24.99, US$10 less if you own Rectoly Pro. The same app runs on Android, Windows, Mac and Linux; see LaTeX on iPad for how it compares with the alternatives.

Frequently asked questions

How do I export Zotero to BibTeX?

Right-click a collection, choose Export… (Export Collection… in Zotero 9 and earlier), select BibTeX or BibLaTeX as the format and save the .bib file next to your .tex file.

How do I keep my .bib file updated automatically?

Install Better BibTeX, export the collection as Better BibTeX or Better BibLaTeX and tick Keep updated. The file is rewritten whenever the collection changes.

Does Better BibTeX work with Zotero 10?

Yes. Better BibTeX 9.0.77 (November 2026) supports Zotero 10. Current versions need Zotero 8 or later.

Does Zotero have citation keys?

Since Zotero 8, items have a Citation Key field, but Zotero does not fill it in. Better BibTeX fills it for every item and keeps the keys fixed; without it, Zotero's export makes a key at each export.

Can I use Zotero with Overleaf for free?

Yes, by exporting a .bib file from Zotero and uploading it to your project. Overleaf's direct link to Zotero needs a paid plan, from the Student plan up.

Why does Overleaf show [?] instead of my citation?

The key in \cite{} is not in the .bib file Overleaf reads: the file name differs (including capitals), the key changed or has a typo, or the bibliography was not compiled. Check the name and the key, then Recompile from scratch.

BibTeX or BibLaTeX?

Follow your template. If it ends with \bibliography{…}, export BibTeX; if it loads biblatex with \addbibresource{…}, export BibLaTeX. Journals' templates usually decide this for you.

Can I use Mendeley with LaTeX?

Yes. Export a BibTeX file from Mendeley Reference Manager, or copy single entries with Copy as BibTeX entry. It does not keep a .bib file updated by itself.

Keep reading

December 2, 2026

How to Use Zotero: Install, Save Papers, Cite in Word and Sync to Your Phone (2026 Guide for Beginners)

A step-by-step Zotero guide for beginners, checked against Zotero 10 in December 2026. Install the app and the browser Connector, save papers with one click, organize and annotate them, cite in Word or Google Docs, change the citation style, and read on your phone or tablet. Also the 300 MB storage limit and how to get around it, and what to do when the Connector or the Word tab does not work.

Read the article →
December 2, 2026

LaTeX on iPad, iPhone and Android in 2026: Overleaf in the Browser, Offline Apps and Compile Limits Compared

How to write LaTeX on a tablet or phone. What works in Overleaf on an iPad and what does not, its 10-second limit on the free plan, the apps that compile offline on the device, with their engines and prices in December 2026, what to use for Japanese and Chinese papers, how to move an Overleaf project, and what to do when a compile times out.

Read the article →
December 2, 2026

How to Check That Your References Are Real: Invented AI Citations, Retracted Papers and Misquotes

Before you hand in a thesis or submit a paper, check three things about every reference. Does it exist, has it been retracted, and does it say what your sentence says? Step by step with free tools (doi.org, Crossref, Google Scholar, PubMed, the Retraction Watch Database), how often AI chatbots invent references, and what universities and journals do about it.

Read the article →