Graphics, Figures & Tables ⇒ Mixing p and m column types
Mixing p and m column types
* m{width} defines a column of width width. Every entry will be centered in proportion to the rest of the line.
I'm trying to create a table where the left two columns need to be vertically centered. The right two columns need to be top aligned, so I tried:
\begin{tabular}{|m{.25\textwidth}|m{.25\textwidth}|p{.25\textwidth}|p{.25\textwidth}|}
\hline
Low &
Low &
Some very long text
in multiple
paragraphs
&
Some even longer text
in way more
paragraphs, of which this is the first one
and this is the second one
\tabularnewline
\hline
\end{tabular}
But mixing p and m columns doesn't work. If I make it:
\begin{tabular}{|m{.25\textwidth}|m{.25\textwidth}|m{.25\textwidth}|m{.25\textwidth}|}
ALL columns are vertically aligned. But that's not what I want. The right two columns should remain top aligned. Messing with \parbox[t]{.25\textwidth}{some text} doesn't work either.
Anyone an idea on how to achieve this?
Kind regards
Koen
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis