Skip to content

Instantly share code, notes, and snippets.

@mpdehnel
Last active August 29, 2015 14:23
Show Gist options
  • Save mpdehnel/c4cb12b4aebe4ac44b37 to your computer and use it in GitHub Desktop.
Save mpdehnel/c4cb12b4aebe4ac44b37 to your computer and use it in GitHub Desktop.
BibTeX Usage note

Note to self re: running BibTeX:

  • Create myBibliography.bib. Put BibTeX entries in it.
  • Insert the following into the bottom of your LaTeX document, just before \end{document}:
\bibliographystyle{apalike} % or alpha, or plain, or whatever.
\bibliography{myBibliography}
  • Cite things in the document: \cite{referenceName}
  • Then, run LaTeX (or pdfLaTeX) on your main document once.
  • Then, run BibTeX on the main LaTeX document once, not the .bib file.
    • e.g. bibtex main (don't put .tex on the end as it's actually running it on main.aux, not main.tex)
  • Then, run LaTeX twice more on the main document.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment