export references to pdf with bibtex

citation bibtex style org-mode

*/–>

/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.

Copyright (C) 2012-2013 Free Software Foundation, Inc.

The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.

As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
–>*///–>

http://orgmode.org/mathjax/MathJax.js

–>*///–>

citation bibtex style org-mode

Export references to pdf with org-mode – bibtex

Use bibtex package for citation.

First put the bellow code in your ./emacs

;; Bibtex-latex export citation
(setq org-latex-pdf-process
'("latexmk -pdflatex='pdflatex -interaction nonstopmode' -pdf -bibtex -f %f"))

Your next step is to create a .bib file with your citations and name it i.e: test-bib-refs

Below is an example of bibtex style

@InProceedings{ alejandro_weinstein-proc-scipy-2016,
author = { {A}lejandro {W}einstein and {W}ael {E}l-{D}eredy and {S}téren {C}habert and {M}yriam {F}uentes },
title = { {F}itting {H}uman {D}ecision {M}aking {M}odels using {P}ython },
booktitle = { {P}roceedings of the 15th {P}ython in {S}cience {C}onference },
pages = { 1 - 6 },
year = { 2016 },
editor = { {S}ebastian {B}enthall and {S}cott {R}ostrup }
}

and this:

@ARTICLE{2011ApJS..192....9T,
author = {{Turk}, M.~J. and {Smith}, B.~D. and {Oishi}, J.~S. and {Skory}, S. and
{Skillman}, S.~W. and {Abel}, T. and {Norman}, M.~L.},
title = "{yt: A Multi-code Analysis Toolkit for Astrophysical Simulation Data}",
journal = {The Astrophysical Journal Supplement Series},
archivePrefix = "arXiv",
eprint = {1011.3514},
primaryClass = "astro-ph.IM",
keywords = {cosmology: theory, methods: data analysis, methods: numerical },
year = 2011,
month = jan,
volume = 192,
eid = {9},
pages = {9},
doi = {10.1088/0067-0049/192/1/9},
adsurl = {http://adsabs.harvard.edu/abs/2011ApJS..192....9T},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

then use these latex commands inside your org file

#+LaTeX_HEADER: \usepackage[natbib]{biblatex}
#+LATEX_HEADER: \bibliographystyle{plain}
#+LATEX_HEADER: \bibliography{test-bib-refs}

Tests

Test1 slide

  • This is test1 \cite{2011ApJS..192….9T}.
  • This is test2 \cite{alejandro_weinstein-proc-scipy-2016}.

\printbibliography

Note

put \printbibliography at the end so as to print the references section last on your text.

And this is the result:

sample_refs_pdf_bibtex

Figure 1: A snapshot for Pdf export references bibtex, org-mode

Date: 23-02-2017

Author: Vasilis Agiomyrgianakis

Created: 2017-02-23 Thu 23:05

Emacs 24.5.1 (Org mode 8.2.10)

Advertisements