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" == Christophe JORSSEN <Christophe.JORSSEN at wanadoo.fr> writes:
Christophe.Jorssen> I don't understand why the node connection is not out of the box in that example:
Christophe.Jorssen> \begin{pspicture}(14,14)
Christophe.Jorssen> \rput[t](4,9){\rnode{B}{\psframebox{On a actionn\'e $k_1$}}}
Christophe.Jorssen> \ncloop[angleA=90,angleB=180,loopsize=1,arm=.5,linearc=.2]{->}{B}{B}
Christophe.Jorssen> \end{pspicture}
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.
-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------
More information about the PSTricks
mailing list