On Tue, Jun 03, 2003 at 08:54:32PM +0200, Uwe St�hr wrote:
> Hello everybody,
> I'll write a table with a multirow like these:
> 
> AAAAA | BCDEF | GHIJK
> ----------------------------
>            | Blaa1  | Blaa1
> BBBBB  |------------------
>            | Blaa2  | Blaa 2
> ----------------------------
> CCCCC | BCDEF | GHIJK

[Looks like this would need multicolumn, too...]

> But I'm not able to put the entry BBBBB in the middle of two rows. LyX
> offers only a position in the first row or in the second and tells me
> that multirows are not possible at the moment.
> 
> So when will it be possible?

When somebody implements it.

> And is there another solution for doing this?

There is a multirow package, basic usage (taken from mulitrow.sty) is

% \multirow{nrows}[bigstruts]{width}[fixup]{text}
%
% nrows is the number of rows to span.  It's up to you to leave the other
%       rows empty, or the stuff created by \multirow will over-write it.
%       With a positive value of nrows the spanned colomns are this row and
%       (nrows-1) rows below it. With a negative value of nrows they are
%       this row and (1-nrows) above it.
%
% bigstruts is mainly used if you've used bigstrut.sty.  In that case it
%       is the total number of uses of \bigstrut within the rows being
%       spanned.  Count 2 uses for each \bigstrut, 1 for each \bigstrut[x]
%       where x is either t or b.  The default is 0.
% width is the width to which the text is to be set, or * to indicate that
%       the text argument's natural width is to be used.
%
% text is the actual text.  If the width was set explicitly, the text will
%       be set in a parbox of that width; you can use \\ to force linebreaks
%       where you like.
%
%       If the width was given as * the text will be set in LR mode.  If you
%       want a multiline entry in this case you should use a tabular or array
%       in the text parameter.
%
%       The text is centered vertically within the range spanned by nrows.
%
% fixup is a length used for fine tuning:  The text will be raised (or
%       lowered, if fixup is negative) by that length above (below) wherever
%       it would otherwise have gone.
%
% For example (using both multirow and bigstrut)
%
% \newcommand{\minitab}[2][l]{\begin{tabular}{#1}#2\end{tabular}}
% \begin{tabular}{|c|c|}
% \hline
% \multirow{4}{1in}{Common g text} & Column g2a\\
%       & Column g2b \\
%       & Column g2c \\
%       & Column g2d \\
% \hline
% \multirow{3}[6]*{Common g text} & Column g2a\bigstrut\\\cline{2-2}
%       & Column g2b \bigstrut\\\cline{2-2}
%       & Column g2c \bigstrut\\
% \hline
% \multirow{4}[8]{1in}{Common g text} & Column g2a\bigstrut\\\cline{2-2}
%       & Column g2b \bigstrut\\\cline{2-2}
%       & Column g2c \bigstrut\\\cline{2-2}
%       & Column g2d \bigstrut\\
% \hline
% \multirow{4}*{\minitab[c]{Common \\ g text}} & Column g2a\\
%       & Column g2b \\
%       & Column g2c \\
%       & Column g2d \\
% \hline
% \end{tabular}

Andre'

Reply via email to