= Sample book with index section, but no index terms
Author
:doctype: book
:nofooter:
:toc: left
[[chapter-one]]
== Chapter one
// indexterm2:[Lancelot] was one of the Knights of the Round Table.
// indexterm:[knight, Knight of the Round Table, Lancelot]
[[the-index]]
[index]
== Index
[[the-glossary]]
[glossary]
== Glossary
[[the-bibliography]]
[bibliography]
== Bibliography
[[the-colophon]]
[colophon]
== Colophon
The TOC does not show the index section, nor the PDF has it.
The TOC shows the Glossary section, but the PDF does not have it, and its page shows up as ? in the TOC page.
Now with the index terms uncommented:
= Sample book with index section, and with index terms
Author
:doctype: book
:nofooter:
:toc: left
[[chapter-one]]
== Chapter one
indexterm2:[Lancelot] was one of the Knights of the Round Table.
indexterm:[knight, Knight of the Round Table, Lancelot]
[[the-index]]
[index]
== Index
[[the-glossary]]
[glossary]
== Glossary
[[the-bibliography]]
[bibliography]
== Bibliography
[[the-colophon]]
[colophon]
== Colophon
The TOC shows the index section, and the PDF has it.
The TOC shows the Glossary section, the PDF has it, and its page shows up correctly in the TOC page.
Versions:
Source, with commented index terms:
Output: index-with-no-terms.pdf
The TOC does not show the index section, nor the PDF has it. The TOC shows the Glossary section, but the PDF does not have it, and its page shows up as
?
in the TOC page.Now with the index terms uncommented:
Output: index-with-terms.pdf
The TOC shows the index section, and the PDF has it. The TOC shows the Glossary section, the PDF has it, and its page shows up correctly in the TOC page.