From 08bb56f8c8df0899eafffd18108c67b50c986e9b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Sep 2012 21:47:44 +0000 Subject: pst-node (24sep12) git-svn-id: svn://tug.org/texlive/trunk@27799 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-node/Changes | 2 ++ .../doc/generic/pst-node/pst-node-doc.pdf | Bin 540986 -> 541874 bytes .../doc/generic/pst-node/pst-node-doc.tex | 9 +++++---- Master/texmf-dist/dvips/pst-node/pst-node.pro | 2 +- .../texmf-dist/tex/generic/pst-node/pst-node.tex | 13 +++++++++---- 5 files changed, 17 insertions(+), 9 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/generic/pst-node/Changes b/Master/texmf-dist/doc/generic/pst-node/Changes index 2d302430faa..81aa8b26bdf 100644 --- a/Master/texmf-dist/doc/generic/pst-node/Changes +++ b/Master/texmf-dist/doc/generic/pst-node/Changes @@ -1,4 +1,6 @@ ----- pst-node.tex +1.25 2012-09-21 - Global node coordinates only with + saveNodeCoors 1.24 2012-09-18 - fix introduced bug with \pst@thenode 1.23 2012-09-15 - add global defined N-.x and N-.y for user nodes 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 index d4c4bbea71b..7cc3ed88654 100644 Binary files a/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf and b/Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf differ 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 269ac5a0995..be3f7a11758 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 703 2012-09-15 18:54:16Z herbert $ +%% $Id: pst-node-doc.tex 707 2012-09-21 14:17:30Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} \listfiles @@ -1586,14 +1586,15 @@ using the macro \Lcs{psGetNodeCenter}. \end{LTXexample} -The coordinates of the nodes are also saved in user coordinates in global defined names +The coordinates of the nodes can also be saved with \Lkeyset{saveNodeCoors=true} in global defined names \texttt{N-.x} and \texttt{N-.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) +\begin{pspicture}[showgrid,arrowscale=2, + saveNodeCoors](5,5) \pnode(4.5,0.5){MyNode} \psdot(MyNode) \pnode(! N-MyNode.x 4 sub N-MyNode.y 4 add){MySecondNode} @@ -1608,7 +1609,7 @@ In the following example it doesn't work because the relative node setting via \ is not taken into account. \begin{LTXexample}[width=5cm] -\begin{pspicture}[showgrid=true](5,5) +\begin{pspicture}[showgrid,saveNodeCoors](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} diff --git a/Master/texmf-dist/dvips/pst-node/pst-node.pro b/Master/texmf-dist/dvips/pst-node/pst-node.pro index f3fdc8525d4..91c29427f55 100644 --- a/Master/texmf-dist/dvips/pst-node/pst-node.pro +++ b/Master/texmf-dist/dvips/pst-node/pst-node.pro @@ -1,4 +1,4 @@ -% $Id: pst-node.pro 704 2012-09-18 12:37:45Z herbert $ +% $Id: pst-node.pro 707 2012-09-21 14:17:30Z herbert $ %% %% PostScript prologue for pst-node.tex. %% Version 1.14, 2012/09/18. diff --git a/Master/texmf-dist/tex/generic/pst-node/pst-node.tex b/Master/texmf-dist/tex/generic/pst-node/pst-node.tex index d9932789a6c..5850af583e4 100644 --- a/Master/texmf-dist/tex/generic/pst-node/pst-node.tex +++ b/Master/texmf-dist/tex/generic/pst-node/pst-node.tex @@ -1,4 +1,4 @@ -% $Id: pst-node.tex 705 2012-09-18 12:39:00Z herbert $ +% $Id: pst-node.tex 707 2012-09-21 14:17:30Z herbert $ %% BEGIN pst-node.tex %% %% Nodes with PSTricks. @@ -18,8 +18,8 @@ \ifx\PSTricksLoaded\endinput\else\input pstricks.tex \fi\relax \ifx\PSTXKeyLoaded\endinput\else \input pst-xkey \fi % -\def\fileversion{1.24} -\def\filedate{2012/09/18} +\def\fileversion{1.25} +\def\filedate{2012/09/21} \message{ v\fileversion, \filedate} % \edef\TheAtCode{\the\catcode`\@} @@ -55,16 +55,21 @@ % bug fix for xelatex, dvipdfmx uses the wrong scaling \def\tx@NewNode{/NodeScale {\ifx\pstnodescale\@undefined \else\pstnodescale \fi} def NewNode } % +\define@boolkey[psset]{pst-node}[Pst@]{saveNodeCoors}[true]{} +\psset[pst-node]{saveNodeCoors=false} +% \def\pst@newnode#1#2#3#4{% \pst@killglue \leavevmode \pst@getnode{#1}\pst@thenode \pst@Verb{ - \ifx\relax#3\relax 0 0 \else #3 \tx@UserCoor \fi + \ifPst@saveNodeCoors + \ifx\relax#3\relax 0 0 \else #3 \tx@UserCoor \fi % startGlobal /N-#1.y\space exch def /N-#1.x\space exch def % endGlobal + \fi \pst@nodedict {#3} \ifx\psk@name\relax false \else \psk@name true \fi -- cgit v1.2.3