[l2h] [Fwd: Bug#276037: latex2html: please support
\usepackage{array} along with the extended tabular syntax]
Ross Moore
ross at maths.mq.edu.au
Tue Oct 12 01:21:39 CEST 2004
Hi Roland,
On 12/10/2004, at 4:43 AM, Roland Stigge wrote:
> Hi,
>
> FYI, a Debian user reported the problem described in the attachment.
>
> See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276037
>
>> Could you please support the extended array/tabular syntax provided by
>> the 'array' package? Example:
>>
>> \usepackage{array}
>> ...
>> \begin{tabular}{>{\sl}cl}
>> 123&foo\\
>> 456&bar\\
>> \end{tabular}
>>
>> is not supported right now, the whole columns spec gets ignored
>> by latex2html, including even the 'cl'. To have the above typeset
>> properly in both the LaTeX and the HTML one has to manually apply
>> the formatting to the corresponding column contents:
This extended syntax *is* supported by LaTeX2HTML,
when generating HTML for version 3.2 or 4.0.
The translation of the given example in these cases should be as
follows.
---------------------------------------
HTML 3.2 :
see: http://www-texdev.ics.mq.edu.au/DebianBugs/arraytest-v32/
<TABLE CELLPADDING=3>
<TR><TD ALIGN="CENTER"><I>123</I></TD>
<TD ALIGN="LEFT">foo</TD>
</TR>
<TR><TD ALIGN="CENTER"><I>456</I></TD>
<TD ALIGN="LEFT">bar</TD>
</TR>
</TABLE>
---------------------------------------
HTML 4.0
see: http://www-texdev.ics.mq.edu.au/DebianBugs/arraytest-v40/
<TABLE CELLPADDING=3>
<TR><TD ALIGN="CENTER"><I CLASS="slanted">123</I></TD>
<TD ALIGN="LEFT">foo</TD>
</TR>
<TR><TD ALIGN="CENTER"><I CLASS="slanted">456</I></TD>
<TD ALIGN="LEFT">bar</TD>
</TR>
</TABLE>
The relevant Perl modules for this part of the translation process
are
$LATEX2HTMLDIR/versions/html3_2.pl
$LATEX2HTMLDIR/versions/html4_0.pl
The versions of these modules available at www.latex2html.org
agree with those used to produce the above examples:
landau.ics.mq.edu.au> cvs status html4_0.pl
===================================================================
File: html4_0.pl Status: Up-to-date
Working revision: 1.41
Repository revision: 1.41
/home/latex2ht/cvs/latex2html/user/versions/html4_0.pl,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
landau.ics.mq.edu.au> cvs status html3_2.pl
===================================================================
File: html3_2.pl Status: Up-to-date
Working revision: 1.64
Repository revision: 1.64
/home/latex2ht/cvs/latex2html/user/versions/html3_2.pl,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
So I do not understand the basis for this bug-report.
Perhaps the author was either:
a. generating code for out-dated versions of HTML
(e.g. 3.0, 3.1, or 2.x or 1.x
--- though then LaTeX2HTML might have created an image)
or
b. doing something significantly more complicated than
in the stated example.
or
c. it is the Debian distribution that is not sufficiently
up-to-date.
> Thanks for considering.
Have done so.
Best regards,
Ross
>
> bye,
> Roland
>
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
>
------------------------------------------------------------------------
Ross Moore ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 +2 9850 8955
Sydney, Australia fax: +61 +2 9850 8114
------------------------------------------------------------------------
More information about the latex2html
mailing list