emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Elias Bounatirou <elias.bounatirou@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>,
	Bruce D'Arcus <bdarcus@gmail.com>
Subject: Re: Citation not inserted as 1st item in footnote (using org-cite and org-ref-cite)
Date: Tue, 05 Oct 2021 23:51:19 +0200	[thread overview]
Message-ID: <8735pfm97s.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAOxQc5EFTsF-f8Ph_pLGNzNiNMRAPLWsHr=ChB6JYW0U8_BYew@mail.gmail.com> (Elias Bounatirou's message of "Tue, 5 Oct 2021 23:39:15 +0200")

Hello,

Elias Bounatirou <elias.bounatirou@gmail.com> writes:

> 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.

This is not intentional.

> 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)))

This allows one to insert a citation in the middle of the citation
number, which is not desirable either. IOW, an additional check is
required.

Regards,
-- 
Nicolas Goaziou


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

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-18 20:22 Elias Bounatirou
2021-09-18 20:38 ` Bruce D'Arcus
2021-10-05 21:39   ` Elias Bounatirou
2021-10-05 21:51     ` Nicolas Goaziou [this message]
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=8735pfm97s.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=bdarcus@gmail.com \
    --cc=elias.bounatirou@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).