If you are happy with org-ref, here is a minimal example that shows how to get a bibliography via csl, and a pre-processing hook. * test A sentence with ref [[cite:&nandy-2021-audac-huge]]. * Bibliography bibliography:~/Dropbox/emacs/bibliography/references.bib * build :noexport: #+csl-style: apa-5th-edition.csl #+csl-locale: en-US #+BEGIN_SRC emacs-lisp (require 'ox-epub) (let ((org-export-before-parsing-hook '(org-ref-csl-preprocess-buffer))) (org-open-file (org-epub-export-to-epub))) #+END_SRC John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Nov 24, 2021 at 3:00 AM juh wrote: > 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 > > -- > Autoren-Homepage: ......... http://literatur.hasecke.com > Satiren & Essays: ......... http://www.sudelbuch.de > Privater Blog: ............ http://www.hasecke.eu > Netzliteratur-Projekt: .... http://www.generationenprojekt.de > > > >