[tex4ht] imakeidx weirdness with numbered entries

Michal Hoftich michal.h21 at gmail.com
Mon Mar 3 15:22:49 CET 2025


That's good to hear. Because of all the edge cases, the indexing code
starts to become quite complex. I think I will need to rethink and rewrite
it someday :(

Best regards,
Michal

On Mon, Mar 3, 2025 at 3:07 PM Jürgen Hubert <jhubert at gmx.de> wrote:

> That did the trick, thanks! It also seems to fix some weird index-related
> errors in my main file which I couldn't make sense of (and wasn't able to
> put into an MVC).
>
> Thank you for your hard work!
>
> Best regards,
>
> - Jürgen
>
>
> *Gesendet: *Sonntag, 2. März 2025 um 22:52
> *Von: *"Michal Hoftich" <michal.h21 at gmail.com>
> Hi Jürgen,
>
>
> This kind of problem only seems to show up with index entries that start
>> with numbers. Does anyone know what causes this, and if so how to prevent
>> it?
>
>
> The problem is that make4ht mistakes these index entries for page numbers.
> It tries to detect page numbers which should be turned into links to index
> destinations, but sometimes it fails. In this case, it thinks your
> subentries start with page numbers, so it turns them to links. I hope the
> attached version of the library helps.
>
> Best regards,
> Michal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20250303/73b8da1e/attachment.htm>


More information about the tex4ht mailing list.