emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] citations incorrectly exported to pandoc [9.6.1 (9.6.1-??-fe92a3ced ]
@ 2023-03-15 22:50 Eric Rauchway
  2023-03-18 12:18 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Rauchway @ 2023-03-15 22:50 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2557 bytes --]



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

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. 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 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


Emacs  : GNU Emacs 28.2 (build 2, x86_64-apple-darwin22.3.0, NS appkit-2299.40 Version 13.2.1 (Build 22D68))
of 2023-03-09
Package: Org mode version 9.6.1 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 1394 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-18 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 22:50 [BUG] citations incorrectly exported to pandoc [9.6.1 (9.6.1-??-fe92a3ced ] Eric Rauchway
2023-03-18 12:18 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).