Vertikale Textausrichtung zentrieren?

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: Vertikale Textausrichtung zentrieren?

von Bartman » Di 1. Mai 2018, 11:25

\RequirePackage{hyphsubst}%
\HyphSubstIfExists{ngerman-x-latest}{%
\HyphSubstLet{ngerman}{ngerman-x-latest}
}{}

\documentclass[
%a4paper,            % Papiergröße
10pt,               % Schriftgröße
DIV=11            % Satzspiegelberechnug (ohne Funktion?)
]{scrreprt}
% ----------------------------------------------------------------------------

% Eingabecodierung automatisch ermitteln
\usepackage{selinput}
\SelectInputMappings{
 adieresis={ä},
 germandbls={ß},
 }
% ----------------------------------------------------------------------------

% Deutsche Sprache und Silbentrennung
\usepackage[ngerman]{babel}
% ----------------------------------------------------------------------------

\usepackage[T1]{fontenc}   % Schriftkodierung
\usepackage{lmodern}      % Schriftart
\usepackage{microtype}      % Verbesserte Darstellung

% Tabellen
\usepackage{booktabs}   % zum setzen von rules in Tabellen
\usepackage{ragged2e}     % Erlaubt zusätzliche Textausrichtung in Tabellen
%\usepackage{array}      % Erlaubt zusätzlichen Columntypen
\usepackage{ltablex}   % Erlaubt definierte Breiten
\usepackage{multirow}
\usepackage[table]{xcolor}
% ----------------------------------------------------------------------------

\newcolumntype{Z}{>{\raggedright\let\newline\\\arraybackslash}X}
\usepackage{rotating}
\newcommand\tabrotate[1]{\begin{turn}{90}\rlap{#1}\end{turn}}

\usepackage{calc}
\usepackage{csquotes}% <- Du hast das Paket in älteren Themen schon geladen.

% Bilder
\usepackage{graphicx}
% ----------------------------------------------------------------------------

% Neuberechnung des Satzspiegels
\recalctypearea
% ----------------------------------------------------------------------------

% Hier beginnt das eigentliche Dokument
\begin{document}
% ----------------------------------------------------------------------------
\begin{tabularx}{\linewidth}{lllZcl}
   \toprule
   
   \multirow{25}{*}{\tabrotate{Pflichtteil}}
   &
   \multirow{3}{*}{\includegraphics[width=3cm, height=3cm]{example-image-a}}   &
   AB 1&
   \enquote{So rechne ich} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   &
   &
   AB 2&
   \enquote{So rechne ich} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   &
   &
   AB 3&
   \enquote{So rechne ich} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   \cmidrule(lr){2-6}
   
   &
   \multirow{3}{*}{\includegraphics[width=3cm, height=3cm]{example-image-a}}&
   AB 4&
   \enquote{Würfelkippen} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   &
   &
   AB 5&
   \enquote{Würfelkippen} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   &
   &
   AB 6&
   \enquote{Würfelkippen} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   \cmidrule(lr){2-6}
   
   &
   \multirow{3}{*}{\includegraphics[width=3cm, height=3cm]{example-image-a}}&
   AB 7&
   \enquote{Turmsteckbrief} &
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
   \raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
   
   &
   &&&\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&\\
   
   &
   &&&\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&\\
   
   \bottomrule
\end{tabularx}
\end{document}
Das geänderte Argument der \multirow für den Pflichtteil ist nur eine Schätzung nach dem Augenmaß.

Vertikale Textausrichtung zentrieren?

von Sputnik83 » So 29. Apr 2018, 13:47

Ich Versuche gerade für meine Klasse einen Wochenplan zu basteln und tu mich etwas schwer...

Ich möchte eine vertikale Spalte über 9 Zeilen, die den Pflichtteil vom freiwilligen Teil trennt. Das Wort "Pflichtteil" soll also zentriert in der Mitte der 9 Zeilen stehen. Außerdem sollen die Midrules davor enden... verständlich?
Das klappt aber noch nicht ganz.

Bilder sagen mehr als 1000 Worte:
\RequirePackage{hyphsubst}%
\HyphSubstIfExists{ngerman-x-latest}{%
\HyphSubstLet{ngerman}{ngerman-x-latest}
}{}

\documentclass[
a4paper,				% Papiergröße
10pt,					% Schriftgröße
DIV=11				% Satzspiegelberechnug (ohne Funktion?)
]{scrreprt}
% ----------------------------------------------------------------------------

% Eingabecodierung automatisch ermitteln
\usepackage{selinput}
\SelectInputMappings{
 adieresis={ä},
 germandbls={ß},
 }
% ----------------------------------------------------------------------------

% Deutsche Sprache und Silbentrennung
\usepackage[ngerman]{babel}
% ----------------------------------------------------------------------------

\usepackage[T1]{fontenc}	% Schriftkodierung
\usepackage{lmodern}		% Schriftart
\usepackage{microtype}		% Verbesserte Darstellung

% Tabellen
\usepackage{booktabs}	% zum setzen von rules in Tabellen
\usepackage{ragged2e}  	% Erlaubt zusätzliche Textausrichtung in Tabellen
\usepackage{array}		% Erlaubt zusätzlichen Columntypen
\usepackage{ltablex}	% Erlaubt definierte Breiten
\usepackage{multirow}
\usepackage[table]{xcolor}
% ----------------------------------------------------------------------------

\newcolumntype{Z}{>{\raggedright\let\newline\\\arraybackslash}X}
\usepackage{rotating}
\newcommand\tabrotate[1]{\begin{turn}{90}\rlap{#1}\end{turn}}

\usepackage{calc}

% Bilder
\usepackage{graphicx}
% ----------------------------------------------------------------------------

% Neuberechnung des Satzspiegels
\recalctypearea
% ----------------------------------------------------------------------------

% Hier beginnt das eigentliche Dokument
\begin{document}
% ----------------------------------------------------------------------------
\begin{tabularx}{\linewidth}{l|llZcl}
	\toprule
	
	\multirow{9}{*}{\tabrotate{Pflichtteil}}
	&
	\multirow{3}{*}{\includegraphics[width=3cm, height=3cm]{example-image-a}}	&
	AB 1&
	\glqq So rechne ich\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	&
	&
	AB 2&
	\glqq So rechne ich\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	&
	&
	AB 3&
	\glqq So rechne ich\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	\midrule
	
	&
	\multirow{3}{*}{\includegraphics[width=3cm, height=3cm]{example-image-a}}&
	AB 4&
	\glqq Würfelkippen\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	&
	&
	AB 5&
	\glqq Würfelkippen\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	&
	&
	AB 6&
	\glqq Würfelkippen\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	\midrule
	
	&
	\multirow{3}{*}{\includegraphics[width=3cm, height=3cm]{example-image-a}}&
	AB 7&
	\glqq Turmsteckbrief\grqq&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}&
	\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}\includegraphics[width=1cm, height=1cm]{example-image-a}}\\
	
	&
	&&&\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&\\
	
	&
	&&&\raisebox{\ht\strutbox-\height}{\includegraphics[width=1cm, height=1cm]{example-image-a}}&\\
	
	\bottomrule
\end{tabularx}
\end{document}
% ----------------------------------------------------------------------------

Nach oben