summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/Changes8
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/README.md23
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.bib78
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdfbin0 -> 65597 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex119
-rw-r--r--Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex78
-rw-r--r--Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty13
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check3
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
-rw-r--r--Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/pst-dart.tlpsrc0
11 files changed, 323 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-dart/Changes b/Master/texmf-dist/doc/generic/pst-dart/Changes
new file mode 100644
index 00000000000..0d844aa3895
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-dart/Changes
@@ -0,0 +1,8 @@
+..... pst-dart.tex
+0.01 2018-01-27 first version
+
+
+..... pst-dart.sty
+ 2018-01-27 first version
+
+
diff --git a/Master/texmf-dist/doc/generic/pst-dart/README.md b/Master/texmf-dist/doc/generic/pst-dart/README.md
new file mode 100644
index 00000000000..6dc2e0f9834
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-dart/README.md
@@ -0,0 +1,23 @@
+# pst-dart: plotting a Dart Board
+
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory macros/latex/base/lppl.txt.
+
+Save the files pst-dart.sty|pro|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 TeX 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).
+
+pst-dart needs pstricks, which should already
+be part of your local TeX installation, otherwise get it from a
+CTAN server, http://mirror.ctan.org
+
+PSTricks is PostScript Tricks, the documentation cannot be run
+with pdftex, use the sequence latex->dvips->ps2pdf or
+pdflatex with package auto-pst-pdf or xelatex.
+
+%% $Id: README.md 713 2018-01-28 19:31:56Z herbert $
diff --git a/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.bib b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.bib
new file mode 100644
index 00000000000..36f1388ee12
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.bib
@@ -0,0 +1,78 @@
+@STRING{tugboat = {TUGboat} }
+@STRING{beiprogramm = {{\TeX}-Beiprogramm} }
+@STRING{bretter = {Bretter, die die Welt bedeuten} }
+@STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} }
+@STRING{editorial = {Editorial} }
+@STRING{fremdebuehne = {Von fremden B{\"u}hnen} }
+@STRING{fundus = {Aus dem Fundus} }
+@STRING{hinterbuehne = {Hinter der B{\"u}hne} }
+@STRING{leserbrief = {Leserbrief(e)} }
+@STRING{magazin = {Magazin} }
+@STRING{rezension = {Rezensionen} }
+@STRING{schonimmer = {Was Sie schon immer {\"u}ber {\TeX} wissen wollten \dots} }
+@STRING{theaterkasse = {Von der Theaterkasse} }
+@STRING{theatertage = {{\TeX}-Theatertage} }
+
+@Book{tlgc2,
+ author = {Michel Goosens and Frank Mittelbach and Sebastian Rahtz and Denis Roegel and Herbert Voß},
+ title = {The {\LaTeX} {G}raphics {C}ompanion},
+ publisher = {{Addison-Wesley Publishing Company}},
+ edition = 2,
+ year = {2007},
+ address = {Reading, Mass.}
+}
+
+
+@Article{girou:01:,
+ author = {Denis Girou},
+ title = {Pr\'esentation de {PST}ricks},
+ journal = {Cahier {GUT}enberg},
+ year = 1994,
+ volume = {16},
+ month = apr,
+ pages = {21-70}
+}
+
+@Article{girou:02:,
+ author = {{Timothy van} Zandt and Denis Girou},
+ title = {Inside {PST}ricks},
+ journal = TUGboat,
+ year = 1994,
+ volume = {15},
+ month = sep,
+ pages = {239-246}
+}
+
+@online{pstricks,
+ Title = {PSTricks - {\PS} macros for generic {\TeX}},
+ Author = {{Timothy van} Zandt},
+ Organization = {},
+ url = {http://www.tug.org/application/PSTricks},
+ year = 1993
+}
+
+@ctan{multido,
+ Title = {\texttt{multido.tex} - a loop macro, that supports fixed-point addition},
+ Author = {{Timothy van} Zandt},
+ url = {/graphics/pstricks/generic/multido.tex},
+ Note = {},
+ year = 1997
+}
+
+@Book{PSTricks2,
+ author = {Herbert Voß},
+ title = {\texttt{PSTricks} -- {G}rafik f\"ur \TeX{} und \LaTeX},
+ edition = {7},
+ publisher = {DANTE -- Lehmanns},
+ year = {2016},
+ publisher = {Heidelberg and Berlin}
+}
+
+@Book{PSTricks2-UIT,
+ author = {Herbert Voß},
+ title = {PSTricks -- Graphics for \TeX\ and \LaTeX},
+ publisher = {UIT},
+ year = {2011},
+ address = {Cambridge}
+}
+
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
new file mode 100644
index 00000000000..6aefbd6409e
--- /dev/null
+++ 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
new file mode 100644
index 00000000000..26ee928df7a
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex
@@ -0,0 +1,119 @@
+%% $Id: pst-dart-doc.tex 714 2018-01-28 19:38:02Z 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{pst-dart}
+\let\pstDartFV\fileversion
+\renewcommand\bgImage{\psDart[unit=2,fontsize=15pt]}
+
+\addbibresource{pst-dart-doc.bib}
+
+
+\lstset{language=PSTricks,
+ morekeywords={psDart},basicstyle=\footnotesize\ttfamily,
+ literate=%
+ {Ö}{{\"O}}1
+ {Ä}{{\"A}}1
+ {Ü}{{\"U}}1
+ {ß}{{\ss}}1
+ {ü}{{\"u}}1
+ {ä}{{\"a}}1
+ {ö}{{\"o}}1
+ {~}{{\textasciitilde}}1
+}
+%
+\begin{document}
+
+\title{\texttt{pst-dart}}
+\subtitle{Plotting a Dart ; v.\pstDartFV}
+\author{Thomas Söll\\Herbert Voß}
+\docauthor{}
+\date{\today}
+\maketitle
+
+\tableofcontents
+
+
+\clearpage
+
+%\begin{abstract}
+%\noindent
+%\LPack{pst-func} loads by default the following packages: \LPack{pst-plot},
+%\LPack{pstricks-add}, \LPack{pst-math}, \LPack{pst-xkey}, and, of course \LPack{pstricks}.
+%All should be already part of your local \TeX\ installation. If not, or in case
+%of having older versions, go to \url{http://www.CTAN.org/} and load the newest version.
+
+%\vfill\noindent
+%Thanks to \\
+% Michael Zedler,
+%and last but not least
+% \url{http://mathworld.wolfram.com}.
+
+%\end{abstract}
+
+\section{Syntax of \Lcs{psDart}}
+
+
+\begin{BDef}
+\Lcs{psDart}\OptArgs\OptArg*{$(x_0,y_0)$}
+\end{BDef}
+
+\section{Examples}
+\subsection{The default size}
+
+\begin{LTXexample}
+\begin{pspicture}[showgrid](-3,-3)(9,3)
+\psDart % The default Dartboard (radius=2.1cm)
+\psDart[fontsize=7pt](6cm,0)
+\end{pspicture}
+\end{LTXexample}
+
+
+\subsection{Scaling}
+
+\begin{LTXexample}[pos=r,width=0.58\linewidth]
+\begin{pspicture}[showgrid](-5,-5)(5,5)
+\psDart[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]
+\end{pspicture}
+\end{LTXexample}
+
+
+\subsection{Space}
+
+\Lcs{psDart} 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..
+
+%\psset{unit=1cm}
+
+
+%\begin{LTXexample}[pos=r,width=0.6\linewidth]
+%foo\psDart bar
+%\end{LTXexample}
+
+
+
+
+
+\clearpage
+\section{List of all optional arguments for \texttt{pst-func}}
+\xkvview{family=pst-dart,columns={key,type,default}}
+
+\bgroup
+\RaggedRight
+\nocite{*}
+\printbibliography{pst-dart-doc}
+\egroup
+
+\printindex
+
+\end{document}
+
+
diff --git a/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex b/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex
new file mode 100644
index 00000000000..eac49bddd46
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex
@@ -0,0 +1,78 @@
+%% $Id: pst-dart.tex 715 2018-01-28 19:39:51Z herbert $
+%%
+%% This is file `pst-dart.tex',
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Package `pst-dart.tex'
+%%
+%% Thomas Söll <Thomas.Soell@onlinehome.de>
+%% Herbert Voss <hvoss@tug.org>
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory macros/latex/base/lppl.txt.
+%%
+%% DESCRIPTION:
+%% `pst-dart' is a PSTricks package to plot dart boards
+%%
+\csname PSTdartLoaded\endcsname
+\let\PSTfuncLoaded\endinput
+% Requires some PSTricks packages
+\ifx\PSTricksLoaded\endinput\else \input pstricks.tex\fi
+\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey.tex \fi
+%
+\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
+% interface to the `xkeyval' package
+\pst@addfams{pst-dart}
+%
+\def\fileversion{0.01}
+\def\filedate{2018/01/27}
+\message{`PST-dart' v\fileversion, \filedate\space (ts,hv)}
+%
+\define@key[psset]{pst-dart}{fontsize}[10pt]{\def\psk@dart@fontsize{\fontsize{#1}{#1}}}
+\psset[pst-dart]{fontsize=10pt}
+
+\newcmykcolor{Red}{0 1 1 0}
+\newcmykcolor{Green}{1 0 1 0}
+
+\def\psDart{\pst@object{psDart}}%
+\def\psDart@i{\@ifnextchar(\psDart@ii{\psDart@ii(0,0)}}%
+\def\psDart@ii(#1){%
+ \begingroup
+ \addbefore@par{unit=0.1mm}%
+ \use@par
+ \degrees[20]%
+ \rput(#1){%
+ \begin{pspicture}(-210,-210)(210,210)%
+ \pscircle*(0,0){210}
+ % Gerader Part.
+ \psset{linewidth=0.5pt}%
+ \multido{\rA=-0.5+2.0,\rB=0.5+2.0}{10}{%
+ \pswedge*[linecolor=white]{170}{\rA}{!\rA\space 1 add}
+ \psarc[linecolor=Green,linewidth=8](0,0){166}{\rA}{!\rA\space 1 add}
+ \psarc[linecolor=Red,linewidth=8](0,0){166}{\rB}{!\rB\space 1 add}
+ \psarc[linecolor=Green,linewidth=8](0,0){103}{\rA}{!\rA\space 1 add}
+ \psarc[linecolor=Red,linewidth=8](0,0){103}{\rB}{!\rB\space 1 add}
+ \psline[linecolor=gray!30,dimen=inner,linewidth=0.5pt](170;\rA)(0,0)(170;\rB)
+ }%
+ \pscircle[linecolor=gray!30,dimen=inner,linewidth=0.5pt]{170}%
+ \pscircle[linecolor=gray!30,dimen=inner,linewidth=0.5pt]{162}%
+ \pscircle[linecolor=gray!30,dimen=inner,linewidth=0.5pt]{107}
+ \pscircle[linecolor=gray!30,dimen=inner,linewidth=0.5pt]{99}
+ \pscircle[fillstyle=solid,fillcolor=Green,linecolor=gray!30,linewidth=0.5pt,linecolor=white]{15.9}
+ \pscircle[fillstyle=solid,fillcolor=Red,linecolor=gray!30,linewidth=0.5pt,linecolor=white]{6.35}
+ \psforeach{\iA}{6,13,4,18,1,20,5,12,9,14,11,8,16,7,19,3,17,2,15,10}{%
+ \rput(190;\the\psLoopIndex){\psk@dart@fontsize\selectfont\white\iA}}
+ \end{pspicture}}%
+ \endgroup
+ \ignorespaces
+}
+
+%
+\catcode`\@=\PstAtCode\relax
+%
+%% END: pst-dart.tex
+\endinput
+%
+
diff --git a/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty b/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty
new file mode 100644
index 00000000000..83758903b9a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty
@@ -0,0 +1,13 @@
+\RequirePackage{pstricks}
+\ProvidesPackage{pst-dart}[2017/08/17 package wrapper for pst-dart.tex (hv)]
+\RequirePackage{multido}
+\RequirePackage{pst-xkey}
+%
+\input{pst-dart.tex}
+\ProvidesFile{pst-dart.tex}
+ [\filedate\space v\fileversion\space `PST-dart' (hv)]
+\IfFileExists{pst-dart.pro}{%
+ \ProvidesFile{pst-dart.pro}[2014/05/07 v. 0.16, PostScript prologue file (hv)]
+\@addtofilelist{pst-dart.pro}}{}%
+\endinput
+%% $Id: pst-dart.sty 713 2018-01-28 19:31:56Z herbert $
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 9cf12ea63db..3d003d2fd73 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -507,7 +507,8 @@ my @TLP_working = qw(
psgo psizzl pslatex psnfss pspicture
pst-2dplot pst-3d pst-3dplot pst-abspos pst-am pst-arrow pst-asr pst-bar
pst-barcode pst-bezier pst-blur pst-bspline
- pst-calendar pst-cie pst-circ pst-coil pst-cox pst-dbicons pst-diffraction
+ pst-calendar pst-cie pst-circ pst-coil pst-cox
+ pst-dart pst-dbicons pst-diffraction
pst-electricfield pst-eps pst-eucl pst-eucl-translation-bg pst-exa
pst-fill pst-fit pst-fr3d pst-fractal pst-fun pst-func
pst-gantt pst-geo pst-geometrictools pst-gr3d pst-grad pst-graphicx
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 01a79998ad0..feb75c549e0 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -907,6 +907,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'pst-coil', "&MAKEpst",
'pst-cox', "&MAKEflatten",
'pst-dbicons', "&MAKEpst",
+ 'pst-dart', "&MAKEpst",
'pst-diffraction', "&MAKEpst",
'pst-electricfield', "&MAKEpst",
'pst-eps', "&MAKEpst",
diff --git a/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc b/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
index 3799fb60e42..fb8c0a3d823 100644
--- a/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
@@ -30,6 +30,7 @@ depend pst-cie
depend pst-circ
depend pst-coil
depend pst-cox
+depend pst-dart
depend pst-dbicons
depend pst-diffraction
depend pst-electricfield
diff --git a/Master/tlpkg/tlpsrc/pst-dart.tlpsrc b/Master/tlpkg/tlpsrc/pst-dart.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/pst-dart.tlpsrc