在某些問題中可能會被問到,但它們都不適合我,因為我想將包裹的列集中在乳膠表中,並且無法提供乾淨且簡單的解決方案。即這裡我感興趣的是使 c3 和 c4 的文字居中。我想避免使用巨集、新命令和神奇的插件。 Latex 能滿足如此瑣碎的需求嗎?
\begin{table}[!t]
\small
\caption{Caption}
\label{table:kaiserTest}
\centering
\begin{tabular}{ | l | m{3cm} | m{2cm} | m{1.9cm} | }
\hline
\textbf{C1} & c2 & c3 which has a long title & c4 which also has a long tile\\ \hline
text & text & 99 & [7-11] \\ \hline
text & text & 53 & [4-6] \\ \hline
\end{tabular}
\end{table}
答案1
所有常用命令(例如\centering
或 )都begin{center}
在該上下文中工作。或用於>{\centering\arraybackslash}m{3cm}
避免\centering
在每個儲存格中指定。語法>
假定array
package 但您已經在使用它(如定義的那樣m
)