From: Duncan L. <du...@li...> - 2006-04-03 22:56:32
|
On Mon, 2006-04-03 at 13:25 -0700, Brian Matherly wrote: > I've actually been thinking about trying to implement a table of contents extension to the report system. I've had a really hard time finding documentation on how to create indexes in OO and examples of documents with it working. > > If anyone knows of any good resources, please share. Apart from their email lists I can't help with resources. I've almost got it to work in OOo, the problem is the DDR-First-Entry and DAR-First_Entry style tags. I can get an automatic TOC which looks basically like this: Table of Contents Descendant Report for Thomas McDonald 1 Generation 1 1 Generation 2 1 Generation 3 2 Generation 4 4 Generation 5 8 Descendant Report for William Lithgow 20 Generation 1 20 Generation 2 20 Generation 3 21 Generation 4 23 What I want, and _could_ get if we can change the python code a wee bit is this: Table of Contents Descendant Report for Thomas McDonald 1 Generation 1 1 1. Thomas McDonald. Generation 2 1 11. Margaret McDonald. Generation 3 2 111. Jane (Ginny) MacRae. 112. John Stuart (Jack) MacRae. 113. Annie MacRae. etc... The only thing in the way of this is that DDR-First-Entry and DAR-First_Entry style tags cover the entire text of the first entry, not just the number and name. If it was just the number and name, then the TOC above would be easy. Do you know how to change that, I'd love a hack... Duncan |