tikzpicture: Kasten um zwei Felder herum

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: tikzpicture: Kasten um zwei Felder herum

von Fabian » Do 19. Jul 2012, 06:36

Sieht super aus, besten Dank.

Gruss, Fabian

von esdd » Mi 18. Jul 2012, 18:55

Hallo,

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}
Bitte nutze zum Einfügen von Code den entsprechenden Button.
Gruß
Elke

von Fabian » Mi 18. Jul 2012, 13:49

\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

Mehr Informationen

von localghost » Mi 18. Jul 2012, 11:08

Mach ein ordentliches Minimalbeispiel, um brauchbare Informationen zu liefern.


Thorsten

tikzpicture: Kasten um zwei Felder herum

von Fabian » 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

Nach oben