2014-09-23 55 views
0

我正在使用表格,并将列的大小设置为2.5厘米。 但是,如果我添加一个较长的行,那么该列的大小会更改其值。如何在包含乳胶的表格中包含长文字?

\begin{tabular}{p{2.5cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm}} 
& \textbf{Fair Trade} & \textbf{SAN/RA} & \textbf{GlobalGAP} & \textbf{Unilever Sustainable Agriculture Code} 
& \textbf{Bio Suisse} & \textbf{Naturland} & \textbf{EU Bio} \\ \hline 

\textbf{Key features} & \textbf{Established in}& 1997 &1987 & 1997 &6 &7 &8\\ \hline 

\textbf{Sector scope} &this is a very long line that needs to be cut &3 &4 &5 &6 &7 &8\\ \hline 
\end{tabular} 

回答

0

您可以使用\parbox

\begin{tabular}{p{2.5cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm} l p{2cm}} 
& \textbf{Fair Trade} & \textbf{SAN/RA} & \textbf{GlobalGAP} & \textbf{Unilever Sustainable Agriculture Code} 
& \textbf{Bio Suisse} & \textbf{Naturland} & \textbf{EU Bio} \\ \hline 

\textbf{Key features} & \textbf{Established in}& 1997 &1987 & 1997 &6 &7 &8\\ \hline 

\textbf{Sector scope} & \parbox{2cm}{this is a very long line that needs to be cut} &3 &4 &5 &6 &7 &8\\ \hline 
\end{tabular} 
+0

有了,我需要添加\ {parbox}2厘米每次我有一个长的文本分割时间。有没有办法为表格中的所有单元格执行此操作? – ilciavo 2014-09-24 09:19:21