Ross Moore | 10 Feb 2012 21:27
Picon
Picon
Favicon

Re: How to generate a table using latex2html without horizontal lines between rows?

Hello Nasser,

On 10/02/2012, at 22:13, "Nasser M. Abbasi" <nma@...> wrote:

> But, this does not solve the issue at hand, which is how to
> tell it not add boarder between rows, unless \hline is given.

The model for handling tables in LaTeX and HTML are quite different.
They cannot be made to match easily, without the user adding extra markup into the source document.
Besides, what looks good in a table in print, does not necessarily translate easily to how it is best
represented onscreen.

For example, the \hline command occurs after a group of cells in the LaTeX source; it causes a line to be drawn
under the whole group of cells.
But in HTML each cell, or row of cells, has its decoration controlled by CSS style properties. 

CSS is not HTML, but is a whole separate architecture which allows for many, many possibilities.
To add styles to a cell requires specifying a class name, then adding properties to be used by that class.
Shigeharu showed you how to do that.

At the time when LaTeX2HTML was under active development, browsers had limited support for CSS, and
different browsers would support a different set of features, or would handle the same features
differently. Thus there was little incentive to code up actions for detailed styling in tables, since you
could not know what web surfers would actually see onscreen.

Without CSS, you can only ask for borders in all cells or no borders at all.
LaTeX2HTML simply takes the presence of an \hline  anywhere to trigger showing borders.
Besides, is the \hline  meant to be affecting the styles of the cells above, or below?
You could write some coding that does what you want, but would fail for someone else.

(Continue reading)


Gmane