I want to retain the equations unchanged (for later usage), i tried with the help of Tex4ht leaving equations unchanged, it is working for inline equations, I need to retain for display equations such as like $$...$$, \begin{equation}/\begin{align}.... how to configure these environment to unchanged.
my MWE is
\documentclass{book}
\usepackage{amsmath}
\begin{document}
text $a+b$ and \(a+b\alpha\beta\)
$$a+b$$
Sample text
\begin{equation}
\alpha+\beta
\end{equation}
Sample text
\begin{align}
&&\alpha+\beta\\
&&\gamma+\delta
\end{align}
Sample text
\end{document}
and my cfg file is
\Preamble{html}
\newtoks\eqtoks
\def\AltMath#1${\eqtoks{$#1$}%
\HCode{\the\eqtoks}$}
\Configure{$}{}{}{\expandafter\AltMath}
\def\AltlMath#1\){\eqtoks{\(#1\)}%
\HCode{\the\eqtoks}}
\Configure{()}{\AltlMath}{}
\def\AltlDisplay#1\]{\eqtoks{\[#1\]}%
\HCode{\the\eqtoks}}
\Configure{[]}{\AltlDisplay}{}
\begin{document}
\EndPreamble
I compiled through the calling command htlatex filename "sample.cfg"
Note:
When I am using the option xhtml
in the htlatex filename "xhtml,sample.cfg"
the equations are changed to htmlcoding, without using html/xhtml option the equations are unchanged. Why equations are changing to html code when i am using the option xhtml?