OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Section levels in TOC


Walter Joyce wrote:
> Perfect.  It works.
> 
> Does anyone know how to handle it in the customization layer?

Well, it is not in dbparam.dsl, AFAIK, but you could add something like:

(define %book-toc-depth% 3)
(define %other-toc-depth% 1)

to your driver file, and then change dbautoc.dsl to:

> I believe it is controlled by the following entry in "dbautoc.dsl"
> in the stylesheets:
> 
>   (define (toc-depth nd)
>     (if (string=? (gi nd) (normalize "book"))
>         3
> 1))

(define (toc-depth nd)
    (if (string=? (gi nd) (normalize "book"))
         %book-toc-depth%
         %other-toc-depth%))


-- 
Richard Sharpe, rsharpe@ns.aus.com, LPIC-1
www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba
in 24 Hours, Special Edition, Using Samba



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC