Re: [asciidoc-discuss] How to get toc's to show more sublevels?

2007-02-01 Thread Stuart Rackham
Hi Matt

Matt England wrote:
> I'd like to get my table-of-contents (in non-book or article form--I'm not 
> sure of the terminology) to show more sublevels then what it currently does 
> (it only shows 2 levels deep; I want it to show more levels in some of my 
> docs).
> 
> Is this possible?
> 
> Does my question make any sense?

Yes, here's what you need to do:

Add toclevel3 to ./stylesheets/xhtml11.css:

   div.toclevel1, div.toclevel2, toclevel3 {
 margin-top: 0;
 margin-bottom: 0;
   }
   div.toclevel2 {
 margin-left: 2em;
   }
   div.toclevel3 {
 margin-left: 4em;
   }

Change the line in ./javascripts/toc.js from:

   var re = /[hH]([2-3])/;

to:

   var re = /[hH]([2-4])/;

I've gone and added a toclevels attribute for the next release so you
can do e.g.

   $ asciidoc -a toc -a toclevels=3 doc/asciidoc.txt


Cheers, Stuart


> 
> -Matt
> 
> 
> ___
> Asciidoc-discuss mailing list
> [email protected]
> http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss
> 

___
Asciidoc-discuss mailing list
[email protected]
http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss


[asciidoc-discuss] How to get toc's to show more sublevels?

2007-02-01 Thread Matt England
I'd like to get my table-of-contents (in non-book or article form--I'm not 
sure of the terminology) to show more sublevels then what it currently does 
(it only shows 2 levels deep; I want it to show more levels in some of my 
docs).

Is this possible?

Does my question make any sense?

-Matt


___
Asciidoc-discuss mailing list
[email protected]
http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss