I have ht5mjlatex.cfg as defined here, and a foo.tex containing:
\documentclass{article}
\renewcommand{\Pr}[1]{P(#1)}
\begin{document}
$\Pr{h}$
\end{document}
As described in that post, I try to convert it to MathJax-HTML. When I try
htlatex foo.tex ht5mjlatex.cfg
I receive the following error:
! Limit controls must follow a math operator.
\n:limits: ->\o:limits:
\:l:mits
l.4 $\Pr
{h}$
?
! Emergency stop.
Why does this problem occur? I can work around it by avoiding redefining \Pr and such, but for the life of me I can't understand what it should be occurring in the first place.
\Pras\mathop{P(#1)}any help? I can only guess that htlatex tries to add a\limitsor\nolimitscommand after\Prwhich doesn't work in your redefined command. – siracusa May 24 '19 at 10:48\mathoporiginally. It's the same problem. – user541686 May 24 '19 at 11:12