From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: how to renumber footnotes? Date: Fri, 17 Apr 2020 11:05:23 +0100 Message-ID: <87a73av34s.fsf@skimble.plus.com> References: <87v9lyvk3z.fsf@skimble.plus.com> <87mu7aycm5.fsf@ebih.ebihd> <87a73aaar5.fsf@hillenius.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="40114"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?G=C4=B3s?= Hillenius Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 17 12:06:00 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPNsl-000AJ8-JI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 12:05:59 +0200 Original-Received: from localhost ([::1]:44916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPNsk-0004em-Ib for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 06:05:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35484) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPNsQ-0004dB-U6 for help-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:05:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPNsP-00052o-LC for help-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:05:38 -0400 Original-Received: from avasout06.plus.net ([212.159.14.18]:45360) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jPNsP-0004zw-7K for help-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:05:37 -0400 Original-Received: from london.london ([147.147.30.144]) by smtp with ESMTPA id PNsLjGXNqCZ5EPNsMjfYAp; Fri, 17 Apr 2020 11:05:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019; t=1587117935; bh=72QxhgY7QGVpqi9xGbayGgzC5DogC4PYEYCBGU/OnOY=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=IzdaM9AX39hh/aFrc/p0WzNRjXyYKwUf1b5uQNuKx06nxgAVaolWhmDNYHZeadFlb fnr0VSbd29wHGzl8wdmJnMlO6zvl2GwL2fIaXzrVGMY15yToODKqY3aPgdLSfg1GZr 8AN3p7IsIGItM/5ck6j8YZlGxO4/n0BABSz9GfQkoiavzyfWuggl0mUkBEZLOpEikR Irs13OPC292Cyut8CK24/0ZztpOxyOBpAKayTA3NDvPMfbCWEg6VLIH7jSdrt7hPSz CRXQgB0s3Ftk9s82Yx2IRbEBbwF6NJSY98Naid8CcycJlwbPFbSHtAPlxZGJ5stZu1 F3RSkTe++Yw4Q== X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=L/qGv9b8 c=1 sm=1 tr=0 a=mfde8XM5OSjOt+FlnmF8Qw==:117 a=mfde8XM5OSjOt+FlnmF8Qw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=0iQYfKXXAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=wZ8MyYL3Q7fvGMsbhEwA:9 a=yP5YFNLHVVjql9KN:21 a=gUJ8tPmd2w4kFQZS:21 a=QEXdDO2ut3YA:10 a=NobwVVGNvMkK92VmjQQo:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: <87a73aaar5.fsf@hillenius.net> (=?utf-8?Q?=22G=C4=B3s?= Hillenius"'s message of "Fri, 17 Apr 2020 08:26:22 +0200") X-CMAE-Envelope: MS4wfMrPIl40U4/MChEK7j3enSTyonaEFgBODU+aAWZcIOgdWOGQtbyFSPdv24iYM6oOc4NJ2ELxWvHMCuo3wN/zB0Nu6U65aN/ctMgbfOgvhubCKU49HmUz HvgeTnH+d/1k8w756x/9cVpRWIEasBJKFqDXA+J60TArPqSTjz0tzzktb69F9Z0cH/zYZ0LQEgcUAw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122861 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 G=C4=B3s Hillenius writes: > On 17 April 2020 06:12 Emanuel Berg, wrote: > >> Sharon Kimble wrote: >> >>> I have 2 org-mode documents called 'file-a' and >>> 'file-b', and both have got several hundred footnotes >>> starting with 1. I'm adding file-b on to the end of >>> file-a, and trying to renumber the footnotes, so that >>> even if file-a has 354 footnotes, and file-b has 421 >>> footnotes, the whole file renumbers the footnotes and >>> continues on from 354 to 355, 356, 357, etc >>> and onwards. >>> >>> But how can I do this please? The org-mode footnote >>> program can't do it [...] > > I'm not seeing the whole message here, and perhaps you tried this > already: > > "prefix argument C-c C-x f r"[enumber] and once more, with s[ort] > > and if so, did that not work? To achieve the footnote menu you need to do 'C-u C-c C-x f r', and neither does footnote renumber or footnote sort achieve my desired aim. org-footnote can't tell that footnote 1 ([fn:1]) at the beginning is in the right place when confronted with footnote 1 ([fn:1]) half-way through! Which is why I'm looking for some other solution, and I believe that it might be able to be achieved programmatically. Unfortunately my lisp skills are almost nil, hence my request for someone to help. Thanks Sharon.=20=20 =2D --=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk Debian 10.2, fluxbox 1.3.7, emacs 27.0.90, org 9.3.6 =2D----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl6Zf2QbHGJvdWRpY2Nh c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbODMP/2v7lPYdsqMZXiHkybzN yXhs5c4TuxgGxKr5BOa7bA/nd5BipLC9zIWGGKnJLkp3+2mfyjTcjTRMiViJ4ZzP uw+bvtm816vcPPLjkd70Q/GRHi5WNYNcNIhjAYrSLY4Ue7tQPmbofYXG+xqoayau ucESW4frhn8Y3r/4cGKa/L5K47E8/tvxeeHy3FFelEf83N5PBUx50xO3RzaSqWLf J+LbNpc9kjHKYoYf+ledktbly3N7Zl6IzHgCpk6/38rHIi/RG2IvSHICdi1Fc0Nc sg0JUM7cJ4e868JXykN1jw9GqE4L3ntVZfGfiljQ5mYp/f3oo+ialzmlXr7nK9Jd 7XlhhE/l5TGPudg8bzbhTDXbVKh1DWQ4XCQ5hUZi1KIpCGKfsqV5pp7zTt6Ucv2J ENKX6+52QZ0mT+S8VJs2lhwzdK6uxY5DaAs5ECaFjq0O6VO8CbQiSipTnEK1HrSM Y5dotUtD3Nz0G+1Use+KdRyY6FUN6wRV/eH3HNSABse8KKrZjHYDqsunlATTXt/5 j7qXHr4xosQQ1JrImQtbLuMruJsLYBdfzXiH5WOQT2hH4TspvnHLu+iN/Ljkn0B+ fTkJXXutLShO7M9uvq7CJ2wRGhbdwInPtic/RhnrhR3w/wEG1Fnc55X1Uflwt6q3 flzY7P0ppgCjnlwHBbAxKywJ =3DNw70 =2D----END PGP SIGNATURE-----