Zeilenumbruch in Tabelle

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: Zeilenumbruch in Tabelle

von gill88 » Di 12. Feb 2013, 11:19

Ja jetzt klappts! vielen vielen Dank :)

von Epllus » Sa 9. Feb 2013, 10:46

Hast du "\usepackage{array}" geladen?
Wenns dennoch nicht funktioniert poste ein Minimalbeispiel.

Epllus

von gill88 » Sa 9. Feb 2013, 00:25

Mmh...das funktioniert auch nicht. Bekomme lauter Fehlermeldungen "Illegal character in array arg." und "Missing endgroup conserted"

von Epllus » Fr 8. Feb 2013, 20:48

So?
\begin{table}[htb] 
\caption{} 
\begin{flushleft} 
\begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|c|} 
\hline 
\multicolumn{1}{|m{0.2\textwidth}|}{} & \multicolumn{9}{p{0.7\textwidth}|}{Change in cereal production compared to the Reference scenario without climate change (\%)} \\ \cline{ 2- 10} 
\multicolumn{ 1}{|l|}{} & \multicolumn{3}{m{0.2\textwidth}|}{\centering Hadley A2} & \multicolumn{3}{m{0.2\textwidth}|}{\centering CSIRO A2} & \multicolumn{3}{m{0.2\textwidth}|}{\centering 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}
Epllus

PS. Das nächste mal bitte ein vollständiges Minimalebispiel

Zeilenumbruch in Tabelle

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!

Nach oben