diff options
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/Changes | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/README | 58 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf | bin | 1761267 -> 1769130 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex | 45 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex | 41 |
5 files changed, 85 insertions, 63 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/Changes b/Master/texmf-dist/doc/generic/pstricks-add/Changes index 8ec95a8c4ae..94ef0f29fc2 100644 --- a/Master/texmf-dist/doc/generic/pstricks-add/Changes +++ b/Master/texmf-dist/doc/generic/pstricks-add/Changes @@ -1,4 +1,4 @@ -%% $Id: Changes 412 2010-11-03 19:39:07Z herbert $ +%% $Id: Changes 431 2010-12-13 10:53:46Z herbert $ %% pstricks-add.pro ----------- 0.23 2009-12-20 - add RGBtoGRAY and WavelengthToGRAY @@ -39,6 +39,8 @@ pstricks-add.sty ----------- (hv) pstricks-add.tex ----------- (Dominik Rodriguez/hv) + v 3.46 2010-12-13 - added new macro \psVector for drawing vectors with + relative coordinates (hv) v 3.45 2010-11-01 - modified \Put for checking coor type (hv) v 3.44 2010-08-28 - new option XYoffset for \psMatrixPlot (hv) v 3.43 2010-08-17 - moved option method into pst-plot (hv) diff --git a/Master/texmf-dist/doc/generic/pstricks-add/README b/Master/texmf-dist/doc/generic/pstricks-add/README deleted file mode 100644 index 852dd71f408..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks-add/README +++ /dev/null @@ -1,58 +0,0 @@ -pstricks-add redefines a lot of the pstricks macros and uses the extended -version of the keyval package. So be sure that you -- pstricks-add depends on the pstricks.pro Version 1.05, 2008/06/25 - you can get it from http://perce.de/LaTeX/pstricks/ or CTAN -- load pstricks-add as last pstricks related package -- have installed xkeyval with the special pst-xkey - (CTAN: tex-archive/macros/latex/contrib/xkeyval/) -- do not load another package after pstricks-add, which loads - the old keyval.sty or pst-key.tex - -pstricks-add collects a lot of the code which was posted -to the pstricks mailing list and has some more new features: - -- pstricks - o random dots - O braces - o define and calculate colors on PS side - o Gouraud shading - o braces as node connection/linestyle - o line style bar - o lines, drawn "by hand" - o arrows, arrows, arrows, ... - -- pst-plot - o new syntax for \psplot and \psparametricplot - o new environment psgraph - o new macro pstScalePoints - o new option for logarithmic axes - o new macro and options for ticklines - o new plot option bar and option barwidth - o new options step, start end for plotting data files - o new options xLabel, yLabel - o new option plotNo for multiple data files x y1 y2 y3 ... - o new macro psplotTangent - o new macro psplotDiffEqn - o new option algebraic for infix notation - o new option changeOrder - -- pst-node - o new macro nclineII for a two-colored line - o new option lineAngle for ncdiag - o new macros for interpolation nodes - and linear combination of two vectors - o new macro ncbarr (line with 5 segments) - - -pstricks-add.pro : the prolog file for pstricks-add -pstricks-add-doc.tex: the included doc file -pst-fp.tex : for floating point multiplication and division - -Save the files pstricks-add.sty|pro|tex and pst-fp.tex in a directory, -which is part of your local TeX tree. The pro file should go -into $TEXMF/dvips/pstricks/ -Then do not forget to run texhash to update this tree. -For more information see the documentation of your LATEX distribution -on installing packages into your local TeX system or read the -TeX Frequently Asked Questions: -(http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages). 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 Binary files differindex f430f60b0e9..768d62de8f4 100644 --- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf +++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.pdf 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 eac99b23d76..e186bbc1525 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 412 2010-11-03 19:39:07Z herbert $ +%% $Id: pstricks-add-doc.tex 431 2010-12-13 10:53:46Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} \listfiles @@ -214,6 +214,49 @@ point to the next. This is possible with \Lcs{rmultiput}: \clearpage + +%-------------------------------------------------------------------------------------- +\section{\nxLcs{psVector}: Drawing relative vector lines} +%-------------------------------------------------------------------------------------- + +The new macros \Lcs{psStartPoint} and \Lcs{psVector} allow to draw a series of +vectors which start point refers to the endpoint of the last drawn vector. The +coordinates of the endpoint are \emph{always} interpreted relative to the last +the vector. The first vector refers to the coordinates set by \Lcs{psStartPoint}. +With the boolean argument one can draw the horizontal angle of the vector. + +The style of the angle arc is saved in \Lkeyval{psMarkAngleStyle} and the style +for the horizontal line in \Lkeyval{psMarkAngleLineStyle} and preset to + +\begin{lstlisting} +\newpsstyle{psMarkAngleStyle}{arrows=->,arrowsize=4pt} +\newpsstyle{psMarkAngleLineStyle}{linestyle=dotted} +\end{lstlisting} + + +\begin{pspicture}[showgrid](10,10) + \psStartPoint(1,1) + \psVector(3;30)\psVector(4;60)\psVector[linecolor=red](3;10) + \psVector[linestyle=dashed](4;110) + \psStartPoint(1,1)\psset{markAngle} + \psVector[linestyle=dashed](4;110)\psVector[linecolor=red](3;10) + \psVector(4;60)\psVector(3;30) +\end{pspicture} + +\begin{lstlisting} +\begin{pspicture}[showgrid](10,10) + \psStartPoint(1,1) + \psVector(3;30)\psVector(4;60)\psVector[linecolor=red](3;10) + \psVector[linestyle=dashed](4;110) + \psStartPoint(1,1)\psset{markAngle} + \psVector[linestyle=dashed](4;110)\psVector[linecolor=red](3;10) + \psVector(4;60)\psVector(3;30) +\end{pspicture} +\end{lstlisting} + + +\clearpage + %-------------------------------------------------------------------------------------- \section{\nxLcs{psrotate}: Rotating objects} %-------------------------------------------------------------------------------------- diff --git a/Master/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex b/Master/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex index 7b68855d1de..3d2a9e33c44 100644 --- a/Master/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex +++ b/Master/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex @@ -1,4 +1,4 @@ -%% $Id: pstricks-add.tex 412 2010-11-03 19:39:07Z herbert $ +%% $Id: pstricks-add.tex 431 2010-12-13 10:53:46Z herbert $ %% %% %% This is file `pstricks-add.tex', @@ -31,8 +31,8 @@ \ifx\PSTXKeyLoaded\endinput\else \input pst-xkey \fi \ifx\PSTmathLoaded\endinput\else \input pst-math \fi % -\def\fileversion{3.45} -\def\filedate{2010/11/03} +\def\fileversion{3.46} +\def\filedate{2010/12/13} \message{`pstricks-add' v\fileversion, \filedate\space (dr,hv)} % \edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax @@ -2027,6 +2027,40 @@ dup #1Delta.X m 1 add get mul #1.X m get add #1Tick.X j 3 -1 roll put % s on sta \endgroup% } % +\define@boolkey[psset]{pstricks-add}[Pst@]{markAngle}[true]{} +\psset[pstricks-add]{markAngle=false} +\newpsstyle{psMarkAngleStyle}{arrows=->,arrowsize=4pt} +\newpsstyle{psMarkAngleLineStyle}{linestyle=dotted,arrows=-} +% +\def\psStartPoint(#1){\pst@getcoor{#1}\pst@tempA + \pstVerb{tx@Dict begin + \pst@tempA + \pst@number\psyunit div /cp.Y exch def + \pst@number\psxunit div /cp.X exch def end + }} +\psStartPoint(0,0) +% +\def\psVector{\@ifnextchar[\psVector@i{\psVector@i[]}} +\def\psVector@i[#1](#2){% + \pst@killglue% + \pst@getcoor{#2}\pst@tempCoor% + \begingroup + \psset{arrows=->,arrowsize=6pt,#1}% + \rput(! cp.X cp.Y ){% + \psline(0,0)(#2)% + \ifPst@markAngle + \psarc[style=psMarkAngleStyle](0,0){1}{0}{!\pst@tempCoor exch atan}% + \psline[style=psMarkAngleLineStyle](1.5,0)% + \fi}% + \endgroup% + \pstVerb{tx@Dict begin + \pst@tempCoor + \pst@number\psyunit div cp.Y add /cp.Y exch def + \pst@number\psxunit div cp.X add /cp.X exch def end + }% + \ignorespaces% +} +% \def\resetOptions{% \def\pst@linetype{0}% \pstScalePoints(1,1){}{}% @@ -2046,6 +2080,7 @@ dup #1Delta.X m 1 add get mul #1.X m get add #1Tick.X j 3 -1 roll put % s on sta braceWidthOuter=10\pslinewidth, chartNodeI=0.75, chartNodeO=1.5, + markAngle=false, }} % \resetOptions |