I'm trying to work with a table of the form:
\begin{tabular}[]{l D{.}{.}{-1}}
\multirow{2}{1in}{Here is a ton of text that is not going
to fit in one single line in this 1 inch column.} & 20.132 \\
\vspace{5em} & (9.218) \\
& \\
Next thing & 1.311 \\
& (0.182)
\end{tabular}
I'm using multirow here to achieve the goal of having the numbers aligned with the top of the long label, with no lines separating the two numeric cells.
Essentially it should look like this:
Here is a ton of 20.132
text that is not (9.218)
going to fit in one
single line in this
1 inch column.
Next thing 1.311
(0.182)
The code above works, but notice how I've had to include \vspace{5em}
. Without this, the ton of text overflows its allotted vbox onto the next thing. The problem is that visually inspecting the output and adding ems isn't ideal, especially as I need to automatically generate many tables that need this kind of wrapping/alignment. I'm using dcolumn, so I'm not sure I can change much with the numeric column.
So, finally, I'm looking for suggestions on how to properly provide space for the block of text inside \multirow
, without manually inventing some vspace. Thanks for any info you can provide.
2
in\multirow{2}{..}{<stuff>}
refer to the fact that<stuff>
pertains to the first two entries (20.132
and(9.218)
) in theD
column? Or does<stuff>
only refer to20.132
?