all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to renumber footnotes?
Date: Fri, 17 Apr 2020 11:16:06 +0100	[thread overview]
Message-ID: <875zdyto2h.fsf@skimble.plus.com> (raw)
In-Reply-To: <87mu7aycm5.fsf@ebih.ebihd> (Emanuel Berg via Users list for the's message of "Fri, 17 Apr 2020 06:12:18 +0200")

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:

> 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 [...]
>
> Yes, all tho I'm not an org-mode user, I'm pretty sure
> it can :) Else that would be plain horrible.

You're right, it is horrible! org-mode cannot differentiate between
[fn:1] at the beginning is different from [fn:1] halfway through! And so
with all the other footnotes!
  
> How do you make a reference/footnote in org-mode?
> Because if its all good in document A, and all good in
> document B, you should be able to just merge A an B into
> a new document AB and then get correct footnotes. (here,
> merge = find-file AB, yank A, yank B, org-mode does its
> thing -> correct footnotes)

I copy file-b and paste it into file-a, and the renumbering of the
footnotes does not take place, for the reason I explained earlier.

Hence my request for someone to help programmatically. I believe that if
the script looks back at say 3 previous footnotes, stores the numbers
into a string/variable, and then commences footnote renumbering from the
highest number in the string/variable. So the second footnote [fn:1] is
changed to [fn:315] and onwards. But I'm not a programmer, hence my
request for programming help.

Thanks
  Sharon.  
- -- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.2, fluxbox 1.3.7, emacs 27.0.90, org 9.3.6
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl6ZgeYbHGJvdWRpY2Nh
c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbyVMP/juI1jqvxpcYNo6GM3mW
biyqJ7xBrr7mRA8EM6AQK1j+cyHmwE/jU3uzsYcoqnjdQ7UVqPk8xJPWhJ3NRn3O
FERjxQLslFHAoKB/lZhjAw0SCuennayXXmUaeFm21yR26U7c/S1Z3xTTCH1fxPEC
doQVnsT0E93g8QRHe9UsybI6+B0OEKBg8GQIQCP0++QBZ8fojxzHRjmKCfVTRQhs
4APOe6e3w+4ZRUaf3KgJX4NUNaXka/mXFQtBByZ3UtSUnKOAzoqJqk5kti2NLNUo
zZ9wlQkbVr1iDv09IVVo6izRlmsQaTX5FDfP8t/2579mAPxgsAVWkByRotl6tjqd
lBE1bcrYcVZLuYqo1CsKsVSFqzN76pbhNFqs0F5yEd/f1JE4UUxHiDAi4SuHCZn9
SlJYRAzXpF8z0GDbfPGYekKxRyOLI1oHF/2d4tN01vso/X2tlrwl6N+E/HMV6fXb
gLl8ePet5kusJqDl4FU2namh0YZxa8RnPXww3e2bI+9R8FrWUQxqEC6WEvFWzND9
cKv01NnWV7BkcKdQ/A9h7CLo/iIDroL7qdbXD3pxKyjKH1lUtMvBBz5KMevZ3/rg
gP3VjydyHhxA1U/r58tG9wDDwgGh2bhwi+WmDDC76yEkkKDVy009F1c026rnIWNG
PT0FpU2jvLMXqjFyXCVhkqlO
=AIv5
-----END PGP SIGNATURE-----



  parent reply	other threads:[~2020-04-17 10:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17  3:58 how to renumber footnotes? Sharon Kimble
2020-04-17  4:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
     [not found]   ` <mailman.453.1587096748.3066.help-gnu-emacs@gnu.org>
2020-04-17  6:26     ` Gijs Hillenius
2020-04-17 10:05       ` Sharon Kimble
2020-04-17 12:10         ` Gijs Hillenius
2020-04-17 12:45           ` Giovanni Bono
2020-04-17 13:53             ` Giovanni Bono
2020-04-17 12:45           ` Stephen Berman
     [not found]         ` <87d086s8q3.fsf@fastmail.fm>
2020-04-18  7:14           ` Fwd: " Joost Kremers
2020-04-18 15:53             ` Kyle Meyer
2020-04-17 10:16   ` Sharon Kimble [this message]
2020-04-18  1:37     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-04-17 16:10 ` Andreas Röhler
2020-04-17 17:03   ` Sharon Kimble
2020-04-17 19:16     ` Andreas Röhler
2020-04-18  6:06     ` Andreas Röhler
2020-04-18  9:00     ` Andreas Röhler
2020-04-19 15:00 ` Andreas Röhler

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zdyto2h.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.