Re: Need help with table!
Paul Thompson <paul <at> wubios.wustl.edu>
2002-08-02 20:47:23 GMT
At 07:04 PM 8/2/2002 +0200, you wrote:
>Hello all!
>
>I have just taken up making tables with LaTeX and I am stuck... I want to
>create a table like the following:
>
>------------------------------
>| Text | Formula | Formula |
>------------------------------
>| Text...| Formula |
>| ...Text| Formula |
>| | Formula |
>------------------------------
>| Text | Formula | Formula |
>------------------------------
>
>The point is, I want the second and third column of the second row to be a
>multicolumn _and_ I want three formulas in there, which I want to be centered.
>
>It took me quite some time to get to a result that is halfway what I want,
>by using multicolumn{p{width}|}, which, according to my Latex Book (Kopka) is
>not an available option, and \centerline to center each formula (see below
>for what I have done). The problem is: I get an ugly empty line below the
>third
>formula.
you should be able to
\multicolumn{c}{2}{\parbox[t]{2in}{crap stuff blather }}
Within the parbox you can do other things
>Using the {center} environment is not an option as it puts additional space
>above and below the formulas.
>Using multicolumn{c} is not an option since all formulas get centered in one
>line, but I want a seperate line for each formula and the \newline comand or
>an empty line for a new paragraph don't seem to work.
>
>I have seen workaround where people would just define a table-row for each
>formula, but I find that very inconvenient as I would have to manually split
>up the text before the three formulas. Furthermore, when resizing the columns
>width or changing the text before the formulas I would have to do a lot of
>try and error to get a decent layout again.
>
>Anybody with a good idea how to solve this problem? Thanks a lot in advance.
>
>Here is what I did so far:
>
>\begin{tabular}{|p{9em}|p{9em}|p{12em}|}
> \hline
> Text&
> $Formula$ &
> $Formula$
>\\
> \hline
> Text... ...Text&
> \multicolumn{2}{p{21em}|}{
> \centerline{$Formula$}
> \centerline{$Formula$}
> \centerline{$Formula$}}
>\\
> \hline
> Text&
> $Formula$ &
> $Formula$
>\\
> \hline
>\end{tabular}
>
>Kai.
>
>--
>GMX - Die Kommunikationsplattform im Internet.
>http://www.gmx.net