2

I have using htlatex for converting LaTeX to HTML. Everything is working fine except \begin{align*} environment is not converting to Image. Please find the MWE below:

\documentclass{book}
\usepackage{amsmath}
\begin{document}
\begin{align*}
 3x+4&=16 \\
 3x&=16-4\ \hbox{Subtract 4 from both sides.} \\
 &=12 \\
 x&=\frac{12}{3}\ \hbox{Divide both sides by 3.} \\
 &=4
\end{align*}
\end{document}

\frac{12}{13} is only converted to Image remaining is not converting to Image format. How to get all the \begin{align*}...\end{align*} in Image format?

1 Answer 1

2

Try pic-align option:

 htlatex sample "xhtml, pic-align"

for more available options see CVR's blog, more similar options for pictorial math exist.

enter image description here

4
  • Thanks Michal. I have using own config file so that used htlatex foo.tex my,pic-align". It's working fine. If giving space after , it's not converting.
    – Balaji
    Aug 7, 2014 at 4:36
  • I have a similar problem. tex.stackexchange.com/questions/250643/… I cant get around using the pic-align option. I m not used to the command environment. How do I have to type the command? It always says cant find pic-align.cdf I usally write. htlatex test.tex , pic-align
    – Max M
    Jun 17, 2015 at 10:40
  • @MaxM qotes around "xhtml, pic-align" are important, you write it incorrectly
    – michal.h21
    Jun 17, 2015 at 12:11
  • Thanks the command helped, but I still have blurry images for the fraction.
    – Max M
    Jun 17, 2015 at 13:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .