Section number calculation

Posted by ggenier on
URL: https://discuss.asciidoctor.org/Section-number-calculation-tp7771.html

Hello,

I search for a very long time a solution to my problem.

I have several adoc file with a title. When I include my files in main file, numerotation is not calculate for my subfile.

I need to write title in main document and include my file :

Works :

== Sub section title
--
include::./subsection.adoc[]
--
<<<

Example of subsection.adoc file :
Test subsection

Do not work :
--
include::./subsection.adoc[]
--
<<<

Example of subsection.adoc file :
== Sub section title
Test subsection

Is is possible to take into account section in sub file or all title need to be in main adoc file ?

For my example it's easy to do we first solution but if my sub adoc file has sub section it's more complicated.

Thanks into advance.