Hello,
I would to numerate my heading instead of 1.1.1.1 in the format that it would correspond like the following:
- -> Chapter 1
1.1. -> Subchapter 1 - -> Chapter 2
2.1. -> Subchapter 1
2.2. -> Subchapter 2
I have the following but it does not work properly:
#set heading(numbering: "1.1.1")
#show heading.where(level: 1): it => block(width:100%)[
#set text(20pt, fill: rgb(119, 184, 0), weight: "bold")
#block[
Top #counter(heading.where(level: 1)).display(): #it.body
]
]
#show heading.where(level: 2): it => block(width:100%)[
#set text(15pt, fill: rgb(119, 184, 0), style: "normal")
#locate(loc => {
let chapter = counter(heading.where(level: 2)).at(loc).first()
})
#block[
#counter(heading.where(level:2)).display() #it.body
]
]