Longtable mit Zeilenumbruch
Verfasst: Mi 14. Nov 2018, 17:29
Hallo, wie kann ich in einer Longtable einen Zeilenumbruch in der Kopfzeile erreichen? Die Befehle für eine normale Tabelle funtkionieren leider nicht bei der Benutzung von Longtable
Hier ist mal ein Beispiel
Vielen Dank
Hier ist mal ein Beispiel
\documentclass{article} \usepackage{longtable} \begin{document} \begin{center} \begin{longtable}{|c|c|c|l|} \caption{A sample long table.} \label{tab:long} \\ \hline \multicolumn{1}{|c|}{\textbf{Abstand, \newline s in mm}} & \multicolumn{1}{c|}{\textbf{Kraft, F in N}} & \multicolumn{1}{c|}{\textbf{Messunsicherheit, u in km/h}} & \multicolumn{1}{c|}{\textbf{Anmerkungen}} \\ \hline \endfirsthead \multicolumn{4}{c}% {{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\ \hline \multicolumn{1}{|c|}{\textbf{Abstand, s in mm}} & \multicolumn{1}{c|}{\textbf{Kraft, F in N}} & \multicolumn{1}{c|}{\textbf{Messunsicherheit (km/h)}} & \multicolumn{1}{c|}{\textbf{Messunsicherheit, u in km/h}} \\ \hline \endhead \hline \multicolumn{4}{|r|}{{Continued on next page}} \\ \hline \endfoot \hline \hline \endlastfoot 1 & 55,55 & 123,4567 & abcdef ghjkl \\ 2 & 55,55 & 123,4567 & abcdef ghjkl \\ 3 & 55,55 & 123,4567 & abcdef ghjkl \\ 4 & 55,55 & 123,4567 & abcdef ghjkl \\ 5 & 55,55 & 123,4567 & abcdef ghjkl \\ 6 & 55,55 & 123,4567 & abcdef ghjkl \\ 7 & 55,55 & 123,4567 & abcdef ghjkl \\ 8 & 55,55 & 123,4567 & abcdef ghjkl \\ 9 & 55,55 & 123,4567 & abcdef ghjkl \\ 10 & 55,55 & 123,4567 & abcdef ghjkl \\ 11 & 55,55 & 123,4567 & abcdef ghjkl \\ 12 & 55,55 & 123,4567 & abcdef ghjkl \\ 13 & 55,55 & 123,4567 & abcdef ghjkl \\ 14 & 55,55 & 123,4567 & abcdef ghjkl \\ 15 & 55,55 & 123,4567 & abcdef ghjkl \\ 16 & 55,55 & 123,4567 & abcdef ghjkl \\ 17 & 55,55 & 123,4567 & abcdef ghjkl \\ 18 & 55,55 & 123,4567 & abcdef ghjkl \\ 19 & 55,55 & 123,4567 & abcdef ghjkl \\ 20 & 55,55 & 123,4567 & abcdef ghjkl \\ 21 & 55,55 & 123,4567 & abcdef ghjkl \\ 22 & 55,55 & 123,4567 & abcdef ghjkl \\ 23 & 55,55 & 123,4567 & abcdef ghjkl \\ 24 & 55,55 & 123,4567 & abcdef ghjkl \\ 25 & 55,55 & 123,4567 & abcdef ghjkl \\ 26 & 55,55 & 123,4567 & abcdef ghjkl \\ 27 & 55,55 & 123,4567 & abcdef ghjkl \\ 28 & 55,55 & 123,4567 & abcdef ghjkl \\ 29 & 55,55 & 123,4567 & abcdef ghjkl \\ 30 & 55,55 & 123,4567 & abcdef ghjkl \\ 31 & 55,55 & 123,4567 & abcdef ghjkl \\ 32 & 55,55 & 123,4567 & abcdef ghjkl \\ 33 & 55,55 & 123,4567 & abcdef ghjkl \\ 34 & 55,55 & 123,4567 & abcdef ghjkl \\ 35 & 55,55 & 123,4567 & abcdef ghjkl \\ 36 & 55,55 & 123,4567 & abcdef ghjkl \\ 37 & 55,55 & 123,4567 & abcdef ghjkl \\ 38 & 55,55 & 123,4567 & abcdef ghjkl \\ 39 & 55,55 & 123,4567 & abcdef ghjkl \\ 40 & 55,55 & 123,4567 & abcdef ghjkl \\ 41 & 55,55 & 123,4567 & abcdef ghjkl \\ 42 & 55,55 & 123,4567 & abcdef ghjkl \\ 43 & 55,55 & 123,4567 & abcdef ghjkl \\ 44 & 55,55 & 123,4567 & abcdef ghjkl \\ 45 & 55,55 & 123,4567 & abcdef ghjkl \\ 46 & 55,55 & 123,4567 & abcdef ghjkl \\ 47 & 55,55 & 123,4567 & abcdef ghjkl \\ 48 & 55,55 & 123,4567 & abcdef ghjkl \\ 49 & 55,55 & 123,4567 & abcdef ghjkl \\ 50 & 55,55 & 123,4567 & abcdef ghjkl \\ 51 & 55,55 & 123,4567 & abcdef ghjkl \\ 52 & 55,55 & 123,4567 & abcdef ghjkl \\ 53 & 55,55 & 123,4567 & abcdef ghjkl \\ 54 & 55,55 & 123,4567 & abcdef ghjkl \\ 55 & 55,55 & 123,4567 & abcdef ghjkl \\ \end{longtable} \end{center} \end{document}