andras-simonyi / citeproc-el

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

Textual citations with numeric style #154

Closed ashgillman closed 4 months ago

ashgillman commented 4 months ago

Apologies in advance: I'm not sure if this is a citeproc or oc-csl.el issue.

In org, if I export with a numeric style (I've tried Nature and IEEE), and use a textual citation, I just get the number out twice.

#+cite_export: csl ~/Zotero/styles/nature.csl
#+bibliography: ~/references.bib
[cite/t:@mcnameeConsiderationOptimalTime2009] sought to identify the optimal acquisition window for SUVr with respect to correlation with DVR.

Gives:

7 7 sought to identify the optimal acquisition window for SUVr with respect to correlation with DVR.

Or for IEEE:

[7] [7] sought to identify the optimal acquisition window for SUVr with respect to correlation with DVR.

Using the default style, or Zotero's APA style works as expected:

McNamee et al. (2009) sought to identify the optimal acquisition window for SUVr with respect to correlation with DVR.

I have confirmed this issue with html, LaTeX and pandoc export.

andras-simonyi commented 4 months ago

Thanks for reporting, I'll push a fix for the problem shortly.

andras-simonyi commented 4 months ago

I've merged now a PR (#157) which should fix the issue.

andras-simonyi commented 4 months ago

In the absence of objections I'm going to close this issue shortly.