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

Nasser M. Abbasi nma at 12000.org
Fri Sep 7 15:41:59 CEST 2018

On 9/7/2018 8:27 AM, Michal Hoftich wrote:
>> you can see
>> \[  ->\begin {equation*}
>> and
> Ah, all right, there is the following code in amsmath.sty:
> \DeclareRobustCommand{\[}{\begin{equation*}}
> \DeclareRobustCommand{\]}{\end{equation*}}
> Nasser, you can try to add it to your config file and test it if it
> doesn't break something.It worked for me. We can add it to the sources
> if everything works correctly.
> Best,
> Michal

Great, that worked!  Now tex4ht does not give an error any

If you like to use this as answer for


I'll be happy to accept it as well.

Thanks for everyone's help. I'll remove these command from my .cfg file, once
this fix is added to the tex4ht official source code in texlive.


More information about the tex4ht mailing list