[tex4ht] [bug #481] Problem with Braces / Brackets in Maths equations using mk4ht latex->mathml

Nasser M. Abbasi nma at 12000.org
Fri Aug 21 10:03:15 CEST 2020


On 8/19/2020 11:35 AM, Michal Hoftich wrote:

> 
> There is no change in regards to .htm files, you can still use
> 
> make4ht filename.tex "mathml,mathjax,htm"
> 
> to get .htm files. The change is just in the mathml.4ht file, it should
> now render brackets correctly in most cases.
> 
> Best regards,
> Michal
> 

After changing the command and adding "mathml", now some
of my latex files no longer compile.

Please see this MWE

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$n^\text{th}$
\end{document}

THe above used to compile OK using

          make4ht filename.tex "mathjax,htm"

But now using

          make4ht filename.tex "mathml,mathjax,htm"

it gives error

(base) >make4ht foo4.tex "mathml,htm,mathjax"
[STATUS]  make4ht: Conversion started
[STATUS]  make4ht: Input file: foo4.tex
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename     Line    Message
[ERROR]   htlatex: ./foo4.tex   4        Argument of \n:text@: has an extra }.
[ERROR]   htlatex: ./foo4.tex   4        Paragraph ended before \n:text@: was complete.
[ERROR]   htlatex: ./foo4.tex   4        Missing $ inserted.
[ERROR]   htlatex: ./foo4.tex   4        Missing } inserted.
[ERROR]   htlatex: ./foo4.tex   4        Missing } inserted.
[ERROR]   htlatex: ./foo4.tex   4        Too many }'s.
[ERROR]   htlatex: ./foo4.tex   4        Too many }'s.
[ERROR]   htlatex: ./foo4.tex   5        Missing $ inserted.
[ERROR]   htlatex: ./foo4.tex   5        Missing } inserted.
[ERROR]   htlatex: ./foo4.tex   5        Too many }'s.
[ERROR]   htlatex: Compilation errors in the htlatex run

I am using TL 2020. Just updated fully now.

(base) >make4ht --version
make4ht version v0.3e

regards,

--Nasser


More information about the tex4ht mailing list.