This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: suppress table of contents
- From: Bob Stayton <bobs at caldera dot com>
- To: Harold Carr <harold dot carr at sun dot com>, docbook at lists dot oasis-open dot org
- Date: Thu, 19 Dec 2002 20:45:17 -0800
- Subject: Re: DOCBOOK: suppress table of contents
- References: <200212191623.gBJGNLY07240@ha2sca-mail1.SFBay.Sun.COM>
On Thu, Dec 19, 2002 at 08:23:21AM -0800, Harold Carr wrote:
> Hello,
>
> How do I suppress the table of contents in a docbook article in the
> html and pdf output?
>
> I'm using:
>
> jdk1.4.1_01/solaris
>
> xalan-j_2_4_1/bin/xalan.jar
> xalan-j_2_4_1/bin/xercesImpl.jar
> xalan-j_2_4_1/bin/xml-apis.jar
>
> docbook-xsl-1.58.1/html/docbook.xsl
> docbook-xsl-1.58.1/fo/docbook.xsl
>
> fop-0.20.4/fop.sh
In both cases, set the parameter 'generate.toc' to
the null string. In Xalan, use this opion:
-param generate.toc ''
That will turn off all tocs for that processing run. If
you want to customize your stylesheet to turn off tocs only
for articles, then copy the full generate.toc parameter from the
fo or html param.xsl file to your respective customization
layer and set:
article nop
to turn off the article TOC.
See this doc for details:
http://www.sagehill.net/xml/docbookxsl/GeneralCustoms.html#TOCcomponents
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com