如何在带乳胶的表中包含长文本?

时间:2014-09-23 22:00:02

标签: latex tabular

我正在使用表格,我将列的大小设置为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}

1 个答案:

答案 0 :(得分: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}