[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to auto-renumber chapters
From: |
Gregor Zattler |
Subject: |
Re: How to auto-renumber chapters |
Date: |
Wed, 28 Aug 2024 19:55:32 +0200 |
Hi Sharon,
* Sharon Kimble <boudiccas@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