On 2/10/2012 4:34 AM, Nasser M. Abbasi wrote:
On 2/9/2012 8:35 PM, Shigeharu TAKENO wrote:
shige 02/10 2012
----------------


in versions/html4_0.pl (or versions/html3_2.pl), and modify

    elsif ( $frames || $rules ) { $border = " BORDER=\"1\""; };

to

    if ( $TBLADDOPT ) { $border = " $TBLADDOPT"; }
    elsif ( $frames || $rules ) { $border = " BORDER=\"1\""; }

in the subroutine process_tabular in the same file.



I only see the line, which reads

    if ( $frames || $rules ) { $border = " BORDER=\"1\""; };

note, it is 'if' and not 'elsif'


Ok, here is the summary:

one needs to change the line

  if ( $frames || $rules ) { $border = " BORDER=\"1\""; };

to

     if ( $TBLADDOPT ) { $border = " $TBLADDOPT"; }
     elsif ( $frames || $rules ) { $border = " BORDER=\"1\""; }

and now one can do, as suggested by Shigeharu, things like :

---------------------------------------
\documentclass[12pt]{article}
\usepackage{html}
\begin{document}
\HTMLsetenv{TBLADDOPT}{BORDER="1" RULES="rows"}
\begin{tabular}{|l|l|}
   a & b \\
   c & d \\
   e & f \\
\end{tabular}
\end{document}
-----------------------------------------

And now, the \HTMLsetenv does modify the generated HTML as shown
earlier.

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 above just says that the table should have a line between the
rows of thickness "1".

If I try:

---------------------------------------
\documentclass[12pt]{article}
\usepackage{html}
\begin{document}
\HTMLsetenv{TBLADDOPT}{BORDER="1" RULES="cols"}
\begin{tabular}{|l|l|}
   a & b \\
   c & d \\  \hline
   e & f \\
\end{tabular}
\end{document}
-----------------------------------------

Then no lines are shown between rows, ok, but also no line is shown between the
second row and the third even though I said \hline. Ofcourse, this is becuase
of \HTMLsetenv took over.

What I want it to be able to control, using \hline, when a line should appear.

I will keep trying other things, as this is the first time I knew
I can use \HTMLsetenv like this from inside latex. May be there is
a trick, but so far, I do not see it.

Thanks again for Shigeharu help on this.

--Nasser
_______________________________________________
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html

Reply via email to