von Gast007 » Mi 14. Nov 2018, 18:19
Vielen Dank für deine Mühe, der Tabellenkopf in deinem Vorschlag sieht sehr gut aus. Leider haben die Tabellen in meinen Dokument vertikale Trennlinien und wenn ich die dort hinzufüge werden aus irgendeinem Grund nicht geschlossen
\documentclass{article}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage[per-mode=symbol]{siunitx}
\begin{document}
\begin{longtable}{|S|S|S|l|}
\caption{A sample long table.}
\label{tab:long} \\
\toprule
{Abstand} & {Kraft} & {Messunsicherheit} & Anmerkungen \\
{$s$ in \si{\mm}} & {$F$ in \si{\N}} & {$u$ in \si{\km\per\hour}} &\\
\midrule
\endfirsthead
%\multicolumn{4}{c}%
%{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\caption[]{continued from previous page}\\
\toprule
{Abstand} & {Kraft} & {Messunsicherheit} & Anmerkungen \\
{$s$ in \si{\mm}} & {$F$ in \si{\N}} & {$u$ in \si{\km\per\hour}} &\\
\midrule
\endhead
\midrule
\multicolumn{4}{r}{{Continued on next page}} \\
\bottomrule
\endfoot
\bottomrule
\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{document}
Vielen Dank für deine Mühe, der Tabellenkopf in deinem Vorschlag sieht sehr gut aus. Leider haben die Tabellen in meinen Dokument vertikale Trennlinien und wenn ich die dort hinzufüge werden aus irgendeinem Grund nicht geschlossen
[code]
\documentclass{article}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage[per-mode=symbol]{siunitx}
\begin{document}
\begin{longtable}{|S|S|S|l|}
\caption{A sample long table.}
\label{tab:long} \\
\toprule
{Abstand} & {Kraft} & {Messunsicherheit} & Anmerkungen \\
{$s$ in \si{\mm}} & {$F$ in \si{\N}} & {$u$ in \si{\km\per\hour}} &\\
\midrule
\endfirsthead
%\multicolumn{4}{c}%
%{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\caption[]{continued from previous page}\\
\toprule
{Abstand} & {Kraft} & {Messunsicherheit} & Anmerkungen \\
{$s$ in \si{\mm}} & {$F$ in \si{\N}} & {$u$ in \si{\km\per\hour}} &\\
\midrule
\endhead
\midrule
\multicolumn{4}{r}{{Continued on next page}} \\
\bottomrule
\endfoot
\bottomrule
\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{document}
[/code]