[tex4ht] Why new multicolumn mode is lost when tex4ht generates pages with split option htlatex foo.tex "htm, 2"
Radhakrishnan CV
cvr at river-valley.org
Fri Aug 9 09:14:36 CEST 2013
On Fri, Aug 9, 2013 at 5:57 AM, Nasser M. Abbasi <nma at 12000.org> wrote:
> Hello;
>
> When I run this:
>
> htlatex foo.tex "htm"
>
> Then the HTML pages are in 2 columns fine. But when I wanted to split
> the web pages to physically different pagesrunning this
>
> htlatex foo.tex "htm,2"
>
> Then I found the section content are now no longer set in 2 columns
> mode. Am I doing something wrong? or do I need additional
> configuration to make it work when pages are split?
>
A quick solution will be to reconfigure {section} heading since you're
splitting at section level.
\Configure{section}
{\multicols{2}}
{\endmulticols}
{\HCode{<h3>\TitleMark\space}}
{\HCode{</h3>}}
\ConfigureMark{section}{\thesection}
An archive, nasser.tar.gz, is attached which has the modified version of
MWE, slightly enhanced version of multicol.4ht and html output generated.
Ideally, using {multicols} environment in each section will provide better
results as the cross-links and headings shall span across columns while the
text alone will be in columns. You can also use \section{<title>} as an
optional argument of \begin{multicols}{2}[...]
Best regards
--
Radhakrishnan
River Valley<https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20130809/c3af66bc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nasser.tar.gz
Type: application/x-gzip
Size: 237024 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex4ht/attachments/20130809/c3af66bc/attachment-0001.gz>
More information about the tex4ht
mailing list