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

Bug in footnote citation export #25

Open
erauchway opened this issue Mar 18, 2023 · 1 comment
Open

Bug in footnote citation export #25

erauchway opened this issue Mar 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@erauchway
Copy link

Using footnotes and org citations, any author's name that consists only
of a first initial creates an error in formatting when org exports the
document for formatting via ox-pandoc. This error is reproducible on multiple machines
and configurations. Minimal examples of the documents necessary to
reproduce the problem are pasted below.

If the below document titled test.org is placed in a directory with the
standard Zotero csl file linked below and the test.json file also pasted
below, the error should be reproduced.

One expects to get a footnote with a superscripted 1, followed by T.
Marshall, Citizenship and etc.

Instead, one gets a superscripted 1, a carriage return, then 1. Marshall
etc.

The exporter seems to be interpreting the initial T. as indicating the
first item in an ordered list.

This error occurs when using the org exporter to create a docx or
latex-pdf file via ox-pandoc, i.e., C-c C-e p X or C-c C-e p l.

It does not occur when using the org exporter to create a latex file
without pandoc, i.e., C-c C-e l o does not produce the error.

file test.org

#+title: Test
#+bibliography: test.json
#+cite_export: csl chicago-fullnote-bibliography-short-title-subsequent.csl
* Test document
This is a test.[fn:1]
* Footnotes
[fn:1][cite:@marshallCitizenshipSocialClass1950]

file test.json

[
 {
   "author": [
     {
       "family": "Marshall",
       "given": "T."
     }
   ],
   "id": "marshallCitizenshipSocialClass1950",
   "issued": {
     "date-parts": [
       [
         1950
       ]
     ]
   },
   "language": "en-US",
   "number-of-pages": "176",
   "publisher": "University Press",
   "title": "Citizenship and Social Class: And Other Essays",
   "title-short": "Citizenship and Social Class",
   "type": "book"
 }
]

Zotero chicago-fullnote-bibliography-short-title-subsequent.csl file
available here:

https://github.com/citation-style-language/styles/blob/master/chicago-fullnote-bibliography-short-title-subsequent.csl

@a-fent a-fent self-assigned this Mar 21, 2023
@a-fent a-fent added the bug Something isn't working label Mar 21, 2023
@a-fent
Copy link
Collaborator

a-fent commented Mar 21, 2023

Thanks for report and test case. Looking into it.

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

No branches or pull requests

2 participants