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