This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Enumerated sections in Table of Contents
- To: howard mann <howardm at xmission dot com>
- Subject: Re: DOCBOOK: Enumerated sections in Table of Contents
- From: Adam Di Carlo <adam at onshore dot com>
- Date: 21 Oct 1999 11:02:45 -0400
- Cc: docbook at lists dot oasis-open dot org
- References: <380E7DA7.C97F3532@xmission.com>
- Reply-To: docbook at lists dot oasis-open dot org
howard mann <howardm@xmission.com> writes:
> How do I get the relevant subsections to appear in the Table of
> Contents, numbered or otherwise.
Here is what I use:
;; Returns the depth of auto TOC that should be made at the nd-level
(define (toc-depth nd)
(if (string=? (gi nd) (normalize "book"))
3 ; default of 7 is too deep
1))
If it's not a book, set that final 1 to whatever value you like.
--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>