emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Rauchway <earauchway@ucdavis.edu>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [BUG] citations incorrectly exported to pandoc [9.6.1 (9.6.1-??-fe92a3ced ]
Date: Wed, 15 Mar 2023 22:50:27 +0000	[thread overview]
Message-ID: <7F5E5DBE-C841-4C00-B3FA-C8DF33923AF9@ucdavis.edu> (raw)

[-- 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 --]

             reply	other threads:[~2023-03-17 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15 22:50 Eric Rauchway [this message]
2023-03-18 12:18 ` [BUG] citations incorrectly exported to pandoc [9.6.1 (9.6.1-??-fe92a3ced ] Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7F5E5DBE-C841-4C00-B3FA-C8DF33923AF9@ucdavis.edu \
    --to=earauchway@ucdavis.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).