summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-dart
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-09 22:36:25 +0000
committerKarl Berry <karl@freefriends.org>2018-02-09 22:36:25 +0000
commit906d1801a2e2116949953e5ab60a62c6e0652dfb (patch)
treeb1f492f8bfde0676f16b1a9cc48fba0d5d5829f7 /Master/texmf-dist/doc/generic/pst-dart
parent361229acccff692c5b03a2b81da2b6adb083f040 (diff)
pst-dart (9feb18)
git-svn-id: svn://tug.org/texlive/trunk@46579 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-dart')
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/Changes2
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdfbin65597 -> 408049 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex67
3 files changed, 59 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-dart/Changes b/Master/texmf-dist/doc/generic/pst-dart/Changes
index 0d844aa3895..09f94ce443b 100644
--- a/Master/texmf-dist/doc/generic/pst-dart/Changes
+++ b/Master/texmf-dist/doc/generic/pst-dart/Changes
@@ -1,4 +1,6 @@
..... pst-dart.tex
+0.02 2018-02-09 - add \psDart for darts
+ - rename borad to \psDartBoard
0.01 2018-01-27 first version
diff --git a/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdf b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdf
index 6aefbd6409e..89f8519e2be 100644
--- a/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdf
+++ b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex
index 26ee928df7a..ad125eebf20 100644
--- a/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex
+++ b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex
@@ -1,10 +1,11 @@
-%% $Id: pst-dart-doc.tex 714 2018-01-28 19:38:02Z herbert $
+%% $Id: pst-dart-doc.tex 728 2018-02-09 19:29:41Z herbert $
\documentclass[fontsize=11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,
headings=small, headinclude=false,footinclude=false,oneside]{pst-doc}
\usepackage[utf8]{inputenc}
+\usepackage{dtk-logos}
\usepackage{pst-dart}
\let\pstDartFV\fileversion
-\renewcommand\bgImage{\psDart[unit=2,fontsize=15pt]}
+\renewcommand\bgImage{\psDartBoard[unit=2,fontsize=15pt]}
\addbibresource{pst-dart-doc.bib}
@@ -55,7 +56,7 @@
\begin{BDef}
-\Lcs{psDart}\OptArgs\OptArg*{$(x_0,y_0)$}
+\Lcs{psDartBoard}\OptArgs\OptArg*{$(x_0,y_0)$}
\end{BDef}
\section{Examples}
@@ -63,8 +64,8 @@
\begin{LTXexample}
\begin{pspicture}[showgrid](-3,-3)(9,3)
-\psDart % The default Dartboard (radius=2.1cm)
-\psDart[fontsize=7pt](6cm,0)
+\psDartBoard % The default Dartboard (radius=2.1cm)
+\psDartBoard[fontsize=7pt](6cm,0)
\end{pspicture}
\end{LTXexample}
@@ -73,20 +74,20 @@
\begin{LTXexample}[pos=r,width=0.58\linewidth]
\begin{pspicture}[showgrid](-5,-5)(5,5)
-\psDart[unit=2]
+\psDartBoard[unit=2]
\end{pspicture}
\end{LTXexample}
\begin{LTXexample}[pos=r,width=0.58\linewidth]
\begin{pspicture}[showgrid](-5,-5)(5,5)
-\psDart[fontsize=15pt,unit=2]
+\psDartBoard[fontsize=15pt,unit=2]
\end{pspicture}
\end{LTXexample}
\subsection{Space}
-\Lcs{psDart} itself uses internally already an environment \Lenv{pspicture} which
+\Lcs{psDartBoard} itself uses internally already an environment \Lenv{pspicture} which
reserves the space. But an internal \Lcs{rput} command places the dartboard without specifying
coordinates at the origin which is the reason why one has to reserve space with an additional
environment \Lenv{pspicture} as can be seen in the above examples..
@@ -94,22 +95,68 @@ environment \Lenv{pspicture} as can be seen in the above examples..
%\psset{unit=1cm}
+\section{Darts}
+
+\begin{pspicture}[showgrid](0,-1)(\linewidth,8)
+\psDart(4,2)
+\psDart[dartcolor=green,rot=22.50](4,2)
+\psDart[dartcolor=blue,rot=45](4,2)
+\psDart[rot=-90,unit=0.75](2,8)
+\end{pspicture}
+
+\begin{lstlisting}
+\begin{pspicture}[showgrid](0,-1)(\linewidth,8)
+\psDart(4,2)
+\psDart[dartcolor=green,rot=22.50](4,2)
+\psDart[dartcolor=blue,rot=45](4,2)
+\psDart[rot=-90,unit=0.75](2,8)
+\end{pspicture}
+\end{lstlisting}
+
+
+\section{Board and Darts}
+
+\begin{LTXexample}[pos=t]
+\begin{pspicture}(-5,-5)(5,5)
+\psDartBoard[fontsize=15pt,unit=2]
+\psDart[rot=45,unit=0.5](0,0)
+\psDart[rot=30,unit=0.5,dartcolor=blue](0,0)
+\psDart[rot=80,unit=0.5,dartcolor=green](-2,2)
+\end{pspicture}
+\end{LTXexample}
+
+
%\begin{LTXexample}[pos=r,width=0.6\linewidth]
%foo\psDart bar
%\end{LTXexample}
+\section{Changing the viewpoint}
+
+You can change the viewpoint with the two optional arguments \Lkeyword{preCode}\footnote{There is also a \Lkeyword{postCode},
+which is not of real interest here.}
+which allow to change the transformation matrix of PostScript. However, it does \emph{not} work
+with \XeLaTeX, you have to choose the Sequenz \texttt{latex}$\rightarrow$\texttt{dvips}$\rightarrow$\texttt{ps2pdf}.
+
+
+
+\begin{LTXexample}[pos=t]
+\begin{pspicture}(-4.5,-4.5)(4.5,4.5)
+\psDartBoard[preCode={[1 0.2 0.5 1 0 0 ] concat },fontsize=18pt,unit=1.5]
+\psDart[unit=0.5,rot=45](1,-1)
+\end{pspicture}
+\end{LTXexample}
\clearpage
-\section{List of all optional arguments for \texttt{pst-func}}
+\section{List of all optional arguments for \texttt{pst-dart}}
\xkvview{family=pst-dart,columns={key,type,default}}
\bgroup
\RaggedRight
\nocite{*}
-\printbibliography{pst-dart-doc}
+\printbibliography
\egroup
\printindex