jgm/citeproc

Author-in-text citations render as superscript

Opened this issue · 3 comments

I'm aware of old commits to pandoc-citeproc that reference this (e.g., jgm/pandoc-citeproc@3f67763). But when using a numeric superscript CSL (e.g., nature.csl) the author-in-text citations are rendered with a superscript. Have I missed a setting somewhere?

Example:

---
title: Example Document
csl: nature.csl
references:
- type: article-journal
  id: WatsonCrick1953
  author:
  - family: Watson
    given: J. D.
  - family: Crick
    given: F. H. C.
  issued:
    date-parts:
    - - 1953
      - 4
      - 25
  title: 'Molecular structure of nucleic acids: a structure for
    deoxyribose nucleic acid'
  title-short: Molecular structure of nucleic acids
  container-title: Nature
  volume: 171
  issue: 4356
  page: 737-738
  DOI: 10.1038/171737a0
  URL: https://www.nature.com/articles/171737a0
  language: en-GB
---

This is an example citation [@WatsonCrick1953].
And, cf., ref. [-@WatsonCrick1953].

Output (pandoc --citeproc -s -f markdown -t html):

<!-- snip -->

<header id="title-block-header">
<h1 class="title">Example Document</h1>
</header>
<p>This is an example citation<span class="citation"
data-cites="WatsonCrick1953"><sup>1</sup></span>. And, cf., ref.<span
class="citation" data-cites="WatsonCrick1953"><sup>1</sup></span>.</p>

<!-- snip -->

Pandoc version?

pandoc 3.1.1, macOS

jgm commented

Usually this is determined by the CSL style, which in this case probably calls for numerical references to be superscripted. You are expecting author-in-text style to bypass the style's normal formatting for the numerical reference?

I would expect the same.
For example the "Markdown citations to plain with CSL style" example here: https://pandoc.org/try/

Looks the same when having:
Foo [@legras_michel_2010].
vs
Foo [-@legras_michel_2010].

I would have liked to have a in text mention of the whole citation.
Something like wanted here: https://stackoverflow.com/questions/66600105/pandoc-citing-a-full-source

It would help to know which parts should be adjusted in the csl file or get a hint.