From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iMqRAliBnmHEAAAAgWs5BA (envelope-from ) for ; Wed, 24 Nov 2021 19:15:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aLK1OVeBnmHfcQAAbx9fmQ (envelope-from ) for ; Wed, 24 Nov 2021 18:15:51 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C58B72B7E6 for ; Wed, 24 Nov 2021 19:15:50 +0100 (CET) Received: from localhost ([::1]:45508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpwo9-0003En-1I for larch@yhetil.org; Wed, 24 Nov 2021 13:15:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpwnM-0003EH-Lb for emacs-orgmode@gnu.org; Wed, 24 Nov 2021 13:15:00 -0500 Received: from [2a00:1450:4864:20::42f] (port=40631 helo=mail-wr1-x42f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpwnI-0008TR-Bt for emacs-orgmode@gnu.org; Wed, 24 Nov 2021 13:15:00 -0500 Received: by mail-wr1-x42f.google.com with SMTP id r8so5790958wra.7 for ; Wed, 24 Nov 2021 10:14:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8ohkQIf69V/8/d70KwAbIFygVeDw17BRNYYQY3zro7w=; b=g7MMD5D9ygz85s0e3ZZxfX+ov4p9RII2rK3KAPrVmoxr/KHfxTEpfqx05kSJFlluoO tVGDh8/ZQApIDAr8rZEJKDrfM5wsf1/7N6YtE33Xiw2naLWvQlfiZZ7cFA8XxcUytACI TY5mQYUOH2BZ1mzjnhcjoeCaQhzuxowRIvWl6HLHI8nKHGlWKtwPddIYJEC8+8Ks86za LHR8GDXsIe9Xj5ZcbClpRYG9r7W/abWix4nyifwt8eoNn1n4r7UarQJnTIZH7wRzw93u mZWqkNmnZmRJ8v5GWfXJidg7D7RnoIOZWPllsyj1O0YgHL4caLj6xcLYQPWWcIzanrvS 1WZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8ohkQIf69V/8/d70KwAbIFygVeDw17BRNYYQY3zro7w=; b=asAPMdUOKH4mvI7QdvkOxF4MM0SCEQ0z1W7HugNplMhyPj53nxOlJKBlp0DlgFcb8k 7fBw3kiNRtNiI90pxoydgemrElkW0EcGKA0avy6384vVWkLJa4IE493BCac3fAcStew5 h0hPaySEzmLwWfc+2I9z3ueKt4NosML2R5Ucf4/4RHZwm8xRHMz15MgDlDcbIzTZuQ3u vr57dBFVy9RbVWi3svoUZf/7HnqGHXiH5Y4xyxh4HM9KhILt+9BrxoFjzLT0MIdyKuTG B3QCmvL7m0g/GXnrx/M8l256PX4tX+/v/LYTxi+DCYWB9nj2OIzChxphPo1huJ0Q3UrL rs9g== X-Gm-Message-State: AOAM530BCQTFJuUAO30TwgbTLwx0HGgTB6Qr5GrVWwiqMWCYRxu64Zch MPNNF+XID846/cHm+0DqIU70sWJIp00a4brMfCw= X-Google-Smtp-Source: ABdhPJzULlfx5cWIH1/lNJTp6ILjYxYZ3NWeERw/fym87jHNJS8W6gnDm+N6gx/OskDnidR+8QRVT2ap/0mIWC/rYPo= X-Received: by 2002:adf:fd90:: with SMTP id d16mr21190251wrr.385.1637777694208; Wed, 24 Nov 2021 10:14:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Wed, 24 Nov 2021 13:14:42 -0500 Message-ID: Subject: Re: Bibliographies on export with ox-context and ox-epub To: juh Content-Type: multipart/alternative; boundary="000000000000af508a05d18cd509" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode Mailinglist Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637777751; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8ohkQIf69V/8/d70KwAbIFygVeDw17BRNYYQY3zro7w=; b=sAOAZqHPHWnteaCAi6+TKb5uiXEWzvPtaKduuHZuZ7R6NaMUjlOOJ4eB86I4ZnfrN0Yggx wLJLR0Uz+MV/Su7jixDGXtAbkjsdFiCw1XKTbUXXVQnUHPlRI5Upd5RYOUOdpXEZQgreJY VkEAXVzNp6EPcLLtx7FhRMwt/HQK1bJ5JCM+HF/D4KqmMfHpMPtWgwEcSlB6srsHl2M7B+ S1liYobHP6VX/OQRxqOhZn9TYyA4j8Ma5akgGRWJdpvQIwv2Bo+iihPeY8q8ZsSaV6jEBk P5gMH4CFlB6VioOkbbeazRDOO7gCQyrwLNoCD+Q4D+Lj9D/EO6jQfYjAnZezGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637777751; a=rsa-sha256; cv=none; b=rsyykCnMh/dyF+zBByOoj4KnRXhW0GchwuwqPlujWXFjnyTah3Ei8j1OtWlKGffc+tcuGR XxeO47Fv7Z8QU+y1SoffoD0SUBNg1gu5v9cF+3cWWn6b1LKmgWqpp3/W6lBIdF7lY9h3Fw bBHRnzt8UL3mBdUOH27RdSRrtIkuCLR/HkC7NaTYVuEgtIl20M3Rqbjwmq8JJh08M0yIHB LcdaoqRMHVe3TE42iYCY5gdyCbfy4sm0GDeWYapfoDVWBPweTpp0dSSb7eiJoMVs5jYKUX nnkdiLgQPAfP3LwPDhF4RqITvVs35dr3BJNEIjA/heVmrvJwv8CyjOyczzytgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=g7MMD5D9; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=g7MMD5D9; dmarc=pass (policy=none) header.from=andrew.cmu.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C58B72B7E6 X-Spam-Score: -3.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2s+ZcextUvj7 --000000000000af508a05d18cd509 Content-Type: text/plain; charset="UTF-8" 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 > > > > --000000000000af508a05d18cd509 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If you are happy with org-ref, here is a minimal example t= hat shows how to get a bibliography via csl, and a pre-processing hook.

* test

A sentence with ref [[cite:&nandy-202= 1-audac-huge]].


* Bibliography
bibliography:~/Dropbox/emacs/b= ibliography/references.bib

* build =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:noexport:

#+csl-style: apa-5th-editi= on.csl
#+csl-locale: en-US

#+BEGIN_SRC emacs-lisp
(require = 9;ox-epub)
(let ((org-export-before-parsing-hook '(org-ref-csl-prepr= ocess-buffer)))
=C2=A0 (org-open-file (org-epub-export-to-epub)))
#+E= ND_SRC


John

---------------------------= --------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
De= partment of Chemical Engineering
Carnegie Mellon University
Pittsburg= h, PA 15213
412-268-7803

On Wed, = Nov 24, 2021 at 3:00 AM juh <juh+org-mode@mailbox.org> 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<= br> 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 w= ith C-].

They look like this:

Nam a sapien.[[cite:@horkheimer_dialektik_1984]]

This is the org-ref entry in settings.org.

=C2=A0 (straight-use-package 'org-ref)
=C2=A0 (with-eval-after-load "org-ref"
=C2=A0 (setq reftex-default-bibliography '("~/org/bibliography.bib= ")))

=C2=A0 (setq bibtex-completion-bibliography '("~/org/bibliography.= bib")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 bibtex-completion-library-path '("~/or= g/bibtex-pdfs/")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 bibtex-completion-notes-path "~/org/notes/= "
=C2=A0 =C2=A0 =C2=A0 =C2=A0 bibtex-completion-pdf-open-function
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (lambda (fpath)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (call-process "open" nil 0 nil= fpath)))

=C2=A0 (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


--000000000000af508a05d18cd509--