PSTricks: what do you think about using [mnode=anArbitraryCommandName]?

Christophe Broult broult at
Tue Jul 29 10:35:18 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.

I have some trouble to draw lines between nodes using my own node

Denis Girou <Denis.Girou at> wrote:
>       Christophe.Broult> I think that would be nice if we could specify the name of whatever command
>       Christophe.Broult> accepting a single argument as the value of mnode key e.g
>       Christophe.Broult> psshadowbox. Is it possible? 
>     Yes, it's easy and you can do what you want. Of course, you can use the
>   standard LaTeX macro mechanism, but if you found the coding too boring for
>   that, you can define easily your own node formats.
>     If you want to use the centering form of \rnode rather than \Rnode, use
>   \rnode at iv in place of \Rnode at ii
>   \documentclass{article}
>   \usepackage{pst-node}
>   \begin{document}
>   \newcommand{\SB}[1]{\psshadowbox{#1}}
>   \begin{psmatrix}
>     \SB{A} & \SB{B}
>   \end{psmatrix}
>   \vspace{1cm}
>   \makeatletter
>   \newcommand{\mnode at MyNode}{%
>   \psshadowbox[linecolor=red]{\rnode at iii\Rnode at ii{\psm at thenode}}}
>   \makeatother
>   \begin{psmatrix}[mnode=MyNode]
>     A & B


>   \end{psmatrix}

If I draw some lines between the nodes using a command like the one
I've inserted in the example above, the lines ends are inside the
box and not outside the enclosing box. I think it's due to the fact
the \psshadowbox command is enclosing the \rnodes commands and not the
reversed. I've tried to replace

   \psshadowbox[linecolor=red]{\rnode at iii\Rnode at ii{\psm at thenode}}}


   \rnode at iii\Rnode at ii{\psshadowbox[linecolor=red]{\psm at thenode}}}

but without success.

Do you have any suggestion?



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