[tex4ht] future support for multicols in htlatex?

Nasser M. Abbasi nma at 12000.org
Fri Jul 12 08:35:03 CEST 2013

On 7/12/2013 1:08 AM, Nasser M. Abbasi wrote:

> For example, when I write this in Latex:
> -------------------------------
> \documentclass{article}%
> \usepackage{lipsum}
> \usepackage{multicol}
> \setlength{\columnsep}{20pt}
> \setlength{\columnseprule}{0.01pt}
> \begin{document}
> \begin{multicols}{2}
> \lipsum[1-10]
> \end{multicols}
> \end{document}
> ---------------------
> The pdf has 2 columns, but html does not.

Just wanted to add, that the support can be very limited
initially. For example, just mapping the above to something
like this below will work:

-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome */

-moz-column-gap:10px; /* Firefox */
-webkit-column-gap:10px; /* Safari and Chrome */

-moz-column-rule:1px outset #F8F8F8 ; /* Firefox */
-webkit-column-rule:1px outset #000000; /* Safari and Chrome */
column-rule:1px outset #000000;

Then adding <div class="newspaper">  in the body where
\begin{multicols}{2} is and adding </div> to match with

Multiple columns in CSS3 has many properties, but only
the column-count, column-gap and column-rule are the
minimum requirements to use this.

Actually thinking out loud now, I might be able to define my own
env. using \ConfigureEnv{newspaper} to do this in my htlatex
configuration file, as I learned how to do one before for something
else new in HTML5, so I will try it now to see if I can do the


More information about the tex4ht mailing list