All the display equations/centered equations are no need to convert to MathML or PNG and need to retain in LaTeX coding only.

If it is possible convert to HTML tag in-between text part only convert to HTML tag.

But no need to convert to same positions of Superscript and Subscript, Same positions of Limits Superscript and Subscript and so on in the text part.




Schematic representation of the model, including the following populations: $e$ vaue is $e=2$ and `%e and e=2 convert to html tag`
thalamic reticular nucleus; $s^2_3$ `%s^2_3 should be in latex as its tag`
primary and secondary thalamic relay nuclei themselves with gains $\pi + 2\pi n (n=0,1,\ldots)$ `%\pi + 2\pi n (n=0,1,\ldots) convert to html tag`
and $G_{ii}$ `%G_{ii} convert to html tag. Schematic to and $G_{ii}$ is a text part position`

  • may be it is just me, but I am having a hard time understanding the question. Could please try to ask it again? What is it you are asking for? Are you getting an error from htlatex? What command did you use? What is the error?
    – Nasser
    Feb 20, 2013 at 7:35
  • aren't you looking for tex.stackexchange.com/q/27510/2891 and tex.stackexchange.com/q/33708/2891 ?
    – michal.h21
    Feb 20, 2013 at 7:56
  • @Balakrishnan I think your needs are covered with questions linked in my previous comment
    – michal.h21
    Feb 20, 2013 at 9:37

1 Answer 1


After my research i have found the link http://www.tug.org/applications/tex4ht/mn5.html#QQ1-5-23. Because i have need to maintain centered/display/SUB SUP equations in LaTeX format only and no need PNG/MathML format. After that i will convert LaTeX Equations to Math Type OLE format. htlatex Config file:



   \expandafter\let\csname old\temp\endcsname=#1  
                   \csname old\temp\endcsname}}%  
   \let\next=\putOP \let\OPsub=\empty \let\OPsup=\empty  
  \ifx _\nextop \let\next=\getsub  
     \else\ifx ^\nextop \let\next=\getsup\fi\fi \next}  
\def\putOP{\Picture+{  align="middle"}{\curOP_{\OPsub}^{\OPsup}}\EndPicture}  



        {\Link[\csname Gin@base\endcsname .png]{}{}%  
           \Picture[pict]{\csname Gin@base\endcsname .png  
              \space width="40px" height="40px" }%  

shell command is:

htlatex myfile.tex test.cfg

  • A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). Feb 27, 2013 at 6:13

You must log in to answer this question.

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