[l2h] cell aligning in tables

Ross Moore Ross Moore <ross@ics.mq.edu.au>
Fri, 29 Oct 1999 19:59:50 +1000 (EST)


> Hi there,
> 
> I'm pretty sure this has been discusses before, however, I was unable
> to find in in the mailing list archive.
> 

> 
> is there a way to control the alignment of both table cell from
> within the latex source??? I.e., what I'm after is:

Yes. 
Try using {l p{<width>}}  as the column spec, rather than {ll}.

If you load the  tabularx  package, then other alignments
are also possible.
It extends the cell declarations for {tabular} to allow

  m{<width>}    aligns with the middle of the cell  
  b{<width>}    aligns with the bottom of the cell

+ other effects.


Furthermore, 

  t{<width>}    aligns with the top in LaTeX2HTML only.

This has been included to force top-alignment when nothing
else works; but you'll need to use conditional code if you
want it to work also in LaTeX:

\begin{htmlonly}
 \begin{tabular}{t{.5\textwidth}t{.5\textwidth}}
\end{htmlonly}
%begin{latexonly}
 \begin{tabular}{ll}
%end{tabular}
 ...
 ...
 ...
\end{tabular}

(You don't need  tabularx  for this.)



> ----------- Some text following here, line break
> |         | following table with on screen,
> |         | ollowing table with on screen,
> |         |
> | image   |
> |         |
> |         |
> |         |
> __________  
> 
> 

Hope this helps,

	Ross