help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to renumber footnotes?


From: Gijs Hillenius
Subject: Re: how to renumber footnotes?
Date: Fri, 17 Apr 2020 14:10:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

[...]

> 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.

Ah!

Suppose file A has 372 footnotes, and B has another x. I would create a
macro that I start just ahead of the second [fn:1], and that adds 372 to
[fn:1] so it becomes [fn:373] and repeat that to x.

It might take you a few tries, but something like put point at the
second [fn:1] c-X ( to start recording the macro, search for [fn: copy
the 1 (+ "yank" 273) paste (<-- I'm missing a step here, I bet), and
then end the macro-recording with C-x ).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]