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

Punctuation moving with author-in-text citations in footnotes #6835

Closed
mattlynskey opened this issue Nov 13, 2020 · 4 comments
Closed

Punctuation moving with author-in-text citations in footnotes #6835

mattlynskey opened this issue Nov 13, 2020 · 4 comments
Labels

Comments

@mattlynskey
Copy link

mattlynskey commented Nov 13, 2020

I am using Pandoc 2.11.1.1.

When I process the BibTex Key (via Zotero) through Pandoc (DocDown) I end up with citations like below:

[1] Kearney, “Introduction.”, xvi.
[2] Kearney, "Introduction.", 3.

Notice the punctuation issue. There is an odd period inserted in the quotation marks and the comma occurs outside the quotations marks. It seems to happen with journal articles/book sections that have quotation marks but works fairly good with books which get italicized. I am using chicago-note-bibliography-always-short.csl (https://gist.github.com/denismaier/21168acf9e9287fc41f32c7351917111).

The citations should look like this:

[1] Kearney, “Introduction,” xvi.
[2] Kearney, "Introduction," 3.

See thread here for test files (.md, .docx, .csl): https://groups.google.com/g/pandoc-discuss/c/wybUIKpmYUE.

@jgm
Copy link
Owner

jgm commented Nov 13, 2020

Here's a more self-contained example.
test.md:

---
nocite: '[@*]'
references:
- id: KearneyIntroduction2006
  author:
  - family: Kearney
    given: Richard
  collection-title: Thinking in action
  container-title: On translation
  doi: 10.7202/016668ar
  issued: 2006
  keyword: Translating and interpreting
  page: xx, 46 pages
  publisher: Routledge
  publisher-place: London
  title: Introduction
  translator:
  - family: Brennan
    given: Eileen
  type: chapter
...

Blah blah [@KearneyIntroduction2006, p. xvi].

Test [^4]

[^4]: @KearneyIntroduction2006, xvi.

Command

pandoc test.md --citeproc -t plain -s --csl chicago-note-bibliography.csl

Output:

Blah blah.[1]

Test[2]

Kearney, Richard. “Introduction.” In On Translation, translated by
Eileen Brennan, xx, 46 pages. Thinking in Action. London: Routledge,
2006. doi:10.7202/016668ar.

[1] Kearney, “Introduction,” xvi.

[2] Kearney, “Introduction.”, xvi.

@jgm
Copy link
Owner

jgm commented Nov 13, 2020

And now I see the issue. When you use an author-in-text citation, you need to put the locator in brackets. So this should be:

[^4]: @KearneyIntroduction2006 [p. xvi].

Note: use p. to indicate that it's a page. If the style doesn't want p. in front of page numbers, it will omit this.

@jgm
Copy link
Owner

jgm commented Nov 13, 2020

Still, we might be able to do better with the case you supplied, so keeping this open.

@jgm jgm changed the title Pandoc Citation Error with Zotero BibTex Key for Short Note Punctuation moving with author-in-text citations in footnotes Nov 13, 2020
@jgm jgm added the citeproc label Nov 13, 2020
jgm added a commit that referenced this issue Nov 13, 2020
@mattlynskey
Copy link
Author

Great. This is extremely helpful and makes sense. I have tried it on my end and it works well. Very appreciative for this help.

@jgm jgm closed this as completed Nov 13, 2020
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