| 1 |
multirow.sty v2.9 2024/11/12 |
| 2 |
bigstruts.sty v2.9 2024/11/12 |
| 3 |
bigdelim.sty v2.9 2024/11/12 |
| 4 |
|
| 5 |
Original Author: Jerry Leichter |
| 6 |
Current Author: Pieter van Oostrum <[email protected]> |
| 7 |
|
| 8 |
This file may be distributed under the terms of the LaTeX Project Public |
| 9 |
License, as described in lppl.txt in the base LaTeX distribution. |
| 10 |
Either version 1.3 or, at your option, any later version. |
| 11 |
|
| 12 |
Installation: |
| 13 |
|
| 14 |
To generate the .sty files, run the command |
| 15 |
tex multirow.ins |
| 16 |
and move the resulting .sty files to a place where LaTeX can find them, preferably |
| 17 |
..../tex/latex/multirow |
| 18 |
|
| 19 |
Usage: |
| 20 |
|
| 21 |
multirow.sty: |
| 22 |
|
| 23 |
Make an entry that will span multiple rows of a table. |
| 24 |
|
| 25 |
\multirow[vpos]{nrows}[bigstruts]{width}[vmove]{text} |
| 26 |
|
| 27 |
vpos is the vertical positioning: t. c. or b. |
| 28 |
|
| 29 |
nrows is the number of rows to span. It's up to you to leave the other |
| 30 |
rows empty, or the stuff created by \multirow will over-write it. |
| 31 |
With a positive value of nrows the spanned colomns are this row and |
| 32 |
(nrows-1) rows below it. With a negative value of nrows they are |
| 33 |
this row and (-nrows-1) above it. |
| 34 |
|
| 35 |
bigstruts is mainly used if you've used bigstrut.sty. In that case it |
| 36 |
is the total number of uses of \bigstrut within the rows being |
| 37 |
spanned. Count 2 uses for each \bigstrut, 1 for each \bigstrut[x] |
| 38 |
where x is either t or b. The default is 0. |
| 39 |
|
| 40 |
width is the width to which the text is to be set, or * to indicate that |
| 41 |
the text argument's natural width is to be used. |
| 42 |
text is the actual text. If the width was set explicitly, the text will |
| 43 |
be set in a parbox of that width; you can use \\ to force linebreaks |
| 44 |
where you like. |
| 45 |
|
| 46 |
If the width was given as * the text will be set in LR mode. If you |
| 47 |
want a multiline entry in this case you should use a tabular or array |
| 48 |
in the text parameter. |
| 49 |
|
| 50 |
If the width is given as = the width will be taken from the |
| 51 |
tabular column in which it appears. This only works for p{} |
| 52 |
columns and similar, for example X columns in tabularx, and LCRJ |
| 53 |
columns in tabulary. |
| 54 |
|
| 55 |
The text is centered vertically within the range spanned by nrows, |
| 56 |
unless a vpos argument is given. |
| 57 |
|
| 58 |
vmove is a length used for fine tuning: The text will be raised (or |
| 59 |
lowered, if vmove is negative) by that length above (below) wherever |
| 60 |
it would otherwise have gone. |
| 61 |
|
| 62 |
For example (using both multirow and bigstrut) |
| 63 |
|
| 64 |
\newcommand{\minitab}[2][l]{\begin{tabular}{#1}#2\end{tabular}} |
| 65 |
\begin{tabular}{|c|c|} |
| 66 |
\hline |
| 67 |
\multirow{4}{1in}{Common g text} & Column g2a\\ |
| 68 |
& Column g2b \\ |
| 69 |
& Column g2c \\ |
| 70 |
& Column g2d \\ |
| 71 |
\hline |
| 72 |
\multirow{3}[6]*{Common g text} & Column g2a\bigstrut\\\cline{2-2} |
| 73 |
& Column g2b \bigstrut\\\cline{2-2} |
| 74 |
& Column g2c \bigstrut\\ |
| 75 |
\hline |
| 76 |
\multirow{4}[8]{1in}{Common g text} & Column g2a\bigstrut\\\cline{2-2} |
| 77 |
& Column g2b \bigstrut\\\cline{2-2} |
| 78 |
& Column g2c \bigstrut\\\cline{2-2} |
| 79 |
& Column g2d \bigstrut\\ |
| 80 |
\hline |
| 81 |
\multirow{4}*{\minitab[c]{Common \\ g text}} & Column g2a\\ |
| 82 |
& Column g2b \\ |
| 83 |
& Column g2c \\ |
| 84 |
& Column g2d \\ |
| 85 |
\hline |
| 86 |
\end{tabular} |
| 87 |
|
| 88 |
If any of the spanned rows are unusually large, or if you're using |
| 89 |
bigstrut.sty and \bigstrut's are used assymetrically about the centerline of |
| 90 |
the spanned rows, the vertical centering may not come out right. Use the |
| 91 |
vmove argument in this case. |
| 92 |
|
| 93 |
Just before "text" is expanded, the \multirowsetup macro is expanded to |
| 94 |
set up any special environment. Initially, \multirowsetup contains just |
| 95 |
\raggedright. It can be redefined with \renewcommand. |
| 96 |
|
| 97 |
bigstrut.sty: |
| 98 |
|
| 99 |
\bigstrut[pos] where pos is t or b |
| 100 |
|
| 101 |
Add a bit of space above, below, or both a tabular row. The amount |
| 102 |
is determined by \bigstrutjot. |
| 103 |
|
| 104 |
bigdelim.sty: |
| 105 |
|
| 106 |
\ldelim({n}{width}[text] |
| 107 |
\rdelim){n}{width}[text] |
| 108 |
|
| 109 |
Put a big delimiter over n rows in a tabular, optionally preceded |
| 110 |
(\ldelim) or followed (rdelim) by text. |
| 111 |
|