Is there a way to set/change a chapter number?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to set/change a chapter number?

wolf
Hello,

We maintain each chapter in its own file (1.adoc, 2.adoc) and we render them separately (we don't use a main file that includes them).

When we render each chapter on its own, we'd like the sections to be numbered according to that chapter. If we render 2.adoc, we'd like the sections to be numbered as: 2.1, 2,2, 2.3, ...

Setting the :sectnums: on the 2.adoc document makes the sections numbered as: 1, 2, 3

Is there a way to set the chapter number in individual documents and make the sections numbered according to it?
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to set/change a chapter number?

1marc1
Wolf,

Out of curiosity, why do you render the individual files and not all files as part of a larger document?

Marc.