summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-node
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-12-30 01:08:39 +0000
committerKarl Berry <karl@freefriends.org>2010-12-30 01:08:39 +0000
commitaa1d9048da7d31f6b4045d5a1cc2c818807d88b7 (patch)
treea9ec102c833a35b3cf3a688855dcf56d1de2797c /Master/texmf-dist/doc/generic/pst-node
parent37b8e23a1e5dbb74496788f400ddb1e4ba96ac19 (diff)
pst-node 1.14 (29dec10)
git-svn-id: svn://tug.org/texlive/trunk@20879 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-node')
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/Changes5
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdfbin286075 -> 294026 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex63
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
index 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
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 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}}
%--------------------------------------------------------------------------------------