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?
|
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 |
|||
|
You could nest a
The use of Also, the above example inserts the nested Note that this approach also works within math mode for an |
||||
|
|
|
The easiest way is to use
Another idea is to use |
|||
|
|
|
here are some cell definitions that i've used to good effect in situations where the content of table cells was essentially text:
the job(s) involved had of course, the dimensions were specific to the job, and would need to be changed depending on the circumstances; and fine tuning was definitely needed in the actual jobs involved. type was assumed to be 10pt for line breaks in cells were usually manual (though they needn't be), with to me, multi-line text content of cells looks much better with "normal" text baseline settings than it does with the usual table row separation. for table headings, vertical centering of multiple lines doesn't look so good; they look better aligned at the bottom. here's the definition i used for that:
some of these headings ran to four or more lines (complicated headings above narrow columns of numbers). the results were actually quite respectable. |
|||
|
|
|
Why not
|
|||||||
|
pcolumn type, you can have paragraphs within a table cell. Will that solve the problem? – Alan Munn Jan 9 '12 at 20:29