andras-simonyi / citeproc-el

A CSL 1.0.2 Citation Processor for Emacs.
GNU General Public License v3.0
85 stars 9 forks source link

Where do common/global prefix/suffixes go? #46

Open jkitchin opened 3 years ago

jkitchin commented 3 years ago

In the description of citeproc-citation-create (https://github.com/andras-simonyi/citeproc-el#creating-citation-structures), I see where you put prefixes and suffixes on each reference in a citation.

The new org-cite syntax supports common or global prefix/suffix text. For example:

[cite:common prefix; prefix1 @key1 suffix1; prefix2 @key2 suffix2; common suffix]

Where do you specify the "common prefix" and "common suffix" in citeproc-citation-create?

andras-simonyi commented 3 years ago

Thanks for raising this issue and sorry for responding only now! Similarly to other CSL citation processors (e.g., citeproc.js) citeproc-el doesn't (yet) support global affixes, only per-reference ones. Consequently, the best thing one can do with global affixes is to concatenate them to the first and last cite affixes -- IIRC this is what oc-csl.el does currently. Of course, this is not ideal, because the cites can be reordered, so I plan to add explicit support for global affixes soonish.