[l2h] Building tables with WIDTH=x% ???
Ross Moore
ross@ics.mq.edu.au
Wed, 22 Aug 2001 09:38:44 +1000 (EST)
> Hi again!
>
> I use these commands in a preamble file, in order to build tables with two
> cells:
>
> \begin{htmlonly}
> \newenvironment{deuxcols}[2]
> {\HTMLcode[align=center,cellpadding=10,border=0,cellspacing=0]{TABLE}%
> {\HTMLcode[valign=top,WIDTH=400,bgcolor="#FFCCFF"]{TD}{#1}%
> \HTMLcode[valign=top,WIDTH=300,bgcolor="#CCCCCC"]{TD}%
> {#2}}}%
> {}
> \end{htmlonly}
>
> This is not exactly what I want.
> I'd prefer to assign a WIDTH=60% (for example) argument to the first cell.
> But how to manage with the % character, which begins a comment in LaTeX ???
Just use \% as you would in LaTeX.
Similarly \$, \& and \# should be tried, if you get problems
with the un-escaped characters.
Note that \HTMLcode allows you to mix raw HTML with TeX source,
and can occur in the arguments of other TeX macros.
Hence macros *are* expanded, in both the HTML and TeX arguments.
This makes it difficult to state the expansion rules,
so when you have problems, just try out anything that seems sensible.
Something *should* work.
> Thanks if you can help me (and sorry if the answer is obvious)
Hope this helps,
Ross Moore
>
> Jean-Michel
>
> _______________________________________________
> latex2html mailing list
> latex2html@tug.org
> http://tug.org/mailman/listinfo/latex2html