Estoy usando tabu
para crear mis tablas. En una de las tablas, me gustaría tener una multirow
fila y alinear verticalmente su contenido hacia arriba.
-------------- ---------------------------------
This is p col First row
---------------------------------
Second row
---------------------------------
Third row
-------------- ---------------------------------
This is p col First row
---------------------------------
Second row
-------------- ---------------------------------
Este es el código básico de látex.
\begin{table}
\tabulinesep =_3pt^3pt
\begin{tabu} to \textwidth{p{4cm} X}
\toprule
\multirow{2}{4cm}{This is p col} & First row \\
& Second row \\
\bottomrule
\end{tabu}
\end{table}
Encontré varias soluciones para alinear verticalmente una X
columna, pero no una p
columna.
Respuesta1
\documentclass{article}
\usepackage{tabu,multirow,booktabs}
\begin{document}
\begin{table}
\tabulinesep =_3pt^3pt
\begin{tabu} to \textwidth{p{4cm} X}
\toprule
\multirow{2}[-4]{4cm}{This is p col} & First row \\
& Second row \\
\bottomrule
\end{tabu}
\end{table}
\end{document}