von gill88 » Fr 8. Feb 2013, 13:26
Hallo,
ich versuche gerade einen Zeilenumbruch in einer Tabelle zu machen, aber irgendwie funktioniert es diesmal nicht. Sieht von euch vllt jemand den Fehler? die Tabelle ist immer noch genauso breit wie vorher, obwohl ich mit p{..cm} die Breite der Zellen defniert habe und es jetzt automatisch zu einem Zeilenumbruch kommen sollte.
Hier mal der Code:
%\begin{table}[htbp]
\caption{}
\begin{flushleft}
\begin{tabular}{|l|p{1.53cm}|c|c|c|c|c|c|c|c|c|p{0.47cm}|}
\hline
\multicolumn{ 1}{|l|}{} & \multicolumn{ 9}{l|}{Change in cereal production compared to the Reference scenario without climate change (\%)} \\ \cline{ 2- 10}
\multicolumn{ 1}{|l|}{} & \multicolumn{ 3}{l|}{Hadley A2} & \multicolumn{ 3}{l|}{CSIRO A2} & \multicolumn{ 3}{l|}{Hadley A2, without CO2 fertilization} \\ \hline
& 2020 & 2050 & 2080 & 2020 & 2050 & 2080 & 2020 & 2050 & 2080 \\ \hline
North America & 1.9 & -2.9 & -0.8 & 2.8 & 5.8 & 7.1 & 0.9 & -4.6 & -4.8 \\ \hline
Europe \& Russia & 0.8 & 1.8 & 1.5 & 0.5 & 1.0 & 3.1 & 0.1 & 0.1 & -1.1 \\ \hline
Pacific OECD & -2.2 & 9.5 & 14.0 & 2.5 & 7.0 & 18.2 & -1.8 & 9.3 & 13.6 \\ \hline
Africa, sub-Saharan & -1.3 & -2.0 & -2.5 & -0.6 & -2.9 & -7.2 & -0.9 & -2.0 & -2.2 \\ \hline
Latin America & 0.9 & 5.5 & 6.0 & 1.3 & -0.7 & 0.9 & 1.3 & 6.4 & 8.0 \\ \hline
Mid. East \& N. Africa & -0.5 & 1.1 & -1.0 & 5.2 & 7.4 & -1.0 & -0.7 & 0.3 & -2.2 \\ \hline
Asia, East & 0.1 & 2.0 & -2.8 & -2.2 & -3.4 & -7.2 & -0.6 & 0.2 & -5.3 \\ \hline
Asia, South/ Southeast & -1.3 & -3.7 & -12.2 & -4.8 & -8.9 & -12.8 & -1.6 & -4.6 & -13.2 \\ \hline
Rest of World & -1.6 & -3.1 & -4.6 & -2.4 & 3.4 & -4.6 & -2.6 & -6.1 & -9.0 \\ \hline
& & & & & & & & & \\ \hline
Developed & 1.2 & -0.3 & 0.5 & 1.7 & 4.2 & 5.9 & 0.3 & -2.0 & -2.8 \\ \hline
Developing & -0.3 & 0.2 & -3.9 & -1.8 & -4.2 & -7.3 & -0.6 & -0.6 & -4.9 \\ \hline
& & & & & & & & & \\ \hline
World & 0.3 & -0.2 & -2.2 & -0.4 & -0.8 & -2.1 & -0.3 & -1.4 & -4.3 \\ \hline
\end{tabular}
\end{flushleft}
\label{}
\end{table}
Weiße jemand wo der Fehler ist?
Danke!
Hallo,
ich versuche gerade einen Zeilenumbruch in einer Tabelle zu machen, aber irgendwie funktioniert es diesmal nicht. Sieht von euch vllt jemand den Fehler? die Tabelle ist immer noch genauso breit wie vorher, obwohl ich mit p{..cm} die Breite der Zellen defniert habe und es jetzt automatisch zu einem Zeilenumbruch kommen sollte.
Hier mal der Code:
[code]%\begin{table}[htbp]
\caption{}
\begin{flushleft}
\begin{tabular}{|l|p{1.53cm}|c|c|c|c|c|c|c|c|c|p{0.47cm}|}
\hline
\multicolumn{ 1}{|l|}{} & \multicolumn{ 9}{l|}{Change in cereal production compared to the Reference scenario without climate change (\%)} \\ \cline{ 2- 10}
\multicolumn{ 1}{|l|}{} & \multicolumn{ 3}{l|}{Hadley A2} & \multicolumn{ 3}{l|}{CSIRO A2} & \multicolumn{ 3}{l|}{Hadley A2, without CO2 fertilization} \\ \hline
& 2020 & 2050 & 2080 & 2020 & 2050 & 2080 & 2020 & 2050 & 2080 \\ \hline
North America & 1.9 & -2.9 & -0.8 & 2.8 & 5.8 & 7.1 & 0.9 & -4.6 & -4.8 \\ \hline
Europe \& Russia & 0.8 & 1.8 & 1.5 & 0.5 & 1.0 & 3.1 & 0.1 & 0.1 & -1.1 \\ \hline
Pacific OECD & -2.2 & 9.5 & 14.0 & 2.5 & 7.0 & 18.2 & -1.8 & 9.3 & 13.6 \\ \hline
Africa, sub-Saharan & -1.3 & -2.0 & -2.5 & -0.6 & -2.9 & -7.2 & -0.9 & -2.0 & -2.2 \\ \hline
Latin America & 0.9 & 5.5 & 6.0 & 1.3 & -0.7 & 0.9 & 1.3 & 6.4 & 8.0 \\ \hline
Mid. East \& N. Africa & -0.5 & 1.1 & -1.0 & 5.2 & 7.4 & -1.0 & -0.7 & 0.3 & -2.2 \\ \hline
Asia, East & 0.1 & 2.0 & -2.8 & -2.2 & -3.4 & -7.2 & -0.6 & 0.2 & -5.3 \\ \hline
Asia, South/ Southeast & -1.3 & -3.7 & -12.2 & -4.8 & -8.9 & -12.8 & -1.6 & -4.6 & -13.2 \\ \hline
Rest of World & -1.6 & -3.1 & -4.6 & -2.4 & 3.4 & -4.6 & -2.6 & -6.1 & -9.0 \\ \hline
& & & & & & & & & \\ \hline
Developed & 1.2 & -0.3 & 0.5 & 1.7 & 4.2 & 5.9 & 0.3 & -2.0 & -2.8 \\ \hline
Developing & -0.3 & 0.2 & -3.9 & -1.8 & -4.2 & -7.3 & -0.6 & -0.6 & -4.9 \\ \hline
& & & & & & & & & \\ \hline
World & 0.3 & -0.2 & -2.2 & -0.4 & -0.8 & -2.1 & -0.3 & -1.4 & -4.3 \\ \hline
\end{tabular}
\end{flushleft}
\label{}
\end{table} [/code]
Weiße jemand wo der Fehler ist?
Danke!