>
> I need the tabularx functionality for a print out and want to have the
> ordinary tabular behaviour for the web presentation.
>
> So I installed the tabularx.perl of Berthold Hoellmann (Thanks !!)
There are problems with this, that I've already discussed with Berthold.
> I don't understand why - but tabularx is NOT equal to tabular in
> latex2html. Within tabular environments the text is broken to fit the
> browser width - using tabularx the text is not broken, but the table
> grows...
Yes, this is how it should be treated.
> I love the tables fitting on my browser window :-) Can anybody help me
> to
> 'make latex2html see a tabular environment' when using tabularx?
This can be done with a couple of simple edits to
versions/html3_2.pl and versions/html4.0.pl
A. add a line:
sub do_env_tabular { &process_tabular(0,@_[0]); }
sub do_env_tabularx { &do_env_tabularstar(@_); }
^^^^^^^^^^^^^^
add this 2nd line.
This aliases the {tabularx} environment to {tabular*}
so that the initial length argument is read.
B. replace the line
} elsif ( $char eq "l" ) {
by
} elsif ( $char =~ /^(l|X)$/ ) {
within the subroutine sub translate_colspec {
This treats an "X" column as just an "l" column.
I cannot see any alternative treatment for generating an HTML table.
\tablehead and \tabletail are already implemented.
Alternatives for the \tablefirsthead and \tablelasttail are not,
but these *are* implemented with the supertabular.perl package.
So if you want these with {tabularx} then simply rename a copy
of supertabular.perl to tabularx.perl, or a symbolic link should do.
> Regards, Steffen
>
>
> PS: I found the keyword 'tabular' often in the latex2html script -
> I hope it is not necessary to add a 'tabularx' keyword in all these
> places!?
> --
Good point. Simply add 'x?' to read tabularx? at these places.
I found 8 such cases.
Indeed it may be best to make some of these (super)?tabularx?
The purpose of these is, among other things, to help ensure that style tags,
etc. are closed before the <TABLE> and perhaps reopened inside for each cell,
so that the resulting HTML code is valid with respect to the standard DTDs.
Hope this helps,
Ross Moore