[tex4ht] imakeidx index question

"Jürgen Hubert" jhubert at gmx.de
Mon Feb 17 19:23:35 CET 2020


> Von: "Michal Hoftich" <michal.h21 at gmail.com>
> sorry for the late reply, I was bit exhausted in the last few weeks.
> In the meantime, tex4ht make4ht had been updated in both TeX Live and
> Miktex, so everything should work now. The attached zip file contains
> a TeX file, make4ht build file and generated Epub. It can be compiled
> using
> 
>      tex4ebook -e mybuild.mk4 -m index Test.tex
> 
> Does it work for you?

I can report success - both for the testfile _and_ my larger ebook file! Thank you so much!

If I am interpreting this correctly, this index system generates a numbered location for each \index entry, and then uses these numbers in the hyperlinked index. Since I've been adding a new index entry each time a certain phase shows up in each paragraph, this has led to some overly long index entries such as this:

walrider, 693, 695, 701, 708, 719, 734, 736, 742, 743, 747, 752, 763, 777, 792, 794, 796, 798, 802, 804, 819, 828, 837, 840, 848, 855, 867, 877, 880, 915, 920, 935, 946, 956, 960, 961, 983, 1003, 1006, 1009, 1012, 1017, 1021, 1029, 1030, 2683

The index generated with pdflatex ignores multiple index instances on the same page, and shortens the entry further if the same word shows up on successive pages:

walrider, 49-61, 142

But this is purely a problem on my end - I just have to think differently for how to place index entries for epub files. But I thought I'd share this here so that others know what to expect.

Thanks again,

- Jürgen



More information about the tex4ht mailing list.