[tex4ht] tex4ht gives amsmath Error: \tag not allowed here

Ulrike Fischer news3 at nililand.de
Fri Sep 7 14:38:50 CEST 2018

Am Fri, 7 Sep 2018 10:29:48 +0200 schrieb Michal Hoftich:

> Hi Nasser,
>> Ok, using equation instead of \[ \] does not produce error with tex4ht
> Isn't \tag supposed to be used only with amsmath environments? I think
> you really shouldn't use it with \[ \]

No. Tracing the code


\[abc \tag{x}\]


you can see 

\[  ->\begin {equation*}


\mathdisplay #1->\ifmmode \@badmath \else $$\def \@currenvir
{#1}\let \dspbrk at context \z@ \let \tag \tag at in@display  

So it is quite obvious that is should work in \[ \].

Ulrike Fischer 

More information about the tex4ht mailing list