Disable table of contents for documents

2019-08-05 06:39发布

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条回答
Fickle 薄情
2楼-- · 2019-08-05 07:26

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.

查看更多
登录 后发表回答