[tex4ht] forced math images and babel package in MikTeX 2.9

Ulrike Fischer news3 at nililand.de
Mon Jun 6 17:09:48 CEST 2011


Am Mon, 06 Jun 2011 16:56:59 +0200 schrieb Jaroslav Sobota:

> Hello,
> I've recently moved to MikTeX 2.9 from MikTeX 2.7 and I am not able to 
> process my source file unless I commment the "babel line" or disable the 
> "force-bitmap-images" lines. I'm using htlatex batch file in Windows: 
> htlatex foo.tex
> 
> \documentclass[a4paper,11pt]{book}
> \usepackage[german]{babel}
> \usepackage[latin2]{inputenc}
> 
> \begin{document}
> \Configure{$}{\PicMath}{\EndPicMath}{}%
> \Configure{PicMath}{}{}{}{ class="math"}
> 
> Kinetic energy $E_K=\frac{1}{2}mv^2$ of the object is huge.
> 
> \end{document}
> 
> I obtain the following error
> Runaway argument?
>   class=\penalty \@M \discretionary {mm-}{}{m}\penalty \@M \hskip 
> \z at skip \ETC.
> ! Paragraph ended before \aT:IMG was complete.
> <to be read again>
>                     \par
> 
> Is there any workaround to force bitmap images and use babel at the same 
> time?

Try 

\shorthandoff{"}
\Configure{PicMath}{}{}{}{ class="math"}
\shorthandon{"}

or

\Configure{PicMath}{}{}{}{ class=\string"math\string"}

-- 
Ulrike Fischer 



More information about the tex4ht mailing list