emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bibliographies on export with ox-context and ox-epub
@ 2021-11-24  7:22 juh
  2021-11-24  8:43 ` Denis Maier
  2021-11-24 18:14 ` John Kitchin
  0 siblings, 2 replies; 21+ messages in thread
From: juh @ 2021-11-24  7:22 UTC (permalink / raw)
  To: Org-mode Mailinglist

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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  7:22 Bibliographies on export with ox-context and ox-epub juh
@ 2021-11-24  8:43 ` Denis Maier
  2021-11-24  9:32   ` juh
  2021-11-24  9:59   ` Colin Baxter 😺
  2021-11-24 18:14 ` John Kitchin
  1 sibling, 2 replies; 21+ messages in thread
From: Denis Maier @ 2021-11-24  8:43 UTC (permalink / raw)
  To: juh, Org Mode List

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
> 



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  8:43 ` Denis Maier
@ 2021-11-24  9:32   ` juh
  2021-11-24 10:59     ` Denis Maier
  2021-11-24  9:59   ` Colin Baxter 😺
  1 sibling, 1 reply; 21+ messages in thread
From: juh @ 2021-11-24  9:32 UTC (permalink / raw)
  To: Denis Maier, juh, Org Mode List

Am 24.11.21 um 09:43 schrieb Denis Maier:
> 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:
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 

Thanks a lot but I get:

Unknown processor csl

I also followed the example given here:
https://blog.tecosaur.com/tmio/2021-07-31-citations.html

juh


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  8:43 ` Denis Maier
  2021-11-24  9:32   ` juh
@ 2021-11-24  9:59   ` Colin Baxter 😺
  2021-11-24 10:51     ` Denis Maier
  2021-11-24 11:13     ` Eric S Fraga
  1 sibling, 2 replies; 21+ messages in thread
From: Colin Baxter 😺 @ 2021-11-24  9:59 UTC (permalink / raw)
  To: Denis Maier; +Cc: , juh, Org Mode List

>>>>> Denis Maier <denismaier@mailbox.org> writes:

    > 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.

Where is citeproc.el? I'm using Org mode version 9.5.1
(release_9.5.1-194-gd82936) and I don't see it.

Best wishes,



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  9:59   ` Colin Baxter 😺
@ 2021-11-24 10:51     ` Denis Maier
  2021-11-24 11:13     ` Eric S Fraga
  1 sibling, 0 replies; 21+ messages in thread
From: Denis Maier @ 2021-11-24 10:51 UTC (permalink / raw)
  To: Colin Baxter 😺; +Cc: juh, Org Mode List

Am 24.11.2021 um 10:59 schrieb Colin Baxter 😺:
>>>>>> Denis Maier <denismaier@mailbox.org> writes:
>      > 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.
>
> Where is citeproc.el? I'm using Org mode version 9.5.1
> (release_9.5.1-194-gd82936) and I don't see it.
>
> Best wishes,

You'll need to install it. It's an independent package.

Denis




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  9:32   ` juh
@ 2021-11-24 10:59     ` Denis Maier
  2021-11-24 11:36       ` juh
  0 siblings, 1 reply; 21+ messages in thread
From: Denis Maier @ 2021-11-24 10:59 UTC (permalink / raw)
  To: juh, juh, Org Mode List


Am 24.11.2021 um 10:32 schrieb juh:
> [...]

> Thanks a lot but I get:
>
> Unknown processor csl
What happens after this?

M-: (require 'oc-csl)

Will this evaluate or do you get an error message?

Denis





^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  9:59   ` Colin Baxter 😺
  2021-11-24 10:51     ` Denis Maier
@ 2021-11-24 11:13     ` Eric S Fraga
  2021-11-24 11:58       ` Colin Baxter 😺
  1 sibling, 1 reply; 21+ messages in thread
From: Eric S Fraga @ 2021-11-24 11:13 UTC (permalink / raw)
  To: Colin Baxter 😺; +Cc: juh, Org Mode List, Denis Maier

On Wednesday, 24 Nov 2021 at 09:59, Colin Baxter 😺 wrote:
> Where is citeproc.el? I'm using Org mode version 9.5.1
> (release_9.5.1-194-gd82936) and I don't see it.

It's a separate Emacs package which you will need to install.  It's
available on MELPA.  The csl citation engine depends on it.  It is not
part of org itself.

-- 
: Eric S Fraga, with org release_9.5-230-g2bbac4 in Emacs 29.0.50
: Latest paper written in org: https://arxiv.org/abs/2106.05096


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24 10:59     ` Denis Maier
@ 2021-11-24 11:36       ` juh
  2021-11-24 19:29         ` András Simonyi
  0 siblings, 1 reply; 21+ messages in thread
From: juh @ 2021-11-24 11:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

Am Wed, Nov 24, 2021 at 11:59:19AM +0100 schrieb Denis Maier:
> 
> Am 24.11.2021 um 10:32 schrieb juh:
> > [...]
> 
> > Thanks a lot but I get:
> > 
> > Unknown processor csl
> What happens after this?
> 
> M-: (require 'oc-csl)
> 
> Will this evaluate or do you get an error message?
> 

The error disappears but the bibliography still is not rendered.

I get the plain code:

[@doe 45]

[cite/t:@doe 45] 

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



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24 11:13     ` Eric S Fraga
@ 2021-11-24 11:58       ` Colin Baxter 😺
  0 siblings, 0 replies; 21+ messages in thread
From: Colin Baxter 😺 @ 2021-11-24 11:58 UTC (permalink / raw)
  To: Org Mode List

>>>>> Eric S Fraga <e.fraga@ucl.ac.uk> writes:

    > On Wednesday, 24 Nov 2021 at 09:59, Colin Baxter 😺 wrote:
    >> Where is citeproc.el? I'm using Org mode version 9.5.1
    >> (release_9.5.1-194-gd82936) and I don't see it.

    > It's a separate Emacs package which you will need to install.
    > It's available on MELPA.  The csl citation engine depends on it.
    > It is not part of org itself.

Ah, I see. Tthanks again Eric

Best wishes,


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24  7:22 Bibliographies on export with ox-context and ox-epub juh
  2021-11-24  8:43 ` Denis Maier
@ 2021-11-24 18:14 ` John Kitchin
  1 sibling, 0 replies; 21+ messages in thread
From: John Kitchin @ 2021-11-24 18:14 UTC (permalink / raw)
  To: juh; +Cc: Org-mode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 2787 bytes --]

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 <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
> 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
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 4258 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24 11:36       ` juh
@ 2021-11-24 19:29         ` András Simonyi
  2021-11-25 11:19           ` juh
  0 siblings, 1 reply; 21+ messages in thread
From: András Simonyi @ 2021-11-24 19:29 UTC (permalink / raw)
  To: juh; +Cc: emacs-orgmode

Dear All,
On Wed, 24 Nov 2021 at 16:49, juh <juh@mailbox.org> wrote:
> The error disappears but the bibliography still is not rendered.
>
> I get the plain code:
>
> [@doe 45]
>
> [cite/t:@doe 45]
>
> juh
is the rendering OK when you export using the built-in, standard
backends, e.g., html or txt? As a data point, on my system org-cite
export with the CSL processor using ox-context works as expected.

best wishes,
András


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-24 19:29         ` András Simonyi
@ 2021-11-25 11:19           ` juh
  2021-11-25 12:49             ` András Simonyi
  0 siblings, 1 reply; 21+ messages in thread
From: juh @ 2021-11-25 11:19 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

Am Wed, Nov 24, 2021 at 08:29:46PM +0100 schrieb András Simonyi:
> > The error disappears but the bibliography still is not rendered.
> >
> > I get the plain code:
> >
> > [@doe 45]
> >
> > [cite/t:@doe 45]
> >
> > juh
> is the rendering OK when you export using the built-in, standard
> backends, e.g., html or txt? As a data point, on my system org-cite
> export with the CSL processor using ox-context works as expected.

After I fixed my installation I now use org-mode 9.5.1 but still
citations are not rendered in no export format neither with basic nor
with csl.

Sample is:

#+title: Citation tests
#+cite_export: basic
#+bibliography: test.bib

[cite:@doe 45]

[cite/text:@doe 45]


#+print_bibliography: 



test.bib in same directory:


@article{doe,
         author={org, mode and Syntax, Citation and List, Mailing and Effort, Time},
         journal={Journal of Plain Text Formats},
         title={Elegant Citations with Org-Mode},
         year={2021},
         month={7},
         volume={42},
         number={1},
         pages


With cite_export: csl I get

Scan error: "Unbalanced parentheses" , 9, 299

With cite_export: basic I get

Wrong value for ENTRY-OR-KEY: nil

With org-cite-insert my modeline shows

0 Key ("" to exit): 


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



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-25 11:19           ` juh
@ 2021-11-25 12:49             ` András Simonyi
  2021-11-25 13:53               ` juh
  0 siblings, 1 reply; 21+ messages in thread
From: András Simonyi @ 2021-11-25 12:49 UTC (permalink / raw)
  To: juh; +Cc: emacs-orgmode

On Thu, 25 Nov 2021 at 12:21, juh <juh@mailbox.org> wrote:

> After I fixed my installation I now use org-mode 9.5.1 but still
> citations are not rendered in no export format neither with basic nor
> with csl.

> test.bib in same directory:
>
>
> @article{doe,
>          author={org, mode and Syntax, Citation and List, Mailing and Effort, Time},
>          journal={Journal of Plain Text Formats},
>          title={Elegant Citations with Org-Mode},
>          year={2021},
>          month={7},
>          volume={42},
>          number={1},
>          pages
>
if that's the entire content then it is not a well-formed bib(la)tex
bibliography file: the value of the pages field and the entry's
closing bracket are missing.

best wishes,
András


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-25 12:49             ` András Simonyi
@ 2021-11-25 13:53               ` juh
  2021-12-01 13:42                 ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: juh @ 2021-11-25 13:53 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

Am Thu, Nov 25, 2021 at 01:49:01PM +0100 schrieb András Simonyi:
> if that's the entire content then it is not a well-formed bib(la)tex
> bibliography file: the value of the pages field and the entry's
> closing bracket are missing.

Thanks a lot. 

I fixed this, updated to the newest org but still no rendering in no
format.

Thanks to all.

I will give up for the moment and maybe come back again later.

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



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-11-25 13:53               ` juh
@ 2021-12-01 13:42                 ` Nicolas Goaziou
  2021-12-01 14:44                   ` juh
  0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2021-12-01 13:42 UTC (permalink / raw)
  To: juh; +Cc: emacs-orgmode

Hello,

juh <juh+org-mode@mailbox.org> writes:

> I fixed this, updated to the newest org but still no rendering in no
> format.
>
> Thanks to all.
>
> I will give up for the moment and maybe come back again later.

For the record, with the following test.bib file:

--8<---------------cut here---------------start------------->8---
@article{doe,
         author={org, mode and Syntax, Citation and List, Mailing and Effort, Time},
         journal={Journal of Plain Text Formats},
         title={Elegant Citations with Org-Mode},
         year={2021},
         month={7},
         volume={42},
         number={1}}
--8<---------------cut here---------------end--------------->8---

and the following document:

--8<---------------cut here---------------start------------->8---
#+title: Citation tests
#+cite_export: basic

#+bibliography: test.bib

[cite:@doe 45]

[cite/text:@doe 45]


#+print_bibliography: 
--8<---------------cut here---------------end--------------->8---

I get, when exporting to text (<C-c t U>):

--8<---------------cut here---------------start------------->8---
                            ━━━━━━━━━━━━━━━━
                             CITATION TESTS
                            ━━━━━━━━━━━━━━━━


(org, mode and Syntax, Citation and List, Mailing and Effort, Time, 2021
45)

org, mode and Syntax, Citation and List, Mailing and Effort, Time (2021
45)


org, mode and Syntax, Citation and List, Mailing and Effort, Time
(2021). /Elegant Citations with Org-Mode/, Journal of Plain Text
Formats.
--8<---------------cut here---------------end--------------->8---

If I change the second line to "#+cite_export: csl" instead, with the
external Citeproc Emacs library properly loaded, I get:

--8<---------------cut here---------------start------------->8---
                            ━━━━━━━━━━━━━━━━
                             CITATION TESTS
                            ━━━━━━━━━━━━━━━━


(org et al. 2021, 45)

org et al. (2021, 45)


org, mode, Citation Syntax, Mailing List, and Time Effort. 2021.
“Elegant Citations with Org-Mode. J/o”urnal of Plain Text Formats/ 42
(1).
--8<---------------cut here---------------end--------------->8---

I tested with development Org, but I don't think it would change using
stable Org. Maybe someone wants to confirm this.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-12-01 13:42                 ` Nicolas Goaziou
@ 2021-12-01 14:44                   ` juh
  2021-12-01 14:57                     ` juh
  2021-12-01 15:06                     ` Nicolas Goaziou
  0 siblings, 2 replies; 21+ messages in thread
From: juh @ 2021-12-01 14:44 UTC (permalink / raw)
  To: emacs-orgmode

Hi Nicolas,

thanks a lot.

basic works

Am Wed, Dec 01, 2021 at 02:42:10PM +0100 schrieb Nicolas Goaziou:
> If I change the second line to "#+cite_export: csl" instead, with the
> external Citeproc Emacs library properly loaded, I get:
> 
> (org et al. 2021, 45)
> 
> org et al. (2021, 45)
> 
> 
> org, mode, Citation Syntax, Mailing List, and Time Effort. 2021.
> “Elegant Citations with Org-Mode. J/o”urnal of Plain Text Formats/ 42
> (1).
> --8<---------------cut here---------------end--------------->8---

but with csl I get:

citeproc-style-parse: Opening input file: Datei oder Verzeichnis nicht gefunden, /usr/share/emacs/27.1/etc/org/csl/chicago-author-date.csl

File or directory not found.

I tried to point 

#+csl_style: ~/Projekte/csl.styles/chicago-author-date.csl

but there is no change in the error message.

juh



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-12-01 14:44                   ` juh
@ 2021-12-01 14:57                     ` juh
  2021-12-01 15:01                       ` Eric S Fraga
  2021-12-01 15:06                     ` Nicolas Goaziou
  1 sibling, 1 reply; 21+ messages in thread
From: juh @ 2021-12-01 14:57 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

Am Wed, Dec 01, 2021 at 03:44:48PM +0100 schrieb juh:
> but with csl I get:
> 
> citeproc-style-parse: Opening input file: Datei oder Verzeichnis nicht gefunden, /usr/share/emacs/27.1/etc/org/csl/chicago-author-date.csl
> 
> File or directory not found.
> 
> I tried to point 
> 
> #+csl_style: ~/Projekte/csl.styles/chicago-author-date.csl
> 
> but there is no change in the error message.

One more thing.

org-cite-insert gives me the list of entries in test.bib as expected.

Pressing ENTER adds "doe"

But then I can't get out, because:

Key ("" to exit) 

What key is this? 

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



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-12-01 14:57                     ` juh
@ 2021-12-01 15:01                       ` Eric S Fraga
  2021-12-02  8:11                         ` juh
  0 siblings, 1 reply; 21+ messages in thread
From: Eric S Fraga @ 2021-12-01 15:01 UTC (permalink / raw)
  To: juh; +Cc: emacs-orgmode

On Wednesday,  1 Dec 2021 at 15:57, juh wrote:
> But then I can't get out, because:
>
> Key ("" to exit) 
>
> What key is this? 

What completion engine are you using?  In selectrum, typing C-j at that
point finishes the completion.  Other engines will differ.  You might
also try up-arrow and RET.

-- 
: Eric S Fraga, with org release_9.5.1-231-g6766c4 in Emacs 29.0.50
: Latest paper written in org: https://arxiv.org/abs/2106.05096


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-12-01 14:44                   ` juh
  2021-12-01 14:57                     ` juh
@ 2021-12-01 15:06                     ` Nicolas Goaziou
  1 sibling, 0 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2021-12-01 15:06 UTC (permalink / raw)
  To: juh; +Cc: emacs-orgmode

Hello,

juh <juh+org-mode@mailbox.org> writes:

> thanks a lot.
>
> basic works

Good! We're getting close.

> but with csl I get:
>
> citeproc-style-parse: Opening input file: Datei oder Verzeichnis nicht gefunden, /usr/share/emacs/27.1/etc/org/csl/chicago-author-date.csl
>
> File or directory not found.

That's unexpected. I am curious to know why `org-cite-csl--etc-dir' is
set to "/usr/share/emacs/27.1/etc/org/csl/chicago-author-date.csl".

If you have some time to spare, you could edebug this defconst by using
<C-u C-M-x> on its definition and move with successive <n>. In
particular, (locate-library "oc") should not point to
/usr/share/emacs/27.1/... since it was not available at that time.

> I tried to point 
>
> #+csl_style: ~/Projekte/csl.styles/chicago-author-date.csl
>
> but there is no change in the error message.

Location of the CSL style file should be the second token in the
"cite_export" keyword. So the above should be:

  #+cite_export: csl ~/Projekte/csl.styles/chicago-author-date.csl

You can also shorten this with `org-cite-csl-styles-dir' variable. E.g.,
if _all_ your style files are located in "~/Projekte/csl.styles/", you
could use:

  (setq org-cite-csl-styles-dir "~/Projekte/csl.styles/")

In that case, the second token from "cite_export" keyword would become:

  #+cite_export: csl chicago-author-date.csl

Note there is no "csl_style" keyword in Org Cite. It might be related to
Org Ref, which is a different citation system.

HTH,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-12-01 15:01                       ` Eric S Fraga
@ 2021-12-02  8:11                         ` juh
  2021-12-02 15:46                           ` Jason Ross
  0 siblings, 1 reply; 21+ messages in thread
From: juh @ 2021-12-02  8:11 UTC (permalink / raw)
  To: emacs-orgmode

Am 01.12.21 um 16:01 schrieb Eric S Fraga:
> What completion engine are you using?  In selectrum, typing C-j at that
> point finishes the completion.  Other engines will differ.  You might
> also try up-arrow and RET.
Thanks a lot. I use selectrum and would've never found this door out.

juh


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bibliographies on export with ox-context and ox-epub
  2021-12-02  8:11                         ` juh
@ 2021-12-02 15:46                           ` Jason Ross
  0 siblings, 0 replies; 21+ messages in thread
From: Jason Ross @ 2021-12-02 15:46 UTC (permalink / raw)
  To: emacs-orgmode

There is a ConTeXt-specific citation exporter that's in development:

https://github.com/Jason-S-Ross/oc-context

On 12/2/21 12:11 AM, juh wrote:
> Am 01.12.21 um 16:01 schrieb Eric S Fraga:
>> What completion engine are you using?  In selectrum, typing C-j at that
>> point finishes the completion.  Other engines will differ.  You might
>> also try up-arrow and RET.
> Thanks a lot. I use selectrum and would've never found this door out.
> 
> juh
> 


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-12-02 15:48 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24  7:22 Bibliographies on export with ox-context and ox-epub juh
2021-11-24  8:43 ` Denis Maier
2021-11-24  9:32   ` juh
2021-11-24 10:59     ` Denis Maier
2021-11-24 11:36       ` juh
2021-11-24 19:29         ` András Simonyi
2021-11-25 11:19           ` juh
2021-11-25 12:49             ` András Simonyi
2021-11-25 13:53               ` juh
2021-12-01 13:42                 ` Nicolas Goaziou
2021-12-01 14:44                   ` juh
2021-12-01 14:57                     ` juh
2021-12-01 15:01                       ` Eric S Fraga
2021-12-02  8:11                         ` juh
2021-12-02 15:46                           ` Jason Ross
2021-12-01 15:06                     ` Nicolas Goaziou
2021-11-24  9:59   ` Colin Baxter 😺
2021-11-24 10:51     ` Denis Maier
2021-11-24 11:13     ` Eric S Fraga
2021-11-24 11:58       ` Colin Baxter 😺
2021-11-24 18:14 ` John Kitchin

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).