[quickbook] controlling table of contents

Hello all, Is there a way for more fine control of QuickBook table of contents (toc)? Specifically, I'd like to: 1) Have a toc in the first page with only the sections (no subsections) listed. 2) Then, have a full toc on the second documentation page with all sections and subsections listed. I can use any rev of QuickBook for this. Thanks a lot. --Lorenzo -- View this message in context: http://boost.2283326.n4.nabble.com/boost-quickbook-controlling-table-of-cont... Sent from the Boost - Dev mailing list archive at Nabble.com.

On 26/03/12 14:54, lcaminiti wrote:
Hello all,
Is there a way for more fine control of QuickBook table of contents (toc)?
Specifically, I'd like to: 1) Have a toc in the first page with only the sections (no subsections) listed. 2) Then, have a full toc on the second documentation page with all sections and subsections listed. I can use any rev of QuickBook for this.
Those things are Boostbook-related, Quickbook is just a front-end. Not sure if what you want is directly available, you might have to write your own XML machinery. You can always try the toc.max.depth option.

Hello all,
Is there a way for more fine control of QuickBook table of contents (toc)?
Specifically, I'd like to: 1) Have a toc in the first page with only the sections (no subsections) listed. 2) Then, have a full toc on the second documentation page with all sections and subsections listed. I can use any rev of QuickBook for this.
Those things are Boostbook-related, Quickbook is just a front-end.
Not sure if what you want is directly available, you might have to write your own XML machinery. You can always try the toc.max.depth option.
Look at http://docbook.sourceforge.net/release/xsl/current/doc/html/toc_index.html, if you play around with the options you should be able to get almost anything ;-) HTH, John.

John Maddock-3 wrote
Hello all,
Is there a way for more fine control of QuickBook table of contents (toc)?
Specifically, I'd like to: 1) Have a toc in the first page with only the sections (no subsections) listed. 2) Then, have a full toc on the second documentation page with all sections and subsections listed. I can use any rev of QuickBook for this.
Those things are Boostbook-related, Quickbook is just a front-end.
Not sure if what you want is directly available, you might have to write your own XML machinery. You can always try the toc.max.depth option.
Look at http://docbook.sourceforge.net/release/xsl/current/doc/html/toc_index.html, if you play around with the options you should be able to get almost anything ;-)
Sorry for my limited understanding... I'm trying to move the toc to page 2 instead of the 1st page. I added the following to my Jamfile that generates my docs: <xsl:param>toc.pagenum=2 But the toc is still on the 1st page... What am I doing wrong? Thanks a lot. --Lorenzo -- View this message in context: http://boost.2283326.n4.nabble.com/boost-quickbook-controlling-table-of-cont... Sent from the Boost - Dev mailing list archive at Nabble.com.

Sorry for my limited understanding... I'm trying to move the toc to page 2 instead of the 1st page. I added the following to my Jamfile that generates my docs:
<xsl:param>toc.pagenum=2
But the toc is still on the 1st page... What am I doing wrong?
I don't see any such parameter listed in the stylesheet reference, where did that parameter come from? John.

John Maddock-3 wrote
Sorry for my limited understanding... I'm trying to move the toc to page 2 instead of the 1st page. I added the following to my Jamfile that generates my docs:
<xsl:param>toc.pagenum=2
But the toc is still on the 1st page... What am I doing wrong?
I don't see any such parameter listed in the stylesheet reference, where did that parameter come from?
Again, I'm pretty new to this stuff so sorry if I'm looking at the wrong DocBook docs: http://www.docbook.org/tdg/en/html/toc.html Even if this pagenum doesn't apply, is there a way for me to move the toc to page 2? Thanks a lot! --Lorenzo -- View this message in context: http://boost.2283326.n4.nabble.com/boost-quickbook-controlling-table-of-cont... Sent from the Boost - Dev mailing list archive at Nabble.com.

I don't see any such parameter listed in the stylesheet reference, where did that parameter come from?
Again, I'm pretty new to this stuff so sorry if I'm looking at the wrong DocBook docs:
That's only relavent if you're writing docbook by hand, and even then there's no guarentee that the stylesheets will actually do anything with the attribute. The only customisation you get is via the XSL parameters here: http://docbook.sourceforge.net/release/xsl/current/doc/
Even if this pagenum doesn't apply, is there a way for me to move the toc to page 2?
Not that I know of, but that doesn't mean there isn't ;-) I assume this is FO/PDF output we're talking about BTW? This book: http://www.sagehill.net/docbookxsl/ is also very helpful in cases like this. Otherwise a docbook XSL mailing list might be more helpful that we can be, HTH, John.
participants (3)
-
John Maddock
-
lcaminiti
-
Mathias Gaunard