Schaubild erstellen

Tabellen und Grafiken erstellen und anordnen


Fabian
Forum-Anfänger
Forum-Anfänger
Beiträge: 26
Registriert: Mi 6. Jun 2012, 08:47

Schaubild erstellen

Beitrag von Fabian »

Hallo

Ich versuche verzweifelt ein Schaubild zu erstellen. Dies sollte so aussehen:

Links auf der Seite sollten drei Kästchen übereinander stehen: oben Operating Leverage, Mitte Cost Structure und unten Accounting return. Um alle drei Kästchen herum ein grosses Kächstchen. Links von Operating Leverage, in der Mitte der Seite, ein weiteres Kästchen CAPM, darunter auf der Höhe von Accounting Return ein Kästchen Analyst Forecast. Ganz rechts auf der Seite, in der Mitte der Graphik das letzte Kästchen Risk. Das was ich bis jetzt hingekriegt habe, sieht nicht annähernd danach aus. Könnte mir jemand helfen! Many thanks.

\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}[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}]
\node [force](cc) {Cost Structure};
\node [force, above of=cc](ol){Operating Leverage};
\node [force, below of cc](ac){Accounting returns};
\node [force ,fit=(cc) (ol), align=none](ccol){};
\node [force, right=1cm of ccol](capm){CAPM};
\node [force, below of=cm](ana){Analyst forecast};
\node [force, right=1cm of=cm](risk){Risk aspects};
\path[-]
(cc) edge node[above]{}(ol)
(cc) edge node[below]{}(ac)
(ccol) edge node[right]{}(capm)
(ccol) edge node[right]{}(ana)
(capm) edge node[left]{}(risk)
(ana) edge node[left]{}(risk);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[tbd]{tbd\\tbd}
\end{figure}

\end{document} [/code]

esdd
Forum-Meister
Forum-Meister
Beiträge: 2561
Registriert: So 7. Feb 2010, 16:36

Beitrag von esdd »

Hallo,

dein Beispiel wirft bei mir mehrere Fehler aus. Ich hab trotzdem mal versucht deine Beschreibung umzusetzen:
\documentclass[12pt]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}

\begin{document}

\begin{figure}[H]
\centering
\begin{tikzpicture}[font=\footnotesize,every node/.style={node distance=2cm},%
    force/.style={draw, fill=black!10,inner sep=2mm,text width=3.8cm, align=flush center,%
    minimum height=1.2cm, font=\bfseries\footnotesize}]
  \node [force](cc) {Cost Structure};
  \node [force,above of=cc](ol){Operating Leverage};
  \node [force,below of=cc](ac){Accounting returns};
  \node [force,fit=(cc) (ol) (ac),align=none,fill=none](ccol){};
  \node [force,right=1.2cm of ol](capm){CAPM};
  \node [force,right=1.2cm of ac](ana){Analyst forecast};
  \node [force,below of=capm,right=1cm of capm](risk){Risk aspects};
  \path[-]
    (cc) edge node[above]{}(ol)
    (cc) edge node[below]{}(ac)
    (ccol) edge node[right]{}(capm)
    (ccol) edge node[right]{}(ana)
    (capm) edge node[left]{}(risk)
    (ana) edge node[left]{}(risk);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[tbd]{tbd\\tbd}
\end{figure}

\end{document}
Gruß
Elke

Fabian
Forum-Anfänger
Forum-Anfänger
Beiträge: 26
Registriert: Mi 6. Jun 2012, 08:47

Beitrag von Fabian »

Hallo

Besten Dank für die rasche Hilfe! Das kommt meinen Vorstellungen schon sehr nahe.

Wie definiere ich den Anker für die Verbindungslinien so, dass auf der Höhe von Operating Leverage die Linie beginnt, welche zu CAPM geht, und auf der Höhe von Accounting return, welche zu Analyst Forecast geht?

Beste Dank und Gruss,
Fabian

esdd
Forum-Meister
Forum-Meister
Beiträge: 2561
Registriert: So 7. Feb 2010, 16:36

Beitrag von esdd »

Hallo,

eine Möglichkeit ist
  \path[-] 
    (cc) edge node[above]{}(ol) 
    (cc) edge node[below]{}(ac) 
    (ccol.east|-ol) edge node[right]{}(capm) 
    (ccol.east|-ac) edge node[right]{}(ana) 
    (capm) edge node[left]{}(risk) 
    (ana) edge node[left]{}(risk); 
Gruß
Elke

Fabian
Forum-Anfänger
Forum-Anfänger
Beiträge: 26
Registriert: Mi 6. Jun 2012, 08:47

Beitrag von Fabian »

Super, danke dir!

Antworten