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
tikzpicture: Kasten um zwei Felder herum
- localghost
- Forum-Meister
- Beiträge: 826
- Registriert: Di 8. Jul 2008, 15:40
- Wohnort: Braunschweig
Mehr Informationen
TeX und LaTeX, Fragen und Antworten – TeXwelt
¹ Es tut mir Leid. Meine Antworten sind begrenzt. Sie müssen die richtigen Fragen stellen.
² System: TeX Live 2024, TeXworks
¹ Es tut mir Leid. Meine Antworten sind begrenzt. Sie müssen die richtigen Fragen stellen.
² System: TeX Live 2024, TeXworks
\documentclass[12pt,leqno,titlepage,a4paper]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,positioning,shapes.symbols,chains}
\begin{document}
\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}
\end{document}
Ausser den Verweisen sollte dies nun funktionieren.
Danke und Gruss, Fabian
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,positioning,shapes.symbols,chains}
\begin{document}
\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}
\end{document}
Ausser den Verweisen sollte dies nun funktionieren.
Danke und Gruss, Fabian
Hallo,
hier ist ein Vorschlag:
Bitte nutze zum Einfügen von Code den entsprechenden Button.
Gruß
Elke
hier ist ein Vorschlag:
\documentclass[fontsize=12pt]{scrartcl} \usepackage{tikz} \usetikzlibrary{fit,positioning} \begin{document} \begin{tikzpicture}[font=\footnotesize, every node/.style={node distance=2cm},% force/.style={draw, fill=black!10, inner sep=5pt, text width=3.8cm, text badly centered,% minimum height=1.2cm, font=\bfseries\footnotesize},% examp/.style={draw, text width=3.8cm, text badly centered, minimum height=1.2cm, rounded corners}] \node [force](cc) {Cost Structure}; \node [force, above of=cc](ol){Operating Leverage\\Chapter}; \node [draw ,fit=(cc) (ol), align=none](ccol){}; \node [force, left=1cm of ccol](cm){Capital Markets\\Chapter}; \node [force, right=1cm of ccol](ac){Accounting returns\\Chapter}; \node [examp, below of=ac](vola){Earnings volatility}; \node [examp, above of=ac](p){Profitability}; \node [examp, above of=cm](Risk){Risk aspects}; \node [examp, below of=cm](Value){Value Anomaly}; \path[-,thick] (ccol) edge node[above]{}(cm) (ccol) edge node[above]{}(ac) (cc) edge node[left]{1}(ol); \path[-] (cm) edge node[left]{3}(Risk) (cm) edge node[left]{4}(Value) (ac) edge node[left]{2}(vola) (ac) edge node[left]{2}(p); \end{tikzpicture} \end{document}
Gruß
Elke