* Can't cite multiple sources with biblatex, autocites & autopunct
@ 2022-03-05 5:37 Zac E
2022-03-06 12:43 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Zac E @ 2022-03-05 5:37 UTC (permalink / raw)
To: emacs-orgmode
Org-Cite does not appear to respect the biblatex package’s autopunct option when citing more than one source and exporting from .org to .pdf via .tex. The org exporter inserts a \relax command after the \autocites command, preventing the swapping of citation and punctuation (period), as should otherwise be enabled by the autopunct option. If I try to manually swap the punctuation and citation, LaTeX removes the space before the next sentence, so the use of autopunct is necessary.
The relevant part of my header looks like:
#+latex_header: \usepackage[american]{babel}
#+latex_header: \usepackage[autopunct,style=american]{csquotes}
#+latex_header: \usepackage[notes,autopunct=true,backend=biber]{biblatex-chicago}
This behavior has been consistent for me across different documents, and the only common denominator is the presence of multiple sources. An identical set-up in LaTeX does not produce this behavior. Has anyone experienced this bug? I could not find any other discussions of this issue. Does anyone have any suggestions? Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't cite multiple sources with biblatex, autocites & autopunct
2022-03-05 5:37 Can't cite multiple sources with biblatex, autocites & autopunct Zac E
@ 2022-03-06 12:43 ` Nicolas Goaziou
2022-03-11 7:30 ` Zac E
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2022-03-06 12:43 UTC (permalink / raw)
To: Zac E; +Cc: emacs-orgmode
Hello,
Zac E <zac.endter@gmail.com> writes:
> Org-Cite does not appear to respect the biblatex package’s autopunct
> option when citing more than one source and exporting from .org to
> .pdf via .tex. The org exporter inserts a \relax command after the
> \autocites command, preventing the swapping of citation and
> punctuation (period), as should otherwise be enabled by the autopunct
> option. If I try to manually swap the punctuation and citation, LaTeX
> removes the space before the next sentence, so the use of autopunct is
> necessary.
>
> The relevant part of my header looks like:
> #+latex_header: \usepackage[american]{babel}
> #+latex_header: \usepackage[autopunct,style=american]{csquotes}
> #+latex_header: \usepackage[notes,autopunct=true,backend=biber]{biblatex-chicago}
>
> This behavior has been consistent for me across different documents,
> and the only common denominator is the presence of multiple sources.
> An identical set-up in LaTeX does not produce this behavior. Has
> anyone experienced this bug? I could not find any other discussions of
> this issue. Does anyone have any suggestions? Thank you.
Could you provide an example demonstrating the issue? It should include
a minimal Org source, the LaTeX output, and the expected output.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't cite multiple sources with biblatex, autocites & autopunct
2022-03-06 12:43 ` Nicolas Goaziou
@ 2022-03-11 7:30 ` Zac E
2022-03-23 22:47 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Zac E @ 2022-03-11 7:30 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]
Hello,
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
> Could you provide an example demonstrating the issue? It should include
> a minimal Org source, the LaTeX output, and the expected output.
Thank you for your response! I have included a minimal example below. I am running Emacs 27.2 and Org-mode 9.6.
ORG SOURCE
#+latex_class: article
#+latex_header: \usepackage[autopunct,style=american]{csquotes}
#+latex_header: \usepackage[autopunct=true,autocite=footnote]{biblatex}
#+cite_export: biblatex
#+bibliography: example.bib
With only one citation, the footnote is correctly moved outside of the period [cite:@example1]. With two citations, the footnote incorrectly remains within the punctuation [cite:@example1;@example2]. Lorem ipsum dolor sit amet.
ACTUAL LATEX OUTPUT
With only one citation, the footnote is correctly moved outside of the period \autocite{example1}. With two citations, the autocites command is followed by a relax command, such that the footnote incorrectly remains within the punctuation in the output pdf \autocites{example1}{example2}\relax. Lorem ipsum dolor sit amet.
EXPECTED LATEX OUTPUT
With only one citation, the footnote is correctly moved outside of the period \autocite{example1}. With two citations, the autocites command is followed by a relax command, such that the footnote incorrectly remains within the punctuation in the output pdf \autocites{example1}{example2}. Lorem ipsum dolor sit amet.
BIB SOURCE
@Book{example1,
author = {Lorem, Ipsum},
title = {Example, First},
publisher = {Org-Mode},
date = 2022,
address = {Stallmanstadt},
}
@Book{example2,
author = {Dolor, Sit},
title = {Example, Second},
publisher = {Emacs},
date = 2022,
address = {Utopie},
}
Regards,
Zac Endter
[-- Attachment #2: Type: text/html, Size: 4981 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't cite multiple sources with biblatex, autocites & autopunct
2022-03-11 7:30 ` Zac E
@ 2022-03-23 22:47 ` Nicolas Goaziou
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2022-03-23 22:47 UTC (permalink / raw)
To: Zac E; +Cc: emacs-orgmode
Hello,
Zac E <zac.endter@gmail.com> writes:
> Thank you for your response! I have included a minimal example below.
> I am running Emacs 27.2 and Org-mode 9.6.
I have removed the relax macro from the output.
Does it fix your issue?
> ORG SOURCE
>
> #+latex_class: article
> #+latex_header: \usepackage[autopunct,style=american]{csquotes}
> #+latex_header: \usepackage[autopunct=true,autocite=footnote]{biblatex}
> #+cite_export: biblatex
>
> #+bibliography: example.bib
>
> With only one citation, the footnote is correctly moved outside of the
> period [cite:@example1]. With two citations, the footnote incorrectly
> remains within the punctuation [cite:@example1;@example2]. Lorem ipsum
> dolor sit amet.
Note this minimal example above cannot reproduce your issue because two
keys without a prefix cannot trigger a multicite form, here "autocites".
Hence, you would get
... the punctuation \autocite{example1,example2}. Lorem ipsum...
>
> ACTUAL LATEX OUTPUT
>
> With only one citation, the footnote is correctly moved outside of the
> period \autocite{example1}. With two citations, the autocites command
> is followed by a relax command, such that the footnote incorrectly
> remains within the punctuation in the output pdf
> \autocites{example1}{example2}\relax. Lorem ipsum dolor sit amet.
>
> EXPECTED LATEX OUTPUT
>
> With only one citation, the footnote is correctly moved outside of the
> period \autocite{example1}. With two citations, the autocites command
> is followed by a relax command, such that the footnote incorrectly
> remains within the punctuation in the output pdf
> \autocites{example1}{example2}. Lorem ipsum dolor sit amet.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-23 22:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-05 5:37 Can't cite multiple sources with biblatex, autocites & autopunct Zac E
2022-03-06 12:43 ` Nicolas Goaziou
2022-03-11 7:30 ` Zac E
2022-03-23 22:47 ` Nicolas Goaziou
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).