Seite 1 von 1

Zwei Tabellen gedreht untereinander + Section auf der Seite

Verfasst: Fr 16. Sep 2016, 11:12
von bytesurfer
Hallo Leute,

ich schreibe momentan meine Masterarbeit und beschäftige mich mit dem Anhang. Hier möchte ich meine ganzen Datentabellen einfügen und um Platz zu sparen, am besten übereinander.

Hierbei verzweifel ich seit zwei Tagen dran. Ich möchte zwei breite Tabellen übereinander, gedreht, verkleinert und mit einer \section auf der Seite darstellen. Infolgedessen ist das Sidewaystable-Package und auch die landscape-Umgebung nicht brauchbar. Anbei mein Versuch, welcher die Tabellen auf der Seite mit der Section hat, jedoch die captions nicht mitgedreht werden. Sobald ich probiere diese ebenfalls zu drehen, schmeißt mir Latex viele Fehler raus, die ich nicht lösen konnte.

Vielen Dank für Eure Hilfe!

P.S. Als "nice to have" würde ich die Tabellen noch horizontal und vertikal auf dem Blatt unter der Section zentrieren, dies muss aber nicht unbedingt sein.

\documentclass[fontsize=12pt, paper=a4, headinclude, twoside=false, parskip=half+, pagesize=auto, numbers=noenddot, plainheadsepline, open=right, toc=listof, toc=bibliography]{scrartcl}

% Allgemeines
\usepackage{amsmath,marvosym} % Mathesachen
\usepackage{amssymb}
\usepackage{rotfloat}
% Sprache: Deutsch
\usepackage[ngerman]{babel} % Silbentrennung








\begin{document}

\section{Hier steht eine Überschrift}


\begin{minipage}{0.45\textwidth}
\begin{table}[H]
\rotatebox{90}{
\resizebox{7.6cm}{!}{
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{18}{|c|}{Text} \\
\hline
\multicolumn{18}{|c|}{Text} \\
\hline
\multicolumn{6}{|c|}{Text}                    & \multicolumn{6}{c|}{Text}                     & \multicolumn{6}{c|}{Text} \\
\hline
\multicolumn{3}{|c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} \\
\hline
text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
\end{tabular}}}%
		\caption{XXXXXXXXXXXXX}
    \label{1}
\end{table}
\end{minipage}\hfill
\begin{minipage}{0.45\textwidth}
\begin{table}[H]
\rotatebox{90}{
\resizebox{7.6cm}{!}{
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{18}{|c|}{Text} \\
\hline
\multicolumn{18}{|c|}{Text} \\
\hline
\multicolumn{6}{|c|}{Text}                    & \multicolumn{6}{c|}{Text}                     & \multicolumn{6}{c|}{Text} \\
\hline
\multicolumn{3}{|c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} \\
\hline
text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text  & text \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0   & 0,0 \\
\hline
\end{tabular}}}%
    \caption{XXXXXXXXXXXXX}
    \label{2}
\end{table}
\end{minipage}




\end{document}

Verfasst: Fr 16. Sep 2016, 11:45
von Noch so einer
So ganz habe ich nicht verstanden, was Du willst, aber vielleicht hilft Dir das trotzdem weiter:
\documentclass[fontsize=12pt,headinclude,parskip=half+,numbers=noenddot,toc=listof, toc=bibliography]{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[ngerman]{babel} % Silbentrennung
\usepackage{placeins}

\begin{document}

\FloatBarrier% Hier überflüssig, in einem echten Dokument eventuell nicht!
\section{Hier steht eine Überschrift}

\vfill
\begingroup
\centering% oder: \KOMAoptions{parskip=half-}
\rotatebox{90}{%
  \begin{minipage}{\textwidth}\centering
    \tiny
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
      \hline
      \multicolumn{18}{|c|}{Text} \\
      \hline
      \multicolumn{18}{|c|}{Text} \\
      \hline
      \multicolumn{6}{|c|}{Text} & \multicolumn{6}{c|}{Text} & \multicolumn{6}{c|}{Text} \\
      \hline
      \multicolumn{3}{|c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} \\
      \hline
      text & text & text & text & text & text & text & text & text & text & text & text & text & text & text & text & text & text \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
    \end{tabular}%
    \captionof{table}{XXXXXXXXXXXXX}
    \label{1}
    \bigskip
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
      \hline
      \multicolumn{18}{|c|}{Text} \\
      \hline
      \multicolumn{18}{|c|}{Text} \\
      \hline
      \multicolumn{6}{|c|}{Text} & \multicolumn{6}{c|}{Text} & \multicolumn{6}{c|}{Text} \\
      \hline
      \multicolumn{3}{|c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{2} \\
      \hline
      text & text & text & text & text & text & text & text & text & text & text & text & text & text & text & text & text & text \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
      0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 & 0,0 \\
      \hline
    \end{tabular}%
    \captionof{table}{XXXXXXXXXXXXX}
    \label{2}
  \end{minipage}
}\par
\endgroup
\vspace*{\fill}
\clearpage% Hier überflüssig, in einem echten Dokument aber eventuell nicht.

\end{document}
Die als überflüssig kommentierten Zeilen sind deshalb überflüssig weil sie im Beispiel am Dokumentanfang bzw. am Dokumentende stehen. Wenn der Code mitten in einem Dokument steht, sind die Zeilen nicht mehr unbedingt überflüssig.

Es sei noch darauf hingewiesen, dass man bei Tabellen normalerweise eher mit Überschriften als mit Unterschriften arbeitet. Sie dann \captionaboveof in der KOMA-Script-Anleitung oder im KOMA-Script-Buch.

Verfasst: Fr 16. Sep 2016, 11:46
von DADABBI
Derart kleine Tabellen kann man nicht mehr ohne extreme Anstrengung lesen. Also liest sie keiner. Also kann man der Umwelt einen Gefallen tun und sie gleich weglassen.

Verfasst: Fr 16. Sep 2016, 12:59
von bytesurfer
Vielen Dank noch so einer, das war genau was ich haben wollte! Vielen Dank für deine schnelle Antwort!

Normalerweise sind bei meinen Tabellen die Überschriften auch über den Tabellen, warum das hier nicht so ist, weiß ich leider nicht. Der Befehl \captionaboveof{}{} bewirkt leider nichts.


@DADABBI ich habe die Tabellen auf scriptsize vergrößert und ich finde sie ausgedruckt gut lesbar. Allerdings ist die Sache so, dass ich sie so oder so ausdrucken muss im Anhang. Es geht weniger um das Lesen als um die Vollständigkeit falls meine Professoren etwas nachvollziehen wollen. Außerhalb des Anhangs sind die Tabellen größer und übersichtlicher gehalten.

Verfasst: Fr 16. Sep 2016, 13:17
von DADABBI
Du musst die Anweisung da hin stellen, wo der Text auch stehen soll. Siehe auch die Erklärung zu \captionabove etc. in der KOMA-Script-Anleitung, [d]scrguide[/d], oder im KOMA-Script-Buch.

Verfasst: Fr 16. Sep 2016, 13:23
von bytesurfer
Jap, das war das Problem :shock:

Vielen Dank euch beiden!