Sidewaystable und Threeparttable - zweite Tabelle zentrieren Thema ist als GELÖST markiert

Tabellen und Grafiken erstellen und anordnen


Flatsche
Forum-Anfänger
Forum-Anfänger
Beiträge: 22
Registriert: Di 2. Jun 2020, 15:13

Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Flatsche »

Hallo Leute,

ich habe aktuell ein kleines Problem mit Latex und hoffe, dass ihr mit weiterhelfen könntet. Es geht um die folgenden Tabellen, die im Querformat dargestellt werden sollen:

\documentclass[11pt,listof=totoc, %Abildungsverzeichnis, Bildverz.)
			bibliography=totocnumbered] %num. L.Verz.
			{scrartcl} %Dokumentklasse
\usepackage[paper=a4paper,left=30mm,right=25mm,top=20mm,bottom=20mm,
			footskip=24pt] %Länge zwischen Text und Seitenzahl
			{geometry}
\usepackage{rotating} % for 'sidewaystable' environment
\usepackage[para]{threeparttable}
%\def\TPTtagStyle{\textit} % table footnote markers in italics
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{caption,booktabs,array}
\usepackage[ngerman]{babel}
%\newcolumntype{C}[1]{>{\Centering\arraybackslash}p{#1}}  % ?
%\newcolumntype{L}[1]{>{\RaggedRight\arraybackslash}p{#1}}% ?
\begin{document}

\begin{sidewaystable}
\setlength\extrarowheight{1pt} % provide a bit more vertical whitespace
\centering
\footnotesize
\captionsetup{size=footnotesize}
\begin{threeparttable}
\caption{Analyse der Verlanisierungen}
\label{analyseTabelle}
    \begin{tabular}{lccccccccccc}
    \toprule
          & / mg  & / mg  & / mg  & / mg  & / mg  & / mg  & / \%  & / \%  & / \%  & / \%  & / \% \\
    \midrule
    As    & 862,0 &       &       & 720,0 & 15    & 735,0 & 14,7  &       &       & 98,0  & 2,0 \\
    HR/ & 582,3 &       &       & 483,7 & 14,2  & 497,9 & 14,5  &       &       & 97,1  & 2,9 \\
    As    & 4351,5 &       &       & 3802,1 & 85,5  & 3887,6 & 10,7  &       &       & 97,8  & 2,2 \\
    HR/ & 1657,9 & 1300,2 & 235,0 &       & 21,5  & 1556,7 & 6,1   & 83,5  & 15,1  &       & 1,4 \\
    HR/ & 454,2 & 302,6 & 100,5 &       & 6,5   & 409,6 & 9,8   & 73,9  & 24,5  &       & 1,6 \\
    \bottomrule
    \end{tabular}%
\vspace{1cm} %space between tables
  \caption{Add caption}
  \begin{tabular}{lccc}
    \toprule
    \multicolumn{1}{c}{Probe} & $m_\text{vorher}$ / mg & $m_\text{nachher }$ / mg & $\Delta m$ / mg \\
    \midrule
    50mg/uKW/20min/1 & 17,54 & 17,96 & 0,41 \\
    50mg/uKW/20min/2 & 18,97 & 19,43 & 0,46 \\
    50mg/uKW/20min/3 & 18,40 & 19,03 & 0,63 \\
    50mg/uKW/20min/4 & 18,42 & 18,83 & 0,41 \\
    50mg/uKW/20min/5 & 18,60 & 19,14 & 0,53 \\
    100mg/uKW/20min/1 & 18,87 & 21,09 & 2,22 \\
    100mg/uKW/20min/2 & 17,00 & 18,62 & 1,61 \\
    100mg/uKW/20min/3 & 18,83 & 20,61 & 1,78 \\
    50mg/uKW/25min/1 & 19,67 & 20,14 & 0,47 \\
    50mg/uKW/25min/2 & 18,42 & 18,83 & 0,41 \\
    50mg/uKW/25min/3 & 19,20 & 19,51 & 0,31 \\
    \bottomrule
    \end{tabular}%
\end{threeparttable}
\end{sidewaystable}
\end{document}

Wie ihr sehen könnt, ist die zweite Tabelle leider nicht zentriert. Ich habe schon mit h-und vfill experimentiert, aber irgenwie will es nicht wie ich es haben möchte. Wisst ihr, woran es liegt? Das Endresultat sollte dann so aussehen, dass beide Tabellen mittig auf der Seite gezeigt werden und die untere Tabelle eine Footnote hat.

Liebe Grüße
Flatsche


Gästegast

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Gästegast »

Das Problem ist, dass threeparttable nicht dafür gedacht ist, mehr als eine tabular aufzunehmen. Mach also für jede Tabelle eine eigene threeparttable-Umgebung. Wenn die erste Tabelle keine Fußnoten haben soll, dann reicht auch eine threeparttable nur für die zweite Tabelle.

Für das Setzen von Zahlen und Einheiten (nicht nur aber auch) in Tabellen sei außerdem auf siunitx hingewiesen.

@stefan: Seit wann kann als Gast-Benutzername nicht mehr "gast" eingeben?


Flatsche
Forum-Anfänger
Forum-Anfänger
Beiträge: 22
Registriert: Di 2. Jun 2020, 15:13

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Flatsche »

Hallo,

vielen Dank für die schnelle und zielführende Antwort. Sinutix nutze ich immer, wenn ich eine Zahl davor habe. Warum man das jetzt bei einzelnen Einheiten machen sollte und dabei über \si{\milli\gram} zum Beispiel den Quelltext verländern soll, ist mir bis dato noch unbekannt.

Beste Grüße
Flatsche


Flatsche
Forum-Anfänger
Forum-Anfänger
Beiträge: 22
Registriert: Di 2. Jun 2020, 15:13

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Flatsche »

Nachdem ich den Code in mein Hauptdokument implementiert habe, ergibt sich das Problem, dass sich ein Textteil vor die oben erstellen Tabellen vorschiebt. Ich habe versucht, die \sidewaytable mit [p!] zu platzieren, jedoch erfolglos. Mit [H] aus dem float-Paket verschwindet die Tabelle. Wärt ihr nochmals so freundlich und mir auf die Sprünge zu helfen? Im Forum habe ich dazu leider nichts gefunden.

Liebe Grüße
Flatsche


Gästegast

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Gästegast »

Wenn du nicht willst, dass die Tabelle gleitet, dann verwende keine Gleitumgebung. Allerdings ist gleiten bei Mischung von Text und Tabellen normalerweise das Mittel der Wahl, um Lochfraß im Dokument zu vermeiden. Natürlich kann man mit \clearpage oder placeins auch die Ausgabe von Gleitumgebungen erzwingen, wenn man das unbedingt will.

Mehr kann ich ohne Minimalbeispiel, das das Problem zeigt, nicht dazu sagen.


Flatsche
Forum-Anfänger
Forum-Anfänger
Beiträge: 22
Registriert: Di 2. Jun 2020, 15:13

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Flatsche »

Ich habe mal ein Beispiel erstellt, bei dem das Auftritt. Ich habe die Vermutung, dass es mit \afterpage zusammenhängt. Die Tabelle ist groß, daher auch das große Minimalbeispiel:

\documentclass[11pt,listof=totoc, %Abildungsverzeichnis, Bildverz.)
			bibliography=totocnumbered] %num. L.Verz.
			{scrartcl} %Dokumentklasse
\usepackage[paper=a4paper,left=30mm,right=25mm,top=20mm,bottom=20mm,
			footskip=24pt] %Länge zwischen Text und Seitenzahl
			{geometry}
\usepackage{rotating} % for 'sidewaystable' environment
\usepackage[para]{threeparttable}
%\def\TPTtagStyle{\textit} % table footnote markers in italics
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{afterpage}
\usepackage{color}
\usepackage{placeins}
\usepackage{caption,booktabs,array}
\usepackage[ngerman]{babel}
%\newcolumntype{C}[1]{>{\Centering\arraybackslash}p{#1}}  % ?
%\newcolumntype{L}[1]{>{\RaggedRight\arraybackslash}p{#1}}% ?
\begin{document}

\section{Anhang A - Daten}
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begingroup
\vfill
\centering % uncomment to centre the table horizontally as well as vertically
\begin{sideways}
 \setlength{\tabcolsep}{4pt}
 \scriptsize
  \begin{threeparttable}
    \caption{Test mit vielen Daten}
    \label{tab:bla}
       \begin{tabular}{lcccccccccccccccccccccccccccc}
       \toprule
    \midrule
    HROSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{14,5} & 293   & 492   & 1014  & 111   & 4,3   & 4,8   & 15,4  & 773   & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{2,2} & \textcolor[rgb]{ 1,  0,  0}{1,7} & 6794  & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{1,1} & 5,1   &       & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HROSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{13,2} & 246   & 490   & 979   & 131   & 6,5   & 4,8   & 12,6  & 667   & 2,9   & 2,8   & \textcolor[rgb]{ 1,  0,  0}{0,7} & 6687  & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{1,0} & 4,4   &       & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HROSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{9,5} & 239   & 417   & 1106  & 46,4  & 3,1   & 4,2   & 12,2  & 630   & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{2,7} & \textcolor[rgb]{ 1,  0,  0}{0,4} & 6816  & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 4,4   &       & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HROSKER4 & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{8,7} & 279   & 475   & 939   & 88,6  & 4,4   & 4,3   & 13,9  & 713   & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{2,4} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 6824  & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 4,5   &       & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    HROSKER5 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{3,4} & 308   & 526   & 1186  & 53,6  & 3,8   & 4,6   & 17,1  & 899   & 0,8   & \textcolor[rgb]{ 1,  0,  0}{2,4} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 6731  & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,7} & 3,6   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,08} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,9} & 4,5   &       & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HRMSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{9,6} & 103   & 160   & 765   & 8,7   & \textcolor[rgb]{ 1,  0,  0}{1,1} & \textcolor[rgb]{ 1,  0,  0}{2,3} & \textcolor[rgb]{ 1,  0,  0}{1,0} & 72,4  & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{1,3} & \textcolor[rgb]{ 1,  0,  0}{-0,4} & 6801  & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,1} & 2,5   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,04} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{1,3} &       & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HRMSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{10,2} & 116   & \textcolor[rgb]{ .325,  .553,  .835}{227} & 771   & \textcolor[rgb]{ .325,  .553,  .835}{226} & \textcolor[rgb]{ .325,  .553,  .835}{7,7} & 3,0   & \textcolor[rgb]{ 1,  0,  0}{1,9} & \textcolor[rgb]{ .325,  .553,  .835}{111,2} & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{1,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 6768  & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{0,3} & 2,6   & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{1,2} & \textcolor[rgb]{ 1,  0,  0}{2,2} &       & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    HRMSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 102   & 126   & 819   & 9,3   & \textcolor[rgb]{ 1,  0,  0}{1,1} & \textcolor[rgb]{ 1,  0,  0}{2,1} & \textcolor[rgb]{ 1,  0,  0}{1,2} & 54,0  & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{1,6} & \textcolor[rgb]{ 1,  0,  0}{-0,7} & 6849  & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,1} & 2,5   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{1,4} &       & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HRMSF1 & 4,2   & \textcolor[rgb]{ 1,  0,  0}{11,7} & 1899  & 3297  & 4659  & 415   & 25,9  & 32,5  & 152,3 & 7226  & 2,7   & 12,7  & 10,7  & 6658  & \textcolor[rgb]{ 1,  0,  0}{1,0} & 4,2   & 11,8  & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,09} & 0,8   & \textcolor[rgb]{ 1,  0,  0}{0,8} & 41,5  &       & 4,4   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,2} \\
    HRMSF2 & 4,1   & \textcolor[rgb]{ 1,  0,  0}{13,9} & 1895  & 3340  & 4676  & 415   & 25,2  & 32,1  & 148,8 & 7301  & 2,8   & 12,9  & 8,8   & 6671  & \textcolor[rgb]{ 1,  0,  0}{0,6} & 4,2   & 11,8  & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,13} & 1,0   & \textcolor[rgb]{ 1,  0,  0}{0,8} & 38,1  &       & 4,8   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    HRMSF3 & 4,4   & \textcolor[rgb]{ 1,  0,  0}{13,0} & 2036  & 3638  & 5030  & 447   & 28,3  & 38,7  & 159,7 & 8050  & 2,9   & 14,5  & 10,3  & 6652  & \textcolor[rgb]{ 1,  0,  0}{1,2} & 4,6   & 12,5  & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,12} & 1,0   & \textcolor[rgb]{ 1,  0,  0}{0,7} & 42,2  &       & 5,2   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,2} \\
    VROSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{11,9} & 415,4 & 825,4 & 1467,1 & 117,1 & 4,9   & 8,4   & 36,8  & 1467,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,1   & \textcolor[rgb]{ 1,  0,  0}{2,5} & 6528,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 1,5   & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 11,8  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    VROSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{9,7} & 413,3 & 765,3 & 1351,7 & 106,1 & 4,8   & 10,2  & 36,1  & 1473,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,5   & 3,5   & 6686,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 1,6   & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,09} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 12,9  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{10,0} & 414,4 & 817,1 & 1368,8 & 127,9 & 5,6   & 15,5  & 38,0  & 1538,2 & 0,6   & 5,4   & 3,0   & 6701,8 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 1,6   & 3,5   & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{1,0} & \textcolor[rgb]{ 1,  0,  0}{0,08} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 15,1  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSKER4 & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{18,6} & \textcolor[rgb]{ .325,  .553,  .835}{610,8} & \textcolor[rgb]{ .325,  .553,  .835}{1186,7} & \textcolor[rgb]{ .325,  .553,  .835}{1852,3} & \textcolor[rgb]{ .325,  .553,  .835}{201,4} & \textcolor[rgb]{ .325,  .553,  .835}{8,8} & 13,6  & \textcolor[rgb]{ .325,  .553,  .835}{59,0} & \textcolor[rgb]{ .325,  .553,  .835}{2317,1} & \textcolor[rgb]{ .325,  .553,  .835}{0,9} & 3,8   & 3,6   & 6608,4 & \textcolor[rgb]{ 1,  0,  0}{0,8} & 2,1   & 4,3   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ .325,  .553,  .835}{1,6} & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 16,9  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,5   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    VROSKER5 & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{12,8} & 367,1 & 720,5 & 1267,5 & 114,5 & 4,7   & 10,0  & 33,8  & 1281,3 & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{2,4} & 4,5   & 6783,7 & \textcolor[rgb]{ 1,  0,  0}{0,7} & 1,4   & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,11} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 12,8  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,1   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    VRMSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{14,9} & 79,8  & 122,8 & 793,3 & 7,1   & \textcolor[rgb]{ 1,  0,  0}{0,4} & 3,6   & \textcolor[rgb]{ 1,  0,  0}{2,4} & 73,8  & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{1,3} & 6835,0 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,5   & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,08} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .325,  .553,  .835}{1,4} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .325,  .553,  .835}{0,5} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VRMSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{6,8} & 71,7  & 133,8 & 788,8 & \textcolor[rgb]{ .325,  .553,  .835}{118,6} & 4,4   & 4,1   & \textcolor[rgb]{ 1,  0,  0}{2,0} & 59,5  & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{1,0} & \textcolor[rgb]{ 1,  0,  0}{1,1} & 6798,1 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,4   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & 1,7   & \textcolor[rgb]{ 1,  0,  0}{0,12} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .325,  .553,  .835}{1,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .325,  .553,  .835}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VRMSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{11,8} & 109,9 & 159,2 & 703,8 & 25,7  & \textcolor[rgb]{ 1,  0,  0}{0,9} & 3,5   & 5,3   & 184,8 & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{1,0} & \textcolor[rgb]{ 1,  0,  0}{1,3} & 6828,7 & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,7   & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 2,8   & \textcolor[rgb]{ 1,  0,  0}{0,0} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSFG1 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{16,6} & 400,6 & 757,0 & 1597,0 & 173,1 & 6,6   & 9,0   & 35,6  & 1361,4 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 2,6   & 3,9   & 6666,3 & \textcolor[rgb]{ 1,  0,  0}{0,7} & 1,5   & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & 1,6   & \textcolor[rgb]{ 1,  0,  0}{0,14} & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 11,2  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,1   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSFG2 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{17,0} & 333,3 & 636,9 & 1242,1 & 83,2  & 3,8   & 11,3  & 28,1  & 1093,5 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,1   & 2,2   & 6500,2 & \textcolor[rgb]{ 1,  0,  0}{0,6} & 1,2   & 2,9   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ .325,  .553,  .835}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 9,6   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .325,  .553,  .835}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSFG3 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{12,6} & 312,0 & 632,1 & 1314,4 & 135,3 & 5,0   & 8,0   & 28,4  & 1078,0 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 2,6   & 2,6   & 6706,0 & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,3   & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & 1,2   & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,1} & 12,6  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,1   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    \bottomrule
    \end{tabular}%
  \end{threeparttable}%
\end{sideways}%
\vfill
\hfill
\endgroup
\afterpage{
\begin{sidewaystable}
\setlength\extrarowheight{1pt} % provide a bit more vertical whitespace
\centering
\footnotesize
\captionsetup{size=footnotesize}
\caption{Massen der unterschiedlichen Partikelfraktionen nach der Siebung.}
\label{tab:Korngrößenverteilung}
    \begin{tabular}{lccccccccccc}
    \toprule
          & / mg  & / mg  & / mg  & / mg  & / mg  & / mg  & / \%  & / \%  & / \%  & / \%  & / \% \\
    \midrule
    As    & 862,0 &       &       & 720,0 & 15    & 735,0 & 14,7  &       &       & 98,0  & 2,0 \\
    HR/ & 582,3 &       &       & 483,7 & 14,2  & 497,9 & 14,5  &       &       & 97,1  & 2,9 \\
    As    & 4351,5 &       &       & 3802,1 & 85,5  & 3887,6 & 10,7  &       &       & 97,8  & 2,2 \\
    HR/ & 1657,9 & 1300,2 & 235,0 &       & 21,5  & 1556,7 & 6,1   & 83,5  & 15,1  &       & 1,4 \\
    HR/ & 454,2 & 302,6 & 100,5 &       & 6,5   & 409,6 & 9,8   & 73,9  & 24,5  &       & 1,6 \\
    \bottomrule
    \end{tabular}%
    \vspace{2em}
  \caption{Add caption}
\begin{threeparttable}
  \begin{tabular}{lccc}
    \toprule
    \multicolumn{1}{c}{Probe} & $m_\text{vorher}$ / mg & $m_\text{nachher }$ / mg & $\Delta m$ / mg \\
    \midrule
    50mg/uKW/20min/1 & 17,54 & 17,96 & 0,41 \\
    50mg/uKW/20min/2 & 18,97 & 19,43 & 0,46 \\
    50mg/uKW/20min/3 & 18,40 & 19,03 & 0,63 \\
    50mg/uKW/20min/4 & 18,42 & 18,83 & 0,41 \\
    50mg/uKW/20min/5 & 18,60 & 19,14 & 0,53 \\
    100mg/uKW/20min/1 & 18,87 & 21,09 & 2,22 \\
    100mg/uKW/20min/2 & 17,00 & 18,62 & 1,61 \\
    100mg/uKW/20min/3 & 18,83 & 20,61 & 1,78 \\
    50mg/uKW/25min/1 & 19,67 & 20,14 & 0,47 \\
    50mg/uKW/25min/2 & 18,42 & 18,83 & 0,41 \\
    50mg/uKW/25min/3 & 19,20 & 19,51 & 0,31 \\
    \bottomrule
    \end{tabular}%
    \begin{tablenotes}
\item  Hallo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. allo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. allo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. allo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. 
\end{tablenotes}
\end{threeparttable}
\end{sidewaystable}}
\FloatBarrier
\section{Anhang B - Zusammenfassung der adaptierten Methoden}
Test 123
\end{document}

Der Anhang sollte hinter den Tabellen erscheinen. Weist hier jemand weiter?

Liebe Grüße
Flatsche


Gästegast

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Gästegast »

\afterpage verträgt sich in der Tat nicht sonderlich gut mit Gleitumgebungen. Ich sehe auch nicht, dass es an der Stelle wirklich sinnvoll wäre. Du hast hier tatsächlich das Problem, dass die Seite tatsächlich erst durch die nächste Überschrift tatsächlich beendet wird. Das führt dann dazu, dass der Inhalt von \afterpage erst nach der neuen Seite ausgeführt wird. Und die neue Seite beginnt dann eben mit dem Anhang. Das ist ein grundsätzliches Problem von \afterpage: LaTeX hat eine asynchrone Ausgabe. Deshalb kannst du damit nicht bestimmen, dass der Inhalt von \afterpage vor etwas bestimmtem anderen ausgegeben wird (auch nicht vor einer \FloatBarrier, die nach der \afterpage-Anweisung steht), sondern nur, dass es nach etwas anderem ausgegeben werden soll. Wie weit danach hängt von der aktuellen Füllung der vertikalen Liste ab. Anwender von \afterpage sind daher immer wieder überrascht, wie spät der Inhalt tatsächlich ausgegeben wird. Die meisten würden beispielsweise erwarten, dass bei

\documentclass{scrartcl} %Dokumentklasse
\usepackage{afterpage}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\begin{document}

\section{Erster Abschnitt}
\blindtext[4]\marginpar{Hier war die Anweisung!}
\afterpage{\clearpage
  \vspace*{\fill}\begin{center}Seitenmitte\end{center}\vspace{\fill}
  \clearpage
}
\blindtext[20]

\section{Zweiter Abschnitt}
\blindtext
\end{document}

Die Seite, auf der nur "Seitenmitte" steht, unmittelbar nach der Seite mit der Randnotiz kommt. Das ist aber nicht der Fall und liegt eben an der asynchronen Ausgaberoutine von LaTeX.


Flatsche
Forum-Anfänger
Forum-Anfänger
Beiträge: 22
Registriert: Di 2. Jun 2020, 15:13

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Flatsche »

Ich benutze \afterpage, da ich sonst vor der Tabelle eine leere Seite durch einen Seitenumbruch erhalte. Gibt es dann hierzu einen alternativen Code, der meine Wünsche realisieren kann? Ich suche Mal nach weiteren Möglichkeiten, diesen Seitenumbruch zu unterdrücken. Aber mein gewünschtes Ergebnis kann doch eigentlich nicht so schwer sein :/

Liebe Grüße
Flatsche


Altgast

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Altgast »

Naja, das liegt daran, dass du erst mit \vfill in den vertikalen Modus schaltest, dann aber mit \hfil wieder zurück in den horizontalen und somit eine zusätzliche Leerzeile schaffst. Lässt man das weg, dann passt es:

\documentclass[11pt,listof=totoc, %Abildungsverzeichnis, Bildverz.)
			bibliography=totocnumbered] %num. L.Verz.
			{scrartcl} %Dokumentklasse
\usepackage[paper=a4paper,left=30mm,right=25mm,top=20mm,bottom=20mm,
			footskip=24pt] %Länge zwischen Text und Seitenzahl
			{geometry}
\usepackage{rotating} % for 'sidewaystable' environment
\usepackage[para]{threeparttable}
%\def\TPTtagStyle{\textit} % table footnote markers in italics
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{afterpage}
\usepackage{color}
\usepackage{placeins}
\usepackage{caption,booktabs,array}
\usepackage[ngerman]{babel}
%\newcolumntype{C}[1]{>{\Centering\arraybackslash}p{#1}}  % ?
%\newcolumntype{L}[1]{>{\RaggedRight\arraybackslash}p{#1}}% ?
\begin{document}

\section{Anhang A - Daten}
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begingroup
  \vfill% In dem Fall ist das eigentlich auch eher unsinnig
  \centering % uncomment to centre the table horizontally as well as vertically
  \begin{sideways}
    \setlength{\tabcolsep}{4pt}
    \scriptsize
    \begin{threeparttable}
      \caption{Test mit vielen Daten}
      \label{tab:bla}
      \begin{tabular}{lcccccccccccccccccccccccccccc}
        \toprule
        \midrule
        HROSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{14,5} & 293   & 492   & 1014  & 111   & 4,3   & 4,8   & 15,4  & 773   & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{2,2} & \textcolor[rgb]{ 1,  0,  0}{1,7} & 6794  & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{1,1} & 5,1   &       & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
        HROSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{13,2} & 246   & 490   & 979   & 131   & 6,5   & 4,8   & 12,6  & 667   & 2,9   & 2,8   & \textcolor[rgb]{ 1,  0,  0}{0,7} & 6687  & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{1,0} & 4,4   &       & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
        HROSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{9,5} & 239   & 417   & 1106  & 46,4  & 3,1   & 4,2   & 12,2  & 630   & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{2,7} & \textcolor[rgb]{ 1,  0,  0}{0,4} & 6816  & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 4,4   &       & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
        HROSKER4 & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{8,7} & 279   & 475   & 939   & 88,6  & 4,4   & 4,3   & 13,9  & 713   & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{2,4} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 6824  & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 4,5   &       & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
        HROSKER5 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{3,4} & 308   & 526   & 1186  & 53,6  & 3,8   & 4,6   & 17,1  & 899   & 0,8   & \textcolor[rgb]{ 1,  0,  0}{2,4} & \textcolor[rgb]{ 1,  0,  0}{0,6} & 6731  & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,7} & 3,6   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,08} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,9} & 4,5   &       & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
        HRMSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{9,6} & 103   & 160   & 765   & 8,7   & \textcolor[rgb]{ 1,  0,  0}{1,1} & \textcolor[rgb]{ 1,  0,  0}{2,3} & \textcolor[rgb]{ 1,  0,  0}{1,0} & 72,4  & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{1,3} & \textcolor[rgb]{ 1,  0,  0}{-0,4} & 6801  & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,1} & 2,5   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,04} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{1,3} &       & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HRMSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{10,2} & 116   & \textcolor[rgb]{ .325,  .553,  .835}{227} & 771   & \textcolor[rgb]{ .325,  .553,  .835}{226} & \textcolor[rgb]{ .325,  .553,  .835}{7,7} & 3,0   & \textcolor[rgb]{ 1,  0,  0}{1,9} & \textcolor[rgb]{ .325,  .553,  .835}{111,2} & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{1,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 6768  & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{0,3} & 2,6   & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{1,2} & \textcolor[rgb]{ 1,  0,  0}{2,2} &       & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    HRMSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 102   & 126   & 819   & 9,3   & \textcolor[rgb]{ 1,  0,  0}{1,1} & \textcolor[rgb]{ 1,  0,  0}{2,1} & \textcolor[rgb]{ 1,  0,  0}{1,2} & 54,0  & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{1,6} & \textcolor[rgb]{ 1,  0,  0}{-0,7} & 6849  & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,1} & 2,5   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{1,4} &       & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    HRMSF1 & 4,2   & \textcolor[rgb]{ 1,  0,  0}{11,7} & 1899  & 3297  & 4659  & 415   & 25,9  & 32,5  & 152,3 & 7226  & 2,7   & 12,7  & 10,7  & 6658  & \textcolor[rgb]{ 1,  0,  0}{1,0} & 4,2   & 11,8  & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,09} & 0,8   & \textcolor[rgb]{ 1,  0,  0}{0,8} & 41,5  &       & 4,4   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,2} \\
    HRMSF2 & 4,1   & \textcolor[rgb]{ 1,  0,  0}{13,9} & 1895  & 3340  & 4676  & 415   & 25,2  & 32,1  & 148,8 & 7301  & 2,8   & 12,9  & 8,8   & 6671  & \textcolor[rgb]{ 1,  0,  0}{0,6} & 4,2   & 11,8  & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,13} & 1,0   & \textcolor[rgb]{ 1,  0,  0}{0,8} & 38,1  &       & 4,8   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    HRMSF3 & 4,4   & \textcolor[rgb]{ 1,  0,  0}{13,0} & 2036  & 3638  & 5030  & 447   & 28,3  & 38,7  & 159,7 & 8050  & 2,9   & 14,5  & 10,3  & 6652  & \textcolor[rgb]{ 1,  0,  0}{1,2} & 4,6   & 12,5  & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,0} &       & \textcolor[rgb]{ 1,  0,  0}{0,12} & 1,0   & \textcolor[rgb]{ 1,  0,  0}{0,7} & 42,2  &       & 5,2   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,2} \\
    VROSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{11,9} & 415,4 & 825,4 & 1467,1 & 117,1 & 4,9   & 8,4   & 36,8  & 1467,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,1   & \textcolor[rgb]{ 1,  0,  0}{2,5} & 6528,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 1,5   & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 11,8  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    VROSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{9,7} & 413,3 & 765,3 & 1351,7 & 106,1 & 4,8   & 10,2  & 36,1  & 1473,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,5   & 3,5   & 6686,2 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 1,6   & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,09} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 12,9  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,8} & \textcolor[rgb]{ 1,  0,  0}{10,0} & 414,4 & 817,1 & 1368,8 & 127,9 & 5,6   & 15,5  & 38,0  & 1538,2 & 0,6   & 5,4   & 3,0   & 6701,8 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 1,6   & 3,5   & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{1,0} & \textcolor[rgb]{ 1,  0,  0}{0,08} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 15,1  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSKER4 & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{18,6} & \textcolor[rgb]{ .325,  .553,  .835}{610,8} & \textcolor[rgb]{ .325,  .553,  .835}{1186,7} & \textcolor[rgb]{ .325,  .553,  .835}{1852,3} & \textcolor[rgb]{ .325,  .553,  .835}{201,4} & \textcolor[rgb]{ .325,  .553,  .835}{8,8} & 13,6  & \textcolor[rgb]{ .325,  .553,  .835}{59,0} & \textcolor[rgb]{ .325,  .553,  .835}{2317,1} & \textcolor[rgb]{ .325,  .553,  .835}{0,9} & 3,8   & 3,6   & 6608,4 & \textcolor[rgb]{ 1,  0,  0}{0,8} & 2,1   & 4,3   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ .325,  .553,  .835}{1,6} & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 16,9  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,5   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    VROSKER5 & \textcolor[rgb]{ 1,  0,  0}{0,7} & \textcolor[rgb]{ 1,  0,  0}{12,8} & 367,1 & 720,5 & 1267,5 & 114,5 & 4,7   & 10,0  & 33,8  & 1281,3 & \textcolor[rgb]{ 1,  0,  0}{0,5} & \textcolor[rgb]{ 1,  0,  0}{2,4} & 4,5   & 6783,7 & \textcolor[rgb]{ 1,  0,  0}{0,7} & 1,4   & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,11} & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 12,8  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,1   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} \\
    VRMSKER1 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{14,9} & 79,8  & 122,8 & 793,3 & 7,1   & \textcolor[rgb]{ 1,  0,  0}{0,4} & 3,6   & \textcolor[rgb]{ 1,  0,  0}{2,4} & 73,8  & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,9} & \textcolor[rgb]{ 1,  0,  0}{1,3} & 6835,0 & \textcolor[rgb]{ 1,  0,  0}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,5   & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,08} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .325,  .553,  .835}{1,4} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .325,  .553,  .835}{0,5} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VRMSKER2 & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ 1,  0,  0}{6,8} & 71,7  & 133,8 & 788,8 & \textcolor[rgb]{ .325,  .553,  .835}{118,6} & 4,4   & 4,1   & \textcolor[rgb]{ 1,  0,  0}{2,0} & 59,5  & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{1,0} & \textcolor[rgb]{ 1,  0,  0}{1,1} & 6798,1 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,4   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & 1,7   & \textcolor[rgb]{ 1,  0,  0}{0,12} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .325,  .553,  .835}{1,2} & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .325,  .553,  .835}{0,4} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VRMSKER3 & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{11,8} & 109,9 & 159,2 & 703,8 & 25,7  & \textcolor[rgb]{ 1,  0,  0}{0,9} & 3,5   & 5,3   & 184,8 & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ 1,  0,  0}{1,0} & \textcolor[rgb]{ 1,  0,  0}{1,3} & 6828,7 & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,7   & \textcolor[rgb]{ 1,  0,  0}{0,0} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,06} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 2,8   & \textcolor[rgb]{ 1,  0,  0}{0,0} & 1,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSFG1 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{16,6} & 400,6 & 757,0 & 1597,0 & 173,1 & 6,6   & 9,0   & 35,6  & 1361,4 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 2,6   & 3,9   & 6666,3 & \textcolor[rgb]{ 1,  0,  0}{0,7} & 1,5   & 3,3   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & 1,6   & \textcolor[rgb]{ 1,  0,  0}{0,14} & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 11,2  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,1   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSFG2 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{17,0} & 333,3 & 636,9 & 1242,1 & 83,2  & 3,8   & 11,3  & 28,1  & 1093,5 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 3,1   & 2,2   & 6500,2 & \textcolor[rgb]{ 1,  0,  0}{0,6} & 1,2   & 2,9   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .851,  .851,  .851}{} & \textcolor[rgb]{ .325,  .553,  .835}{0,6} & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} & 9,6   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ .325,  .553,  .835}{0,9} & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
    VROSFG3 & \textcolor[rgb]{ 1,  0,  0}{0,6} & \textcolor[rgb]{ 1,  0,  0}{12,6} & 312,0 & 632,1 & 1314,4 & 135,3 & 5,0   & 8,0   & 28,4  & 1078,0 & \textcolor[rgb]{ 1,  0,  0}{0,5} & 2,6   & 2,6   & 6706,0 & \textcolor[rgb]{ 1,  0,  0}{0,8} & 1,3   & 3,2   & \textcolor[rgb]{ 1,  0,  0}{0,2} & \textcolor[rgb]{ .851,  .851,  .851}{} & 1,2   & \textcolor[rgb]{ 1,  0,  0}{0,07} & \textcolor[rgb]{ 1,  0,  0}{0,3} & \textcolor[rgb]{ 1,  0,  0}{0,1} & 12,6  & \textcolor[rgb]{ 1,  0,  0}{0,1} & 1,1   & \textcolor[rgb]{ 1,  0,  0}{0,1} & \textcolor[rgb]{ 1,  0,  0}{0,0} \\
        \bottomrule
      \end{tabular}%
    \end{threeparttable}%
  \end{sideways}%
  \vfill% In dem Fall ist das eigentlich auch nicht wirklich notwendig
\endgroup

\clearpage
\begin{sidewaystable}
  \setlength\extrarowheight{1pt} % provide a bit more vertical whitespace
  \centering
  \footnotesize
  \captionsetup{size=footnotesize}
  \caption{Massen der unterschiedlichen Partikelfraktionen nach der Siebung.}
  \label{tab:Korngrößenverteilung}
    \begin{tabular}{lccccccccccc}
    \toprule
          & / mg  & / mg  & / mg  & / mg  & / mg  & / mg  & / \%  & / \%  & / \%  & / \%  & / \% \\
    \midrule
    As    & 862,0 &       &       & 720,0 & 15    & 735,0 & 14,7  &       &       & 98,0  & 2,0 \\
    HR/ & 582,3 &       &       & 483,7 & 14,2  & 497,9 & 14,5  &       &       & 97,1  & 2,9 \\
    As    & 4351,5 &       &       & 3802,1 & 85,5  & 3887,6 & 10,7  &       &       & 97,8  & 2,2 \\
    HR/ & 1657,9 & 1300,2 & 235,0 &       & 21,5  & 1556,7 & 6,1   & 83,5  & 15,1  &       & 1,4 \\
    HR/ & 454,2 & 302,6 & 100,5 &       & 6,5   & 409,6 & 9,8   & 73,9  & 24,5  &       & 1,6 \\
    \bottomrule
    \end{tabular}%
    \vspace{2em}
  \caption{Add caption}
\begin{threeparttable}
  \begin{tabular}{lccc}
    \toprule
    \multicolumn{1}{c}{Probe} & $m_\text{vorher}$ / mg & $m_\text{nachher }$ / mg & $\Delta m$ / mg \\
    \midrule
    50mg/uKW/20min/1 & 17,54 & 17,96 & 0,41 \\
    50mg/uKW/20min/2 & 18,97 & 19,43 & 0,46 \\
    50mg/uKW/20min/3 & 18,40 & 19,03 & 0,63 \\
    50mg/uKW/20min/4 & 18,42 & 18,83 & 0,41 \\
    50mg/uKW/20min/5 & 18,60 & 19,14 & 0,53 \\
    100mg/uKW/20min/1 & 18,87 & 21,09 & 2,22 \\
    100mg/uKW/20min/2 & 17,00 & 18,62 & 1,61 \\
    100mg/uKW/20min/3 & 18,83 & 20,61 & 1,78 \\
    50mg/uKW/25min/1 & 19,67 & 20,14 & 0,47 \\
    50mg/uKW/25min/2 & 18,42 & 18,83 & 0,41 \\
    50mg/uKW/25min/3 & 19,20 & 19,51 & 0,31 \\
    \bottomrule
    \end{tabular}%
    \begin{tablenotes}
\item  Hallo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. allo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. allo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. allo Liebe Welt, hier sollen ein zwei Sätze als Kommentar beigefügt werden. 
\end{tablenotes}
\end{threeparttable}
\end{sidewaystable}
\clearpage
\section{Anhang B - Zusammenfassung der adaptierten Methoden}
Test 123
\end{document}

Du hast noch andere Dinge im Code, die eher überflüssig sind, beispielsweise 11pt, inputenc, paper=a4paper. Die Tabellen selbst habe ich mir gar nicht angeschaut, vermute aber, dass da massenhaft Zahlen drinstehen. Dafür sei auf siunitx hingewiesen. Ist meist besser, als Zahlen zu zentrieren. Und "Anhang A" und "Anhang B" haben eigentlich in der Überschrift auch nichts zu suchen. Nummeriert wird automatisch und sollte immer automatisch werden.


Flatsche
Forum-Anfänger
Forum-Anfänger
Beiträge: 22
Registriert: Di 2. Jun 2020, 15:13

Re: Sidewaystable und Threeparttable - zweite Tabelle zentrieren

Beitrag von Flatsche »

Hallo,
danke für den funktionierenden Code. Die tabular Umgebung wurde automatisch mit Excel2Latex erzeugt. Mit siunitx meinst du, dass ich S-Tabellen (oder so ähnlich) erzeuge?
Das mit dem Anhang war für mich die einfachste Methode, da diese in dem Dokument immer so angeordnet bleiben müssen und das meine Vorgaben so sind. Dazu kommt, dass ich ein wenig faul war, sodass mir diese Lösung ausgereicht hat.
Danke für die ausführliche Hilfe und den erklärungen, die haben mir echt weitergeholfen!

Liebe Grüße
Flatsche


Antworten