Question

I am using DocBook 4.5 and wanted to customize whether or not the table of contents is generated. I was looking over the XSD but couldn't find a way to disable it. I found ways to customize it.

Could someone point me in the right direction?

Was it helpful?

Solution

In both Docbook 2 and Docbook 5 the toc element documenation says:

"In real life, tocs are usually generated automatically by the presentation system and never have to be represented explicitly in the document source."

So the next question is, which presentation system are you using?


Since you're using FOP (which I haven't used too much), I get the impression from this documentation that you can just pass generate.toc=nop on the command line to suppress building a table of contents. See also this Google groups page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top