Re: How to create the TOC

Subject: Re: How to create the TOC
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Mon, 30 Aug 1999 07:04:54 -0400
/ Jany Quintard <quintard.j@xxxxxx> was heard to say:
| > Read through the docbook stylesheets, they are very good, even if a
| > bit complex.  See <http://www.nwalsh.com/>.
| For a beginner, they are a bit complex. The Paul Pescods tutorial
| contained an example which is maybe a better way to get in the job. 
| It has moved to http://www.prescod.net/dsssl

There are (at least) two different ways to do it. The DocBook stylesheets
explicitly walk through the nodelists of the children of the elements
in the document. This is the manual, recursive approach.

The other way to do it is to define a mode that prints nothing but the
TOC elements and simply call (process-children) from the root element
in that mode. Constructed carefully, that'll do the right thing.

The latter is probably the simpler algorithm, but I moved away from
it years ago in DocBook. And I don't remember why.

| > >     Question two. How to use rtf/winword styles (headind1, 2 etc.)
| ...
| > Dunno about this one.
| Well, not better here. :-(

You can't. Well, you can use the head* styles on headings by setting
the right property, but Jade builds RTF from primitives not styles.
Alas.

                                        Cheers,
                                          norm

-- 
Norman Walsh <ndw@xxxxxxxxxx>      | My problems start when the smarter
http://nwalsh.com/                 | bears and the dumber visitors
                                   | intersect.--Steve Thompson,
                                   | wildlife biologist at Yosemite
                                   | National Park


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread