LaTeX takes a plain text file with various commands added and coverts it to a formatted document based on added commands it has been given. The source file for the document has a file extension of .tex.
BibTeX is a bibliographic accompaniment to LaTeX, and serves to help organize the user's references and create a bibliography. BibTeX creates a bibliography file that is separate from the LaTeX source file, with a file extension of .bib. Each reference in the .bib file is formatted with the chosen citation structure identified in the "key," which can be edited in the source file.
Open Zotero. Select the references you would like to export. This could be all the references in a given folder, or ad hoc selections highlighted using control-clicks and shift-clicks.
File --> Export Library
Select the BibTeX format and click OK. Navigate to the directory where you are storing your manuscript, and save the file.
To link the bibliography file that you just downloaded to your document, you need to enter two commands:
\bibliographystyle{style} should be inserted inside your \begin{document} command. style.bst is the name of the style file dictating the format of your bibliography.
\bibliography{filename} should go whereever you want LaTeX to generate the bibliography, generally at the end of your document. filename.bib is the name of the file you just exported from Zotero.
Formatting Special Characters
If the references contain special characters used as part of the syntax of LaTeX, you might notice some errors. You will need to replace the characters with a LaTeX command if they are used in a citation.
Character | LaTeX Command |
# | \# |
$ | \$ |
% | \% |
& | \& |
_ | \_ |
{ | \{ |
} | \} |
~ | \~{ } |
^ | \^{ } |
\ | $\backslash$ |
Organization Names
\cite{firstauthor_firstwordoftitle_yyyy}
where "yyyy" is the four-digit year.
The bibliography format is determined by the style file that you have entered in the \bibliographystyle{} command. S Style files may also be edited to produce a required bibliography style.