diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/Changes | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf | bin | 533416 -> 540986 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex | 42 |
3 files changed, 43 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-node/Changes b/Master/texmf-dist/doc/generic/pst-node/Changes index 2c5d5d0facb..2d302430faa 100644 --- a/Master/texmf-dist/doc/generic/pst-node/Changes +++ b/Master/texmf-dist/doc/generic/pst-node/Changes @@ -1,4 +1,7 @@ ----- pst-node.tex +1.24 2012-09-18 - fix introduced bug with \pst@thenode +1.23 2012-09-15 - add global defined N-<name>.x and N-<name>.y + for user nodes 1.22 2012-02-12 - fix introduced bug for \rnode with commented out the \pst@boxpar 1.21 2011-11-21 - fix bug for xelatex and scaling @@ -24,11 +27,13 @@ ----- pst-node.sty +1.01 2012-09-18 - update package versions (hv) 1.00 2011-06-05 - make ancient variant 97 available (hv) 2008-12-12 first version (hv) ----- pst-node.pro +1.14 2012-09-18 - add subroutines for global dict 1.13 2011-11-21 - fix bug for xelatex and scaling 1.12 2010-04-30 - small changes to the code 1.11 2010-04-22 - added function /concatstringarray (ms) diff --git a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf Binary files differindex ded72621665..d4c4bbea71b 100644 --- a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf diff --git a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex index 040b66746c4..269ac5a0995 100644 --- a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex @@ -1,4 +1,4 @@ -%% $Id: pst-node-doc.tex 568 2011-08-20 08:15:04Z herbert $ +%% $Id: pst-node-doc.tex 703 2012-09-15 18:54:16Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} \listfiles @@ -1546,7 +1546,7 @@ characters, like umlauts or an active \PS\ character, like \texttt{(}. \clearpage %-------------------------------------------------------------------------------------- -\section{Relative nodes with \nxLcs{psGetNodeCenter}} +\section{Relative nodes with \nxLcs{psGetNodeCenter} or \texttt{N-<name>.x|y}} %-------------------------------------------------------------------------------------- \begin{BDef} @@ -1559,7 +1559,9 @@ the PostScript level. It defines the two variables \Larg{node.x} and \Larg{node.y} which can be used to define relative nodes. The following example defines the node \verb+MyNode+ and a second one relative to the first one, with 4 units left and 4 units up. -\Larg{node} must be an existing node name. +\Larg{node} must be an existing node name. Nodes are saved in an own +dictionary with the current transformation matrix, which is reset when +using the macro \Lcs{psGetNodeCenter}. \begin{LTXexample}[width=5cm] \begin{pspicture}[showgrid=true,arrowscale=2](5,5) @@ -1583,7 +1585,39 @@ relative to the first one, with 4 units left and 4 units up. \end{pspicture} \end{LTXexample} -\clearpage + +The coordinates of the nodes are also saved in user coordinates in global defined names +\texttt{N-<name>.x} and \texttt{N-<name>.y}. The forgoing examples can be simplified if you +do not need the resetting of the transformation matrix: + + + +\begin{LTXexample}[width=5cm] +\begin{pspicture}[showgrid=true,arrowscale=2](5,5) +\pnode(4.5,0.5){MyNode} +\psdot(MyNode) +\pnode(! N-MyNode.x 4 sub N-MyNode.y 4 add){MySecondNode} +\psdot(MySecondNode) +\ncline[linecolor=red]{<->}{MyNode}{MySecondNode} +\end{pspicture} +\end{LTXexample} + + +\bigskip +In the following example it doesn't work because the relative node setting via \Lcs{rput} +is not taken into account. + +\begin{LTXexample}[width=5cm] +\begin{pspicture}[showgrid=true](5,5) +\rput(1.5,0.5){\trinode{CN}{NodeA}} +\rput(3.5,2.5){\trinode{EN}{NodeB}} +\pnode(! N-CN.x 2 add N-CN.y 1 add ){MyCNode} +\ncline[linecolor=red]{<->}{MyCNode}{EN} +\ncline[linecolor=blue]{<->}{CN}{EN} +\end{pspicture} +\end{LTXexample} + + %-------------------------------------------------------------------------------------- |