I only want to number level 2 sections

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

I only want to number level 2 sections

ysb33r
I am trying something out for a book. Let's say the following

= Book Title
:doctype: book
:toc:

= Part 1

== Topic 1

== Topic 2

= Part 2

== AnotherTopic 1

== AnotherTopic 2

I want to only have the level 2 sections numbered i.e. the TOC will contain something like

Part 1
  1. Topic 1
  2. Topic 2
Part 2
  3. Another Topic 1
  4. Another Topic 2

Is this possible?


Reply | Threaded
Open this post in threaded view
|

Re: I only want to number level 2 sections

ysb33r
I figured out it can be done by surrounding each level 2 as below

:numbered:
== Topic 1
:numbered!:

It is a bit tedious, though.
Reply | Threaded
Open this post in threaded view
|

Re: I only want to number level 2 sections

mojavelinux
Administrator
Also try sectnumlevels

-Dan

On Tue, Sep 23, 2014 at 12:39 PM, ysb33r [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I figured out it can be done by surrounding each level 2 as below

:numbered:
== Topic 1
:numbered!:

It is a bit tedious, though.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/I-only-want-to-number-level-2-sections-tp2268p2269.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--