Tabellen und Grafiken erstellen und anordnen
michael.da
Forum-Newbie
Beiträge: 5 Registriert: Di 3. Jul 2018, 11:31
Beitrag
von michael.da » Mi 25. Jul 2018, 10:54
Hallo Leute,
ich weiß nicht so recht, wie ich meine Frage genau formulieren soll, weshalb ich im Netz bisher auch nicht fündig geworden bin.
Ich möchte eine Tabelle erstellen in der immer fünf Zeilen "zusammengehören" und erst danach einen größeren Abstand zu den nächsten vier Zeilen. Ich arbeite hier mit \multirow{4}{*}{A}. Mit \arraystretch werden mir leider alle Zeilenabstände vergrößert, nicht jedoch nur jeder vierte.
Vielen Dank und viele Grüße
Anbei mein Quellcode:
\documentclass[9pt,twoside,a4paper]{article}
% Tables
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{setspace}\usepackage{threeparttable}
\usepackage{multirow}
\begin{document}\sloppy
\twocolumn
\begin{table*}[h]
\centering
\caption{Fine screen MemGold G4}
\label{finescreen_g4}
\renewcommand{\arraystretch}{1.5}
\begin{tabularx}{\linewidth}{XXXXXXXX}
\toprule
& & 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\midrule
\multirow{4}{*}{A} & Buffer~1 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
& Salt & 0.04~\textsc{m} & 0.06~\textsc{m} & 0.08~\textsc{m} & 0.10~\textsc{m} & 0.12~\textsc{m} & 0.14~\textsc{m} \\
& Precip. & 13.0\% & 13.0\% & 13.0\% & 13.0\% & 13.0\% & 13.0\% \\
& Buffer~2 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
\multirow{4}{*}{B} & Buffer~1 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
& Salt & 0.04~\textsc{m} & 0.06~\textsc{m} & 0.08~\textsc{m} & 0.10~\textsc{m} & 0.12~\textsc{m} & 0.14~\textsc{m} \\
& Precip. & 16.0\% & 16.0\% & 16.0\% & 16.0\% & 16.0\% & 16.0\% \\
& Buffer~2 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
\bottomrule
\end{tabularx}
\end{table*}
\end{document}
esdd
Forum-Meister
Beiträge: 2561 Registriert: So 7. Feb 2010, 16:36
Beitrag
von esdd » Mi 25. Jul 2018, 11:14
Füge nach der letzten Zeile eines zusammengehörigen Blocks (Du schreibst zwar 5 Zeilen, im Beispiel sind es aber 4.) ein \addlinespace. Wie groß dieser zusätzliche Abstand sein soll, kannst Du global oder lokal über die Länge \defaultaddspace einstellen:
\documentclass[
%9pt,% ungenutzte Option
twoside,a4paper]{article}
% Tables
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{setspace}\usepackage{threeparttable}
\usepackage{multirow}
\begin{document}\sloppy
\twocolumn
\begin{table*}
\centering
\caption{Fine screen MemGold G4}
\label{finescreen_g4}
%\renewcommand{\arraystretch}{1.5}
\setlength\defaultaddspace{1em}% <- ergänzt, default ist 0.5em
\begin{tabularx}{\linewidth}{XXXXXXXX}
\toprule
& 1 & 2 & 3 & 4 & 5 & 6 \\
\midrule
\midrule
\multirow{4}{*}{A} & Buffer~1 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
& Salt & 0.04~\textsc{m} & 0.06~\textsc{m} & 0.08~\textsc{m} & 0.10~\textsc{m} & 0.12~\textsc{m} & 0.14~\textsc{m} \\
& Precip. & 13.0\% & 13.0\% & 13.0\% & 13.0\% & 13.0\% & 13.0\% \\
& Buffer~2 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\\addlinespace% <- ergänzt
\multirow{4}{*}{B} & Buffer~1 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
& Salt & 0.04~\textsc{m} & 0.06~\textsc{m} & 0.08~\textsc{m} & 0.10~\textsc{m} & 0.12~\textsc{m} & 0.14~\textsc{m} \\
& Precip. & 16.0\% & 16.0\% & 16.0\% & 16.0\% & 16.0\% & 16.0\% \\
& Buffer~2 & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} & 0.05~\textsc{m} \\
\bottomrule
\end{tabularx}
\end{table*}
\end{document}
Die article Standardklasse kennt keine Option 9pt.
michael.da
Forum-Newbie
Beiträge: 5 Registriert: Di 3. Jul 2018, 11:31
Beitrag
von michael.da » Mi 25. Jul 2018, 11:53
Hat astrein funktioniert! Danke!