# A simple \ncloop question...

Denis Girou Denis.Girou at idris.fr
Wed Dec 8 00:27:58 CET 1999

-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Christophe.Jorssen> I don't understand why the node connection is not out of the box in that example:

Christophe.Jorssen>     \rput[t](4,9){\rnode{B}{\psframebox{On a actionn\'e $k_1$}}}

As J. Visch just tell you, something like (you must change armB too if you
want a shorter loopsize):

\ncloop[angleA=90,angleB=180,loopsize=-2,armA=0.5,armB=0,linearc=.2]{->}{B}{B}

but straightforwardly, as you do not need the five segments of a loop here:

\ncangles[angleA=90,angleB=180,arm=0.5,linearc=.2]{->}{B}{B}

You can look at these variations:

\documentclass{article}

\usepackage{pst-node}

\pagestyle{empty}

\begin{document}

\psframebox[framesep=0]{%
\begin{pspicture}(-1,-1)(1,1)
\rnode{B}{\psframebox{On a actionn\'e $k_1$}}
\ncangles[angleA=90,angleB=180,arm=0.5,linearc=.2]{->}{B}{B}
\end{pspicture}}

\psframebox[framesep=0]{%
\begin{pspicture}(-1,-1)(1,1)
\rnode{B}{\psframebox{On a actionn\'e $k_1$}}
\ncloop[angleA=90,angleB=180,loopsize=-2,armA=0.5,armB=0,linearc=.2]{->}{B}{B}
\end{pspicture}}

\psframebox[framesep=0]{%
\begin{pspicture}(-1,-1)(1,1)
\rnode{B}{\psframebox{On a actionn\'e $k_1$}}
\ncloop[angleA=90,angleB=180,loopsize=2,arm=0.5,linearc=.2]{->}{B}{B}
\end{pspicture}}

\psframebox[framesep=0]{%
\begin{pspicture}(-1,-1)(1,1)
\rnode{B}{\psframebox{On a actionn\'e $k_1$}}
\ncloop[angleA=90,angleB=-90,loopsize=2,arm=0.5,linearc=.2]{->}{B}{B}
\end{pspicture}}

\psframebox[framesep=0]{%
\begin{pspicture}(-1,-1)(1,1)
\rnode{B}{\psframebox{On a actionn\'e $k_1$}}
\ncloop[angleA=90,angleB=-90,loopsize=-2,arm=0.5,linearc=.2]{->}{B}{B}
\end{pspicture}}

\end{document}

D.G.

-----------------------------------------------------------------------------