<div dir="ltr"><div class="gmail_default" style="color:rgb(51,102,255)">Hi Nasser,</div><div class="gmail_default" style="color:rgb(51,102,255)">Your configuration file can be slightly modified as given below to get <b>multicols</b> work as you have expected. The optional argument of <b>multicols </b>is not take care of at the moment.</div>
<div class="gmail_default" style="color:rgb(51,102,255)"><br></div><div class="gmail_default" style="color:rgb(51,102,255)">----------------</div><div class="gmail_default"><div class="gmail_default"><font color="#3366ff">\Preamble{ext=htm,pic-align}</font></div>
<div class="gmail_default"><br></div><div class="gmail_default"><font color="#3366ff">\begin{document}</font></div><div class="gmail_default"><font color="#3366ff">\EndPreamble</font></div><div class="gmail_default"><font color="#3366ff"><br>
</font></div><div class="gmail_default"><font color="#3366ff">\catcode`\:11</font></div><div class="gmail_default"><font color="#3366ff">\catcode`\@11</font></div><div class="gmail_default"><font color="#3366ff"><br></font></div>
<div class="gmail_default" style><font color="#3366ff">% Added to fix the opening and closing <p> tags</font></div><div class="gmail_default"><font color="#3366ff">\Configure{HtmlPar}</font></div><div class="gmail_default">
<font color="#3366ff"> {\EndP\HCode{<!--l. \the\inputlineno-->%</font></div><div class="gmail_default"><font color="#3366ff"><p \csname a:!P\endcsname</font></div><div class="gmail_default"><font color="#3366ff"> class="no\ifHCond par\else indent\fi" \a:LRdir>}}</font></div>
<div class="gmail_default"><font color="#3366ff"> {\EndP\HCode{<!--l. \the\inputlineno-->%</font></div><div class="gmail_default"><font color="#3366ff"><p \csname a:!P\endcsname</font></div><div class="gmail_default">
<font color="#3366ff"> class="\ifdim \parindent=\z@ no\fi indent" \a:LRdir>}}</font></div><div class="gmail_default"><font color="#3366ff"> {{\Tg</p>}}</font></div><div class="gmail_default"><font color="#3366ff"> {{\Tg</p>}}%</font></div>
<div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff">\renewenvironment{multicols}[1]{\IgnorePar\EndP%</font></div><div class="gmail_default"><font color="#3366ff">\HCode{<div class="newspaper}#1\HCode{">}</font></div>
<div class="gmail_default"><font color="#3366ff">\expandafter\ifx\csname .newspaper#1\endcsname\relax%</font></div><div class="gmail_default"><font color="#3366ff">\Css{.newspaper#1 p:first-child { margin-top: 0em; }}</font></div>
<div class="gmail_default"><font color="#3366ff">\Css{.newspaper#1 {</font></div><div class="gmail_default"><font color="#3366ff"> -moz-column-count:#1; /* Firefox */</font></div><div class="gmail_default"><font color="#3366ff"> -webkit-column-count:#1; /* Safari and Chrome */</font></div>
<div class="gmail_default"><font color="#3366ff"> column-count:#1;</font></div><div class="gmail_default"><font color="#3366ff"> -moz-column-gap:10px; /* Firefox */</font></div><div class="gmail_default"><font color="#3366ff"> -webkit-column-gap:10px; /* Safari and Chrome */</font></div>
<div class="gmail_default"><font color="#3366ff"> column-gap:10px;</font></div><div class="gmail_default"><font color="#3366ff"> -moz-column-rule:1px outset \#F8F8F8 ; /* Firefox */</font></div><div class="gmail_default">
<font color="#3366ff"> -webkit-column-rule:1px outset \#000000; /* Safari and Chrome */</font></div><div class="gmail_default"><font color="#3366ff"> column-rule:1px outset \#000000;</font></div><div class="gmail_default">
<font color="#3366ff">}}</font></div><div class="gmail_default"><font color="#3366ff">\expandafter\gdef\csname .newspaper#1\endcsname{1}%</font></div><div class="gmail_default"><font color="#3366ff">\fi</font><span style="color:rgb(51,102,255)">\ShowPar\par}</span></div>
<div class="gmail_default"><font color="#3366ff">{\EndP\HCode{</div>}}</font></div><div class="gmail_default"><font color="#3366ff">\ConfigureEnv{multicols}{}{}{}{}</font></div><div class="gmail_default"><font color="#3366ff"><br>
</font></div><div class="gmail_default"><font color="#3366ff">\endinput</font></div></div><div class="gmail_default" style="color:rgb(51,102,255)">----------------</div><div class="gmail_default" style="color:rgb(51,102,255)">
<br></div><div class="gmail_default" style="color:rgb(51,102,255)">I have tested this with the following TeX code:</div><div class="gmail_default" style="color:rgb(51,102,255)"><br></div><div class="gmail_default" style="color:rgb(51,102,255)">
-----------------</div><div class="gmail_default"><font color="#3366ff">\documentclass{article}%</font></div><div class="gmail_default"><font color="#3366ff">\usepackage{lipsum}</font></div><div class="gmail_default"><font color="#3366ff">\usepackage{multicol}</font></div>
<div class="gmail_default"><font color="#3366ff">\setlength{\columnsep}{20pt}</font></div><div class="gmail_default"><font color="#3366ff">\setlength{\columnseprule}{0.01pt}</font></div><div class="gmail_default"><font color="#3366ff">\newenvironment{newspaper}{}{}</font></div>
<div class="gmail_default"><font color="#3366ff">\begin{document}</font></div><div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-2]</font></div>
<div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \begin{multicols}{6}</font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-5]</font></div>
<div class="gmail_default"><font color="#3366ff"> \end{multicols}</font></div><div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-2]</font></div>
<div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \begin{multicols}{4}</font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-5]</font></div>
<div class="gmail_default"><font color="#3366ff"> \end{multicols}</font></div><div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-2]</font></div>
<div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \begin{multicols}{2}</font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-5]</font></div>
<div class="gmail_default"><font color="#3366ff"> \end{multicols}</font></div><div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-2]</font></div>
<div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff"> \begin{multicols}{4}</font></div><div class="gmail_default"><font color="#3366ff"> \lipsum[1-5]</font></div>
<div class="gmail_default"><font color="#3366ff"> \end{multicols}</font></div><div class="gmail_default"><font color="#3366ff"><br></font></div><div class="gmail_default"><font color="#3366ff">\end{document}</font></div>
<div class="gmail_default"><span style="color:rgb(51,102,255)">-----------------</span></div><div class="gmail_default"><span style="color:rgb(51,102,255)"><br></span></div><div class="gmail_default" style><span style="color:rgb(51,102,255)">You can use this workaround, while the developers came up with possible fix.</span></div>
<div class="gmail_default" style><span style="color:rgb(51,102,255)"><br></span></div><div class="gmail_default" style><span style="color:rgb(51,102,255)">Regards</span></div><div class="gmail_default" style><span style="color:rgb(51,102,255)">Jagath</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 July 2013 13:02, Nasser M. Abbasi <span dir="ltr"><<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, here is my poor's man implementation of multiple columns<br>
support in htlatex.<br>
<br>
compile using<br>
<br>
htlatex foo.tex "my.cfg"<br>
<br>
where my.cfg is<br>
<br>
---------------------<br>
\Preamble{ext=htm,pic-align}<br>
<br>
\ConfigureEnv{newspaper}<br>
{\HCode{<div class="newspaper">}}<br>
{\HCode{</div>}}<br>
{}{}<br>
\begin{document}<br>
\EndPreamble<br>
<br>
\Css{.newspaper {<br>
-moz-column-count:2; /* Firefox */<br>
-webkit-column-count:2; /* Safari and Chrome */<div class="im"><br>
column-count:2;<br>
-moz-column-gap:10px; /* Firefox */<br>
-webkit-column-gap:10px; /* Safari and Chrome */<br>
column-gap:10px;<br>
-moz-column-rule:1px outset \#F8F8F8 ; /* Firefox */<br>
-webkit-column-rule:1px outset \#000000; /* Safari and Chrome */<br>
column-rule:1px outset \#000000;<br>
}}<br></div>
---------------------------<br>
<br>
and foo.tex is<div class="im"><br>
<br>
-------------------<br>
\documentclass{article}%<br>
\usepackage{lipsum}<br>
\usepackage{multicol}<br>
\setlength{\columnsep}{20pt}<br>
\setlength{\columnseprule}{0.<u></u>01pt}<br></div>
\newenvironment{newspaper}{}{}<br>
\begin{document}<br>
<br>
\ifdefined\HCode<br>
\begin{newspaper}<br>
\else<br>
\begin{multicols}{2}<br>
\fi<br>
<br>
\lipsum[1-10]<br>
<br>
\ifdefined\HCode<br>
\end{newspaper}<br>
\else<br>
\end{multicols}<br>
\fi<br>
<br>
\end{document}<br>
-----------------------<br>
<br>
The div is hardcoded to 2 columns in HTML for now and the<br>
other properties are hardcoded.<br>
<br>
One can make newenv. for 3 columns, or pass the number of<br>
columns as argument, but I am not good in Latex to do that<br>
yet.<br>
<br>
So, the above now generates HTML with 2 columns. I tried<br>
it on firefox, chrome and IE and it all works. And pdflatex<br>
works as before.<br>
<br>
This is better for me than having to use tabular with 2 columns<br>
to get the same effect in HTML.<span class="HOEnZb"><font color="#888888"><br>
<br>
--Nasser<br>
</font></span></blockquote></div><br></div>