From 6aea4681407ba3c56e1e32095d600610f8d2f3dd Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 7 Mar 2009 00:45:26 +0000
Subject: pstricks-add update (6mar09)

git-svn-id: svn://tug.org/texlive/trunk@12326 c570f23f-e606-0410-a88d-b1316a301751
---
 .../doc/generic/pstricks-add/pstricks-add-doc.tex  | 73 +++++++++++++++++++---
 1 file changed, 64 insertions(+), 9 deletions(-)

(limited to 'Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex')

diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
index ee9879b5fbf..d237307a2bb 100644
--- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
+++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
@@ -1,4 +1,4 @@
-%% $Id: pstricks-add-doc.tex 99 2009-03-03 10:37:34Z herbert $
+%% $Id: pstricks-add-doc.tex 105 2009-03-05 19:55:16Z herbert $
 \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
     headexclude,footexclude,oneside]{pst-doc}
 \listfiles
@@ -433,6 +433,45 @@ only valid if they are part of the \verb+\pscustom+ macro.
 \end{pspicture}
 \end{LTXexample}
 
+\clearpage
+
+%--------------------------------------------------------------------------------------
+\section{\nxLcs{psComment}: comments to a graphic}
+%--------------------------------------------------------------------------------------
+
+\begin{BDef}
+\LcsStar{psComment}\OptArgs\OptArg*{\Largb{arrows}}\Largr{\Coord0}\Largr{\Coord1}\Largb{Text}\OptArg{line macro}
+\end{BDef}
+
+By default the macro uses the \Lcs{ncline} macro to draw a line from the first to the
+second point. With the second additional argument one can use another macro for
+the line.
+
+\begin{LTXexample}[pos=t,wide]
+\SpecialCoor\newpsstyle{weiss}{fillstyle=solid,fillcolor=white}
+\footnotesize\psset{unit=0.5cm,dimen=middle}
+\begin{pspicture}(-12,-4)(6,10)
+\psframe*[linecolor=black!20](-5,-3)(5,7) \psframe*[linecolor=black!40](-5,3)(5,6)
+\pscircle(-8.19,5.51){0.2}
+\psframe[fillcolor=white,fillstyle=solid](-5.8,3.6)(4.3,5.8)
+\psframe(-8.98,3.14)(-5.8,6.32)
+\multido{\rA=-4.1+1.3}{5}{\rput(\rA,-2.4){\psframe[style=weiss](1.1,6)
+  \psline(0,0)(1.1,0.5)(0,1)(1.1,1.6)(0,2.2)(1.1,2.7)(0,3.2)(1.1,3.2)}}
+\pspolygon*(-4.1,3.7)(-4.1,3)(-3,3)(-3.01,3.7)(-3.54,4.19)
+\pspolygon*(1.09,3.7)(1.1,3)(2.2,3)(2.18,3.7)(1.65,4.24)
+\pspolygon*(-2.78,3.7)(-2.8,3)(-1.7,3)(-1.71,3.7)(-2.27,4.04)
+\pspolygon*(-1.51,3.7)(-1.5,3)(-0.4,3)(-0.41,3.7)(-1.02,4.17)
+\pspolygon*(-0.21,3.7)(-0.2,3)(0.9,3)(0.89,3.7)(0.3,4.04)
+\psline(-5,3.83)(-4.15,3.86)(-3.5,4.3)(-2.85,3.81)(-2.22,4.21)(-1.6,3.86)(-0.99,4.33)
+       (-0.28,3.83)(0.35,4.19)(0.97,3.83)(1.65,4.39)(2.2,4.01)(3.57,4.89)(2.41,5.8)
+  \psline(-5,5.8)(-5.78,5.8)  \psline(-5.78,5.47)(2.85,5.47)
+  \psline(-5.8,3.52)(-5,3.5)  \psline(3.57,4.89)(-5.8,4.89)
+  \psComment*[ref=r]{->}(-8.14,1.19)(-4.31,3.27){Mantelstift}
+  \psComment*[ref=r]{->}(-8.17,-0.56)(-4.37,1.59){Kernstift}[\rput]
+  \psComment*[ref=r]{->}(-7.91,-2.24)(-4.44,-0.23){Feder}[\rput]
+  \psComment[npos=-0.1]{->}(-3.48,8.72)(-1.33,5.46){Nur f\"ur Profil}
+\end{pspicture}
+\end{LTXexample}
 
 \clearpage
 %--------------------------------------------------------------------------------------
@@ -467,10 +506,9 @@ The distance can be changed with the optional arguments \Lkeyword{chartNodeI} an
 
 The other one is the node on the circle line.
 The origin is by default \texttt{(0,0)}. Moving the pie to another position can be done as
-usual with the \Lcs{rput}-macro. The used colors are named internally as \verb+chartFillColor?+
+usual with the \Lcs{rput}-macro. The used colors are named internally as \Lkeyword{chartFillColor?}
 and can be used by the user for coloring lines or text.
 
-
 \begin{LTXexample}[width=6cm]
 \begin{pspicture}(-3,-3)(3,3)
 \psChart{ 23, 29, 3, 26, 28, 14 }{}{2}
@@ -517,20 +555,19 @@ and can be used by the user for coloring lines or text.
 \end{pspicture}
 \end{LTXexample}
 
-
-
 \begin{LTXexample}[width=6cm]
-\begin{pspicture}(-3,-3)(3,3)
+\begin{pspicture}(-3,-2.5)(3,2.5)
 \psChart{ 23, 29, 3, 26, 28, 14 }{}{2}
 \multido{\iA=1+1}{6}{\rput*(psChartI\iA){\iA}}
 \end{pspicture}
 \end{LTXexample}
 
-\begin{LTXexample}[pos=t]
+
+%\begin{LTXexample}[pos=t]
 \psset{unit=1.5}
 \begin{pspicture}(-3,-3)(3,3)
 \psChart[userColor={red!30,green!30,blue!40,gray,cyan!50,
-    magenta!60,cyan},chartSep=30pt,shadow=true,shadowsize=5pt]{ 34.5,17.2,20.7,15.5,5.2,6.9}{6}{2}
+    magenta!60,cyan},chartSep=30pt,shadow=true,shadowsize=5pt]{34.5,17.2,20.7,15.5,5.2,6.9}{6}{2}
 \psset{nodesepA=5pt,nodesepB=-10pt}
 \ncline{psChartO1}{psChart1}\nput{0}{psChartO1}{1000 (34.5\%)}
 \ncline{psChartO2}{psChart2}\nput{150}{psChartO2}{500 (17.2\%)}
@@ -542,7 +579,25 @@ and can be used by the user for coloring lines or text.
 \rput(psChartI1){Taxes}\rput(psChartI2){Rent}\rput(psChartI3){Bills}
 \rput(psChartI4){Car}\rput(psChartI5){Gas}\rput(psChartI6){Food}
 \end{pspicture}
-\end{LTXexample}
+%\end{LTXexample}
+
+\begin{lstlisting}
+\psset{unit=1.5}
+\begin{pspicture}(-3,-3)(3,3)
+\psChart[userColor={red!30,green!30,blue!40,gray,cyan!50,
+    magenta!60,cyan},chartSep=30pt,shadow=true,shadowsize=5pt]{34.5,17.2,20.7,15.5,5.2,6.9}{6}{2}
+\psset{nodesepA=5pt,nodesepB=-10pt}
+\ncline{psChartO1}{psChart1}\nput{0}{psChartO1}{1000 (34.5\%)}
+\ncline{psChartO2}{psChart2}\nput{150}{psChartO2}{500 (17.2\%)}
+\ncline{psChartO3}{psChart3}\nput{-90}{psChartO3}{600 (20.7\%)}
+\ncline{psChartO4}{psChart4}\nput{0}{psChartO4}{450 (15.5\%)}
+\ncline{psChartO5}{psChart5}\nput{0}{psChartO5}{150 (5.2\%)}
+\ncline{psChartO6}{psChart6}\nput{0}{psChartO6}{200 (6.9\%)}
+\bfseries%
+\rput(psChartI1){Taxes}\rput(psChartI2){Rent}\rput(psChartI3){Bills}
+\rput(psChartI4){Car}\rput(psChartI5){Gas}\rput(psChartI6){Food}
+\end{pspicture}
+\end{lstlisting}
 
 
 
-- 
cgit v1.2.3

