summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-02-28 23:28:02 +0000
committerKarl Berry <karl@freefriends.org>2011-02-28 23:28:02 +0000
commite07e14e254e962920557e7fbbe7d712736cd94a8 (patch)
treeef53e09a1f82f855063b75f9f17f2da3bb1374f4 /Master
parentda776f4f7bb7e1e8867f53c9db6d6be0d713dcea (diff)
pst-node (28feb11)
git-svn-id: svn://tug.org/texlive/trunk@21550 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/Changes1
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.pdfbin294026 -> 307638 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-node/pst-node-doc.tex24
-rw-r--r--Master/texmf-dist/tex/generic/pst-node/pst-node.tex51
4 files changed, 40 insertions, 36 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-node/Changes b/Master/texmf-dist/doc/generic/pst-node/Changes
index 6c6c2644755..2829be3962c 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.15 2011-02-28 - fixed bug with nodealign
1.14 2010-10-28 - added the macros
\psGetEdgeA and \psGetEdgeB for getting the
edge coordinates of connections
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 9e26953ff67..33a2b116791 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 aadd639d842..2f9a18c5eb0 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 440 2010-12-28 21:06:39Z herbert $
+%% $Id: pst-node-doc.tex 465 2011-02-28 16:08:12Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
headexclude,footexclude,oneside]{pst-doc}
\listfiles
@@ -79,8 +79,7 @@ The following pages are from the original documentation of
\section{Setting bounding box nodes with \nxLcs{psDefBoxNodes}}
\begin{BDef}
-\Lcs{psDefBoxNodes}\Largb{node name}\\
-%\Lcs{psGetNodeEdgeA}\Largb{node type}\Largb{node name}
+\Lcs{psDefBoxNodes}\Largb{node name}\Largb{text}\\
\end{BDef}
Setting nodes for a bounding box of a given text. There will be 12 nodes defined,
@@ -88,16 +87,21 @@ 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)%
+:bl, :bc, :br}. The prefix is always the given node name. The node name shouldn't contain spaces or special
+characters, like umlauts or an active \PS\ character, like \texttt{(}.
+
+\lstset{style=code}
+\begin{LTXexample}[pos=t,wide,vsep=10mm,preset=\centering,columns=fixed]
+\psscalebox{15}{\psDefBoxNodes{Age}{\color{red!50}\sffamily \"Age}}%
+\pspolygon[fillstyle=solid,
+ fillcolor=blue!30,opacity=0.3](Age:tl)(Age:tr)(Age:br)(Age:bl)%
+\psline[linestyle=dashed](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)
+\uput[180](Age:tl){tl}\uput[180](Age:Cl){Cl}\uput[180](Age:Bl){Bl}\uput[180](Age:bl){bl}
+\uput[90](Age:tC){tC} \uput[0](Age:C){C} \uput[0](Age:BC){BC} \uput[-90](Age:bC){bC}
+\uput[0](Age:tr){tr} \uput[0](Age:Cr){Cr} \uput[0](Age:Br){Br} \uput[0](Age:br){br}
\end{LTXexample}
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 6c94d8afec0..7bbc8871c87 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 440 2010-12-28 21:06:39Z herbert $
+% $Id: pst-node.tex 465 2011-02-28 16:08:12Z 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.14}
-\def\filedate{2010/12/28}
+\def\fileversion{1.15}
+\def\filedate{2011/02/28}
\message{ v\fileversion, \filedate}
%
\edef\TheAtCode{\the\catcode`\@}
@@ -73,8 +73,7 @@
\pstree@nodehook
\global\let\pstree@nodehook\relax}
\let\pstree@nodehook\relax
-\newif\ifnodealign
-\define@boolkey[psset]{pst-node}[true]{nodealign}{}
+\define@boolkey[psset]{pst-node}[Pst@]{nodealign}[true]{}
\psset[pst-node]{nodealign=false}
\def\pst@nodealign{%
@@ -102,15 +101,15 @@
\pst@dimg=\psk@dimen\pslinewidth
\advance\pst@dimc-\pst@dimg
\advance\pst@dimc.5\pslinewidth
- \ifnodealign
+ \ifPst@nodealign
\kern\pst@dimc
\vrule width\z@ height \pst@dimc depth \pst@dimc
\fi
\pscircle@do(#1){#2}%
\pst@newnode{#3}{11}{\pst@coor \pst@number\pst@dimc}{\tx@InitCnode}%
%% % DG/SR modification begin - Jul. 30, 1997 - Patch 2
-%% %\ifnodealign \kern\pst@dimc\egroup \fi}%
- \ifnodealign\kern\pst@dimc\fi%
+%% %\ifPst@nodealign \kern\pst@dimc\egroup \fi}%
+ \ifPst@nodealign\kern\pst@dimc\fi%
%% % DG/SR modification end
}%
\ignorespaces}
@@ -158,10 +157,10 @@
\cnodeput@iv{#1}%
\pscirclebox@iii
\box\pst@hbox}%
- \ifnodealign \psboxseptrue \fi
+ \ifPst@nodealign \psboxseptrue \fi
\ifpsboxsep \pscirclebox@sep \fi
\leavevmode
- \ifnodealign\pst@nodealign\fi
+ \ifPst@nodealign\pst@nodealign\fi
\box\pst@hbox
\endgroup}
\def\Circlenode{\pst@object{Circlenode}}
@@ -177,10 +176,10 @@
\Cnodeput@iv{#1}%
\pscircle(.5\wd\pst@hbox,\pst@dima){\pst@dimb}%
\box\pst@hbox}%
-\ifnodealign \psboxseptrue \fi
+\ifPst@nodealign \psboxseptrue \fi
\ifpsboxsep \psCirclebox@sep \fi
\leavevmode
-\ifnodealign\pst@nodealign\fi
+\ifPst@nodealign\pst@nodealign\fi
\box\pst@hbox
\endgroup}
\def\tx@GetRnodePos{GetRnodePos }
@@ -198,7 +197,7 @@
% DG/SR modification end
#1%
\if@star\pst@starbox\fi
-\ifnodealign\lower\pst@dimb\fi
+\ifPst@nodealign\lower\pst@dimb\fi
\hbox{%
\pst@newnode{#2}{16}{%
\pst@number{\ht\pst@hbox}%
@@ -251,12 +250,12 @@
/h \pst@number\pst@dimd 2 mul def
/NodePos { \tx@DiaNodePos } def}%
\box\pst@hbox}%
-\ifnodealign\psboxseptrue\fi
+\ifPst@nodealign\psboxseptrue\fi
\ifpsboxsep\psdiabox@sep\fi
% DG/SR modification begin - Sep. 2, 1997 - Patch 3
\leavevmode
% DG/SR modification end
-\ifnodealign\lower\pst@dimb\fi
+\ifPst@nodealign\lower\pst@dimb\fi
\box\pst@hbox
\endgroup}
\def\tx@TriNodePos{TriNodePos }
@@ -286,12 +285,12 @@
}%
\box\pst@hbox%
}%
- \ifnodealign\psboxseptrue\fi
+ \ifPst@nodealign\psboxseptrue\fi
\ifpsboxsep\pstribox@sep\fi
% DG/SR modification begin - Sep. 2, 1997 - Patch 3
\leavevmode
% DG/SR modification end
- \ifnodealign\lower\pst@tempa\fi
+ \ifPst@nodealign\lower\pst@tempa\fi
\box\pst@hbox%
\endgroup}
%
@@ -310,12 +309,12 @@
/h \pst@number\pst@dimd def
/NodePos { \tx@OvalNodePos } def}%
\unhbox\pst@hbox}%
-\ifnodealign\psboxseptrue\fi
+\ifPst@nodealign\psboxseptrue\fi
\ifpsboxsep\psovalbox@sep\fi
% DG/SR modification begin - Sep. 2, 1997 - Patch 3
\leavevmode
% DG/SR modification end
-\ifnodealign\lower\pst@dimb\fi
+\ifPst@nodealign\lower\pst@dimb\fi
\box\pst@hbox
\endgroup}
%
@@ -328,7 +327,7 @@
\pst@@getcoor{#1}%
\pst@getdotsize%
\pstree@nodehook%
- \ifnodealign%
+ \ifPst@nodealign%
\pst@dima=\pst@dimg%
\kern\pst@dima%
\vrule width\z@ height \pst@dimh depth \pst@dimh%
@@ -340,7 +339,7 @@
/h \pst@number\pst@dimh def
/NodePos { \tx@OvalNodePos } def}%
\psdot@ii(#1)%
- \ifnodealign\kern\pst@dima\fi}%
+ \ifPst@nodealign\kern\pst@dima\fi}%
\ignorespaces}
%
\define@key[psset]{pst-node}{framesize}{\pst@expandafter\psset@@framesize{#1} \@nil}
@@ -366,7 +365,7 @@
\hbox{%
\use@par%
\begin@ClosedObj%
- \ifnodealign
+ \ifPst@nodealign
\kern\psk@framewidth\p@
\vrule width\z@ height \psk@frameheight\p@ depth \psk@frameheight\p@
\edef\pst@coor{0 0 }%
@@ -393,7 +392,7 @@
\def\pst@linetype{2}%
\showpointsfalse%
\end@ClosedObj%
- \ifnodealign\kern\psk@framewidth\p@\fi}% end of \hbox
+ \ifPst@nodealign\kern\psk@framewidth\p@\fi}% end of \hbox
\ignorespaces}
%
%
@@ -1111,7 +1110,7 @@ end }}%
\ifnum\pscol>1\relax \pshskip\pscolsep \fi
\psk@mnodesize
\hfil
- \nodealigntrue
+ \Pst@nodealigntrue
\if@pst\csname mnode@\psk@mnode\endcsname
\else\csname mnode@\psk@emnode\endcsname\fi
\psk@mcol
@@ -1147,8 +1146,8 @@ end }}%
\def\mnode@oval{\ovalnode@ii{\psm@thenode}}
\def\mnode@tri{\trinode@ii{\psm@thenode}}
\def\mnode@dia{\dianode@ii{\psm@thenode}}
-\def\mnode@C{{\nodealigntrue\cnode@ii(\z@,\z@){\psk@radius}{\psm@thenode}}}
-\def\mnode@f{{\nodealigntrue\fnode@ii(\z@,\z@){\psm@thenode}}}
+\def\mnode@C{{\Pst@nodealigntrue\cnode@ii(\z@,\z@){\psk@radius}{\psm@thenode}}}
+\def\mnode@f{{\Pst@nodealigntrue\fnode@ii(\z@,\z@){\psm@thenode}}}
\def\mnode@circle{\circlenode@ii{\psm@thenode}}
% hv modification begin - Aug. 16, 2007
\def\mnode@Circle{\Circlenode@ii{\psm@thenode}}