Skip to content

Instantly share code, notes, and snippets.

@jstaursky
Last active December 1, 2019 20:27
Show Gist options
  • Save jstaursky/299f2ef31aa3c37823c04db03cdf7d7e to your computer and use it in GitHub Desktop.
Save jstaursky/299f2ef31aa3c37823c04db03cdf7d7e to your computer and use it in GitHub Desktop.

How to use different bibliography styles

This will depend on whether you want to use one of the bibtex styles or natbib styles or biblatex styles.

Using a bibtex style

This is the simplest as this was the original system the author of org-ref was targeting. The style of your references page can be selected using only the following.

bibliographystyle:<style>
bibliography:<biblio-file>.bib

where <style> refers to one of the styles listed here.

Using natbib

This is about as easy except you need to add

#+LATEX_HEADER: \usepackage{natbib}

then you may proceed as before but now instead using styles listed here.

Using biblatex

This is the least supported and consequently the most difficult to setup. That being said the basic usage still isn’t very complicated.

Now you must instead include the headers:

#+LATEX_HEADER: \usepackage[style=ieee]{biblatex}
#+LATEX_HEADER: \addbibresource{manuscript.bib}

Where here ieee can be replaced with one of the styles listed here. and maniscript.bib is the bibliography you are wanting to apply the style to.

The final difference is that instead of the lines

bibliographystyle:<style>
bibliography:<biblio-file>.bib

being used toward the end of your document, instead you must use

\printbibliography

MISC

Note that the citation style you select via org-ref-helm-insert-cite-link in spacemaces can be changed by typing C-SPC (to select the reference you wish to cite), then typing C-u then enter (list will appear after you hit enter).

  • note that the citation style you select may require one of the biblatex or natbib headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment