Skip to main content
To KTH's start page

Using Zotero for reference management in Overleaf

This page provides instructions on how to link your Zotero library to an Overleaf project.

If you don't already have Zotero, you can download it from Zotero's web page . Information about how to use Zotero can be found on the page about reference management programs .

In the following video we demonstrate how you can connect your Zotero library to Overleaf. If you prefer written instructions you find them below the video.

Using Zotero in Overleaf 

  • Make sure you have a Premium account. Create your account by going to overleaf.com, click on log in > log in with  Single Sign On  and log in with your KTH credentials. 

  • If you already have an account, you can merge it with the KTH account. 

Link Zotero to Overleaf 

  • Go to Account > Account settings > Reference managers > Zotero integration > Link
    Select Accept default

Adding references in a document 

All commands start with a backslash \ (Windows: AltGr+?. Mac: shift+alt+7) 

On Overleafs pages How to link your Overleaf account to Zotero  and Zotero och Bibliography management in LaTex  you can read more about reference management in Overleaf. 

  • In your document, add this to the preamble:
    \usepackage[
    backend=biber,
     ]{biblatex}

  • To add a citation, use:
    \cite{ }
    If you use an author-year style, you should use
    \parencite{ } instead.
    When you start typing the command, you are given the opportunity to select the reference key of the source you want to cite within the curly brackets.

  • Once you add a citation, Overleaf will create a .bib-file and import the reference for that citation from Zotero into that file.

  • Connect the file with references to the document by adding this in the preamble.
    \addbibresource{references.bib}

  • To add a bibliography, use: \printbibliography

  • Change reference styles by adding the style=stylename argument to the \usepackage command in your preamble. You can find all available styles here .
    \usepackage[
     backend=biber,
     style=stylename,
     ]{biblatex}

  • To change style, simply replace stylename with apa, ieee or whatever style you prefer.

Alternative method to add references from Zotero to Overleaf

You can also import a file with references manually by clicking the upload icon on top of the file area in a project. You may then choose to upload a reference file from your hard drive, or to import a file from Zotero. A file may imported in BibLaTeX or BibTeX format. If unsure, go with BibLaTeX. If you import a file in this manner, you will have to refresh that file if you add more references to Zotero. You will find the refresh button if you click on the .bib-file in Overleaf.

Combining the two different methods

The alternative method used to be the only method to import references from Zotero to Overleaf. If you have used this method in a project, we recommend that you continue to use it. For new projects, you can switch to the new method. 

If you use both methods in the same project, you will get two .bib-files. Make sure you link both files to the document by typing \addbibresource{filename.bib} in the preamble for each of those files .