Sorry - I accidentally answered to Michael only when I found the solution. Here
it is again, for the whole list:
As far as I can tell, the problem was that I was alternately generating PDF
files with pdftex and epub files with the usual
tex4ebook -lm index -c myconfig.cfg -e mybuild.mk4 <filename>.tex
However, when compiling the epub file the compiler first attempts to read the
existing *.ind index files (I have two, since I use two indices) before
compiling them anew. And when attempting to read them, it comes across the
! Undefined control sequence.
l. 114 \item dragon, \hyperindexformat {\textbf}{15}, \hyperpage{15}
error - the .ind files generated by pdflatex and tex4ebook use different file
formats. If you use them in the opposite order, pdflatex simply overwrites the
tex4ebook files without any error messages.
So now that I know what to look for, I simply have to remember to delete the
*.ind files before compiling the epub file.
Best regards,
- Jürgen
> Gesendet: Mittwoch, 08. Mai 2019 um 03:36 Uhr
> Von: "Karl Berry" <[email protected]>
> An: [email protected]
> Cc: [email protected]
> Betreff: Re: [tex4ht] Bold index entries
>
> ! Undefined control sequence.
> l. 114 \item dragon, \hyperindexformat {\textbf}{15}, \hyperpage{15}
>
> It's hard to guess what the undefined control sequence is from that,
> but as an ugly workaround, it seems like either
> \def\hyperindexformat{}
> or
> \def\hyperpage{}
> could at least get rid of the error without changing anything else.
>
> Also {\textbf}{15} doesn't look right. Unless the code somewhere has
> redefined \textbf (which I guess maybe it has), that gives an error:
> ! Argument of \textbf has an extra }.
>
> It needs to be just \textbf{15} for normal LaTeX to apply.
>
> Just a couple of random thoughts :). --best, karl.
>