help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

separated HTML/TeX/texinfo code trouble


From: Patrick Guio
Subject: separated HTML/TeX/texinfo code trouble
Date: Mon, 20 Jan 2003 10:46:50 +0100 (MET)

Dear all,
The following piece of code is doing what I expect for the TeX version of
the documentation, i.e. a nice looking table. The texinfo version is also
behaving as expect, i.e. the @multitable @end multitable environnement.
But when it comes to the HTML version, I get the following problem, the
table is present twice; once with the @html @end html insertion and once
with from the @ifinfo @end ifinfo which is not what is expeced, is it?

generated code with texi2html (1.64)
------------------------------------

<table cellpadding=2 rules=all>
<tr align=right><td></td><td>-1</td><td>0</td><td>1</td></tr><tr
align=right><td>-1</td><td></td><td bgcolor="#000000"><font
color="#ffffff">1</font></td><td></td></tr>
<tr align=right><td>0</td><td bgcolor="#000000"><font
color="#ffffff">1</font></td><td bgcolor="#000060"><font
color="#ffffff">-4</font></td><td bgcolor="#000000"><font
color="#ffffff">1</font></td></tr>
<tr align=right><td>1</td><td></td><td bgcolor="#000000"><font
color="#ffffff">1</font></td><td></td></tr>
</table>
<TABLE>
<TR><TD></TD><TD> -1 </TD><TD> 0 </TD><TD> 1</TD>
</TR>
<TR><TD>-1 </TD><TD> </TD><TD>  1 </TD><TD></TD>
</TR>
<TR><TD>0 </TD><TD>  1 </TD><TD> <STRONG>-4</STRONG> </TD><TD>  1</TD>
</TR>
<TR><TD>1 </TD><TD> </TD><TD>  1 </TD><TD></TD>
</TR></TABLE>


piece of code concerned
-----------------------
@html
<table cellpadding=2 rules=all>
<tr align=right><td></td><td>-1</td><td>0</td><td>1</td></tr><tr
align=right><td>-1</td><td></td><td bgcolor="#000000"><font
color="#ffffff">1</font></td><td></td></tr>
<tr align=right><td>0</td><td bgcolor="#000000"><font
color="#ffffff">1</font></td><td bgcolor="#000060"><font
color="#ffffff">-4</font></td><td bgcolor="#000000"><font
color="#ffffff">1</font></td></tr>
<tr align=right><td>1</td><td></td><td bgcolor="#000000"><font
color="#ffffff">1</font></td><td></td></tr>
</table>
@end html

@tex
\def\tablevrule{\vrule height 10pt depth 3pt}
\vskip0.5\baselineskip\hskip\itemindent
\vbox{\halign{\hfill#\quad&\tablevrule#\quad
&\hfill#\quad&\hfill#\quad&\hfill#\quad\cr
&& -1 & 0 & 1 \cr
\noalign{\hrule}
-1 &&  &  1  & \cr
0 &&  1  & {\bf -4}  &  1 \cr
1 &&  &  1  & \cr}}
@end tex

@ifinfo
@multitable {12345} {12345} {12345} {12345}
@item @tab -1 @tab 0 @tab 1
@item -1 @tab @tab  1 @tab
@item 0 @tab  1 @tab @strong{-4} @tab  1
@item 1 @tab @tab  1 @tab
@end multitable
@end ifinfo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]