diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/Changes | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdf | bin | 286075 -> 294026 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex | 63 |
3 files changed, 67 insertions, 1 deletions
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 Binary files differindex dc9b88560bb..9e26953ff67 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 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}} %-------------------------------------------------------------------------------------- |