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

Unused citations show up in bibliography (regression?) #7388

Closed
phiresky opened this issue Jun 17, 2021 · 3 comments
Closed

Unused citations show up in bibliography (regression?) #7388

phiresky opened this issue Jun 17, 2021 · 3 comments
Labels

Comments

@phiresky
Copy link

Explain the problem.
In older versions of pandoc, unused citations did not get added to the bibliography. As of some version (I'd guess 2.11), they do.

Example markdown:

---
{"references": [{
    "id": "foo",
    "issued": {
      "date-parts": [
        [
          2018
        ]
      ]
    },
    "page": "1-12",
    "title": "Testing",
    "type": "article-journal"
  }
]}
---


there shouldn't be any references below:

pandoc 2.3

$ pandoc-2.3/bin/pandoc test.md -F pandoc-2.3/bin/pandoc-citeproc
<p>there shouldn’t be any references below:</p>

pandoc 2.14

$ pandoc test.md --citeproc
<p>there shouldn’t be any references below:</p>
<div id="refs" class="references csl-bib-body hanging-indent" role="doc-bibliography">
<div id="ref-foo" class="csl-entry" role="doc-biblioentry">
<span>“Testing.”</span> 2018, 1–12.
</div>
</div>

I'm assuming this is unintended since

  1. I can't find anything about it in this changelog: https://github.com/jgm/pandoc/releases/tag/2.11
  2. There is no mention of how to toggle this in the manual
  3. There is a section specifically about adding unused citations to the bibliography in the manual: https://pandoc.org/MANUAL.html#including-uncited-items-in-the-bibliography

I'm opening this because of phiresky/pandoc-url2cite#8. I also might have missed some info about this somewhere?

@jgm
Copy link
Owner

jgm commented Jun 17, 2021

Check the changelog for the latest release, 2.14.0.2!

@jgm
Copy link
Owner

jgm commented Jun 17, 2021

Always good to check closed issues: #7376.

@jgm jgm closed this as completed Jun 17, 2021
@phiresky
Copy link
Author

Thanks. I searched for "unused" "unreferenced" and citations issues but somehow didn't see that one. Sorry for the inconvenience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants