Ich füge mal meinen aktuellen Stand hier ein:
\documentclass[
BCOR=5mm,
DIV=10,
fontsize=12pt,
oneside,
parskip,
bibliography=totoc,
listof=totoc,
fleqn
]{scrbook}
\usepackage{booktabs}
\usepackage{tikz}
\usetikzlibrary{matrix}
\newlength\bildhoehe
\setlength\bildhoehe{2cm}
\newcommand\bildbreite{2cm}
\newcommand\schrift{\footnotesize} %Einstellung für Bildbeschriftungen
\newcommand\zeilenabstand{.75\tabcolsep}
\newcommand\grafik[2]{%
\begin{minipage}{\bildbreite}
\centering\raisebox{.5\tabcolsep}{%
\parbox[b]{\linewidth}{\hspace*{0pt}\raggedright\schrift#1}}\newline%
\includegraphics[width=\linewidth,height=\bildhoehe]{#2}%
\end{minipage}%
}
\newcommand\LV{\rule{0pt}{0.5\bildhoehe}} %Stütze, liefert nötige Höhe für Endpunkte
\tikzset{vp/.style={circle,fill,inner sep=3pt}}
\newcommand\verbindungslinie[3]{
\foreach [remember=\p as \lastp (initially #2)] \p in {#3}
\draw[#1]([yshift=.5\bildhoehe]\lastp.south)node[vp]{}--([yshift=.5\bildhoehe]\p.south)node[vp]{};
}
\usepackage{mwe} %für example-image
\begin{document}
\begin{center}
\begin{minipage}{\linewidth}
\captionof{table}{Morphologischer Kasten}\label{morphKasten}
\begin{tikzpicture}[
very thick,
nodes={inner sep=\tabcolsep}
]
\matrix[
matrix of nodes,
inner sep=0pt,
nodes={anchor=south},
row sep=\zeilenabstand,
column 1/.style={text width={2\tabcolsep+1em},align=right,yshift=0.5\bildhoehe},
column 2/.style={text width=4.0cm,yshift=0.5\bildhoehe}
](m){
1&Teilfunktion 1
&\grafik{Kegelpfanne u. Kugelscheibe}{example-image}
&\grafik{Abdrückschraube}{example-image}
&\grafik{Keil}{example-image}
&\grafik{Fühlerlehrenband}{example-image}\\
2&Teilfunktion 2
&\grafik{Verschraubt}{example-image}
&\grafik{Verstiftet}{example-image}
&\grafik{Geometrie}{example-image}
&\grafik{}{example-image}\\
3&Teilfunktion 3
&\grafik{Mit Grundrahmen verschraubt}{example-image}
&\grafik{Von Gerät entkoppelt}{example-image}
&\grafik{}{example-image}
&\grafik{}{example-image}\\[\tabcolsep]% wegen der Linie
4&Teilfunktion 4
&\grafik{Kegelpfanne u. Kugelscheibe}{example-image}
&\grafik{Gelenkteller}{example-image}
&\grafik{Keil}{example-image}
&\grafik{}{example-image}\\[\dimexpr\tabcolsep+\normalbaselineskip\relax]
5&Teilfunktion 5
&\grafik{Direkt mit Rohr}{example-image}
&\grafik{Teil eingeschweißt}{example-image}
&\grafik{rückseitig verschraubt}{example-image}
&\grafik{Nutenstein}{example-image}\\
&&\LV&&\LV&\LV\\
};
% Kopfzeile
\node(ul)[anchor=south west]
at ([yshift={\zeilenabstand+\aboverulesep+\belowrulesep}]m.north west)
{Teilfunktion};
\node(or)[anchor=south east] at (ul.north-|m-1-2.east){Lösungsvarianten};
\foreach[count=\i from 3] \c in {A,B,C,D}
\node[anchor=base] at (or.base-|m-1-\i){\c};
% Tabellenlinien
\draw[line width=\lightrulewidth](or.north-|ul.west)--(or.east|-ul.south)
([yshift=-\aboverulesep]ul.south-|m.west)
--([yshift=-\aboverulesep]ul.south-|m.east);
\draw[line width=\heavyrulewidth]([yshift=\belowrulesep]or.north-|m.west)
--([yshift=\belowrulesep]or.north-|m.east)
([yshift={-\aboverulesep-\zeilenabstand}]m.south west)
--([yshift={-\aboverulesep-\zeilenabstand}]m.south east);
% Verbindungslinien
\verbindungslinie{red}{m-1-3}{m-2-3,m-3-3,m-4-4,m-5-4,m-6-4}
\verbindungslinie{blue}{m-1-3}{m-2-3,m-3-3,m-4-3,m-5-6,m-6-6}
\verbindungslinie{green}{m-1-5}{m-2-5,m-3-4,m-4-5,m-5-5,m-6-5}
\foreach \f/\p/\t in {red/m-6-4/erprobt,blue/m-6-6/kostengünstig,green/m-6-5/innovativ}
\node[\f,below,font=\bfseries]at(\p){\t};
% vertikale Beschriftung und Tabellenzwischenlinie
\path(m-1-1.north west)--
node[xshift=\zeilenabstand,rotate=90]{Beschriftung 1}
(m-3-1.south west);
\draw[line width=\lightrulewidth]([yshift=-\tabcolsep]m.west|-m-3-3.south)--([yshift=-\tabcolsep]m.east|-m-3-3.south);
\path(m-4-1.north west)--
node[xshift=\zeilenabstand,rotate=90]{Beschriftung 2}
(m-5-1.south west);
\draw[line width=\lightrulewidth]([yshift=-\tabcolsep]m.west|-m-4-3.south)--([yshift=-\tabcolsep]m.east|-m-4-3.south)node[pos=.7,below]{Beschriftung unterhalb};
\end{tikzpicture}
\end{minipage}
\end{center}
\end{document}
Leider erhalte ich eine Fehlermeldung. Lasse ich die rote Linie bspw. bei m-6-3 enden, läuft alles ohne Probleme, siehe hier:
\documentclass[
BCOR=5mm,
DIV=10,
fontsize=12pt,
oneside,
parskip,
bibliography=totoc,
listof=totoc,
fleqn
]{scrbook}
\usepackage{booktabs}
\usepackage{tikz}
\usetikzlibrary{matrix}
\newlength\bildhoehe
\setlength\bildhoehe{2cm}
\newcommand\bildbreite{2cm}
\newcommand\schrift{\footnotesize} %Einstellung für Bildbeschriftungen
\newcommand\zeilenabstand{.75\tabcolsep}
\newcommand\grafik[2]{%
\begin{minipage}{\bildbreite}
\centering\raisebox{.5\tabcolsep}{%
\parbox[b]{\linewidth}{\hspace*{0pt}\raggedright\schrift#1}}\newline%
\includegraphics[width=\linewidth,height=\bildhoehe]{#2}%
\end{minipage}%
}
\newcommand\LV{\rule{0pt}{0.5\bildhoehe}} %Stütze, liefert nötige Höhe für Endpunkte
\tikzset{vp/.style={circle,fill,inner sep=3pt}}
\newcommand\verbindungslinie[3]{
\foreach [remember=\p as \lastp (initially #2)] \p in {#3}
\draw[#1]([yshift=.5\bildhoehe]\lastp.south)node[vp]{}--([yshift=.5\bildhoehe]\p.south)node[vp]{};
}
\usepackage{mwe} %für example-image
\begin{document}
\begin{center}
\begin{minipage}{\linewidth}
\captionof{table}{Morphologischer Kasten}\label{morphKasten}
\begin{tikzpicture}[
very thick,
nodes={inner sep=\tabcolsep}
]
\matrix[
matrix of nodes,
inner sep=0pt,
nodes={anchor=south},
row sep=\zeilenabstand,
column 1/.style={text width={2\tabcolsep+1em},align=right,yshift=0.5\bildhoehe},
column 2/.style={text width=4.0cm,yshift=0.5\bildhoehe}
](m){
1&Teilfunktion 1
&\grafik{Kegelpfanne u. Kugelscheibe}{example-image}
&\grafik{Abdrückschraube}{example-image}
&\grafik{Keil}{example-image}
&\grafik{Fühlerlehrenband}{example-image}\\
2&Teilfunktion 2
&\grafik{Verschraubt}{example-image}
&\grafik{Verstiftet}{example-image}
&\grafik{Geometrie}{example-image}
&\grafik{}{example-image}\\
3&Teilfunktion 3
&\grafik{Mit Grundrahmen verschraubt}{example-image}
&\grafik{Von Gerät entkoppelt}{example-image}
&\grafik{}{example-image}
&\grafik{}{example-image}\\[\tabcolsep]% wegen der Linie
4&Teilfunktion 4
&\grafik{Kegelpfanne u. Kugelscheibe}{example-image}
&\grafik{Gelenkteller}{example-image}
&\grafik{Keil}{example-image}
&\grafik{}{example-image}\\[\dimexpr\tabcolsep+\normalbaselineskip\relax]
5&Teilfunktion 5
&\grafik{Direkt mit Rohr}{example-image}
&\grafik{Teil eingeschweißt}{example-image}
&\grafik{rückseitig verschraubt}{example-image}
&\grafik{Nutenstein}{example-image}\\
&&\LV&&\LV&\LV\\
};
% Kopfzeile
\node(ul)[anchor=south west]
at ([yshift={\zeilenabstand+\aboverulesep+\belowrulesep}]m.north west)
{Teilfunktion};
\node(or)[anchor=south east] at (ul.north-|m-1-2.east){Lösungsvarianten};
\foreach[count=\i from 3] \c in {A,B,C,D}
\node[anchor=base] at (or.base-|m-1-\i){\c};
% Tabellenlinien
\draw[line width=\lightrulewidth](or.north-|ul.west)--(or.east|-ul.south)
([yshift=-\aboverulesep]ul.south-|m.west)
--([yshift=-\aboverulesep]ul.south-|m.east);
\draw[line width=\heavyrulewidth]([yshift=\belowrulesep]or.north-|m.west)
--([yshift=\belowrulesep]or.north-|m.east)
([yshift={-\aboverulesep-\zeilenabstand}]m.south west)
--([yshift={-\aboverulesep-\zeilenabstand}]m.south east);
% Verbindungslinien
\verbindungslinie{red}{m-1-3}{m-2-3,m-3-3,m-4-4,m-5-4,m-6-3}
\verbindungslinie{blue}{m-1-3}{m-2-3,m-3-3,m-4-3,m-5-6,m-6-6}
\verbindungslinie{green}{m-1-5}{m-2-5,m-3-4,m-4-5,m-5-5,m-6-5}
\foreach \f/\p/\t in {red/m-6-3/erprobt,blue/m-6-6/kostengünstig,green/m-6-5/innovativ}
\node[\f,below,font=\bfseries]at(\p){\t};
% vertikale Beschriftung und Tabellenzwischenlinie
\path(m-1-1.north west)--
node[xshift=\zeilenabstand,rotate=90]{Beschriftung 1}
(m-3-1.south west);
\draw[line width=\lightrulewidth]([yshift=-\tabcolsep]m.west|-m-3-3.south)--([yshift=-\tabcolsep]m.east|-m-3-3.south);
\path(m-4-1.north west)--
node[xshift=\zeilenabstand,rotate=90]{Beschriftung 2}
(m-5-1.south west);
\draw[line width=\lightrulewidth]([yshift=-\tabcolsep]m.west|-m-4-3.south)--([yshift=-\tabcolsep]m.east|-m-4-3.south)node[pos=.7,below]{Beschriftung unterhalb};
\end{tikzpicture}
\end{minipage}
\end{center}
\end{document}
Woran liegt das?
Kann mir bitte jemand bei der horizontalen Linie zwischen Zeile 4 und 5 helfen? Die soll nur von Spalte 3 bis 6 gehen.