# [l2h] How can one in a .html file produced using LaTeX2HTML and a .tex file underline some, but not all of the column entries in just one row of a table?

Pat Somerville l_pat_s at hotmail.com
Thu Oct 13 06:11:56 CEST 2011

Hello. After a table row the LaTeX command \cline{2-9} is supposed to underline columns two through nine in that row, but not column one of it. To underline all of the columns in a table row, \hline would be used. For a table I found that the command \cline{2-9} after a table row in a file with a name of the form MyFile.tex may work as it should in a file of the form MyFile.dvi produced by executing the command of the form "latex MyFile.tex". But I don't think it worked that way in the .html file produced by executing a command of the form "latex2html....... MyFile.tex". What I wanted was to have the first cell of the table contain a relatively lengthy description that would apply to each of the first three rows of the table ("Relatively lengthy" is relatively lengthy compared to the width of the text or set of characters used in some other columns of the table, but still only a few words long.). So for that purpose I did not want to underline each of the lines of text in that somewhat lengthy description all within column one (See my illustration below.). My "workaround" solution was to put the entire description in the first cell of the table, since I think the whole first row was probably very lightly underlined in some visible way, but not all very darkly, in the .html, output file. The result was that row one was vertically longer or had a greater height than the next two rows of the table in order to accommodate the relatively long description within the narrow width of the first column and cell of the table. That was not too bad-looking. But maybe there is a way to make each of the three table rows for columns two through nine have the same height and no underline in column one until after the third row, as I illustrate below for a total of only four columns, which I expect would look better than what I described with my workaround solution.

As far as just the row underlining is concerned, this is the sort of row-by-row underlining I would like to be able to produce in the table in the .html file (Please ignore the fact that I have only four columns in the table below instead of the nine columns I have discussed above.). I hope that the column formatting will be aligned as it is for me in the body of my e-mail letter once it is received in your e-mail account's "inbox" or "inbox" folder. But in case the columns are not aligned in what you see compared to what I see, my intent in the following table is to have the entries for columns two through four of rows one and two underlined and to have the entries for all four columns of row three underlined.

Here is a        3.7     5.79   7.91

"long"           57.3    34.2   1.01

description. 102.1     3.7    0.45

According to what I think Professor Ross Moore wrote in I think 1999 at http://www.mail-archive.com/latex2html@tug.org/msg00462 on the Internet, there may be a way to provide this sort of column-specific underlining within a table using style sheets, presumably cascading style sheets (css). Would you please describe that method for me, or else describe another method that will do in a .html file what \cline{2-9} does in a .dvi (DeVice-Independent) file? For example is there some way to go into the HTML (HyperText Markup Language) code and change a command for underlining an entire row to underlining one column of a row? If there is such a command, then perhaps one could enter that command in each column of a row that he wants to underline.--That would be equivalent to choosing which cell of a table one wants to underline. Perhaps by looking at the source code for a Web page that contains a table with rows in which not all of its columns are underlined, one might be able to discover what HTML commands someone used to accomplish this sort of column-by-column underlining.--On the other hand, if such underlining is directed from within a css file not accessible to the Web site's visitor, then such a visitor might not be able to easily discover by himself how that column-by-column underlining was accomplished.

Pat
-------------- next part --------------
An HTML attachment was scrubbed...