From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EJoLNhjJXGFuLgEAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 23:52:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wHiLMRjJXGEEeAAAbx9fmQ (envelope-from ) for ; Tue, 05 Oct 2021 21:52:24 +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 30581A407 for ; Tue, 5 Oct 2021 23:52:24 +0200 (CEST) Received: from localhost ([::1]:42552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXsMJ-0005HV-A5 for larch@yhetil.org; Tue, 05 Oct 2021 17:52:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXsLQ-0005Bc-AQ for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 17:51:28 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:48411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXsLO-0007rs-5Y for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 17:51:28 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 8BA311C0005; Tue, 5 Oct 2021 21:51:21 +0000 (UTC) From: Nicolas Goaziou To: Elias Bounatirou Subject: Re: Citation not inserted as 1st item in footnote (using org-cite and org-ref-cite) References: Date: Tue, 05 Oct 2021 23:51:19 +0200 In-Reply-To: (Elias Bounatirou's message of "Tue, 5 Oct 2021 23:39:15 +0200") Message-ID: <8735pfm97s.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.197; envelope-from=mail@nicolasgoaziou.fr; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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 , Bruce D'Arcus 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=1633470744; 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; bh=VlKsUFyRX71gtGwEYKT/r+mWyfGG0lS0why4+U1JpV4=; b=alV/rvkjhUNkCBp6JDd3dVAshIGiT35ptlXOG4fVZ2Xx6ICkHRPCKOE/z9AqMZqG7ALlZ5 y0XCCsg49IUHFt/uOAx41pqPsG42kcIQ0zzvnRImSX5aOBOrbCSDWGd/Z8TxRsvjynRu9p orAW3C+8jjA09uBLTuWKxw/FPIrV96IHoh7nlTKgaJXW90FtGbJ3xUC6/CzooJmsrT7MPW X27ZkPv/sglzHwOAuKkd3u6nfmdtYxnpLIus8/P9IAO7cg5akWn4QAFz+rXvc6/eDZjh1z vDAk1fo5cw46mzPv/Z/MTZxBbCV2qxvlKw1JBQPoZ3FRHnEigbh5tuwm0Lh4+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633470744; a=rsa-sha256; cv=none; b=WIuf/HT7R13E77vlFVn3S8Hx1S+8mVMp0CqWgbxDYhzT/a7BfHJdBtu7AWynXAaoESmrOZ S+SsaF6Md9vmuWWuM0dK+DjVXB6Eu894+V9E9wqgVh6LklYjUry7J33lUAhrnmFkbNhp8p +RK3OquXVG0j0I6iA86WOb9XY1WH2mgjrB+JV+BljlZrWrknf4YFzhb4kc/lo1onMX5DVc /3jCrdh3ZAsMhJyLK8ZswLgtoEguV7MquOjJeiFWwezQF+9m7PlNyDvHxYidej9eJeO83Q eAqRNOtk9H2RC0M5BExUyM01YOrPvDEPy2ec+pbpI2J5E6YEw+o/BgAZKM7U1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 30581A407 X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ix0zt0cb/pHk Hello, Elias Bounatirou 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