What is the easiest way to have 2 lines in some of the cells in a table?
The only way I can think right now is to actually have 2 separate rows (without the line in the middle) and use \multirow
on all other cells in this row. Any easier ideas?
tables
What is the easiest way to have 2 lines in some of the cells in a table?
The only way I can think right now is to actually have 2 separate rows (without the line in the middle) and use \multirow
on all other cells in this row. Any easier ideas?
Best Answer
You could nest a
tabular
within anothertabular
:The use of
@{}..@{}
voids the additional space (horizontal tab separation) inserted by the nestedtabular
.Also, the above example inserts the nested
tabular
vertically centered with respect to the row. If you want itt
op orb
ottom aligned, use the optional parameter totabular
:\begin{tabular}[t]..
or\begin{tabular}[b]...
.Note that this approach also works within math mode for an
array
.