I would like to achieve that the text of a heading, regardless if there is a number or not, always would be placed 2.5cm from the left margin. If possible, this also should apply to the table of contents.
1.0 Heading
1.1 Other Heading
1.1.1 Just another Heading
1.1.1.1 Well again
^ ^
| +-- Begins at left margin + 2.5cms
|
+-- Begins at left margin
Many thanks! This was exactly what I was looking for. Now I just need to understand, what it does… … and looking at the source this doesn’t seem to be that easy.
I just added box(width: 2.5cm) and grid(columns: (2.5cm, auto)) to make the required space, that’s it. And heading.hanging-indent. The rest are default element implementations.