#Start numbering from level 2 heading

11 messages · Page 1 of 1 (latest)

vestal yarrow
#

Would it be possible to get a heading numbering like this ? Which start from level 2 heading. In this case level 1 heading will be like a chapter.
And of course level 1 heading need to appear in the table of content.

#

Start numbering from level 2 heading

cunning berry
#

you mean the chapter would be a level 1 heading?

vestal yarrow
#

Yes 🙂

cunning berry
#

yeah it's certainly possible

vestal yarrow
#

I would like to use thise pattern : #set heading(numbering: "I.a.i -")

#

currently I get this

cunning berry
#

?render

#set heading(numbering: (..numbers) => {
  let numbers = numbers.pos().slice(1)  // get rid of the first one
  if numbers.len() > 0 {
    numbering("I.a.i -", ..numbers)  // return the generated numbering (with all but the first one)
  }
})

#outline(indent: 2em)

= My Chapter

== Test

== Test

=== Testy test

=== Testy test

==== Testy test test
cunning berry
#

there we go 👍

vestal yarrow
#

This is perfect !
Thanks a lot !