[tex4ht] Inline math conversion

Saravanan Murugaiah saravanan.murugaiah at gmail.com
Mon Mar 20 10:08:55 CET 2017


Hi All,

In my document, there are ~5000 equations are there, first time compilation
all the equations are converted into Image format and took more time to
convert. After completed conversion, I've found some errors in text part,
so I need to convert again, again all the equations are converted into
image which took more time. Is this possible that to control the same,
i.e., not to convert the equations into image when we do a conversion again.

Regards,
MadYuv...

On Thu, Mar 16, 2017 at 7:13 PM, Michal Hoftich <michal.h21 at gmail.com>
wrote:

> Hi MadYuv,
>
> > In my document, I need all math (both inline and display) as in HTML
> format,
> > for this, I used the below commands for conversion:
> >
> > htlatex filename "xhtml" " -cunihft" "-cvalidate"
> >
> > Everything works fine, but when the fraction commands comes with some
> arabic
> > numbers then the tool converts arabic numbers separately and kept the
> > fraction separtely, e.g.,
> >
> > $92 \frac{1}{2}$ converted as 92<img src="test6x.png" alt="12"
> class="frac"
> > align="middle" />
> >
> > but my requirement is 92 also should be the math.
>
>
> contents of inline math are converted to HTML elements by default,
> only when you use something what's not easily convertible to HTML,
> such as fractions or square roots, it is converted to picture. You can
> request conversion of the whole inline math to picture using `pic-m`
> or `pic-m+` options. Similar options exists also for equations and
> similar environments. See http://cvr.cc/?p=504 for the list of
> possible options. In particular those which start with `pic-`.
>
> Btw, if you want to get Unicode html, you should use
>
>       htlatex filename "xhtml,charset=utf-8,pic-m" " -utf8 -cunihft"
> "-cvalidate"
>
> alternatively, you can use
>
>     make4ht -u filename "pic-m" "" " -cvalidate"
>
> which is equal to the former method.
>
> Best regards,
> Michal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20170320/02468e2d/attachment.html>


More information about the tex4ht mailing list