Ask Your Question
3

How can numbered sections be applied to only a specific portion of the Asciidoc document?

asked 2022-08-10 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-08-12 11:00:00 +0000

bukephalos gravatar image

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.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-10 11:00:00 +0000

Seen: 11 times

Last updated: Aug 12 '21