I'm trying to make a table in which the text of the first column is aligned to the top right, and the text of the second (which can span multiple lines) is centered. This is what I've tried so far:
Code: Select all
\begin{tabular}{|r|p{3cm}|} \hline
Top right & {Some text\newline Some text} \\ \hline
Much longer line & {Some text\newline Some text} \\ \hline
\end{tabular}
Code: Select all
\usepackage{multirow}
...
\begin{tabular}{|r|c|} \hline
\multirow{2}{*}{Top right} & Some text\\
& Some text\\ \hline
\multirow{2}{*}{Much longer line} & Some text\\
& Some text\\ \hline
\end{tabular}
Code: Select all
\usepackage{multirow}
...
\begin{tabular}{|p{3cm}|c|} \hline
\multirow{2}{*}{Top right} & Some text\\
& Some text\\ \hline
\multirow{2}{*}{Much longer line} & Some text\\
& Some text\\ \hline
\end{tabular}
How can I achieve such a result?
Thanks in advance.