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

parenthetical citations appear as footnotes #158

Closed AlecVercruysse closed 6 months ago

AlecVercruysse commented 6 months ago

Hi, thank you very much for this package! Using the standard ieee.csl available online, with the following MWE:

This is a test of adding a citation [cite:@guptaMicrowavesMetals2008]. 

The bibliography:
#+PRINT_BIBLIOGRAPHY:

Version 0.9.4 produces the following output upon HTML export: image

Commit e3911d8 changed the behavior: image

Which feels unintended. modern-language-association.csl similarly produces: image

I'm hoping to revert to the behavior where footnotes are not inserted. Thank you for the help!

andras-simonyi commented 6 months ago

Hello, thanks for the report! I couldn't reproduce the problem using the latest versions of citeproc-el (commit 44f90cb) and Org (latest version on main). Could you specify the citeproc-el, Org and Emacs versions you are using? Also, please check, if possible, whether citeproc-el was properly (re)built, because I think that the problem might be caused by a partial rebuild. Thanks in advance!

AlecVercruysse commented 6 months ago

It turns out my org was outdated--I was on e9c288dfa (Emacs 29.1). Pulling the latest version fixed it. Thanks for the help and apologies for the erroneous report!

kofm commented 6 months ago

Sorry @andras-simonyi for bumping this but I have the same exact issue. My Org mode version is 9.6.9. Citeproc is at the last commit. The problem is that no matter what csl style I use I always get in-text references as footnotes. Citation style within the footnote and bibliography changes according to the CSL used. Am I missing something?

I simply put this in my org file: #+cite_export: csl chicago-author-date.csl

and then in the text cite like this: [cite:@IPCC2019Guidelines]

Maybe it is not a bug but I couldn't find anything useful in the org manual.

kofm commented 6 months ago

Updating to 9.6.24 solves the problem. I wasn't able to solve the problem with the code in main since it completely broke org and particularly org-export. Sorry again for bothering you all