Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Author-in-text citations render as superscript #131

Open
tomshafer opened this issue Mar 25, 2023 · 3 comments
Open

Author-in-text citations render as superscript #131

tomshafer opened this issue Mar 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@tomshafer
Copy link

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

@tomshafer tomshafer added the bug Something isn't working label Mar 25, 2023
@tomshafer tomshafer changed the title Author-in-text citations rendered with superscript Author-in-text citations render with superscript Mar 25, 2023
@tomshafer tomshafer changed the title Author-in-text citations render with superscript Author-in-text citations render as superscript Mar 25, 2023
@jgm
Copy link
Owner

jgm commented Mar 25, 2023

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?

@tomshafer
Copy link
Author

tomshafer commented Mar 25, 2023 via email

@jgm jgm transferred this issue from jgm/pandoc Mar 28, 2023
@maurerle
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants