나는 tabu
테이블을 만드는 데 사용하고 있습니다. 테이블 중 하나에 multirow
행이 있고 해당 내용을 위쪽에 수직으로 정렬하고 싶습니다 .
-------------- ---------------------------------
This is p col First row
---------------------------------
Second row
---------------------------------
Third row
-------------- ---------------------------------
This is p col First row
---------------------------------
Second row
-------------- ---------------------------------
기본 라텍스 코드입니다
\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}
열 을 수직으로 정렬하는 몇 가지 솔루션을 찾았 X
지만 열은 그렇지 않았습니다 p
.
답변1
\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}