From aa1d9048da7d31f6b4045d5a1cc2c818807d88b7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 30 Dec 2010 01:08:39 +0000 Subject: pst-node 1.14 (29dec10) git-svn-id: svn://tug.org/texlive/trunk@20879 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-node/Changes | 5 ++ .../doc/generic/pst-node/pst-node-doc.pdf | Bin 286075 -> 294026 bytes .../doc/generic/pst-node/pst-node-doc.tex | 63 ++++++++++++++++++++- 3 files changed, 67 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/doc/generic/pst-node') diff --git a/Master/texmf-dist/doc/generic/pst-node/Changes b/Master/texmf-dist/doc/generic/pst-node/Changes index b66bb5219e2..6c6c2644755 100644 --- a/Master/texmf-dist/doc/generic/pst-node/Changes +++ b/Master/texmf-dist/doc/generic/pst-node/Changes @@ -1,4 +1,9 @@ ----- pst-node.tex +1.14 2010-10-28 - added the macros + \psGetEdgeA and \psGetEdgeB for getting the + edge coordinates of connections + - added the macro \psDefBoxNodes, which sets + 12 nodes of the given argument, see documentation 1.13 2010-06-06 - changed all *put macros for using pst@refangle 1.12 2010-04-30 - moved concatstring into the base pstricks.pro - fixed bug with nbput (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 index dc9b88560bb..9e26953ff67 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 dd3c3af411c..aadd639d842 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 304 2010-04-22 08:23:39Z herbert $ +%% $Id: pst-node-doc.tex 440 2010-12-28 21:06:39Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} \listfiles @@ -75,6 +75,34 @@ The following pages are from the original documentation of \clearpage \setcounter{page}{33} \part{New commands} + +\section{Setting bounding box nodes with \nxLcs{psDefBoxNodes}} + +\begin{BDef} +\Lcs{psDefBoxNodes}\Largb{node name}\\ +%\Lcs{psGetNodeEdgeA}\Largb{node type}\Largb{node name} +\end{BDef} + +Setting nodes for a bounding box of a given text. There will be 12 nodes defined, +with the name that has the suffixes +\texttt{:tl, :tC, :tr, +:Cl, :C, :Cr, +:Bl, :BC, :Br, +:bl, :bc, :br}. The prefix is always the given node name. + +\begin{LTXexample}[pos=t] +\psscalebox{15}{\psDefBoxNodes{Age}{\color{red!50}\sffamily Age}}% +\pspolygon[linecolor=blue,fillstyle=solid, + fillcolor=magenta!30,opacity=0.3](Age:tl)(Age:tr)(Age:br)(Age:bl)% +\psline[linestyle=dashed,linecolor=blue](Age:Bl)(Age:Br)% +\psdots(Age:tl)(Age:tC)(Age:tr)(Age:Cl)(Age:C)(Age:Cr)% + (Age:Bl)(Age:BC)(Age:Br)(Age:bl)(Age:bC)(Age:br)% +\pcline[arrows=<->,linecolor=blue,arrowscale=1.25](Age:tC)(Age:Br) +\end{LTXexample} + + +\clearpage + %-------------------------------------------------------------------------------------- \section{Relative nodes with \nxLcs{psGetNodeCenter}} %-------------------------------------------------------------------------------------- @@ -113,6 +141,39 @@ relative to the first one, with 4 units left and 4 units up. \end{pspicture} \end{LTXexample} +\clearpage + + +%-------------------------------------------------------------------------------------- +\section{Getting node edges with \nxLcs{psGetNodeEdgeA} and \nxLcs{psGetNodeEdgeB}} +%-------------------------------------------------------------------------------------- + +\begin{BDef} +\Lcs{psGetNodeEdgeA}\Largb{node name}\\ +\Lcs{psGetNodeEdgeB}\Largb{node name}\\ +\end{BDef} + +When two nodes are connected the line often did not use the center of the defined +nodes. Values as \Lkeyword{nodesep} or \Lkeyword{offset} are also taken into account +as a surrounding border of a node. With these new macros one can get the edge coordinates +of two given nodes. The coordinates are saved on \PS side in the values \Larg{node.x} +and \Larg{node.y}. + + +\begin{LTXexample}[pos=t] +\Huge +\hspace*{4cm}\rnode{B}{Node B} + +\vspace{2cm} +\rnode{A}{Node A} +\ncline{A}{B} +\pscircle*[linecolor=blue,opacity=0.4](!\psGetEdgeA{A}{B}){10pt} +\pscircle*[linecolor=blue,opacity=0.4](!\psGetEdgeB{A}{B}){10pt} +\end{LTXexample} + + + + %-------------------------------------------------------------------------------------- \section{\nxLcs{ncdiag} and \nxLcs{pcdiag}} %-------------------------------------------------------------------------------------- -- cgit v1.2.3