|
|
Beiträge: 41297
Seitenaufrufe: 342140 PIs (Mai 2012)
Top-Poster: KOMA (2637)
Wir begrüßen unseren neuesten Benutzer Stefan7878.
|
|
|
|
tikzpicture: Kasten um zwei Felder herum |
|
| Fabian |

Forum-Anfänger
|
 |
Beiträge: 26
|
 |
|
 |
Anmeldedatum: 06.06.12
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 17.07.2012, 21:10
Titel: tikzpicture: Kasten um zwei Felder herum
|
 |
| |
 |
|
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
|
|
|
|
| localghost |

Forum-Meister
|
 |
Beiträge: 747
|
 |
|
 |
Anmeldedatum: 08.07.08
|
 |
|
 |
Wohnort: Braunschweig
|
 |
|
 |
Version: TeXworks 0.5 (r1286) mit TeX Live 2012
|
 |
|
|
 |
|
Verfasst am: 18.07.2012, 11:08
Titel: Mehr Informationen
|
 |
Mach ein ordentliches Minimalbeispiel, um brauchbare Informationen zu liefern.
Thorsten
_________________
¹ Es tut mir Leid. Meine Antworten sind begrenzt. Sie müssen die richtigen Fragen stellen.
² System: openSUSE 12.3, TeX Live 2012, TeXworks 0.5 (r1286)
³ Lernt gerade TeX (und versucht, es zu verstehen).
|
|
|
|
| Fabian |

Forum-Anfänger
|
 |
Beiträge: 26
|
 |
|
 |
Anmeldedatum: 06.06.12
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 18.07.2012, 13:49
Titel:
|
 |
| |
 |
|
\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
|
|
|
|
| esdd |

Forum-Century
|
 |
Beiträge: 166
|
 |
|
 |
Anmeldedatum: 07.02.10
|
 |
|
 |
Wohnort: Stutensee
|
 |
|
 |
Version: MiKTeX 2.9
|
 |
|
|
 |
|
Verfasst am: 18.07.2012, 18:55
Titel:
|
 |
| |
 |
|
Hallo,
hier ist ein Vorschlag:
| Code: | \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
|
|
|
|
| Fabian |

Forum-Anfänger
|
 |
Beiträge: 26
|
 |
|
 |
Anmeldedatum: 06.06.12
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 19.07.2012, 06:36
Titel:
|
 |
Sieht super aus, besten Dank.
Gruss, Fabian
|
|
|
|
|
|
|
Options and Permissions
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum nicht posten Du kannst Dateien in diesem Forum herunterladen
|
|
|