diff options
author | Karl Berry <karl@freefriends.org> | 2013-07-11 23:23:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-07-11 23:23:58 +0000 |
commit | cd19244f37a468b37244a760a0025106e326c9d3 (patch) | |
tree | 73d5dbc2d7cc2dd6c4eac68b21c643213287ea20 /Master/texmf-dist/tex/generic/pst-node/pst-node.tex | |
parent | 9dde62046b0ab9a4b0574e39659fe45110daeb49 (diff) |
pst-node (11jul13)
git-svn-id: svn://tug.org/texlive/trunk@31163 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pst-node/pst-node.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-node/pst-node.tex | 19 |
1 files changed, 14 insertions, 5 deletions
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 62187a683f1..dc73d051cff 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 765 2013-04-09 15:32:28Z herbert $ +% $Id: pst-node.tex 766 2013-04-12 14:21:05Z 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.27} -\def\filedate{2013/04/12} +\def\fileversion{1.28} +\def\filedate{2013/07/10} \message{ v\fileversion, \filedate} % \edef\TheAtCode{\the\catcode`\@} @@ -66,6 +66,7 @@ \ifPst@saveNodeCoors \ifx\relax#3\relax 0 0 \else #3 \tx@UserCoor \fi % startGlobal +% \tx@UserCoor /N-#1.y\space exch def /N-#1.x\space exch def % endGlobal @@ -77,7 +78,8 @@ #2 {#4} \tx@NewNode - end }% + end +}% % \global\let\psk@name\relax% \pstree@nodehook% @@ -109,6 +111,13 @@ \pst@newnode{#2}{10}{\pst@coor}{\tx@InitPnode}% \ignorespaces} % +\def\pnodes{\@ifnextchar[{\pnodes@i}{\pnodes@i[0,0]}} +\def\pnodes@i[#1]{\@ifnextchar({\psnodes@ii[#1]}{\pnodes@ii}} +\def\psnodes@ii[#1](#2)#3{% + \pnode[#1](#2){#3}% + \@ifnextchar({\psnodes@ii[#1]}{}% +} +% \def\tx@InitCnode{InitCnode } \def\cnode{\pst@object{cnode}} \def\cnode@i{\@ifnextchar({\cnode@ii}{\cnode@ii(0,0)}} @@ -1607,7 +1616,7 @@ end }}% % Use to construct a sequence of nodes % Eg, \pnodes{P}(0,1)(2;5)(3,4) defines nodes P0, P1, P2 with respective locations % and a macro \Pnodecount containing the highest index created -\def\pnodes#1{\getnodelist{#1}{}} +\def\pnodes@ii#1{\getnodelist{#1}{}} % \def\getnodelist#1#2{% \pst@args=0 \relax% |