Are you already on org 9.5? Looks like your still using the "old"
org-ref links.
The following mwe might get you started:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#+title: Citation tests
#+cite_export: csl
#+bibliography: test.bib
[cite: @doe 45]
[cite/text: @doe 45]
#+print_bibliography:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This will use the new citation export framework. citeproc-el needs to be
installed for this to be working.
Anyway, I can export this to plain text, html, and latex without
problems. I have not yet tried out the context exporter, but I don't see
why it should not work there as well.
In case you haven't seen it already:
https://blog.tecosaur.com/tmio/2021-07-31-citations.html
Best,
Denis
Am 24.11.2021 um 08:22 schrieb juh:
Hi all,
I am kind of lost with references and ox-context and ox-epub.
Is there a tutorial how to integrate a bibliography in ConTeXt and
epub-Export?
What I want to achieve is to use a bibtex bibliographies with org-roam and
export them to epub and ConTeXt to generate bibliographies in the output.
The first wish kind of works as I can insert entries from the bibtex file with
C-].
They look like this:
Nam a sapien.[[cite:@horkheimer_dialektik_1984]]
This is the org-ref entry in settings.org.
(straight-use-package 'org-ref)
(with-eval-after-load "org-ref"
(setq reftex-default-bibliography '("~/org/bibliography.bib")))
(setq bibtex-completion-bibliography '("~/org/bibliography.bib")
bibtex-completion-library-path '("~/org/bibtex-pdfs/")
bibtex-completion-notes-path "~/org/notes/"
bibtex-completion-pdf-open-function
(lambda (fpath)
(call-process "open" nil 0 nil fpath)))
(define-key org-mode-map (kbd "C-c ]") 'org-ref-insert-link)
What puzzles me is that I could not find a hint to create a bibliography
for epub export and context export. Maybe there isn't. But as some
things with references does not work in my setup I fear that my
configuration is not working. I take snippets from the documentations of
the packages.
I miss an overall example or tutorial for note taking via org-roam and
exporting to epub and ConTeXt.
So for now my current publishing workflow is split into two.
1. Zettelkasten via org-roam
2. PDF and epub creation via pandoc and cite-proc.
As you can see there is a break of tools, so I would like to avoid this.
TIA
juh