を使用して表を作成しています。表の 1 つに行を追加し、その内容を上部に垂直に揃えたいtabu
と思います。multirow
-------------- ---------------------------------
This is p col First row
---------------------------------
Second row
---------------------------------
Third row
-------------- ---------------------------------
This is p col First row
---------------------------------
Second row
-------------- ---------------------------------
これは基本的なLaTeXコードです
\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}