4

I followed this and can grab stuff (with Google Scholar) and put it in my ref.org, as described. However when I create a testbibtex.org with this lone line:

\bibliography{ref}

all I get with Latex export is the word "Contents." I've copied the contents of ref.org to ref.bib, entries such as this:

@book{burton2006elementary,
  title={Elementary number theory},
  author={Burton, David M},
  year={2006},
  publisher={Tata McGraw-Hill Education}
}

but nothing of this is included in the Latex export. So, yeah, I really need a beginner's tutorial in this whole process.

2
  • What are you expecting to see? You've included a reference to your bibliography file, but you didn't actually cite anything. Given an effectively empty input file, the exported file will be empty too!
    – Tyler
    Feb 13, 2017 at 22:21
  • I get "link is unreachable" when clicking your link. Apr 28, 2020 at 14:17

1 Answer 1

4

I'm doing latex bibliography exports in Org9 with a regular bibtex file (literature.bib). At the location where I want the references to appear in the result, I put

#+BIBLIOGRAPHY: /HOME/uidg1626/literature apalike

into my org file or sub-header (for sub-tree export). Citing is done with org links e.g. [[cite:key_of_bibtex_entry]].

Before the above can work the org pdf compiling process hast to be configured (e.g. in init.el) to include a bibtex run:

(require 'ox-bibtex)
(setq org-latex-pdf-process
      '("pdflatex -interaction nonstopmode -output-directory %o %f"
        "bibtex %b"
        "pdflatex -interaction nonstopmode -output-directory %o %f"
        "pdflatex -interaction nonstopmode -output-directory %o %f"))

I got it from here: http://orgmode.org/worg/exporters/anno-bib-template-worg.html#sec-5 which is working for my tex-live system.

3
  • Not working. Was that tutorial I was referring to not correct? As I say, I need to know the latest, accurate init details. I'm sure my problem lies in my init salad.
    – 147pm
    Jan 7, 2017 at 17:53
  • @147pm: I'm sorry I forgot to mention the org-latex-pdf-process (updated my answer accordingly). Jan 14, 2017 at 21:26
  • This worked for me thank you so much🙏 - but I did have to remove the (require 'ox-bibtex) for some reason
    – nmu
    Sep 3, 2019 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.