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}
% ----------------------------------------------------------------------------
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:
[code]
\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}
% ----------------------------------------------------------------------------[/code]