Disable table of contents for documents

2019-08-05 07:12发布

问题:

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?

回答1:

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.