texlive[60476] Master/texmf-dist: pst-dart (11sep21)
commits+karl at tug.org
commits+karl at tug.org
Sat Sep 11 22:37:26 CEST 2021
Revision: 60476
http://tug.org/svn/texlive?view=revision&revision=60476
Author: karl
Date: 2021-09-11 22:37:25 +0200 (Sat, 11 Sep 2021)
Log Message:
-----------
pst-dart (11sep21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/pst-dart/Changes
trunk/Master/texmf-dist/doc/generic/pst-dart/README.md
trunk/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdf
trunk/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex
trunk/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex
trunk/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty
Modified: trunk/Master/texmf-dist/doc/generic/pst-dart/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-dart/Changes 2021-09-11 01:36:28 UTC (rev 60475)
+++ trunk/Master/texmf-dist/doc/generic/pst-dart/Changes 2021-09-11 20:37:25 UTC (rev 60476)
@@ -1,6 +1,7 @@
..... pst-dart.tex
+0.03 2021-09-11 - Use the \ThreeDput macro instead of modifying the trandformation matrix
0.02 2018-02-09 - add \psDart for darts
- - rename borad to \psDartBoard
+ - rename board to \psDartBoard
0.01 2018-01-27 first version
Modified: trunk/Master/texmf-dist/doc/generic/pst-dart/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-dart/README.md 2021-09-11 01:36:28 UTC (rev 60475)
+++ trunk/Master/texmf-dist/doc/generic/pst-dart/README.md 2021-09-11 20:37:25 UTC (rev 60476)
@@ -9,15 +9,14 @@
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).
+TeX Frequently Asked Questions
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
+CTAN server, https://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 $
+%% $Id: README.md 226 2021-09-11 14:30:22Z herbert $
Modified: trunk/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex 2021-09-11 01:36:28 UTC (rev 60475)
+++ trunk/Master/texmf-dist/doc/generic/pst-dart/pst-dart-doc.tex 2021-09-11 20:37:25 UTC (rev 60476)
@@ -1,13 +1,17 @@
%% $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}
+
+\errorcontextlines=100
+\RequirePackage{pdfmanagement-testphase}
+\DeclareDocumentMetadata{}
+\documentclass[11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small,
+ headinclude=false,footinclude=false,twoside,english]{pst-doc}
+
+\usepackage{hvlogos,iftex}
\usepackage{pst-dart}
\let\pstDartFV\fileversion
-\renewcommand\bgImage{\psDartBoard[unit=2,fontsize=15pt]}
+\renewcommand\bgImage{}%\psDartBoard[unit=2,fontsize=15pt]}
-\addbibresource{pst-dart-doc.bib}
+\addbibresource{\jobname.bib}
\lstset{language=PSTricks,
@@ -25,12 +29,14 @@
%
\begin{document}
+
+
\title{\texttt{pst-dart}}
\subtitle{Plotting a Dart ; v.\pstDartFV}
\author{Thomas Söll\\Herbert Voß}
\docauthor{}
\date{\today}
-\maketitle
+\settitle
\tableofcontents
@@ -62,6 +68,7 @@
\section{Examples}
\subsection{The default size}
+
\begin{LTXexample}
\begin{pspicture}[showgrid](-3,-3)(9,3)
\psDartBoard % The default Dartboard (radius=2.1cm)
@@ -70,6 +77,7 @@
\end{LTXexample}
+
\subsection{Scaling}
\begin{LTXexample}[pos=r,width=0.58\linewidth]
@@ -132,30 +140,35 @@
\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}.
+You can change the viewpoint with the optional argument
+\Lkeyword{viewpoint}
+%\footnote{There is also a \Lkeyword{postCode},
+%which is not of real interest here.}
+which expects three space separated values for $x$ $y$ $z$, where at least one value must be unless 0.
+%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)
+\begin{pspicture}(-2,-3)(12,4)
+\psDartBoard[boardview=1 0 0,fontsize=18pt,unit=1.5]
+\psDart[unit=0.5,rot=110](1,-1)
+%%
+\psDartBoard[boardview=1 0 1,fontsize=18pt,unit=1.5](10cm,0)
+\psDart[unit=0.5,rot=50](9cm,-1cm)
\end{pspicture}
\end{LTXexample}
-
-
\clearpage
\section{List of all optional arguments for \texttt{pst-dart}}
\xkvview{family=pst-dart,columns={key,type,default}}
+\nocite{*}
\bgroup
\RaggedRight
-\nocite{*}
\printbibliography
\egroup
Modified: trunk/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex 2021-09-11 01:36:28 UTC (rev 60475)
+++ trunk/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex 2021-09-11 20:37:25 UTC (rev 60476)
@@ -1,4 +1,4 @@
-%% $Id: pst-dart.tex 728 2018-02-09 19:29:41Z herbert $
+%% $Id: pst-dart.tex 229 2021-09-11 14:35:39Z herbert $
%%
%% This is file `pst-dart.tex',
%%
@@ -22,19 +22,21 @@
\ifx\PSTricksLoaded\endinput\else \input pstricks.tex\fi
\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey.tex \fi
\ifx\GradientLoaded\endinput\else \input pst-grad.tex \fi
+\ifx\PSTthreeDLoaded\endinput\else \input pst-3d.tex \fi
%
\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
% interface to the `xkeyval' package
\pst at addfams{pst-dart}
%
-\def\fileversion{0.02}
-\def\filedate{2018/02/09}
+\def\fileversion{0.03}
+\def\filedate{2021/09/11}
\message{`PST-dart' v\fileversion, \filedate\space (ts,hv)}
%
\define at key[psset]{pst-dart}{preCode}[]{\def\psk at dart@preCode{#1}}
\define at key[psset]{pst-dart}{postCode}[]{\def\psk at dart@postCode{#1}}
+\define at key[psset]{pst-dart}{boardview}[]{\def\psk at dart@boardview{#1}}
\define at key[psset]{pst-dart}{fontsize}[10pt]{\def\psk at dart@fontsize{\fontsize{#1}{#1}}}
-\psset[pst-dart]{fontsize=10pt,preCode=,postCode=}
+\psset[pst-dart]{fontsize=10pt,boardview={},preCode=,postCode=}
\newcmykcolor{Red}{0 1 1 0}
\newcmykcolor{Green}{1 0 1 0}
@@ -43,12 +45,21 @@
\def\psDartBoard at i{\@ifnextchar(\psDartBoard at ii{\psDartBoard at ii(0,0)}}%
\def\psDartBoard at ii(#1){%
\begingroup
- \addbefore at par{unit=0.1mm}%
+ \addbefore at par{boardview={}}%,unit=0.1mm}%
\use at par
\degrees[20]%
- \rput(#1){%
- \begin{pspicture}(-210,-210)(210,210)%
- \pstVerb{gsave \psk at dart@preCode }%
+ \ifx\psk at dart@boardview\@empty
+ \rput(#1){\psset{unit=0.1mm}\psDartBoard at iii}%
+ \else
+ \rput(#1){\psset{unit=0.1mm}%
+ \ThreeDput[normal=\psk at dart@boardview](0,0,0){\psDartBoard at iii}}%
+ \fi
+ \endgroup
+ \ignorespaces
+}
+
+\def\psDartBoard at iii{%
+ \begin{pspicture}(-210,-210)(210,210)%
\pscircle*(0,0){210}
% Gerader Part.
\psset{linewidth=0.5pt}%
@@ -67,12 +78,10 @@
\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 at dart@fontsize\selectfont\white\iA}}
- \pstVerb{ \psk at dart@postCode grestore }%
- \end{pspicture}}%
- \endgroup
- \ignorespaces
+ \rput(190;\the\psLoopIndex){\psk at dart@fontsize\selectfont\white\iA}}
+ \end{pspicture}%
}
+
%
\colorlet{gold}{orange!50!yellow}
Modified: trunk/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty 2021-09-11 01:36:28 UTC (rev 60475)
+++ trunk/Master/texmf-dist/tex/latex/pst-dart/pst-dart.sty 2021-09-11 20:37:25 UTC (rev 60476)
@@ -1,5 +1,5 @@
\RequirePackage{pstricks}
-\ProvidesPackage{pst-dart}[2017/08/17 package wrapper for pst-dart.tex (hv)]
+\ProvidesPackage{pst-dart}[2021/09/11 package wrapper for pst-dart.tex (hv)]
\RequirePackage{multido}
\RequirePackage{pst-xkey}
%
@@ -6,8 +6,10 @@
\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}}{}%
+%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 $
+
+%% $Id: pst-dart.sty 226 2021-09-11 14:30:22Z herbert $
More information about the tex-live-commits
mailing list.