Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Numbered sections in Asciidoc can be applied to only a specific portion of the document by using the section attribute.

Here is an example:

= My Document

Text before the numbered section.

[section]
. Section title
Numbered section content.

Text after the numbered section.

== Another section

Content of another section.

In this example, the section attribute is applied to the block containing the section title and content. This will apply the numbering only to this particular section, and not to any other sections in the document.

The result will look like this:

1. Section title
Numbered section content.

Text after the numbered section.

== Another section

Content of another section.