Skip to content

Bug in footnote citation export #25

@erauchway

Description

@erauchway

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions