* oc-csl/citeproc: suffixes in cite links
@ 2021-07-16 20:40 Matt Price
2021-07-16 21:21 ` András Simonyi
0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2021-07-16 20:40 UTC (permalink / raw)
To: Org Mode, andras.simonyi
[-- Attachment #1: Type: text/plain, Size: 874 bytes --]
(cc:ing Andras in case this issue maybe comes from citeproc)
I'm having some trouble with suffixes in cite: links when the oc-csl
exporter is enabled, e.g. with something like this:
#+cite_export: csl "/home/matt/src/styles/apa.csl"
this cite:
[cite:@GentilcoreTastetomatoItaly2009 ch4]
is rendered as:
(ch Gentilcore, 2009, p. 4)
on export to HTML (in a document with no print_bibliography directive).
BY contrast, ob-basic gives:
(Gentilcore, David, 2009 ch4)
Is oc-csl doing some extra work to process suffix, or is this likely an
issue with citeproc, or alternatively am I just not really understanding
what ought to be happening?
Also, are other people seeing this same issue? I don't have a testing setup
that would allow me to easily run emacs -Q (given how much has to be
imported) so ... well, so, my apologies for not having done that.
THanks,
Matt
[-- Attachment #2: Type: text/html, Size: 1178 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: oc-csl/citeproc: suffixes in cite links
2021-07-16 20:40 oc-csl/citeproc: suffixes in cite links Matt Price
@ 2021-07-16 21:21 ` András Simonyi
2021-07-16 21:34 ` Matt Price
0 siblings, 1 reply; 3+ messages in thread
From: András Simonyi @ 2021-07-16 21:21 UTC (permalink / raw)
To: Matt Price; +Cc: Org Mode
Dear Matt,
yes, oc-csl has to extract the locator information from the suffix
because CSL processors like citeproc-el work with structured locator
data. To help this extraction, ocl-csl (similarly to citeproc-org and
I think pandoc) defines a list of locator expressions to be used in
the suffix (see the commentary of oc-csl or the citeproc-org README),
for chapter one can currently use "chap.", "chaps." or "chapter" --
hopefully replacing the citation with
[cite:@GentilcoreTastetomatoItaly2009 chap. 4] will fix the rendering,
best regards,
András
On Fri, 16 Jul 2021 at 22:40, Matt Price <moptop99@gmail.com> wrote:
>
> (cc:ing Andras in case this issue maybe comes from citeproc)
>
> I'm having some trouble with suffixes in cite: links when the oc-csl exporter is enabled, e.g. with something like this:
>
> #+cite_export: csl "/home/matt/src/styles/apa.csl"
>
> this cite:
> [cite:@GentilcoreTastetomatoItaly2009 ch4]
>
> is rendered as:
>
> (ch Gentilcore, 2009, p. 4)
>
>
> on export to HTML (in a document with no print_bibliography directive).
>
> BY contrast, ob-basic gives:
>
> (Gentilcore, David, 2009 ch4)
>
> Is oc-csl doing some extra work to process suffix, or is this likely an issue with citeproc, or alternatively am I just not really understanding what ought to be happening?
>
>
> Also, are other people seeing this same issue? I don't have a testing setup that would allow me to easily run emacs -Q (given how much has to be imported) so ... well, so, my apologies for not having done that.
>
>
> THanks,
>
> Matt
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: oc-csl/citeproc: suffixes in cite links
2021-07-16 21:21 ` András Simonyi
@ 2021-07-16 21:34 ` Matt Price
0 siblings, 0 replies; 3+ messages in thread
From: Matt Price @ 2021-07-16 21:34 UTC (permalink / raw)
To: András Simonyi; +Cc: Org Mode
[-- Attachment #1: Type: text/plain, Size: 1871 bytes --]
Ah, that's so immensely helpful. Thank you, this will be very good to know.
On Fri, Jul 16, 2021 at 5:21 PM András Simonyi <andras.simonyi@gmail.com>
wrote:
> Dear Matt,
>
> yes, oc-csl has to extract the locator information from the suffix
> because CSL processors like citeproc-el work with structured locator
> data. To help this extraction, ocl-csl (similarly to citeproc-org and
> I think pandoc) defines a list of locator expressions to be used in
> the suffix (see the commentary of oc-csl or the citeproc-org README),
> for chapter one can currently use "chap.", "chaps." or "chapter" --
> hopefully replacing the citation with
> [cite:@GentilcoreTastetomatoItaly2009 chap. 4] will fix the rendering,
>
> best regards,
> András
>
> On Fri, 16 Jul 2021 at 22:40, Matt Price <moptop99@gmail.com> wrote:
> >
> > (cc:ing Andras in case this issue maybe comes from citeproc)
> >
> > I'm having some trouble with suffixes in cite: links when the oc-csl
> exporter is enabled, e.g. with something like this:
> >
> > #+cite_export: csl "/home/matt/src/styles/apa.csl"
> >
> > this cite:
> > [cite:@GentilcoreTastetomatoItaly2009 ch4]
> >
> > is rendered as:
> >
> > (ch Gentilcore, 2009, p. 4)
> >
> >
> > on export to HTML (in a document with no print_bibliography directive).
> >
> > BY contrast, ob-basic gives:
> >
> > (Gentilcore, David, 2009 ch4)
> >
> > Is oc-csl doing some extra work to process suffix, or is this likely an
> issue with citeproc, or alternatively am I just not really understanding
> what ought to be happening?
> >
> >
> > Also, are other people seeing this same issue? I don't have a testing
> setup that would allow me to easily run emacs -Q (given how much has to be
> imported) so ... well, so, my apologies for not having done that.
> >
> >
> > THanks,
> >
> > Matt
> >
> >
>
[-- Attachment #2: Type: text/html, Size: 2459 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-16 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-16 20:40 oc-csl/citeproc: suffixes in cite links Matt Price
2021-07-16 21:21 ` András Simonyi
2021-07-16 21:34 ` Matt Price
Code repositories for project(s) associated with this public 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).