[Problem] refpoint parameter inactive in the \rnode macro

Denis Girou Denis.Girou at idris.fr
Tue Apr 28 20:43:05 CEST 1998


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

  Pierre Basso <Pierre.Basso at lim.univ-mrs.fr> recently report that changing
the refpoint parameter of the \rnode macro has no effect.

  It was working both in 0.93 version and with pst-beta, but the problem was
introduced in the pre-0.94 version we used to build PSTricks 97.

  In fact correction is easy, as only one obvious line was missing.

  In CHANGES file:
............................................................................
  * 98/04/28 pst-node.tex (97 patch 6): The refpoint parameter of the \rnode
macro is not used if it is specified.
(reported by Pierre Basso <Pierre.Basso at lim.univ-mrs.fr>)


  Thanks for the report, Pierre!

D.G.


  My test case is:

\documentclass{article}

\usepackage{pst-node}

\pagestyle{empty}

\begin{document}

\LARGE
\psset{subgriddiv=0,linecolor=red,linewidth=1mm}

\begin{pspicture}(5,4)\psgrid
  \rput(1,1){\rnode{A}{AAAAA}}
  \rput(1,3){\rnode[l]{B}{BBBBB}}
  \rput(4,3){\rnode[r]{C}{CCCCC}}
  \ncline{A}{B}
  \ncline{A}{C}
\end{pspicture}

\makeatletter
\def\rnode at iii#1#2{%
% DG modification begin - Jan. 1997
\leavevmode
% DG modification end
\begingroup
% DG/SR modification begin - Apr. 28, 1998
\pst at useboxpar
% DG/SR modification end
#1%
\if at star\pst at starbox\fi
\ifnodealign\lower\pst at dimb\fi
\hbox{%
\pst at newnode{#2}{16}{%
\pst at number{\ht\pst at hbox}%
\pst at number{\dp\pst at hbox}%
\pst at number{\wd\pst at hbox}%
\pst at number\pst at dima
\pst at number\pst at dimb}%
{\tx at InitRnode}%
\box\pst at hbox}%
\endgroup}
\makeatother

\vspace{1cm}
\begin{pspicture}(5,4)\psgrid
  \rput(1,1){\rnode{A}{AAAAA}}
  \rput(1,3){\rnode[l]{B}{BBBBB}}
  \rput(4,3){\rnode[r]{C}{CCCCC}}
  \ncline{A}{B}
  \ncline{A}{C}
\end{pspicture}

\end{document}

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