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 wFa8Dk3GXGGDKQEAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 23:40:29 +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 KN91Ck3GXGFjRwAA1q6Kng (envelope-from ) for ; Tue, 05 Oct 2021 21:40:29 +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 6213B9EED for ; Tue, 5 Oct 2021 23:40:28 +0200 (CEST) Received: from localhost ([::1]:36132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXsAl-0000FI-DQ for larch@yhetil.org; Tue, 05 Oct 2021 17:40:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXs9p-0000F5-E0 for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 17:39:30 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:37549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXs9n-0001ih-3T for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 17:39:28 -0400 Received: by mail-ed1-x52a.google.com with SMTP id f9so1998998edx.4 for ; Tue, 05 Oct 2021 14:39:26 -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=6tydZMYQCSPebBxTecEtZKLKhwNJFk6W/KTdLCk1T0g=; b=U2RKeirENwvdI68VW8aM94a2CIkrVrEwQobCdRgy37Bpf52lBYXyf2p6m0wDpH/3H7 9RHE5VxoxM9oihn+mI4nbZfYO8nAhp7k29DRCehfGsAjgq2P6UKYENIkyp7lePVTxgUk +8qhDusAUeFlr/FB+OrWcr87mfRwzhP2yGt5X9x/Kap4FUa+7fn0z4KufXtzCBHQTdno UzYPKNJVNE2vj5Zg4YRRZaRiX64MQw3VtA/jrgoVO0oX1VXpJmU95hh0NubcL1W9/aTY p1ykUwxJIhFBopR/DdIBdLKOuNQmS6SSkjtvpRB7/yIQt1/knZkUqAVXG5CoTNNMePuV 1Y+Q== 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=6tydZMYQCSPebBxTecEtZKLKhwNJFk6W/KTdLCk1T0g=; b=LI5WEOdTJobi+7f4T9j6Ue17sZy45RWDxgok+5vQzdp7Xz7dOc0hQeP6hFHRVPW3A2 t55JdB4Sm4qQ72kS81mh+/ijR4m97+Rv/5WavcxCyW+cneL2Pxte6xPJjyigzVz8lq9B nSwcSO2pN65MzGERzgIHLnrLqu0unAtWm7tdKBGn2L798dO1zBFtfNLK/bfLXXdp4CZ9 Awi4ba3hxvJiKiT7dlbiNCtIOq6SXuM+r54pPKNB6yw6dypHsfe3RZG5PDHpq+Dr4Kv8 65+LPZY6HxaERjFU6IUA0kEcXig0v4zHz9GGFF95m8kwGVq8GO6fr3bjqkjVDN3xMrtx I47A== X-Gm-Message-State: AOAM532TfVxiWB4Ay6jNDcAviwP8e6lnqIyeAQfuyZCHiUOiIvVKAMBe KotowdZhUcV7jhjbIs96Lx2cezVj2qLnx3xOQjU= X-Google-Smtp-Source: ABdhPJyTdxAe3u2S/KIHc9QMWjYwivsgP9oXJcwnPWFjJbhDbJv1ixUMKuRtECVEPCp8Jn/8GWIy0BqDaREIsXyC2IY= X-Received: by 2002:a17:906:1299:: with SMTP id k25mr27779512ejb.139.1633469965494; Tue, 05 Oct 2021 14:39:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Elias Bounatirou Date: Tue, 5 Oct 2021 23:39:15 +0200 Message-ID: Subject: Re: Citation not inserted as 1st item in footnote (using org-cite and org-ref-cite) To: "Bruce D'Arcus" Content-Type: multipart/alternative; boundary="0000000000000b6b5905cda1dd19" Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=elias.bounatirou@gmail.com; helo=mail-ed1-x52a.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 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=1633470028; 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=6tydZMYQCSPebBxTecEtZKLKhwNJFk6W/KTdLCk1T0g=; b=OvLtBsBGm6ocVnpiujqDZcDm4TmsHCBIPirZiB82cfgAIlt6Zp9Ucr747yoe5n7XYOcb9I /I45gvqD69+HuLAu0hn3p/elXZtGhumBKkPhq0UIjO0PlC9TzSh2gfxld4c/8NHQxGnm0w yYatXSLL7JyVnXN2Wjx9gM+B21t6uEVMQHOGAm4gKNvIH8DZIgjzI2xRR0tmqpWoTLRtj3 885Q14GHywDLUkcNqwUYnfgXtk/Ff6vTIwsueSOiLaf2kj7rdUm0q5u7rwPgUHjJBlAA6P aaN+xfP0fkPMCbc4JU7rSp670k0xxD/JbWfGhvP2wUvG/UKtUroY0LEW92/gQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633470028; a=rsa-sha256; cv=none; b=NbF0Ciz7ajVgES8Y3i2v/ROZRrCRNG3HQ9cpdSP43Xx5NUmne7hBytfBHPvc0Q2gbYN+dn HjDy0r7C4J/4emmtXGBKbam1sX8d/tTOJdh6xjRaT5MnnpEkPk0kHiKzeA941ZQmKaDRdI DLXor7evOExf0nN7djh8MZsnSWXyG93wEIV2abIa9t845iDzS7EfXMDnjgdmE0BZN3ftvx i9AA7MxrPnvIOJMBHLhZwwg4Ec5x2nSPQWab8162cqYoCkUzToIM+cPEwxkMRwsArVjEyU 5NDFZ+225bSS2OaLULfOcPpex2jJZObZAAejkDTE29AfU72AeAXk5x4XLRk84Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U2RKeirE; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U2RKeirE; dmarc=pass (policy=none) header.from=gmail.com; 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: 6213B9EED X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: xvlhP1tXz2qY --0000000000000b6b5905cda1dd19 Content-Type: text/plain; charset="UTF-8" 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 : > 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 > 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 > --0000000000000b6b5905cda1dd19 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 se= tting which was deliberately introduced, although it is not really user-fri= endly or practical to my mind.

I modified the= function org-cite--allowed-p in oc.el=C2=A0 and inserted 'footnote-def= inition' in the following lines:

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

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

Am Sa., 18. Sep= t. 2021 um 22:39=C2=A0Uhr 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 thin= k
that should make any difference, since it's org-cite that's handlin= g
that.

On Sat, Sep 18, 2021 at 4:23 PM Elias Bounatirou
<elias.b= ounatirou@gmail.com> wrote:
>
> Hi,
> When I try to insert a citation as the first item into a non-inline-de= finition footnote, org-ref-cite refuses to insert the citation returning in= the minibuffer "Cannot insert citation here". The same problem d= oes not occur if the footnote has an inline definition. As for non-inline-d= efinition footnotes, if I copy the citation into the footnote, no problem o= ccurs, 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
--0000000000000b6b5905cda1dd19--