emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][oc-csl] Improve reference parsing


From: András Simonyi
Subject: Re: [PATCH][oc-csl] Improve reference parsing
Date: Wed, 25 Jan 2023 23:44:54 +0100

Dear All,

On Thu, 19 Jan 2023 at 11:15, M. ‘quintus’ Gülker
<post+orgmodeml@guelker.eu> wrote:

> That is, the macro has to work both in a citation and in> normal text. Even 
> if a @@csl: construct would be ignored in normal text,> I cannot see how to 
> write the macro then, because something like
>
>     #+MACRO: name @@csl:<span style="font-variant: 
> small-caps">$1</span>@@@@latex:\textsc{$1}@@@@html:<span 
> class="name">$1</span>@@
>
> would still transfer the @@latex: and @@html: constructs into the
> footnote. They would have to be expressly ignored by the citation
> processor.

If we take the approach I suggested the macro definition you suggested
should work correctly both for LaTeX and HTML export combined with the
CSL citation processor, because in the case of citation locators and
affixes Citeproc would receive only the output produced by the planned
CSL ox backend, which would remove the non-CSL export snippets and
keep only the content of the csl snippet.  Citeproc would parse the
produced <span class="name">text</span> into the appropriate
small-caps CSL representation and then format the citation with
small-caps using the Citeproc formatter corresponding to the export
format.

best wishes,
András

>
>   -quintus
>
> --
> Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
> Passau, Deutschland  | kontakt@guelker.eu    | O<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]