From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 3u+MMVW0gmDmYwAAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 13:49:41 +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 YPhDLFW0gmBgCgAA1q6Kng (envelope-from ) for ; Fri, 23 Apr 2021 11:49:41 +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 1CCC0121D5 for ; Fri, 23 Apr 2021 13:49:41 +0200 (CEST) Received: from localhost ([::1]:53544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZuJW-0006An-SU for larch@yhetil.org; Fri, 23 Apr 2021 07:49:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZuJA-0006A5-25 for emacs-orgmode@gnu.org; Fri, 23 Apr 2021 07:49:16 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:36827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZuJ7-0008CW-Rz for emacs-orgmode@gnu.org; Fri, 23 Apr 2021 07:49:15 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 657D320007; Fri, 23 Apr 2021 11:49:08 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: wip-cite status question and feedback References: <874ktu8gr9.fsf@nicolasgoaziou.fr> <87mu5xpm4x.fsf@gnu.org> <87img81ad7.fsf@gnu.org> <20210324182751.GA8721@atlantis> <87czuzprmh.fsf@nicolasgoaziou.fr> <87sg3neo0k.fsf@nicolasgoaziou.fr> <87eef35h7n.fsf@nicolasgoaziou.fr> <87a6pr5g4m.fsf@nicolasgoaziou.fr> Mail-Followup-To: "Bruce D'Arcus" , =?utf-8?Q?Andr?= =?utf-8?Q?=C3=A1s?= Simonyi , "emacs-orgmode@gnu.org" Date: Fri, 23 Apr 2021 13:49:05 +0200 In-Reply-To: <87a6pr5g4m.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 22 Apr 2021 02:15:21 +0200") Message-ID: <877dkt2pce.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-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_H3=0.001, RCVD_IN_MSPIKE_WL=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: "emacs-orgmode@gnu.org" , =?utf-8?Q?Andr=C3=A1s?= Simonyi 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=1619178581; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=oZqH73/HtnjiL2mV12/bihlVcDDc4xeW6Pwrq4sM5FU=; b=EKchkyKUsdi3lOHVkI8F5gWc/NwPKOW7PacM40nqYJ3r9b/QALjUyoAJ/ppIt/SQBG+r0m 3vUjZLBhyC92wbjJMXxsEyL0VYPdfOXKYLEmX2i0jLTzxTKklANIJjhL1JtBeMLhtYlqAR KAreusivcTrAg05LRqxHq0iYUn9AjbNoZqYXW+BuKYZvLvdTBnNgM25dy8i81xCAcZF7NX qp+rssBqpMH4WKfcvrFbx6O4FFJT8R00N4hHeaywxmImitpYI8MooVo+m0eyfbxufudP/W XEUmfp1yBhnQdbH2IieY2S9wgXVDLPq04weLfxFfOCHjimzYvPGk7G65yhsMFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619178581; a=rsa-sha256; cv=none; b=jr3PGy6AR3JY37LKQo9lrffFDc1AA2SAMe8xeseB3ETacyA+TXu0Wcfq7Y7fpglVwWpcan F3czOhbuDWglKmOiApkVQLsudVhFr8CpQcJJtRsq8tDjqB4aU+MMAGP/pVCD5p7H/RqYMp vAI4o9XBEQ86kJKq+Q+Wrwg6eKfGDE+Y1otFIMd1yAvf77t35mYTcFpEv+KYR1Y3pQ+HOt imMC0Bipf81XDKW0vjI7/5izl24jjpEs0jrGsmYHLFIp9ocDGJXMJ0cgSC34q3+fZsIppO TisdxP2TxTXq0H7vV2xCqmfwHeR9xx+T9FUexuRno2W16A9u4OyCTlZL+YZV3w== 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: -0.94 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: 1CCC0121D5 X-Spam-Score: -0.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: VuG7qdw1vhAo Nicolas Goaziou writes: > "Bruce D'Arcus" writes: > >> In general (conceptually), if you have one footnote in text, and one >> in a footnote, with a note style, both will be rendered as footnotes. >> >> So in an adapted version from earlier: >> >> ---- >> Text 1 [@cite:@a]. >> Text 2[fn:1]. >> >> [fn:1] This is [cite:@b]. >> ---- >> >> Output would put both citations in respective footnotes. > > So it would produce the same output as > > --- > Text 1 [fn::[@cite:@a]]. > Text 2[fn:1]. > > [fn:1] This is [cite:@b]. > --- > > ? > > If that's correct, this requires a specific tool in "oc.el", for example= =20 > > (defun org-cite-wrap-footnote (citation) > "Wrap CITATION object within an anonymous footnote." > ...) > > which can be used upon "exporting" the footnote, after having done > appropriate checks. I went ahead and implemented `org-cite-wrap-citation' function in "oc.el" (from wip-cite-new branch). Here's a quick demo. --8<---------------cut here---------------start------------->8--- (defun ngz-cite-demo-export-citation (citation &rest _) (unless (org-cite-inside-footnote-p citation) (org-cite-wrap-citation citation)) "(Doe, 1999)") (org-cite-register-processor 'demo :export-citation #'ngz-cite-demo-export-citation) --8<---------------cut here---------------end--------------->8--- When I export the following document to ASCII --8<---------------cut here---------------start------------->8--- #+cite_export: demo Regular footnote[fn:1]. Reference outside footnote: [cite:@key] Footnote with a reference[fn:2]. [fn:1] Definition 1 [fn:2] Reference [cite:@key]. --8<---------------cut here---------------end--------------->8--- I get --8<---------------cut here---------------start------------->8--- Regular footnote[1]. Reference outside footnote: [2] Footnote with a reference[3]. Footnotes =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80 [1] Definition 1 [2] (Doe, 1999) [3] Reference (Doe, 1999). --8<---------------cut here---------------end--------------->8--- Regards, --=20 Nicolas Goaziou