For the complete documentation index, see llms.txt. This page is also available as Markdown.

Library

Your Library provides a unified reference data repository for all your projects.

Your Library gives you one place to manage your reference data, shared across every project. Add an entry once, include it in any project using citation commands. When you cite an entry from the Library, the required data will be copied into your project .bib file.

a diagram showing reference data going into the Library from external sources and being shared in multiple project .bib files.

When working on a project, you can quickly add references from your library to your project .bib file. Each of your project .bib files only contains the entries that are needed for the specific project

Overview of how to use the Library

1

In the Library, add reference data by:

  1. pasting BibTeX/BibLaTeX source from reference databases and journal websites,

  2. entering DOIs to obtain full bibliographic data, or

  3. uploading existing .bib files.

2

Within your projects, use citation LaTeX commands to automatically see references from your Library that you can add.

Accessing your Library

You can access your Overleaf Library from the sidebar of your project dashboard at https://www.overleaf.com/project by clicking Library. The Library can also be accessed directly at https://www.overleaf.com/library.

The location of the Library button on the side panel of the project dashboard is above the Trash button and below the list of available project tags.

Using a two-tab workflow

When doing heavy literature review or initial setup, you can keep the Library open in one browser tab and your active project in another. This lets you quickly drop new papers into your Library and immediately cite them in your project without losing your place in the editor.

Library benefits

The Library provides a new way to work with reference data. This short section describes a few reasons to consider using the Library and how to benefit from it.

  • Form-based or code-based data entry: You can choose to add references using the form entry fields, paste pre-formatted BibTeX or BibLaTeX entries directly into the Library, or upload an existing .bib file.

  • Error prevention: Using the Library ensures correct BibTeX or BibLaTeX syntax, avoids duplicate entries, and helps identify errors by keeping references discoverable and readable.

  • Support for flexible workflows: Using the Library doesn’t stop you from directly editing a project .bib file or from importing references from Dimensions, ReadCube, Zotero, Mendeley, or other sources.

  • Large collections remain readable and editable: Large .bib files can become difficult to maintain, and in some cases, exceed Overleaf's editable file limit. The Library features a search function that allows you to easily find specific references even in large reference data collections.

  • Smoother compiling: A large project `.bib file with unused entries can increase the time the LaTeX compiler takes to parse and search for references. A smaller, well-maintained project .bib file that draws selected references from the Library helps projects compile more quickly and reliably.

  • A continuous workflow: Unlike a standard project .bib file that might get buried after a paper is complete, the Library exists independently within an Overleaf account. This means you can continually save, organize, and tweak references during a literature review, even before creating a new project to write in.

  • An accessible knowledge hub: The Library is designed to act as a central hub for reference data, built to add references from popular databases and publisher sites using their provided BibTeX or BibLaTeX formats. Because it isn't tied to any single document, the Library serves as the perfect place to collect interesting papers between semesters, during lab meetings, or while reading on the weekend. When it is time to start writing, all reference data is waiting and ready to be cited.

  • A LaTeX-first approach: The Library stores all references natively in BibTeX or BibLaTeX format. This allows for LaTeX-aware validation and error correction, helping to ensure that references are displayed accurately in LaTeX documents without the need for complex formatting workarounds.

BibTeX and BibLaTeX

Reference data used in LaTeX projects is stored in BibTeX format, and can also use BibLaTeX conventions for types and fields. You can choose to work directly with the underlying BibTeX and BibLaTeX structure, or use the form editor to hide the code details when adding, editing, or managing your reference data.

This example reference entry shows the BibTeX code for a book, and illustrates typical BibTeX and BibLaTeX format:

All entries begin with an @ symbol, followed by an entry type (for example, @book). After the entry type is an opening brace {, the citation key, and a comma. This is followed by a series of key-value pairs that provide the reference data for the work, all wrapped up with a closing brace }.

In a project, reference data is collected together in BibTeX or BibLaTeX format in one or more .bib files. The .bib files act as databases for your references. You access this data in your LaTeX documents using a citation command together with the citation key for the reference that you wish to cite.

When you bring references into your project .bib file, you can again work with the raw format in the Code Editor or use the Visual Editor when working with your .bib file.

To learn how to cite and create lists of references in LaTeX, please see Overleaf's LaTeX learning documentation, which provides overviews of how to use the BibLaTeX, BibTeX, and natbib (based on BibTeX) referencing systems.

Adding reference data to the Library

There are several options for adding data to the Library. You can paste references in from sources like Google Scholar, arXiv, Crossref, and many others. You can also paste in entries from your existing .bib files, upload entire .bib files, or enter data manually in an easy to use form. Use the Add button at the top right of the Library page to see a list of options for adding references.

Menu options fro the Add button on the Library showing options to Paste BibTeX and DOI entries, upload a .bib file, or enter a reference manually.

When pasting in BibTeX or BibLaTeX code or Digital Object Identifiers (DOIs), click the Preview button to check the reference, then Save.

Add references pane with a bibTeX entry, showing the preview screen
Adding and previewing a single reference

Adding multiple entries

You can paste many entries from an existing bib file into the "Add reference" dialog. After clicking the Preview button, you will have the opportunity to select which entries you wish to add to your Library.

Add references pane with several bibTeX entries, showing the preview screen displaying the list of entries from the bibTeX code
Adding and previewing multiple references

If you have an existing .bib file that you wish to include in your Library, you can choose the Upload .bib file option from the Add button menu. When adding a bib file, you will be provided with options for which entries to add.

Digital Object Identifiers (DOIs)

You can add the data for a reference to the Library simply by providing its Digital Object Identifier (DOI). DOIs provide a compact, permanent way to point to publications, or publication data, on the internet.

Journal pages and websites that do not directly or easily provide BibTeX data directly will often provide DOIs for resources they host. The Library provides an add by DOI option that will allow you to add all the reference data for a given source to the Library simply by providing its DOI.

When providing a DOI, you can either provide just the identifier itself (recommended), or the full URL at doi.org.

  • An example DOI URL: https://doi.org/10.47397/tb/47-1/tb145wright-ltx-talk

  • the DOI itself : 10.47397/tb/47-1/tb145wright-ltx-talk

If the Library fails to find the publication data at doi.org for a value that you have provided, you'll see a warning "Some or all DOIs could not be resolved" after clicking on the "preview" option.

A standard DOI is made up of a prefix (which always begins with 10.) and a suffix, separated by a slash (e.g., 10.1038/nature123). The suffix may be quite long, but ensure it does not include any spaces or end in punctuation

Using the Library in projects

You don't need to memorize your Library citation keys or constantly switch back to the Library to find titles. The Overleaf editor's autocomplete feature will look up entries in the Library for you as you type.

  • Users with simple reference search enabled can pull references directly from the Library using citation keys, which can be partially typed within a citation command and will be auto-completed.

citation autocompletion with simple search, showing how a partial citation key is completed
  • Users with advanced reference search enabled can pull references from the Library using citation keys, titles, or author names within a citation command. For all these values, partial inputs will be automatically completed, making it easy to locate the correct reference to be cited.

autocompletion of references using advanced reference search, showing how cite keys and author names are completed

To cite from the library, you must enable Overleaf's auto-complete in the editor settings. You can configure your reference search options in your settings as well. Please see Adding citations and references for more information on these options.

Adding citations and references

The main .bib file

If your project has no .bib file, the first time you cite something from your Library, a new references.bib file will be added to your project. This file will be set as your main .bib file, and will receive any bib entries that are cited from your Library.

If your project has several .bib files, you can select one of the editable .bib file to be the main .bib file that will be used to receive new Library reference entries. Clicking on the Settings icon in the bottom left of the editor, or selecting the Settings option from your project's File menu will allow you to configure the main .bib file for your project.

Editor settings screen showing the references settings selected and the main bib selection option.

The main .bib file selection only affects the Library behaviour and does not influence which file is used at compile time for your references. The .bib file where references are found by the compiler must be set by using the appropriate LaTeX commands in your source.

The .bib file Visual Editor

When working with .bib files in your project, the Code Editor view of your .bib file presents a traditional plain text interface for directly editing the BibTeX or BibLaTeX coded entries of your bib.

The .bib file Code Editor, showing the source code for entries
The Code Editor

The Visual Editor for .bib files provides a view that is more like the view provided by the Library, including form-based entry and editing options, as well as the same set of options for adding and managing entries that are available within the Library.

The visual editor for .bib files, showing the entry list and form editor card for a selected entry
The Visual Editor

Configuring Library options

There are three important configuration options that affect how the Library works in your project.

  1. Autocomplete must be enabled. When you type a citation command (such as \cite) and begin to provide an argument, Overleaf will autocomplete the citation key based on possible entries found in your Library and .bib files. Providing options for you to select requires having autocomplete enabled.

  2. A main .bib file must be selected. The Library needs to be told which .bib file in your project should be used to receive reference entries that are cited from the Library.

  3. A reference search style should be chosen. Simple reference search will search for references in your Library based on citation keys only. Advanced reference search (a premium feature) will search across citation keys, author names, and titles.

Managing your Library

You can easily edit your references using the form view. Selecting a reference in the Library brings up the form, allowing you to correct errors and add or remove fields.

Editing a reference in your Library will not update project .bib files where that reference has already been cited. To update an entry in an existing project, you must remove and re-add the citation in that specific project, or edit the reference directly in the .bib file where it is used.

Validation

Syntax mistakes and missing field values are major problems encountered when working directly with BibTeX or BibLaTeX. The Library helps to address this by ensuring correct syntax and by providing feedback about missing values or problems with your entries.

When you add items to your Library, it will check for

  • duplicate citation keys,

  • malformed citation keys, and

  • missing required fields.

The Library provides indicators for missing required fields in the list of entries, with more details about the missing data shown in the card for the highlighted entry.

a Library entry with a missing field showing a warning when selected in the library
A Library entry displaying a warning for a missing required field

Citation key validation and generation

A citation key cannot include commas, spaces, or specific control and delimiter characters like {, }, #, %, ~, \, or parentheses ( ), because BibTeX and LaTeX use these symbols to parse syntax, separate fields, or process commands.

If a citation key is removed or left blank the Library will generate a citation key based on the author and year fields. A generated citation key can be edited afterwards to follow your preferred conventions. The Library will not replace existing valid keys with new values.

Deleting Library entries

You can delete entries in your library, this will not affect project .bib files where the entry has been used. Deleting entries from the Library will move them to your account's Trash, rather than deleting them permanently right away. Library entries that are moved to the Trash can be restored back to the Library within 30 days.

Moving an entry to the Trash

To move an entry out of the Library and into the Trash, select the entry within the Library and choose the delete option shown at the top of the entries list.

Selected items in the Library showing the delete option
Selected entries in the Library and the Delete option

Restoring or permanently deleting an entry

To view references that have been moved to the Trash, in the project dashboard, click on the Trash button in the side bar.

the Trash button in the side panel of the project dashboard just below the Library button
The Library and Trash buttons in the project dashboard side pane

The Trash can contain both projects and references. Click on the References tab to see any references that have been moved to the Trash.

Once selected, you may restore a trashed reference, or delete it permanently.

Items selected in the trash, showing options to restore or delete permanently
The Trash with the References tab selected

Exporting references

You can export selected references to a .bib file. This allows you to use your Library entries as references in local LaTeX projects, add your Library entries to other reference management tools, and share, or back up your Library reference data.

Use the download option for selected references to export a .bib file containing these references.

Selected reference entries in the Library with the Download option selected
Downloading entries from the Library

Library FAQ

Is the Library a reference manager, like ReadCube, Zotero, or Mendeley?

You can think of the Library as a purpose-built, simplified reference manager designed specifically for LaTeX workflows. It provides a central repository where you can easily sort, manage, and pull references directly into your Overleaf projects.

However, there are some key differences between the Library and standalone reference managers:

  • No PDF or note storage: The Library is strictly for managing references (your BibTeX or BibLaTeX entries). It is not a repository for full-text PDFs or personal research notes, which are features often offered by external tools.

  • LaTeX-driven formatting: The Library does not natively translate your references into different citation styles (such as APA or IEEE). Because the Library is integrated directly into your LaTeX projects, this formatting is handled seamlessly by BibTeX, BibLaTeX, or natbib during the LaTeX compile process.

How big can my Library get?

You can add up to 100MB of reference data to your Library.

How does the Library work with an external reference manager?

While you can easily import your existing .bib files into the Library, it currently operates independently and does not actively sync back and forth with external managers like Zotero or Mendeley.

Is there a browser extension that I can use to add references to the Library when I am on other sites?

Many reference managers provide browser extensions for scraping reference data from journal sites. Overleaf does not directly provide a browser extension that provides this functionality. There are a number of existing extensions that do provide BibTeX data from journal sites or from other reference data sources, such as Google Scholar. Many sites that provide reference data do offer a BibTeX output format directly.

I am not able to cite items that are in my Library, what should I do?

Please check the Library configuration options (link to above). If you are still having trouble, please contact us.

Can I move data from project .bib files to my Library?

You can copy and paste references from .bib files into your Library, or download them from your projects and upload them to your Library. Currently there is not a way to move individual references directly from a project bib file to the Library.

Last updated

Was this helpful?