From c37f8dff2993909bf786eeac757115b0027e3ed9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 25 Sep 2007 17:41:22 +0000 Subject: pstricks-add update (24sep07) git-svn-id: svn://tug.org/texlive/trunk@5034 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pstricks-add/Changes | 19 +- .../doc/generic/pstricks-add/pstricks-add-doc.pdf | Bin 1760143 -> 1807427 bytes .../doc/generic/pstricks-add/pstricks-add-doc.tex | 316 +++++++++++---------- .../texmf-dist/dvips/pstricks-add/pstricks-add.pro | 12 +- .../tex/generic/pstricks-add/pstricks-add.tex | 77 +++-- .../tex/latex/pstricks-add/pstricks-add.sty | 2 +- 6 files changed, 237 insertions(+), 189 deletions(-) diff --git a/Master/texmf-dist/doc/generic/pstricks-add/Changes b/Master/texmf-dist/doc/generic/pstricks-add/Changes index fa932cba2ab..222c084aa82 100644 --- a/Master/texmf-dist/doc/generic/pstricks-add/Changes +++ b/Master/texmf-dist/doc/generic/pstricks-add/Changes @@ -1,4 +1,12 @@ +pstricks-add.sty ----------- (hv) + v. 0.11 2007-09-04 add a message for loading the prologue file pstrick-add.pro + + + pstricks-add.pro ----------- (Dominik Rodriguez/hv) + v 0.14 2007-09-17 - moved Pyth2 into tx@Add part + v 0.13 2007-09-12 - temporarely version for \psbrace, code + will later go into pstricks.pro v 0.12 2007-09-03 - Added RGBtoGRAY, CMYKtoGRAY, HSBtoGRAY (hv) v 0.11 2007-06-23 - Added wavelengthToCMYK routine (hv) @@ -20,12 +28,13 @@ pstricks-add.pro ----------- (Dominik Rodriguez/hv) v 2004.01 2004/09/14 (dr) initial version -pstricks-add.sty ----------- (hv) - v. 0.11 2007-09-04 add a message for loading the prolouge file pstrick-add.pro - - -pstricks-add ----------- (Dominik Rodriguez/hv) +pstricks-add.tex ----------- (Dominik Rodriguez/hv) + v 2.90 2007-09-25 - add \DefPSPNodes to defines 9 nodes depending to the + pspciture environment. + - fix bug in psHomothetie for special coor + v 2.89 2007-09-12 - temporarely version for \psbrace, code + will later go into pstricks.tex v 2.88 2007-09-03 - add \psHomothetie for mirroring any object - add option Tnormal for the \psplotTangent macro - add \psxTick and \psyTick for single ticks with a label diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf index 90818c15180..6117ea79831 100644 Binary files a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf and b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf differ 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 25a3ff2df72..3cf252acc0b 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 @@ -91,7 +91,8 @@ \usepackage[lmargin=2.5cm,bmargin=3cm]{geometry} \usepackage{tabularx} \usepackage{graphicx,ragged2e} -\usepackage[svgnames,dvipsnames]{pstricks} +\usepackage{xkvview} +\usepackage[svgnames,dvipsnames,table]{pstricks} \usepackage{framed,xspace,multirow,caption} \usepackage{pst-eucl,pst-fun} \usepackage{pstricks-add} @@ -149,6 +150,8 @@ \makeatother \usepackage{showexpl} \lstset{preset=\RaggedRight} +\lstdefinestyle{syntax}{backgroundcolor=\color{blue!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt, + frame=single} \usepackage{amsmath} \newdimen\fullWidth @@ -220,11 +223,11 @@ packages, that uses the old keyval interface are loaded \textbf{before} the \ver All macronames contain a \textat{} in their name, because they are only for internal use, but it is no problem to use it as the other macros. One can define another name without a \textat{}: -\begin{verbatim} +\begin{lstlisting}[style=syntax] \makeatletter \let\pstdivide\pst@divide \makeatother -\end{verbatim} +\end{lstlisting} or put the macro inside of the \verb+\makeatletter+ -- \verb+\makeatother+ sequence. @@ -236,9 +239,9 @@ or put the macro inside of the \verb+\makeatletter+ -- \verb+\makeatother+ seque can divide two lengthes and saves the quotient as a floating point number: \index{Division} % -\begin{verbatim} +\begin{lstlisting}[style=syntax] \pst@divide{}{}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=2cm] \makeatletter @@ -255,9 +258,9 @@ can divide two lengthes and saves the quotient as a floating point number: \verb+pstricks-add+ defines an additional numeric function for the modulus: \index{Modulus} -\begin{verbatim} +\begin{lstlisting}[style=syntax] \pst@mod{}{}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=2cm] \makeatletter @@ -275,9 +278,9 @@ It makes some sense to define a new macroname in the preamble to use it througho \subsection{\CMD{pst\textat{}max}} %-------------------------------------------------------------------------------------- -\begin{verbatim} +\begin{lstlisting}[style=syntax] \pst@max{}{}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=2cm] \newcount\maxNo @@ -292,9 +295,9 @@ It makes some sense to define a new macroname in the preamble to use it througho \subsection{\CMD{pst\textat{}maxdim}} %-------------------------------------------------------------------------------------- -\begin{verbatim} +\begin{lstlisting}[style=syntax] \pst@maxdim{}{}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=2cm] \newdimen\maxDim @@ -308,9 +311,9 @@ It makes some sense to define a new macroname in the preamble to use it througho \subsection{\CMD{pst\textat{}abs}} %-------------------------------------------------------------------------------------- -\begin{verbatim} +\begin{lstlisting}[style=syntax] \pst@abs{}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=2cm] \newcount\absNo @@ -324,9 +327,9 @@ It makes some sense to define a new macroname in the preamble to use it througho \subsection{\CMD{pst\textat{}absdim}} %-------------------------------------------------------------------------------------- -\begin{verbatim} +\begin{lstlisting}[style=syntax] \pst@absdim{}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=2cm] \newdimen\absDim @@ -342,9 +345,9 @@ It makes some sense to define a new macroname in the preamble to use it througho Tobias Nähring implemented an enhanced feature for dashed lines. The number of arguments is no more limited. -\begin{verbatim} +\begin{lstlisting}[style=syntax] dash=value1[unit] value2[unit] ... -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=0.4\linewidth] \psset{linewidth=2.5pt,unit=0.6} @@ -366,10 +369,10 @@ dash=value1[unit] value2[unit] ... a difference of $dx$ and $dy$ relativ to each other. It is not possible to put it with a different distance from one point to the next one. This is possible with \verb+rmultiput+: -\begin{verbatim} +\begin{lstlisting}[style=syntax] \rmultiput[]{}(x1,y1)(x2,y2) ... (xn,yn) \rmultiput*[]{}(x1,y1)(x2,y2) ... (xn,yn) -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=6.2cm] \psset{unit=0.75} @@ -390,9 +393,9 @@ depending to the \CMD{rput} coordinates. With \CMD{psrotate} the rotating center can be placed anywhere. The rotation is done with \verb+\pscustom+, all optional arguments are only valid if they are part of the \verb+\pscustom+ macro. -\begin{verbatim} +\begin{lstlisting}[style=syntax] \psrotate[options](x,y){rot angle}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=0.4\linewidth] \psset{unit=0.75} @@ -448,9 +451,9 @@ macro. \section{\CMD{psHomothetie}: central dilatation} %-------------------------------------------------------------------------------------- -\begin{verbatim} +\begin{lstlisting}[style=syntax] \psHomothetie[](
){}{} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=9cm] \begin{pspicture}[showgrid=true](-5,-4)(4,8) @@ -471,10 +474,10 @@ macro. \section{\CMD{psbrace}} %-------------------------------------------------------------------------------------- \subsection{Syntax} -\begin{verbatim} +\begin{lstlisting}[style=syntax] \psbrace[]()(){} \psbrace*[]()(){} -\end{verbatim} +\end{lstlisting} \begin{LTXexample}[width=4.5cm] @@ -715,12 +718,12 @@ Some nonsense text, which is nothing more than nonsense. %-------------------------------------------------------------------------------------- The syntax of the new macro \verb+\psRandom+ is: -\begin{verbatim} +\begin{lstlisting}[style=syntax] \psRandom[