I am trying to create a table where one column has multiple rows. This is very easy to do using the multirow
package. However, if I specify a width for this \multirow
and my text overflows, the second line of the multirow loses its centering. Here is an example of what I'm doing:
\usepackage{multirow}
\begin{table}[!h]
\begin{tabular}{ | c | c |}
1 & \multirow{4}{100pt}{This one works} \\
2 & \\
3 & \\
4 & \\
1 & \multirow{4}{100pt}{This one doesn't work and loses its centering because the text is too long}\\
2 & \\
3 & \\
4 & \\
\end{tabular}
\end{table}
100px
to100pt
in your code.