Discussion:
tex4ht multicolumn
(too old to reply)
tsd
2008-06-04 21:10:24 UTC
Permalink
Aloha all,

The tex4ht web site says that tables with \multicolumn entries need a
few LaTeX compilations to stabilize. I've run several compilations
but have the same problem: \multicolumn entries that have their own
line in the table, i.e. span all the columns of the table, end up
between the \topcaption and the body of the rest of the table. An
additional compilation does not put them back in the body of the table
where they belong.

I'm using the TeXLive 2007 distribution via MacTeX, am using all the
standard tex4ht style files, and call tex4ht with a shell program
called SimpleTeX4ht (selecting XHTML output).

I'm just getting started with tex4ht and love the ability to generate
well structured html from my LaTeX documents. Apologies if this is an
obnoxious newbie query.

Tom
Eitan M Gurari
2008-06-05 00:19:47 UTC
Permalink
Post by tsd
The tex4ht web site says that tables with \multicolumn entries need a
few LaTeX compilations to stabilize. I've run several compilations
but have the same problem: \multicolumn entries that have their own
line in the table, i.e. span all the columns of the table, end up
between the \topcaption and the body of the rest of the table. An
additional compilation does not put them back in the body of the table
where they belong.
I'm using the TeXLive 2007 distribution via MacTeX, am using all the
standard tex4ht style files, and call tex4ht with a shell program
called SimpleTeX4ht (selecting XHTML output).
Can you provide a miniature sample source latex file demonstrating the
problem. -eitan
tsd
2008-06-05 01:36:14 UTC
Permalink
Post by Eitan M Gurari
Post by tsd
The tex4ht web site says that tables with \multicolumn entries need a
few LaTeX compilations to stabilize. I've run several compilations
but have the same problem: \multicolumn entries that have their own
line in the table, i.e. span all the columns of the table, end up
between the \topcaption and the body of the rest of the table. An
additional compilation does not put them back in the body of the table
where they belong.
I'm using the TeXLive 2007 distribution via MacTeX, am using all the
standard tex4ht style files, and call tex4ht with a shell program
called SimpleTeX4ht (selecting XHTML output).
Can you provide a miniature sample source latex file demonstrating the
problem. -eitan
Here is a piece of the original table, stripped of rules, etc. that I
put through tex4ht four times with identical results, as described
earlier. Tom

**********************
\documentclass{article}
\begin{document}
\begin{table}[htb!]
\centering
\caption[Historic preserves in Lot A]{Summary of historic sites in
preserves of Lot A}
\label{tab:lot-a}
\begin{tabular}{lcllcl}
\textbf{Site$^{*}$} & \textbf{C.D.$^{\dag}$} & \textbf{Form} &
\textbf{Function} &
\textbf{Sig.$^{\ddag}$} & \textbf{Recommendation} \\
\multicolumn{6}{l}{\textbf{Permanent historic preserve
A-1,$^{\parallel}$ 20~ft.\ (6.1~m) buffer}} \\
22119 & Yes & Compound structure & Habitation/burial & D, E &
Preserve \\
\multicolumn{6}{l}{$^{*}$ Site numbers are prefixed by
50--10--04--.} \\
\end{tabular}
\end{table}
\end{document}

**********************
Eitan M Gurari
2008-06-05 12:55:49 UTC
Permalink
Post by tsd
The tex4ht web site says that tables with \multicolumn entries need a
few LaTeX compilations to stabilize. I've run several compilations
but have the same problem: \multicolumn entries that have their own
line in the table, i.e. span all the columns of the table, end up
between the \topcaption and the body of the rest of the table.
I'm using the TeXLive 2007 distribution via MacTeX, am using all the
standard tex4ht style files, and call tex4ht with a shell program
called SimpleTeX4ht (selecting XHTML output).
Two compilations should be sufficient.

Is the output correct when the file is compiled twice with the
following command line?

htlatex filename

If so, it seems the file filename.xref is being deleted between the
compilations by SimpleTeX4ht or some other script. -eitan
tsd
2008-06-05 16:55:05 UTC
Permalink
Post by Eitan M Gurari
Post by tsd
The tex4ht web site says that tables with \multicolumn entries need a
few LaTeX compilations to stabilize. I've run several compilations
but have the same problem: \multicolumn entries that have their own
line in the table, i.e. span all the columns of the table, end up
between the \topcaption and the body of the rest of the table.
I'm using the TeXLive 2007 distribution via MacTeX, am using all the
standard tex4ht style files, and call tex4ht with a shell program
called SimpleTeX4ht (selecting XHTML output).
Two compilations should be sufficient.
Is the output correct when the file is compiled twice with the
following command line?
htlatex filename
If so, it seems the file filename.xref is being deleted between the
compilations by SimpleTeX4ht or some other script. -eitan
Yes, the problem appears to be with SimpleTeX4ht. Thanks for your
time spent on what turned out to be an obnoxious newbie query. Tom
Loading...