Section Numbering Levels

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Section Numbering Levels

adrian
Hi all

So it seems that section numbering only applies at three levels by default

= One
== Two
=== Three
==== Four
===== Five
====== Six

Results in

One
1. Two
1.1. Three
1.1.1. Four
Five
Six

Can this default be extended to cover the last two lines
Reply | Threaded
Open this post in threaded view
|

Re: Section Numbering Levels

LightGuardjp
Are you talking about in the TOC? If so, you can change that with toclevels: http://asciidoctor.org/docs/user-manual/#levels

On Tue, Oct 20, 2015 at 1:04 PM, adrian [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all

So it seems that section numbering only applies at three levels by default

= One
== Two
=== Three
==== Four
===== Five
====== Six

Results in

One
1. Two
1.1. Three
1.1.1. Four
Five
Six

Can this default be extended to cover the last two lines


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Section-Numbering-Levels-tp3879.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Section Numbering Levels

adrian
No, I mean when you turn on section numbering with :numbered: I get output like the pic attached Selection_052.png
Reply | Threaded
Open this post in threaded view
|

Re: Section Numbering Levels

mojavelinux
Administrator
You need to set the attribute `sectnumlevels`.

[source,asciidoc]
----
= Document Title (Level 0)
:sectnums:
:sectnumlevels: 5

== Level 1 Section Title

=== Level 2 Section Title

==== Level 3 Section Title

===== Level 4 Section Title

====== Level 5 Section Title

== Another Level 1 Section Title
----

This attribute is not yet documented. Here's the open issue: https://github.com/asciidoctor/asciidoctor.org/issues/383

Cheers,

-Dan

On Tue, Oct 20, 2015 at 7:47 AM, adrian [via Asciidoctor :: Discussion] <[hidden email]> wrote:
No, I mean when you turn on section numbering with :numbered: I get output like the pic attached Selection_052.png


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Section-Numbering-Levels-tp3879p3882.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Section Numbering Levels

adrian
Perfect, thanks Dan