Heading names starting with 'Chapter' except when unnumbered

Hello, your question reminds me of Adding text to *some* level 1 headings.

Could you share whether that is useful to you and what more you require for your specific use case?


For now, if I do so, I still have “Chapter x”, where x is the number of the previous numbered heading.

Since you’re using second-level headings, is x the number of the previous second-level numbered heading? For example:

= First-level

== Second-level unnumbered

== Second-level numbered

= First-level

== Second-level unnumbered

== Second-level numbered

What would this be?

Within first-levels?    Across first-levels?

Pt. 1                ||          Pt. 1
  -                  ||            -
  Chapter 1          ||            Chapter 1
                     ||
Pt. 2                ||          Pt. 2
  -                  ||            -
  Chapter 1       <─ or ─>         Chapter 2

Please also consider using typc for the snippet you added.