[tex4ht] Indices don't show up in the Table of Contents

"Jürgen Hubert" jhubert at gmx.de
Sat Mar 14 07:47:08 CET 2020


Since I compile both PDFs and epub documents from the same source files, I noticed something curious:

When creating documents with indices with imakeidx and then generating a table of contents with \tableofcontents , the indices show in the Table of Contents in the PDF document - but not in the epub document.

Here is an example of what I am talking about: "PDFTest.tex" is the PDF-specific code, "EPUBTest.tex" is the epub-specific code, and "Test.tex" is the main text of the document they both use.

https://drive.google.com/drive/folders/1xJR4kAEFmx6aEFrBxNtkuG2y06Y5OT4J?usp=sharing

Now, this isn't a _problem_ as such - the solution (manually adding table of context entries only to the epub version) was so simple that even I could think of it:

https://drive.google.com/drive/folders/1AzZeZNPp9RR8iVwj-Cf62hgztA07OryM?usp=sharing

But I still feel like I should mention this divergence in case it was unintended.

Cheers,

- Jürgen



More information about the tex4ht mailing list.