summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-12 22:50:39 +0000
committerKarl Berry <karl@freefriends.org>2011-08-12 22:50:39 +0000
commit7eac940f377be3fe2a1acc78987b724dab6b0b22 (patch)
tree2233690859f2f8303218ece9c3bafb347f041d81 /Master/texmf-dist
parent2861c2eba421a537928ba481e702ae082740c465 (diff)
pst-node 1.19 (12aug11)
git-svn-id: svn://tug.org/texlive/trunk@23515 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/Changes1
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdfbin528304 -> 531834 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex18
-rw-r--r--Master/texmf-dist/tex/generic/pst-node/pst-node.tex13
4 files changed, 28 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-node/Changes b/Master/texmf-dist/doc/generic/pst-node/Changes
index f11cfba3592..a22b59e65e7 100644
--- a/Master/texmf-dist/doc/generic/pst-node/Changes
+++ b/Master/texmf-dist/doc/generic/pst-node/Changes
@@ -1,4 +1,5 @@
----- pst-node.tex
+1.19 2011-08-12 - added \psnode, which combines \rput and \rnode
1.18 2011-08-01 - bugfix for \shownode (ms)
1.17 2011-07-04 - added optional argument for \pnode for relative
node setting
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 28666d0c274..da2da825f36 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 4f74469c446..5fd140aacdd 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 536 2011-07-09 21:40:33Z herbert $
+%% $Id: pst-node-doc.tex 557 2011-08-11 16:24:28Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
headexclude,footexclude,oneside]{pst-doc}
\listfiles
@@ -205,6 +205,22 @@ expects the two values for $x$ and $y$ separated by a comma:
\end{LTXexample}
+The command \Lcs{psnode} is a combination of using \Lcs{rput} and \Lcs{rnode}.
+
+\begin{BDef}
+\Lcs{psnode}\OptArgs\Largr{\CAny}\Largb{\Larga{node name}}\Largb{\Larga{node contents}}
+\end{BDef}
+
+\begin{LTXexample}
+\begin{pspicture}[showgrid](0,0)(4,4)
+\psnode(0.5,3){A}{Foo}
+\psnode(3,0){B}{Bar}
+\ncdiag[arm=5mm,angleA=-90,
+ angleB=90]{->}{A}{B}
+\end{pspicture}
+\end{LTXexample}
+
+
\begin{BDef}
\LcsStar{cnode}\OptArgs\Largr{\CAny}\Largb{radius}\Largb{name}
\end{BDef}
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 b88dc66e950..1b13f3d60d8 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 533 2011-07-09 14:26:29Z herbert $
+% $Id: pst-node.tex 557 2011-08-11 16:24:28Z 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.18}
-\def\filedate{2011/08/01}
+\def\fileversion{1.19}
+\def\filedate{2011/08/12}
\message{ v\fileversion, \filedate}
%
\edef\TheAtCode{\the\catcode`\@}
@@ -193,6 +193,13 @@
\endgroup}
\def\tx@GetRnodePos{GetRnodePos }
\def\tx@InitRnode{InitRnode }
+%
+\def\psnode{\pst@object{psnode}}
+\def\psnode@i{\@ifnextchar(\psnode@ii{\psnode@ii(0,0)}}
+\def\psnode@ii(#1)#2#3{% #1: coordinates, #2: node name, #3 contents
+ \rput(#1){\rnode{#2}{#3}}%
+}
+%
\def\rnode{\@ifnextchar[{\rnode@i}{\def\pst@par{}\rnode@ii}}
\def\rnode@i[#1]{\def\pst@par{ref=#1}\rnode@ii}
\def\rnode@ii#1{\pst@makebox{\rnode@iii\rnode@iv{#1}}}