What happened?
I want to write texts with citations in org mode. I followed these instructions and went through a bunch of posts here, on reddit and on stackoverflow.
When I export to HTML (spc m e h o
), everything works. However, when I export to pdf (spc m e l
) there is no bibliography, and all citations are unknown.
What did you expect to happen?
Exporting to pdf should include the bibliography and know the citations.
Steps to reproduce
- Install vanilla doom, and enable the ‘biblio’ module.
- Set citar paths in
config.el
:
(after! citar
(setq! citar-bibliography '("~Notes/references.bib"))
(setq! citar-library-paths '("~/Notes/library/files"))
(setq! citar-notes-paths '("~/Notes/references/notes")))
- Create file references.bib with a reference in it:
@book{de2012bestrijdingsmiddelen,
title={Bestrijdingsmiddelen en waterkwaliteit},
author={de Snoo, Geert R and Vijver, Martha Gerdina},
year={2012},
institution={Universiteit Leiden, Centrum voor Milieuwetenschappen (CML)}
}
- create minimal org file, inserting the citation with
M-x org-cite-insert
(this works)
#+title: Test
#+bibliography: references.bib
Test [cite:@de2012bestrijdingsmiddelen]
#+print_bibliography:
-
export to pdf with
spc m e l o
-
output looks like this
System information
Loading data dump...