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

When using the "new" org-mode citation system, citations in exponents are nor correctly exported. #32

Closed EmmanuelCharpentier closed 3 years ago

EmmanuelCharpentier commented 3 years ago

Almost all is the title : in styles prescribing citation calls by numbers in exponents, these citation calls are incorrectly rendered :

See the example (.org, .tex, .pdf and .odt)

A quick fix would be to wrap such citations in text math delimiters (\(...\) or dollars).

Issue #23 may be related...

TstOrgCsl.zip

andras-simonyi commented 3 years ago

Thanks for reporting this! Hopefully the LaTeX problem has been at least partly fixed by commit d9b12a9 (switched to using \textsuperscript and \textsubscript for vertical align). The ODT problem seems to be a bit more difficult, because -- in absence of a dedicated citeproc-el formatter (which is planned BTW) -- ODT cite export uses the Org format as an intermediary and there seems to be a problem with exporting Org superscripts to ODT when the superscripted text follows one or more spaces. This leads to an important general problem with superscripted numeric citation styles like Nature: ideally, I think, this type of citations should immediately follow the word/punctuation preceding them, in contrast to other styles, e.g. author-date. Similarly to punctuation handling around citations this is out of scope for citeproc-el and should be handled by the calling "word processing application", e.g. Org -- perhaps the problem could be raised on the Org mailing list. (One difficulty is to determine whether a style is actually superscripted, but this functionality actually could be provided by citeproc-el relatively easily.)

andras-simonyi commented 3 years ago

This has been fixed by merging #45, so I'm closing the issue.