Unterschiedliche Zeilenabstände in tabularx

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: Unterschiedliche Zeilenabstände in tabularx

von michael.da » Mi 25. Jul 2018, 11:53

Hat astrein funktioniert! Danke!

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.

Unterschiedliche Zeilenabstände in tabularx

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}

Nach oben