I installed org-ref (via Melpa) to work with my bibliography entries in Org Mode. The installation seemed to be successful. I was able to add a citation with the command C-c ].
When I export to LaTeX with C-c C-e C-s l o
a .pdf file is produced, but with the warning of an undefined reference. But the bibtex file is found and an entry with the bibtex key is available.
Here are my entries in the Emacs startup file (nearly unchanged to the recommended basic settings from the Github page):
;; org-ref
(setq reftex-default-bibliography '("~/Documents/Bibliography/references.bib"))
;; see org-ref for use of these variables
(setq org-ref-bibliography-notes "~/Documents/Bibliography/notes.org"
org-ref-default-bibliography '("~/Documents/Bibliography/references.bib")
org-ref-pdf-directory "~/Documents/Bibliography/Bibtex-Pdfs/")
(setq bibtex-completion-bibliography "~/Documents/Bibliography/references.bib"
bibtex-completion-library-path "~/Documents/Bibliography/Bibtex-Pdfs"
bibtex-completion-notes-path "~/Documents/Bibliography/helm-bibtex-notes")
;; open pdf with system pdf viewer (works on mac)
(setq bibtex-completion-pdf-open-function
(lambda (fpath)
(start-process "open" "*open*" "open" fpath)))
;; alternative
;; (setq bibtex-completion-pdf-open-function 'org-open-file)
(setq org-latex-pdf-process (list "latexmk -shell-escape -bibtex -f -pdf %f"))
(require 'org-ref)
An excerpt from my org mode file:
** Installed version
- emax64-26.3-20191225 cite:Freeman2015
- [[https://github.com/m-parashar/emax64][m-parashar / emax64]]
And the entry in the BibTeX File:
% Encoding: UTF-8
@Book{Freeman2015,
author = {Freeman, Eric},
editor = {Freeman, Eric [Verfasser/in] and Robson, Elisabeth [Verfasser/in] and Sierra, Kathy [Verfasser/in] and Bates, Bert and Schulten, Lars and Buchholz, Elke},
publisher = {O'Reilly Verlag},
title = {Entwurfsmuster von Kopf bis Fuß},
year = {2015},
address = {[Erscheinungsort nicht ermittelbar]},
isbn = {9783955619879},
note = {1 Online-Ressource},
file = {:Freeman2015_EntwurfsmusterVonKopfBisFuss.pdf:PDF},
groups = {Erzeugungsmuster},
keywords = {Entwurfsmuster. Java 8. Software-Design},
language = {Deutsch},
url = {http://www.content-select.com/index.php?id=bib_view&ean=9783955619879},
}
@Comment{jabref-meta: databaseType:bibtex;}
@Comment{jabref-meta: grouping:
0 AllEntriesGroup:;
1 StaticGroup:Erzeugungsmuster\;0\;1\;0x8a8a8aff\;\;\;;
}
Thanks to NickD for his hint.
My bibliography link which is necessary for LaTeX export how Tyler mentioned. Perhaps the problem can be found here.
* Bibliographie
<<bibliography>>
[[bibliography:../../Documents/Bibliography/references.bib]]