2
我有下面的代码有问题:文本对齐
\begin{table}[!h]
\centering
\caption{Titel}
\resizebox{.95\columnwidth}{!}{%
\begin{tabular}{p{4.5cm}p{10cm}p{3.5cm}}
\hline
Name & \multicolumn{2}{p{\textwidth-3\tabcolsep-\widthof{test}-2\fboxrule}}
{long_title which goes over two coloums}\\
\hline
Explanation & \multicolumn{2}{p{\textwidth-3\tabcolsep-\widthof{test}-2\fboxrule}}
{Explanation which goes over two coloums}\\
\hline
\multirow{3}{*}{Targets}
& Target 1 is long text with two lines & not reached\\
\cline{2-3}
& Target 2 & reached\\
\cline{2-3}
& Target 3 & reached\\
\hline
\end{tabular}%
}
\label{tab:test}%
\end{table}%
我希望这张照片有助于理解我的问题:
我想对齐单元格顶部的文本“目标”,如第二个表格。我相信这一定很容易做到,但我似乎无法指责它。请帮助我进行这种对齐。
我必须使用别的不是“*”吗? –
这看起来像你的问题的反面,它可能会帮助你:http://stackoverflow.com/questions/1910478/centering-text-within-a-multirow-cell-in-latex –
抱歉,但我不知道如何adpat,我尝试使用vfill和居中都不工作 –