Seite 1 von 1

Probleme mit Longtable

Verfasst: Mo 18. Apr 2011, 19:53
von weichold
Hi
hab Probleme mit Longtable
es soll vier Spalten geben, drei davon mit Zeilenumbruch, aber irgend wie klappt es nicht.
\begin{center}
\begin{longtable}{|c}|p{4cm}|p{4cm}||p{4cm}}
\caption{Übersetzungsvergleich}  \\


\multicolumn{4}{c|p{4cm}|p{4cm}|p{4cm}}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\hline \multicolumn{1}{|c|}{\textbf{Vers} &
\multicolumn{1}{p{4cm|}{\textbf{Triple chosen}} &
\multicolumn{1}{p{4cm|}{\textbf{Other feasible triples}}&
\multicolumn{1}{p{4cm|}{\textbf{Other feasible triples}} \\ \hline 
\endhead

\hline \multicolumn{4}{|r|}{{Continued on next page}} \\ \hline
\endfoot

\hline \hline
\endlastfoot
...

\end{longtable}
\end{center}

Verfasst: Mo 18. Apr 2011, 20:50
von AufDieSchnelle
Was genau soll denn das hier darstellen?
\multicolumn{4}{c|p{4cm}|p{4cm}|p{4cm}}
Tipp: Syntax von multicolumn anschauen. ;)