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>
Subject: Re: Citation not inserted as 1st item in footnote (using org-cite and org-ref-cite)
Date: Tue, 5 Oct 2021 23:39:15 +0200	[thread overview]
Message-ID: <CAOxQc5EFTsF-f8Ph_pLGNzNiNMRAPLWsHr=ChB6JYW0U8_BYew@mail.gmail.com> (raw)
In-Reply-To: <CAF-FPGO-4e8dOm9PyPUXQGk7sfPtyuGypDjk_y49Dg9_N=CDtw@mail.gmail.com>

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

I have looked at the problem that citations cannot be inserted as 1st items
in footnotes once again more closely. It has become obvious for me that
this is indeed a bug of org-cite or rather a default setting which was
deliberately introduced, although it is not really user-friendly or
practical to my mind.

I modified the function org-cite--allowed-p in oc.el  and inserted
'footnote-definition' in the following lines:

;; Paragraphs and blank lines at top of document are fine.
     ((memq type '(nil paragraph footnote-definition)))

(I leave the comment in its original form to make the passage easier to
identify.) 'footnote-definition' by the way does not appear anywhere in
org-cite--allowed-p in its current form.
After this I can easily insert footnotes as 1st items in citations, and I
do not get Org's warning "Cannot insert citation here".

Am Sa., 18. Sept. 2021 um 22:39 Uhr schrieb Bruce D'Arcus <bdarcus@gmail.com
>:

> Elias - do you mean org-cite-insert won't allow this?
>
> [fn:1] [cite:@doe2019].
>
> If yes, I don't see that; it inserts fine.
>
> I'm using bibtex-actions for the insert processor, but I don't think
> that should make any difference, since it's org-cite that's handling
> that.
>
> On Sat, Sep 18, 2021 at 4:23 PM Elias Bounatirou
> <elias.bounatirou@gmail.com> wrote:
> >
> > Hi,
> > When I try to insert a citation as the first item into a
> non-inline-definition footnote, org-ref-cite refuses to insert the citation
> returning in the minibuffer "Cannot insert citation here". The same problem
> does not occur if the footnote has an inline definition. As for
> non-inline-definition footnotes, if I copy the citation into the footnote,
> no problem occurs, either. The citation is also properly exported to LaTeX.
> > Is this a problem of org-cite/org-mode in general or rather of
> org-ref-cite?
> >
> > Best regards,
> > Elias
>

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

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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-18 20:22 Citation not inserted as 1st item in footnote (using org-cite and org-ref-cite) Elias Bounatirou
2021-09-18 20:38 ` Bruce D'Arcus
2021-10-05 21:39   ` Elias Bounatirou [this message]
2021-10-05 21:51     ` Nicolas Goaziou
2021-10-06 12:44       ` Nicolas Goaziou
2021-10-08 13:39         ` Elias Bounatirou
2021-10-09 20:12         ` test-org-cite/list-citations failure (was: Citation not inserted as 1st item in footnote ...) Kyle Meyer
2021-10-09 21:03           ` test-org-cite/list-citations failure Nicolas Goaziou

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='CAOxQc5EFTsF-f8Ph_pLGNzNiNMRAPLWsHr=ChB6JYW0U8_BYew@mail.gmail.com' \
    --to=elias.bounatirou@gmail.com \
    --cc=bdarcus@gmail.com \
    --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).