This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Enumerated sections in Table of Contents


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/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]