summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex45
1 files changed, 44 insertions, 1 deletions
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}
%--------------------------------------------------------------------------------------