Distance between nodes

View: New views
3 Messages — Rating Filter:   Alert me  

Distance between nodes

by Stefan Mayer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

why is the distance of the last node different from the nodes before?
I thought the node distance=5em should control the distance?

Regards,
Stefan

\documentclass{article}

\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[
standard/.style={fill=blue!25,rounded corners,text width=10em,node
distance=5em}
]
\node[standard] (1) {Literaturrecherche, Einbetten der Arbeit in
theoretischen Kontext};

\node[standard] (2) [below of=1] {Ableitung von Forschungsfragen und
Hypothesen};

\node[standard] (3) [below of=2] {Methoden: Versuchsplanung,
Operationalisierung, Mess- \& Testtherorie};

\node[standard] (4) [below of=3] {Auswertung: Datenanalyse,
Signifikanzprüfung};

\node[standard] (5) [below of=4] {Transparenz der Interpretation};
\end{tikzpicture}
\end{document}

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

Re: Distance between nodes

by JL Diaz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The correct syntax to achieve what you want is:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}[
  standard/.style={fill=blue!25,rounded corners,text width=10em, node
distance=2em}
]
\node[standard] (1) {Literaturrecherche, Einbetten der Arbeit in
theoretischen Kontext};

\node[standard] (2) [below=of 1] {Ableitung von Forschungsfragen und
Hypothesen};

\node[standard] (3) [below=of 2] {Methoden: Versuchsplanung,
Operationalisierung, Mess- \& Testtherorie};

\node[standard] (4) [below=of 3] {Auswertung: Datenanalyse,
Signifikanzprüfung};

\node[standard] (5) [below=of 4] {Transparenz der Interpretation};
\end{tikzpicture}
\end{document}

This syntax (ie: below=of <node>) is described in section 3.8 (p. 41)
of pgfmanual. However, at this section, it is mentioned that
replacements library should be used, which is an error. The library to
use is positioning.

Regards,
-- |Zz|

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

Re: Distance between nodes

by Stefan Mayer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JL Diaz schrieb am 16.06.2009 16:32 Uhr:

>
> […]
>
> This syntax (ie: below=of <node>) is described in section 3.8 (p. 41)
> of pgfmanual. However, at this section, it is mentioned that
> replacements library should be used, which is an error. The library to
> use is positioning.

Thank you very much! Now, it’s all clear …

Regards,
Stefan

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users