summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-03-27 23:32:23 +0000
committerKarl Berry <karl@freefriends.org>2014-03-27 23:32:23 +0000
commit1e03fc44357ef58ba336e2590c1c442552407c73 (patch)
treeca63bdb37331356aef585ebf5fb8680d543edbe3 /Master
parent863fe267a76f36a029e8cb6be64bf4be6dfee1f9 (diff)
pst-node (27mar14)
git-svn-id: svn://tug.org/texlive/trunk@33303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/Changes3
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdfbin548186 -> 548157 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex5
-rw-r--r--Master/texmf-dist/tex/generic/pst-node/pst-node.tex18
4 files changed, 19 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-node/Changes b/Master/texmf-dist/doc/generic/pst-node/Changes
index bb7e2739a24..162bd3d1c20 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.33 2014-03-25 - added optional argument NodeCoorPrefix for savedCoors
+ By default it is empty: names are N-<Name>.x|y
+ if it is set: names are <NodeCoorPrefix><Name>x|y
1.32 2014-02-03 - fixed bug in \pst@newnode for savedCoors
1.31 2014-01-04 - added \dotnodes, plural of \dotnode
1.30 2013-09-17 - use \expandafter with \nodexn for the first argument
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 128d7d6a51a..415eecb9716 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
Binary files 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 5fa262a3adc..5bdff2d922b 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
@@ -1632,7 +1632,10 @@ using the macro \Lcs{psGetNodeCenter}.
The coordinates of the nodes can also be saved with \Lkeyset{saveNodeCoors=true} in global defined names
-\texttt{N-<name>.x} and \texttt{N-<name>.y}. The forgoing examples can be simplified if you
+\texttt{N-<name>.x} and \texttt{N-<name>.y}. With the optional argument \Lkeyword{NodeCoorPrefix}, which is
+by default empty, the name setting can be changed to \texttt{<NodeCoorPrefix><name>x} and \texttt{<NodeCoorPrefix><name>y}.
+
+The forgoing examples can be simplified if you
do not need the resetting of the transformation matrix:
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 527f9139554..407b9049664 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 893 2014-02-03 21:40:44Z herbert $
+% $Id: pst-node.tex 898 2014-03-25 20:52:31Z 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.32}
-\def\filedate{2014/02/03}
+\def\fileversion{1.33}
+\def\filedate{2014/03/25}
\message{ v\fileversion, \filedate}
%
\edef\TheAtCode{\the\catcode`\@}
@@ -60,7 +60,8 @@
\define@boolkey[psset]{pst-node}[Pst@]{showNode}[true]{}% write coors into the logfile
\define@boolkey[psset]{pst-node}[Pst@]{markNode}[true]{}% makr the node with its name
\define@boolkey[psset]{pst-node}[Pst@]{saveNodeCoors}[true]{}
-\psset[pst-node]{saveNodeCoors=false,showNode=false,markNode=false}
+\define@key[psset]{pst-node}{NodeCoorPrefix}[]{\def\psk@NodeCoorPrefix{#1}}% if empty it is N-<Name>.x|y
+\psset[pst-node]{saveNodeCoors=false,showNode=false,markNode=false,NodeCoorPrefix=}% <NodeCoorPrefix<Name>x|y>
%
\def\psopenNodeFile{\pstVerb{ tx@NodeDict begin %/NodeFile {
(\jobname.nodes)(w) file %} def
@@ -74,8 +75,13 @@
\pst@Verb{
\ifPst@saveNodeCoors
\ifx\relax#3\relax 0 0 \else gsave \pst@dict STV CP T end #3 \tx@UserCoor grestore \fi
- /N-#1.y exch def
- /N-#1.x exch def
+ \if$\psk@NodeCoorPrefix$
+ /N-#1.y exch def
+ /N-#1.x exch def
+ \else
+ /\psk@NodeCoorPrefix#1y exch def
+ /\psk@NodeCoorPrefix#1x exch def
+ \fi
\fi
\pst@nodedict
{#3}