emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Elias Bounatirou <elias.bounatirou@gmail.com>
To: "Bruce D'Arcus" <bdarcus@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: Citation in footnote not expanded/exported to LaTeX (using Org-ref-cite)
Date: Tue, 5 Oct 2021 23:08:27 +0200	[thread overview]
Message-ID: <CAOxQc5F7nzNwFd0oA4Aoy1R_+5iNoHr0L6JiV+Y8mz+R6rmzsg@mail.gmail.com> (raw)
In-Reply-To: <CAF-FPGO9p4j1dJ7_H4qQc1p8HSxZef+xqq-pXHpYmc0u7QfMPQ@mail.gmail.com>

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

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ïve 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 <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>
> wrote:
> > >
> > > 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 which 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------------->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
> ─────────
>
> [1] Third commentary, and then a citation: \autocite{low2001}.
> ---
>
> But the PDF leaves off the last citation, in the footnote.
>
> Bruce
>

[-- Attachment #2: Type: text/html, Size: 4313 bytes --]

  reply	other threads:[~2021-10-05 21:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 10:03 Citation in footnote not expanded/exported to LaTeX (using Org-ref-cite) Elias Bounatirou
2021-09-06 11:50 ` Bruce D'Arcus
2021-09-06 15:45   ` Bruce D'Arcus
2021-09-07  8:21     ` Elias Bounatirou
2021-10-03 22:23       ` Nicolas Goaziou
2021-10-04 14:11         ` Bruce D'Arcus
2021-10-04 14:26           ` Bruce D'Arcus
2021-10-05 21:08             ` Elias Bounatirou [this message]
2021-10-06 14:13               ` Nicolas Goaziou
2021-10-08 13:33                 ` Elias Bounatirou

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=CAOxQc5F7nzNwFd0oA4Aoy1R_+5iNoHr0L6JiV+Y8mz+R6rmzsg@mail.gmail.com \
    --to=elias.bounatirou@gmail.com \
    --cc=bdarcus@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).