tikz graphik
Verfasst: Fr 28. Dez 2012, 17:16
Hallo
Ich habe eine Graphik mit tikz erstellt: In der Mitte ist ein Kästchen, darum herum vier. Dies funktioniert soweit tiptop, nun ist aber ein fünftes dazugekommen. Wie kann ich diese fünf Kästchen nun so arrangieren, dass sie gleichmässig verteilt um das mittlere Kästchen liegen. Anbei mein Code:
[\documentclass[12pt,leqno,titlepage,a4paper,oneside,listof=flat]{scrartcl}
\usepackage{caption}
\captionsetup{format=plain,justification=justified,font=footnotesize,labelfont=bf,labelsep=colon,}
\usepackage{subcaption}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}
\begin{document}
\begin{figure}[!htbp]
\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!14, inner sep=5pt, text width=3.8cm, text badly centered, minimum height=1.2cm, font=\bfseries\scriptsize}]
\node [force](cs) {Cost Structure};
\node [force, above of=cs](ol){Operating Leverage};
\node [force, left=1cm of cs](cm){BM ratio and Size};
\node [force, right=1cm of cs](p){Accounting Return};
\node [force, below of=cs](risk){Total and Systematic Risk};
\path[->,thick]
(cs) edge node[above]{}(ol)
(cs) edge node[left] {}(cm)
(cs) edge node[below]{}(risk)
(cs) edge node[right]{}(p);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[Research idea]{Research idea\\Figure \ref{fig:researchidea} illustrates the aspects investigated in this dissertation: relation between cost structure and operating leverage, influence of the cost structure on accounting returns, implications of cost structure on total and systematic risk and its relation to BM ratio and size.}
\label{fig:researchidea}
\end{figure}
\end{document}]
Ich gehe davon aus, dass man die Befehle above, below, right und left ändern muss, verstehe aber nicht, wie.
Danke für die Hilfe!
Gruss, Fabian[/code]
Ich habe eine Graphik mit tikz erstellt: In der Mitte ist ein Kästchen, darum herum vier. Dies funktioniert soweit tiptop, nun ist aber ein fünftes dazugekommen. Wie kann ich diese fünf Kästchen nun so arrangieren, dass sie gleichmässig verteilt um das mittlere Kästchen liegen. Anbei mein Code:
[\documentclass[12pt,leqno,titlepage,a4paper,oneside,listof=flat]{scrartcl}
\usepackage{caption}
\captionsetup{format=plain,justification=justified,font=footnotesize,labelfont=bf,labelsep=colon,}
\usepackage{subcaption}
\usepackage{tikz}
\usetikzlibrary{fit,positioning}
\begin{document}
\begin{figure}[!htbp]
\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!14, inner sep=5pt, text width=3.8cm, text badly centered, minimum height=1.2cm, font=\bfseries\scriptsize}]
\node [force](cs) {Cost Structure};
\node [force, above of=cs](ol){Operating Leverage};
\node [force, left=1cm of cs](cm){BM ratio and Size};
\node [force, right=1cm of cs](p){Accounting Return};
\node [force, below of=cs](risk){Total and Systematic Risk};
\path[->,thick]
(cs) edge node[above]{}(ol)
(cs) edge node[left] {}(cm)
(cs) edge node[below]{}(risk)
(cs) edge node[right]{}(p);
\end{tikzpicture}
\onelinecaptionsfalse
\caption[Research idea]{Research idea\\Figure \ref{fig:researchidea} illustrates the aspects investigated in this dissertation: relation between cost structure and operating leverage, influence of the cost structure on accounting returns, implications of cost structure on total and systematic risk and its relation to BM ratio and size.}
\label{fig:researchidea}
\end{figure}
\end{document}]
Ich gehe davon aus, dass man die Befehle above, below, right und left ändern muss, verstehe aber nicht, wie.
Danke für die Hilfe!
Gruss, Fabian[/code]