
Ich habe Schwierigkeiten beim Ausrichten meiner Tabellen.
Als erstes fügt Latex einen Abstand zwischen zwei einzelnen Tabellen auf einer Seite ein. Ich möchte den normalen Abstand zwischen ihnen und den Rest der Seite einfach leer lassen. Nicht beide gleichmäßig auf einer Seite verteilt.
Zweitens habe ich eine einzelne, seitlich ausgerichtete Tabelle, die zentriert ist. Ich möchte, dass sie oben auf der Seite beginnt und der Rest der Seite wie zuvor leer bleibt. Also eine vertikale Ausrichtung für eine Querformatseite. Das habe ich für normale Tabellen mit diesem \makeatletter... erreicht.
\RequirePackage{rotating}
\documentclass[12pt, a4paper, listof=totoc, footlines=2, ngerman,english]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\setlength{\parindent}{0em}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{gensymb}
\usepackage{mwe}
\usepackage{xpatch}
\makeatletter% Set distance from top of page to first float
\setlength\@fptop{0\p@}
\makeatother
\begin{document}
\begin{table}
\centering
\caption{Something}
\label{tab:14}
\begin{tabular}{ccccccc}
\toprule
\textbf{No.} &\textbf{AAAAAA} & \textbf{BBBBBB}& \textbf{CCCCCC}& \textbf{DDDDDD}& \textbf{EEEEEE}& \textbf{F} \\
\midrule
600 & 600 & 100 & 200 & 100 & - & - \\
600 & 600 & 100 & 200 & - & 100 & - \\
600 & 600 & 100 & 200 & - & - & 100\\
600 & 600 & 100 & 250 & 50 & - & - \\
600 & 600 & 100 & 250 & - & 50 & - \\
600 & 600 & 100 & 250 & - & - & 50 \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}
\centering
\caption{Something1}
\label{tab:15}
\begin{tabular}{cccccc}
\toprule
\textbf{AAAA} &\textbf{BBBB}/nm & \textbf{CCCCC}/\% & \textbf{DDDDD}/s& \textbf{EEEEE}/J& \textbf{FFFFFF}/N\\
\midrule
600 & - & 123 & 123 & - & 12345 \\
600 & - & 123 & 123 & - & - \\
600 & - & 123 & 123 & - & - \\
600 & 600.7 & 600.5 & 4.01 & - & - \\
600 & 600.0 & 600.9 & 2.73 & - & - \\
600 & 600.3 & 600.7 & 1.75 & - & - \\
600 & 600.7 & 600.9 & 2.40 & - & - \\
\bottomrule
\end{tabular}
\end{table}
\clearpage
\begin{sidewaystable}
\centering
\caption{LALALALALALALALALALAL}
\label{tab:16}
\begin{tabular}{ccccccccc}
\toprule
\textbf{No.} &\textbf{AAAAAAAAA} &\textbf{AAAAAAAAAA} & \textbf{VVVVVVV} &\textbf{XXX} &\textbf{AAAA} & \textbf{CCCCT}& \textbf{XXNT}& \textbf{BIBIBI} \\
\midrule
600 & 614 & 650 & 100 & 200 & 50 & - & - & 50\\
600 & 614 & 650 & 100 & 200 & 50 & - & - & 80\\
600 & 615 & 650 & 100 & 200 & - & 50 & - & 50\\
600 & 615 & 650 & 100 & 200 & - & 50 & - & 80\\
600 & 616 & 650 & 100 & 200 & - & - & 50 & 50\\
600 & 616 & 650 & 100 & 200 & - & - & 50 & 80\\
\bottomrule
\end{tabular}
\end{sidewaystable}
\end{document}
Vielleicht sollte ich mehr Miniseiten verwenden, denn das Schweben ist manchmal ätzend.
Grüße
Antwort1
Verwenden Sie für die ersten beiden Tabellen einfach das optionale Argument [!htb]
. Für die seitliche Tabelle fügen Sie \hfill
direkt davor hinzu \begin{tabular}
.
Unabhängig davon habe ich die Bindestriche in den Tabellen durch korrektere Endstriche ersetzt.
\documentclass[12pt, a4paper, listof=totoc, footlines=2, ngerman,english]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{showframe}
\renewcommand{\ShowFrameLinethickness}{0.3pt}
\setlength{\parindent}{0em}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{graphicx, rotating}
\usepackage{booktabs}
\usepackage{gensymb}
\usepackage{mwe}
\usepackage{xpatch}
\makeatletter% Set distance from top of page to first float
\setlength\@fptop{0\p@}
\makeatother
\setlength{\belowcaptionskip}{1ex}
\begin{document}
\begin{table}[!htb]
\centering
\caption{Something}
\label{tab:14}
\begin{tabular}{ccccccc}
\toprule
\textbf{No.} &\textbf{AAAAAA} & \textbf{BBBBBB}& \textbf{CCCCCC}& \textbf{DDDDDD}& \textbf{EEEEEE}& \textbf{F} \\
\midrule
600 & 600 & 100 & 200 & 100 & – & – \\
600 & 600 & 100 & 200 & – & 100 & – \\
600 & 600 & 100 & 200 & – & – & 100\\
600 & 600 & 100 & 250 & 50 & – & – \\
600 & 600 & 100 & 250 & – & 50 & – \\
600 & 600 & 100 & 250 & – & – & 50 \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}[!htb]
\centering
\caption{Something1}
\label{tab:15}
\begin{tabular}{cccccc}
\toprule
\textbf{AAAA} &\textbf{BBBB}/nm & \textbf{CCCCC}/\% & \textbf{DDDDD}/s& \textbf{EEEEE}/J& \textbf{FFFFFF}/N\\
\midrule
600 & – & 123 & 123 & – & 12345 \\
600 & – & 123 & 123 & – & – \\
600 & – & 123 & 123 & – & – \\
600 & 600.7 & 600.5 & 4.01 & – & – \\
600 & 600.0 & 600.9 & 2.73 & – & – \\
600 & 600.3 & 600.7 & 1.75 & – & – \\
600 & 600.7 & 600.9 & 2.40 & – & – \\
\bottomrule
\end{tabular}
\end{table}
\clearpage
{\rotFPtop = 0pt plus 0.18 fil
\begin{sidewaystable}[
\centering
\caption{LALALALALALALALALALAL}
\label{tab:16}
\begin{tabular}{ccccccccc}
\toprule
\textbf{No.} &\textbf{AAAAAAAAA} &\textbf{AAAAAAAAAA} & \textbf{VVVVVVV} &\textbf{XXX} &\textbf{AAAA} & \textbf{CCCCT}& \textbf{XXNT}& \textbf{BIBIBI} \\
\midrule
600 & 614 & 650 & 100 & 200 & 50 & – & – & 50\\
600 & 614 & 650 & 100 & 200 & 50 & – & – & 80\\
600 & 615 & 650 & 100 & 200 & – & 50 & – & 50\\
600 & 615 & 650 & 100 & 200 & – & 50 & – & 80\\
600 & 616 & 650 & 100 & 200 & – & – & 50 & 50\\
600 & 616 & 650 & 100 & 200 & – & – & 50 & 80\\
\bottomrule
\end{tabular}
\end{sidewaystable}}