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

Jaroslav Sobota jsobota at kky.zcu.cz
Mon Jun 6 17:28:22 CEST 2011


Solved! Thanks a lot for such a prompt reply.

Jaroslav

On 6.6.2011 17:09, Ulrike Fischer wrote:
> 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"}
>


More information about the tex4ht mailing list