LaTeX, usually used with BibTeX, is a free typesetting system for document preparation. It is suitable for mathematical formulas, chemistry, engineering, multilingual typesetting, artwork, diagrams and spot colour. BibTeX allows you to store the details of references in a file which can then be linked to a LaTeX document.
Overleaf is a collaborative, online LaTeX editor, designed to make the process of writing, editing and producing your research papers and project reports much quicker. Overleaf can also be linked to other services such as Zotero, Mendeley, Git and Plot.ly to best fit into your workflow. Some benefits of Overleaf are:Macquarie University Library provides Overleaf Pro+ accounts for all students and staff. Sign up using your MQ email address here:
Linking the bib file to your LaTeX document
For the citations in your .tex file to work, you also need some commands in the preamble and end of your document. These will link it to your .bib file, set the referencing style and produce a bibliography.
The commands are are as follows, depending whether you're using BibTex, Natbib or BibLaTex. Note that in these examples, the bib file has been named references.bib and the referencing style used is IEEE.
BibTex | Natbib | BibLaTex | |
Commands for preamble | \bibliographystyle{ieeetr} |
\usepackage[numbers]{natbib} \bibliographystyle{IEEEtranN} |
\usepackage[backend=biber, style=ieee]{biblatex} \addbibresource{references.bib} |
Command for bibliography | \bibliography{references} | \bibliography{references} | \printbibliography |
For information on the differences between BibTex, NatBib and BibLaTex, see here.
A BibTeX file can be exported from Zotero, Mendeley, or Endnote and used with your LaTeX document. However, using this 'manual' method, you must replace the file every time you add new references and want to cite them.
For full integration with BibTeX, there are plugins for Zotero and Mendeley which automatically update your BibTeX file whenever you add a new reference to your Zotero/Mendeley library.
If using Overleaf, set up the integration following these instructions:
Note that in both Mendeley and Zotero, the integration will link your entire library by default. To keep a separate set of references for your project, you can set up a Group and link that. However, the integration does not support linking of specific folders within a group (only the whole group).