Hi Sharon,
* Sharon Kimble <boudic...@skimble09.plus.com> [2024-08-28; 09:41 +01]:
> I'm writing a fiction book, and have just added several chapters from a 
> previous draft to it.
>
> As a result I now have
>
> ** Chapter 2
> blah     
>
> ** Chapter 2
> blah de blah
>
> ** Chapter 3
> more blahing
>
> How can I get these new chapters to autorenumber themselves please, so that 
> they will show Chapter 2, Chapter 3 and Chapter 4?        

András' solution shows emacs' greatness.

But it might be easier to get rid of
numbers in the /text/ of headings and
instead do M-x org-num-mode, which
dynamically shows heading numbers like

1. Heading
2. Heading
   1.1 Heading

...

with default settings.  There plenty of
possibilities for configuration, see
(info "(org)Dynamic Headline Numbering")
[evaluate after the last closing parenthesis]
or the commentary section of org-num.el


Ciao; Gregor 

Reply via email to