On 10/29/2012 6:30 PM, Lex Trotman wrote:
Asciidoc only knows how to generate 4 levels, offsetting using
:leveloffset: must remain in that range.  :toclevels: sets which
levels show in the toc, it does not generate more levels.

You need to configure both input syntax and the output to be generated
to extend the number of section levels.  Section level 4 uses h5 and
HTML only goes to h6 so you can only add one more level anyway.

Cheers
Lex


and, I'm thinking if we add the "initial level" 5or6 with offset -4, we'll still end up with level 1 or 2, which can then be mapped to h2 or h3. isn't this sound better than the hard coded limitation that even the "initial level" should be within 0-4?

just a thought. not sure how much code work/risk this will bring...but it seems ending up with a bit more flexibilities ---- asciidoc always works as long as your document's "real toc depth" ( Depth(max) - Depth(min) ) is within 4...

//file: temp111.txt
//asciidoc -a toc -a toclevels=10 -a leveloffset=-4 temp111.txt
===== topic1
Ping Sandy <[email protected]>
:toc-title: agenda
:toclevels: 100
:leveloffset: -4

====== sub-topic1
text

======= sub-topic11
text

====== sub-topic2
text

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to