diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-multirow.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-multirow.html | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-multirow.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-multirow.html index e6b53773444..525c9da51c0 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-multirow.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-multirow.html @@ -2,7 +2,7 @@ <title>UK TeX FAQ -- question label multirow</title> </head><body> <h3>Merging cells in a column of a table</h3> -<p>It's easy to come up with a table design that requires a cell that +<p>It’s easy to come up with a table design that requires a cell that spans several rows. An example is something where the left-most column labels the rest of the table; this can be done (in simple cases) by using @@ -16,7 +16,7 @@ might write: <pre> \begin{tabular}{|c|c|} \hline -\multirow{4}*{Common g text} +\multirow{4}{*}{Common g text} & Column g2a\\ & Column g2b \\ & Column g2c \\ @@ -24,12 +24,12 @@ might write: \hline \end{tabular} </pre> -</blockquote> -and <i>multirow</i> will position "Common g text" at the vertical +</blockquote><p> +and <i>multirow</i> will position “Common g text” at the vertical centre of the space defined by the other rows. Note that the rows -that don't contain the "multi-row" specification must have empty +that don’t contain the “multi-row” specification must have empty cells where the multi-row is going to appear. -<p>The "<code>*</code>" may be replaced by a column width specification. In this +<p>The “<code>*</code>” may be replaced by a column width specification. In this case, the argument may contain forced line-breaks: <blockquote> <pre> @@ -43,7 +43,7 @@ case, the argument may contain forced line-breaks: \hline \end{tabular} </pre> -</blockquote> +</blockquote><p> A similar effect (with the possibility of a little more sophistication) may be achieved by putting a smaller table that lines up the text into a <code>*</code>-declared <code>\</code><code>multirow</code>. @@ -55,7 +55,7 @@ down one or other side of a table (with the help of the <pre> \begin{tabular}{|l|l|} \hline -\multirow{4}*{\rotatebox{90}{hi there}} +\multirow{4}{*}{\rotatebox{90}{hi there}} & Column g2a\\ & Column g2b \\ & Column g2c \\ @@ -63,10 +63,27 @@ down one or other side of a table (with the help of the \hline \end{tabular} </pre> -</blockquote> +</blockquote><p> (which gives text going upwards; use angle <code>-90</code> for text going downwards, of course). -<p><i>Multirow</i> is set up to interact with the <i>bigstrut</i> +<p>To make a <code>\</code><code>multicolumn</code> multi-row “cell” in a table, you have to +enclose a <code>\</code><code>multirow</code> inside a <code>\</code><code>multicolumn</code> — the other way +around does not work, so: +<blockquote> +<pre> +\begin{tabular}{|c|c|c|}\hline +\multicolumn{2}{|c|}{\multirow{2}{*}{combined cells}} + &top right\\ \cline{3-3} +\multicolumn{2}{|c|}{} + &middle right\\ \hline +bottom left + &bottom center + &bottom right\\ \hline +\end{tabular} +</pre> + +</blockquote><p> +<i>Multirow</i> is set up to interact with the <i>bigstrut</i> package (which is also discussed in the answer to <a href="FAQ-struttab.html">spacing lines in tables</a>). You use an optional argument to the <code>\</code><code>multirow</code> command to say how many of the |