PSTricks: how is it possible to add a label to a \nccurve?

Christophe Broult broult at info.unicaen.fr
Fri Aug 1 11:02:32 CEST 1997


-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

connectors that are not
BCC: broult at info2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
Content-Length: 1499


Hi,

I'd like to put a label along an nccurve that connect two nodes or the
same node as in the example below. What should I do?

\documentclass{article}
\usepackage{pst-all}

\begin{document}
  \newcommand{\SelfRef}[1]{%
   \nccurve[ncurv=3D4,angleA=3D5,angleB=3D-5,fillstyle=3Dnone]{#1}{#1}}
  \psset{arrows=3D->}
  \begin{psmatrix}[mnode=3Dcircle]
    [name=3DaNode]       a node\\[0pt]
    [name=3DanotherNode] another node
  \end{psmatrix}
  \ncline{aNode}{anotherNode}\trput{a label between nodes}
  \SelfRef{aNode} \trput{a label for self ref}
  \SelfRef{anotherNode} \trput{a label for self ref}
\end{document}


Thank you,

Chris

--=20

////////////////////////////////////////////////////////////////////////
//                    Christophe Broult
//
// CNET Caen DSV/APM             | GREYC - CNRS-UPRESA 6072
// Centre National d'Etude des   | Groupe de Recherche en Informatique,
// des Telecom                   | Image, Instrumentation de Caen
// 42, rue des Coutures          | Universite Caen
// BP 6243                       | Esplanade de la Paix
// 14066 Caen cedex              | 14032 Caen Cedex
// Voice: 02 31 75 93 38         | Voice: 02 31 56 59 43
// Fax:   02 31 75 09 44         | Fax:   02 31 56 58 14
////////////////////////////////////////////////////////////////////////

     "C makes it easy to shoot yourself in the foot.  C++ makes it
      harder, but when you do, it blows away your whole leg."

                               -- Bjarne Stroustrup on C++


-----------------------------------------------------------------------------
To [un]subscribe to this list, send mail to pstricks-request at mail.tug.org
Leave the subject line blank and in the body put the line
[un]subscribe <email-address>
For help, put the word "help" in the message body.
To obtain current archive, put the words "get current" in the message body.
-----------------------------------------------------------------------------



More information about the PSTricks mailing list