tikzpicture: Kasten um zwei Felder herum
Verfasst: Di 17. Jul 2012, 21:10
Hallo
Mit folgenden Kommandos konnte ich für meine Arbeit ein Diagramm erstellen.
\begin{figure}[H]
\centering
\begin{tikzpicture}
[node distance = 1cm, auto,font=\footnotesize,
every node/.style={node distance=2cm},
comment/.style={rectangle, inner sep= 5pt, text width=4cm, node distance=0.25cm},
force/.style={rectangle, draw, fill=black!10, inner sep=5pt, text width=3.8cm, text badly centered, minimum height=1.2cm, font=\bfseries\footnotesize}]
\node [force](cc) {Cost Structure};
\node [force, above of=cc](ol){Operating Leverage\\Chapter \ref{subsec:nature}};
\node [force, left=1cm of cc](cm){Capital Markets\\Chapter \ref{subsubsec:capitalmarkets}};
\node [force, right=1cm of cc](ac){Accounting returns\\Chapter \ref{subsec:nature}};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, below of=ac](vola){Earnings volatility};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, above of=ac](p){Profitability};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, above of=cm](Risk){Risk aspects};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, below of=cm](Value){Value Anomaly};
\path[-,thick]
(cc) edge node[above]{}(cm)
(cc) edge node[above]{}(ac)
(cc) edge node[left]{\ref{sec:part1}}(ol);
\path[-]
(cm) edge node[left]{\ref{sec:part3}}(Risk)
(cm) edge node[left]{\ref{sec:part4}}(Value)
(ac) edge node[left]{\ref{sec:part2}}(vola)
(ac) edge node[left]{\ref{sec:part2}}(p);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[Content of chapter \ref{sec:theory} and corresponding empirical investigations]{Content of chapter \ref{sec:theory} and corresponding empirical investigations\\The table gives an overview of the structure of chapter \ref{sec:theory}. It explains the connection between cost structure, operating leverage, accounting and stock return. The numbers near the connection lines indicate the corresponding chapters of the empirical investigations.}
\end{figure}
Nun möchte ich noch zusätzlich um die beiden inneren Felder "Cost Structure" und "Operating Leverage" ein rechteckiges Feld zeichnen. Die beiden Pfeile, nach links Richtung "Capital Markets" und rechts Richtung "Accounting return" sollen dann vom neuen Feld starten. Die beiden Felder ""Cost Structure" und "Operating Leverage" und das Feld darum sollen in die vertikale Mitte rücken.
Mit dem Studium diverses Manuals kam ich leider nicht weiter. Um Vorschläge bin ich sehr dankbar.
Fabian
Mit folgenden Kommandos konnte ich für meine Arbeit ein Diagramm erstellen.
\begin{figure}[H]
\centering
\begin{tikzpicture}
[node distance = 1cm, auto,font=\footnotesize,
every node/.style={node distance=2cm},
comment/.style={rectangle, inner sep= 5pt, text width=4cm, node distance=0.25cm},
force/.style={rectangle, draw, fill=black!10, inner sep=5pt, text width=3.8cm, text badly centered, minimum height=1.2cm, font=\bfseries\footnotesize}]
\node [force](cc) {Cost Structure};
\node [force, above of=cc](ol){Operating Leverage\\Chapter \ref{subsec:nature}};
\node [force, left=1cm of cc](cm){Capital Markets\\Chapter \ref{subsubsec:capitalmarkets}};
\node [force, right=1cm of cc](ac){Accounting returns\\Chapter \ref{subsec:nature}};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, below of=ac](vola){Earnings volatility};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, above of=ac](p){Profitability};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, above of=cm](Risk){Risk aspects};
\node [text width=3.8cm, text badly centered, minimum height=1.2cm, rectangle, rounded corners, draw, below of=cm](Value){Value Anomaly};
\path[-,thick]
(cc) edge node[above]{}(cm)
(cc) edge node[above]{}(ac)
(cc) edge node[left]{\ref{sec:part1}}(ol);
\path[-]
(cm) edge node[left]{\ref{sec:part3}}(Risk)
(cm) edge node[left]{\ref{sec:part4}}(Value)
(ac) edge node[left]{\ref{sec:part2}}(vola)
(ac) edge node[left]{\ref{sec:part2}}(p);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[Content of chapter \ref{sec:theory} and corresponding empirical investigations]{Content of chapter \ref{sec:theory} and corresponding empirical investigations\\The table gives an overview of the structure of chapter \ref{sec:theory}. It explains the connection between cost structure, operating leverage, accounting and stock return. The numbers near the connection lines indicate the corresponding chapters of the empirical investigations.}
\end{figure}
Nun möchte ich noch zusätzlich um die beiden inneren Felder "Cost Structure" und "Operating Leverage" ein rechteckiges Feld zeichnen. Die beiden Pfeile, nach links Richtung "Capital Markets" und rechts Richtung "Accounting return" sollen dann vom neuen Feld starten. Die beiden Felder ""Cost Structure" und "Operating Leverage" und das Feld darum sollen in die vertikale Mitte rücken.
Mit dem Studium diverses Manuals kam ich leider nicht weiter. Um Vorschläge bin ich sehr dankbar.
Fabian