From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8MbFHg6/XGHbGgEAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 23:09:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aGVtGg6/XGFFNAAA1q6Kng (envelope-from ) for ; Tue, 05 Oct 2021 21:09:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C19479A80 for ; Tue, 5 Oct 2021 23:09:33 +0200 (CEST) Received: from localhost ([::1]:59340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXrgp-0001hh-7c for larch@yhetil.org; Tue, 05 Oct 2021 17:09:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXrg3-0001hT-2C for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 17:08:43 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:35388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXrg0-00012Q-PX for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 17:08:42 -0400 Received: by mail-ed1-x52b.google.com with SMTP id b8so1777867edk.2 for ; Tue, 05 Oct 2021 14:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p1eXmkonhfwfvq9B3vWzYCW/GCa7s/drBLkU1RRSn1Y=; b=T5wTSr2WvxdoSFDvha1mdR0b86bzFiklxo01lkftCwi1h+Pg0QhvGQLN+Wy90Slrq9 51XGh9gCMMeBXqHyLwQ8jWN402XotndoIATKb+i76+0FkNO2MKyBZDZP0Eyu8OGUGMR0 o1QJQIG3ogxA/H4zoJlq88bfyI2qyLIeXz61dAo/XbCckK1xtpmH/pygXpTSKni4ZMoN ILwnYdMPUz1hhBcsxexfHF9sx8O2e42wOwCGPkgTQ4H4Wdt6Cb7tAtE+hEnOot43drr1 BAibAc/AUpvk/oxVNroxM3u/0BYSoNTg/Z+rtyIwns4uB2ZG1PTCBG40/d375+ZwAaaC gwPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p1eXmkonhfwfvq9B3vWzYCW/GCa7s/drBLkU1RRSn1Y=; b=5EtkrEyQ/22jBvz6oK59Qr11imOIddhpN1k+lRqEsOOEGveC9eEgdbub9erv0YHt7O aYvh4qiJdZ/FObBYws8Vtt10XYndl4cpArauq0Ti7tMwKO/Oc3ftmSvSHWhvFQzH88RU UV3jgU1SUkMVVImvl4kUpoMef8O63xKlTWPT2zT+/ovF89lwf2HC3cAH6k8NiFXg7gfv wMXHEHiOO3yi1clp2RNiW+qLqm5v76DksZ+xtlcRojb8sVwkw/5tZttgdcpV0SNjKyFy p1OIAWq2g2ym1bTZdYShwbV23iAhdJtY+Lg36NrxzEspFbKOQBkMQ7r2UYoSbcjBvmlM q6Ew== X-Gm-Message-State: AOAM533OaYvv9k8VH6SDf2GafLaSEOkWaYH74pn6/j/NJYXMA5leJPpr RoywZBv3qGTZrabbeccuPqrUcHLZR3ZYg3vHMFZIhs90XwI= X-Google-Smtp-Source: ABdhPJzReMV0XQ2UTRErR3lWNEEHVOaMlXLQmIta+5q/pSj8XVHqJnZ+W4lnO7KSmLqBVxDeU1wUVbqVFu5hMvhknUM= X-Received: by 2002:a50:bf4a:: with SMTP id g10mr29248516edk.11.1633468117983; Tue, 05 Oct 2021 14:08:37 -0700 (PDT) MIME-Version: 1.0 References: <87sfxhn3xr.fsf@nicolasgoaziou.fr> In-Reply-To: From: Elias Bounatirou Date: Tue, 5 Oct 2021 23:08:27 +0200 Message-ID: Subject: Re: Citation in footnote not expanded/exported to LaTeX (using Org-ref-cite) To: "Bruce D'Arcus" Content-Type: multipart/alternative; boundary="000000000000eca2af05cda16ec7" Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=elias.bounatirou@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email , Nicolas Goaziou Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633468174; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=p1eXmkonhfwfvq9B3vWzYCW/GCa7s/drBLkU1RRSn1Y=; b=Y/pbrakdk7KOvs6+yAPf8R38gNBXUpSS9MfE521R9bhu1UK/3IlwV0X+EQPUQqXJYt9Ilb W00DHcJ3+rTGdRjx/Nu8wmQppMHE2lCkyotAF1BMisGeSnayKylFUWeMIbs52an/+/AIP4 OQiNidHcOjtSaY6akkoclx9OPm4VnnKbBfVYVd0P5vhfQVz7FZjEvWLykoHsKUKHaF19Sj ZZchCG5GSEly5n9+FLcHFJYxsAXcMTiRqo7LfLv7HaOoETdOr1cX/ceJFxffZE72mzzX00 7cdoeSQvtElfyYVdHaNIyA6z4Yknta0/6tBIxwRNxtUWaWLpH5zdjJVHMlof+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633468174; a=rsa-sha256; cv=none; b=aAPQUl7OAGFN/TCvXZa11RrQ5u5VRtBFWQeNKBsTzCpuuwI8Hr02eV3J7xd9bZkHSIKsmY KEMPyHZEA+ABo/Vsd0T3JF9iE3JTTVA1S9fc/NGvXeNn6PlraXFvMrm+0auGmjmHfvl64U XAksrnMPPxmhwmvlcN8nRU9x9fG3jI7/8hi4mL2xfzcEV8Calr4o8xoUzMKakkN8c6EPQt 3uI63fGnceO10aaLreHZYijwn603ye1bCaOq3GmR+RGNnmchlYSvdXzK+3jhArq4oDPwRD iIzC19H7NCB0iMN1/kAvLxXfU8yp1DlcaWDw3p78CT+NV9zhZCql9nfaVYLosQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=T5wTSr2W; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=T5wTSr2W; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C19479A80 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: rG3zB1+MOXZR --000000000000eca2af05cda16ec7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Many thanks to Nicolas and Bruce for their mails and their help. However, it appears Nicolas' MWE unfortunately does not reproduce the issue. It's not the footnote that is omitted/ not exported, it's the citation in the footnote that is left out (when the footnote follows two or more citations, of which one has a suffix). In Nicolas' MWE, there is no citation in the footnote. What seems to me (being no export on LaTeX) strange about Bruce's LaTeX output is that there is no command \footnote{...} or the like. So is the footnote-part of the LaTeX output real LaTeX? (Sorry for this na=C3=AFve question.) I've tested again. With verbose I get the same erroneous result: the citation in the footnote is not rendered (using the development version of org-mode, see below): INPUT: #+LANGUAGE: en #+latex_header:\usepackage{minted} #+bibliography_style: plain #+cite_export: biblatex verbose # Bibliography (bib file) specified within org-ref-cite in the init file Body text [cite: @ravlic2021; @saric2010 with a SUFFIX][fn:1] \printbibliography #+begin_src emacs-lisp (org-version) #+end_src #+RESULTS: : 9.5 #+begin_src emacs-lisp (emacs-version) #+end_src #+RESULTS: : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) : of 2021-06-04 * Footnotes [fn:1]Test [cite: @senker1987] LaTeX OUTPUT (shortened): Body text \autocites{ravlic2021}[][with a SUFFIX]{saric2010}\footnote{Test} \printbibliography As a work around I insert a zero width space before footnotes in the context described. Am Mo., 4. Okt. 2021 um 16:26 Uhr schrieb Bruce D'Arcus = : > On Mon, Oct 4, 2021 at 10:11 AM Bruce D'Arcus wrote: > > > > On Sun, Oct 3, 2021 at 6:23 PM Nicolas Goaziou > wrote: > > > > > > Hello, > > > > > > Elias Bounatirou writes: > > > > > > > Just to clarify the BUG: > > > > Citations in a footnote in the following environment are not > exported to > > > > LaTeX: when the footnote follows two or more citations, of which on= e > has a > > > > suffix, i.e. for instance in > > > > > > > > Body text with a citation: [cite:@low2001; @mcneill2011 with a > > > > suffix][fn:3]. > > > > > > I cannot reproduce the problem. With the following document: > > > > > > --8<---------------cut here---------------start------------->8--- > > > #+bibliography: foo.bibtex > > > #+cite_export: biblatex authoryear > > > > Can you try with a note-based style like verbose? > > Now I'm not sure. > > Input: > > ---- > #+language: en > #+bibliography: test.bib > #+cite_export: biblatex verbose > > Body text with a citation: [cite:@low2001; @mcneill2011; with a > suffix][fn:1]. > > #+print_bibliography: > > * Footnotes > > [fn:1] Third commentary, and then a citation: [cite:@low2001]. > --- > > LaTeX output: > > --- > Body text with a citation: \autocites(with a > suffix){low2001}[][]{mcneill2011}\relax[1]. > > \printbibliography > > > > Footnotes > =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80 > > [1] Third commentary, and then a citation: \autocite{low2001}. > --- > > But the PDF leaves off the last citation, in the footnote. > > Bruce > --000000000000eca2af05cda16ec7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks to Nicolas and Bruce for their mails and = their help.
However, it appears Nicolas' MWE unfortunatel= y does not=C2=A0 reproduce the issue. It's not the footnote that is omi= tted/ not exported, it's the citation in the footnote that is left out = (when the footnote follows two or more citations, of which one has a suffix= ). In Nicolas' MWE, there is no citation in the footnote. What seems to= me (being no export on LaTeX) strange about Bruce's LaTeX output is th= at there is no command \footnote{...} or the like. So is the footnote-part = of the LaTeX output real LaTeX? (Sorry for this na=C3=AFve question.)

I've tested again.
With verbose = I get the same erroneous result: the citation in the footnote is not render= ed (using the development version of org-mode, see below):
INPUT:=

#+LANGUAGE: en
#+latex_header:\usepackage{mi= nted}
#+bibliography_style: plain
#+cite_export: biblatex verbose # Bibliography (bib file) specified within org-ref-cite in the init file
Body text [cite: @ravlic2021; @saric2010 with a SUFFIX][fn:1]
\pri= ntbibliography

#+begin_src emacs-lisp
(org-version)
#+e= nd_src

#+RESULTS:
: 9.5

#+begin_src emacs-lisp
(emacs-v= ersion)
#+end_src

#+RESULTS:
: GNU Emacs 27.2 (build 1, x86_64= -pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
: =C2=A0of 20= 21-06-04

* Footnotes

[fn:1]Test [cite: @senker1987]
=

LaTeX OUTPUT (shortened):

Body text= \autocites{ravlic2021}[][with a SUFFIX]{saric2010}\footnote{Test}

<= br>\printbibliography


As a work= around I insert a zero width space before footnotes in the context describ= ed.


Am Mo., 4. Okt. 2021 um 16:26=C2=A0Uhr schrie= b Bruce D'Arcus <bdarcus@gmail.= com>:
On = Mon, Oct 4, 2021 at 10:11 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
> On Sun, Oct 3, 2021 at 6:23 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wro= te:
> >
> > Hello,
> >
> > Elias Bounatirou <elias.bounatirou@gmail.com> writes:
> >
> > > Just to clarify the BUG:
> > > Citations in a footnote in the following environment are not= exported to
> > > LaTeX: when the footnote follows two or more citations, of w= hich one has a
> > > suffix, i.e. for instance in
> > >
> > > Body text with a citation: [cite:@low2001; @mcneill2011 with= a
> > > suffix][fn:3].
> >
> > I cannot reproduce the problem. With the following document:
> >
> > --8<---------------cut here---------------start-------------&g= t;8---
> > #+bibliography: foo.bibtex
> > #+cite_export: biblatex authoryear
>
> Can you try with a note-based style like verbose?

Now I'm not sure.

Input:

----
#+language: en
#+bibliography: test.bib
#+cite_export: biblatex verbose

Body text with a citation: [cite:@low2001; @mcneill2011; with a suffix][fn:= 1].

#+print_bibliography:

* Footnotes

[fn:1] Third commentary, and then a citation: [cite:@low2001].
---

LaTeX output:

---
Body text with a citation: \autocites(with a
suffix){low2001}[][]{mcneill2011}\relax[1].

\printbibliography



Footnotes
=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80

[1] Third commentary, and then a citation: \autocite{low2001}.
---

But the PDF leaves off the last citation, in the footnote.

Bruce
--000000000000eca2af05cda16ec7--