texlive[44507] Master/texmf-dist: pst-spinner (23may17)

commits+karl at tug.org commits+karl at tug.org
Tue Jun 6 23:54:33 CEST 2017


Revision: 44507
          http://tug.org/svn/texlive?view=revision&revision=44507
Author:   karl
Date:     2017-06-06 23:54:33 +0200 (Tue, 06 Jun 2017)
Log Message:
-----------
pst-spinner (23may17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/pst-spinner/Changes
    trunk/Master/texmf-dist/doc/generic/pst-spinner/images/cercle-chromatique.eps
    trunk/Master/texmf-dist/doc/generic/pst-spinner/images/spirales-hsb.eps
    trunk/Master/texmf-dist/doc/generic/pst-spinner/pst-spinner-doc.pdf
    trunk/Master/texmf-dist/doc/generic/pst-spinner/pst-spinner-doc.tex
    trunk/Master/texmf-dist/dvips/pst-spinner/pst-spinner.pro
    trunk/Master/texmf-dist/tex/generic/pst-spinner/pst-spinner.tex

Modified: trunk/Master/texmf-dist/doc/generic/pst-spinner/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-spinner/Changes	2017-06-06 21:54:18 UTC (rev 44506)
+++ trunk/Master/texmf-dist/doc/generic/pst-spinner/Changes	2017-06-06 21:54:33 UTC (rev 44507)
@@ -1,14 +1,15 @@
-%% $Id: Changes 449 2017-05-10 14:34:18Z herbert $
+%% $Id: Changes 469 2017-05-23 05:47:28Z herbert $
 %%
-pst-spinner.pro ----------- 
-0.01 2017-05-11   - first CTAN version
 
-
 pst-spinner.sty ----------- 
-0.01 2017-05-11   - first CTAN version
+0.01  2017-05-11   - first CTAN version
 
 
 pst-spinner.tex ----------- 
+1.02  2017-05-23   - added (x,y) as optional argument
+1.01  2017-05-11   - first CTAN version
 
-1.01 2017-05-11   - first CTAN version
 
+pst-spinner.pro ----------- 
+0.01 2017-05-11   - first CTAN version
+

Modified: trunk/Master/texmf-dist/doc/generic/pst-spinner/images/cercle-chromatique.eps
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-spinner/images/cercle-chromatique.eps	2017-06-06 21:54:18 UTC (rev 44506)
+++ trunk/Master/texmf-dist/doc/generic/pst-spinner/images/cercle-chromatique.eps	2017-06-06 21:54:33 UTC (rev 44507)
@@ -1,21 +1,21 @@
-%!PS-Adobe-3.0 EPSF-3.0
-%%BoundingBox: -150 -150 150 150
-
-
-/secteur {newpath
-                0 0 moveto
-                Radius i 1 sub cos mul
-                0 0 Radius i 1 sub i 1 add arc
-                closepath
-                } def
-0 0 translate
-/CM {28.45 mul} bind def
-/Radius {radius CM} def
-/radius 5 def 
-
-0 1 360 {/i exch def /HUE i 360 div def
-        secteur
-        HUE 1 1  sethsbcolor fill} for
-% manuel.luque27 at gmail.com
-
-
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: -150 -150 150 150
+
+
+/secteur {newpath
+                0 0 moveto
+                Radius i 1 sub cos mul
+                0 0 Radius i 1 sub i 1 add arc
+                closepath
+                } def
+0 0 translate
+/CM {28.45 mul} bind def
+/Radius {radius CM} def
+/radius 5 def 
+
+0 1 360 {/i exch def /HUE i 360 div def
+        secteur
+        HUE 1 1  sethsbcolor fill} for
+% manuel.luque27 at gmail.com
+
+

Modified: trunk/Master/texmf-dist/doc/generic/pst-spinner/images/spirales-hsb.eps
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-spinner/images/spirales-hsb.eps	2017-06-06 21:54:18 UTC (rev 44506)
+++ trunk/Master/texmf-dist/doc/generic/pst-spinner/images/spirales-hsb.eps	2017-06-06 21:54:33 UTC (rev 44507)
@@ -1,66 +1,66 @@
-%!PS-Adobe-3.0 EPSF-3.0 
-%%BoundingBox: -215 -215 215 215
-%%Title: C:\Fichiers_LaTeX\2017\spiralmosaic\spirales-hsb-2.ps
-%%Creator: GSview from C:\Fichiers_LaTeX\2017\spiralmosaic\spirales-hsb-2.ps
-%%CreationDate: Wed Apr 26 11:46:50 2017
-%%Pages: 1
-%%EndComments
-%%Page: 1 1
-%%BeginDocument: C:\Fichiers_LaTeX\2017\spiralmosaic\spirales-hsb-2.ps
-/cm {2.845 mul 5 mul} bind def
-/Rmax 15 cm def
-/k 4 def % nombre de tours
-% ni pair !!!
-/ni 8 def
-gsave
-newpath
-Rmax 0 moveto
-0 0 Rmax 0 360 arc
-closepath
-stroke
-grestore
-newpath
-Rmax 0 moveto
-0 0 Rmax 0 360 arc
-closepath
-clip
-/t01 {r_0 360 mul ni div neg} def
-/t02 {r_0 1 add 360 mul ni div neg} def
-/RadiusA {ni 360 div t mul r_0 add } def
-/RadiusB {ni 360 div t mul r_0 1 add add } def
-/spiraleA {
-RadiusA t cos mul cm RadiusA t sin mul cm moveto
-t01 1 k 360 mul {/t exch def
-RadiusA t     cos mul cm RadiusA t     sin mul cm lineto
- } for
-} def
-% spirale suivante g\xE9n\xE9r\xE9e en partant de la fin
-/spiraleB {
-k 360 mul -1 t02 {/t exch def
-RadiusB t     cos mul cm RadiusB t     sin mul cm lineto
- } for
-closepath
-} def
-
-2 1 ni 1 add {/r_0 exch def
-%gsave
-% 2 spirales tournant a droite
-newpath
-/t t01 def
-spiraleA
-/t t02 def
-spiraleB
-closepath
-r_0 2 sub ni 1 add div 1 1 sethsbcolor
-%stroke % 
-fill
-newpath
-/t t01 def
-spiraleA
-1 setgray
-% stroke
-%
-} for
-
-%%EndDocument
-%%Trailer
+%!PS-Adobe-3.0 EPSF-3.0 
+%%BoundingBox: -215 -215 215 215
+%%Title: C:\Fichiers_LaTeX\2017\spiralmosaic\spirales-hsb-2.ps
+%%Creator: GSview from C:\Fichiers_LaTeX\2017\spiralmosaic\spirales-hsb-2.ps
+%%CreationDate: Wed Apr 26 11:46:50 2017
+%%Pages: 1
+%%EndComments
+%%Page: 1 1
+%%BeginDocument: C:\Fichiers_LaTeX\2017\spiralmosaic\spirales-hsb-2.ps
+/cm {2.845 mul 5 mul} bind def
+/Rmax 15 cm def
+/k 4 def % nombre de tours
+% ni pair !!!
+/ni 8 def
+gsave
+newpath
+Rmax 0 moveto
+0 0 Rmax 0 360 arc
+closepath
+stroke
+grestore
+newpath
+Rmax 0 moveto
+0 0 Rmax 0 360 arc
+closepath
+clip
+/t01 {r_0 360 mul ni div neg} def
+/t02 {r_0 1 add 360 mul ni div neg} def
+/RadiusA {ni 360 div t mul r_0 add } def
+/RadiusB {ni 360 div t mul r_0 1 add add } def
+/spiraleA {
+RadiusA t cos mul cm RadiusA t sin mul cm moveto
+t01 1 k 360 mul {/t exch def
+RadiusA t     cos mul cm RadiusA t     sin mul cm lineto
+ } for
+} def
+% spirale suivante g\xE9n\xE9r\xE9e en partant de la fin
+/spiraleB {
+k 360 mul -1 t02 {/t exch def
+RadiusB t     cos mul cm RadiusB t     sin mul cm lineto
+ } for
+closepath
+} def
+
+2 1 ni 1 add {/r_0 exch def
+%gsave
+% 2 spirales tournant a droite
+newpath
+/t t01 def
+spiraleA
+/t t02 def
+spiraleB
+closepath
+r_0 2 sub ni 1 add div 1 1 sethsbcolor
+%stroke % 
+fill
+newpath
+/t t01 def
+spiraleA
+1 setgray
+% stroke
+%
+} for
+
+%%EndDocument
+%%Trailer

Modified: trunk/Master/texmf-dist/doc/generic/pst-spinner/pst-spinner-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/pst-spinner/pst-spinner-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-spinner/pst-spinner-doc.tex	2017-06-06 21:54:18 UTC (rev 44506)
+++ trunk/Master/texmf-dist/doc/generic/pst-spinner/pst-spinner-doc.tex	2017-06-06 21:54:33 UTC (rev 44507)
@@ -1,4 +1,4 @@
-%% $Id: pst-spinner-doc.tex 453 2017-05-11 19:40:46Z herbert $
+%% $Id: pst-spinner-doc.tex 466 2017-05-23 05:41:09Z herbert $
 %
 \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings,
     headexclude,footexclude,oneside]{pst-doc}
@@ -8,7 +8,7 @@
 \usepackage{biblatex}
 \addbibresource{\jobname.bib}
 \usepackage[utf8]{inputenc}
-\usepackage{pst-spinner,animate}
+\usepackage{pst-spinner,pst-tools,animate}
 \let\belowcaptionskip\abovecaptionskip
 %
 \def\textat{\char064}%
@@ -153,14 +153,16 @@
 The command is: 
 
 \begin{BDef}
-\Lcs{psFidgetSpinner}\OptArgs
+\Lcs{psFidgetSpinner}\OptArgs\OptArg*{\Largr{$x_0,y_0$}}
 \end{BDef}
 
+with two optional arguments. If the \Largr{$x_0,y_0$} is missing then \Largr{$0,0$} is assumed as
+the origin of the spinner.
 
 \section{Optional arguments}
 
-\subsection{The Radius \Lkeyword{R}}
-The radius of the circle in which the triple Fidget spinenr is inscribed. It is preset to \nxLkeyword{R=3.9}.
+\subsection{The Radius \nxLkeyword{R}}
+The radius \Lkeyword{R} of the circle in which the triple Fidget spinner is inscribed. It is preset to \nxLkeyword{R=3.9}.
 \subsection{The colors}
 
 The colors with their default value. They are numbered in the order: central bearing, peripheral rings,
@@ -177,14 +179,14 @@
 \subsection{Rotation}
 With the optional argument \Lkeyword{rotation} the output of the spinner can be rotated.
 
-\subsection{\Lkeyword{mask}} 
-A boolean value to customize the object with an image in eps format. Preset to \false.
+\subsection{\nxLkeyword{mask}} 
+\Lkeyword{mask} is a boolean value to customize the object with an image in eps format. Preset to \false.
 
-\subsection{Lkeyword{customizeMask}}
-A boolean value. When set to \true\  the image is also printed on the cap of the central ball roll.
+\subsection{\nxLkeyword{customizeMask}}
+\Lkeyword{customizeMask} is a boolean value. When set to \true\  the image is also printed on the cap of the central ball roll.
 
-\subsection{\Lkeyword{image}} 
-Defines the name including the path  of the image and is preset to empty.
+\subsection{\nxLkeyword{image}} 
+The keyword \Lkeyword{image} defines the name including the path  of the image and is preset to empty.
 
 
 
@@ -198,13 +200,9 @@
 
 \begin{LTXexample}[width=0.6\linewidth,frame=,pos=r]
 \begin{pspicture}(-4,-4)(4,4)
-\psgrid[subgriddiv=5,
-  gridlabels=0,
-  gridwidth=1pt,
-  gridcolor=orange,
-  subgridwidth=0.1pt,
-  subgridcolor=orange](-4,-4)(4,4)
-\psFidgetSpinner[fillcolor=cyan!10,
+\psgrid[style=mmpaper](-4,-4)(4,4)
+\psFidgetSpinner[
+  fillcolor=cyan!10,
   linewidth=0.05,mask]
 \end{pspicture}
 \end{LTXexample}
@@ -211,15 +209,17 @@
 
 
 \begin{LTXexample}[width=0.6\linewidth,frame=,pos=r]
-\begin{pspicture}(-4,-4)(4,4)
+\begin{pspicture}(-4,-4)(5,4)
 \psgrid[subgriddiv=5,
-  gridlabels=0,
-  gridwidth=1pt,
-  gridcolor=orange,
-  subgridwidth=0.1pt,
-  subgridcolor=orange](-4,-4)(4,4)
-\psFidgetSpinner[fillcolor=cyan!10,
-    linewidth=0.05,mask=false]
+ gridlabels=0,
+ gridwidth=1pt,
+ gridcolor=orange,
+ subgridwidth=0.1pt,
+ subgridcolor=orange](-4,-4)(5,4)
+\psFidgetSpinner[
+  fillcolor=cyan!10,
+  linewidth=0.05,
+  mask=false](1,0)
 \end{pspicture}
 \end{LTXexample}
 

Modified: trunk/Master/texmf-dist/dvips/pst-spinner/pst-spinner.pro
===================================================================
--- trunk/Master/texmf-dist/dvips/pst-spinner/pst-spinner.pro	2017-06-06 21:54:18 UTC (rev 44506)
+++ trunk/Master/texmf-dist/dvips/pst-spinner/pst-spinner.pro	2017-06-06 21:54:33 UTC (rev 44507)
@@ -1,3 +1,4 @@
+%% $Id: pst-spinner.pro 466 2017-05-23 05:41:09Z herbert $
 %% Package `pst-spinner.pro'
 %%
 %%

Modified: trunk/Master/texmf-dist/tex/generic/pst-spinner/pst-spinner.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-spinner/pst-spinner.tex	2017-06-06 21:54:18 UTC (rev 44506)
+++ trunk/Master/texmf-dist/tex/generic/pst-spinner/pst-spinner.tex	2017-06-06 21:54:33 UTC (rev 44507)
@@ -1,3 +1,4 @@
+%% $Id: pst-spinner.tex 469 2017-05-23 05:47:28Z herbert $
 %% Package `pst-spinner.tex'
 %%
 %%
@@ -14,9 +15,9 @@
 \ifx\PSTXKeyLoaded\endinput\else\input pst-xkey.tex \fi
 \ifx\PSTnodeLoaded\endinput\else\input pst-node.tex\fi
 %
-\def\fileversion{1.01}
+\def\fileversion{1.02}
 \let\pstspinnerFV\fileversion
-\def\filedate{2017/05/11}
+\def\filedate{2017/05/23}
 \message{`PST' v\fileversion, \filedate}
 
 \edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
@@ -24,28 +25,32 @@
 %% prologue for postcript
 \pstheader{pst-spinner.pro}%
 %
-\define at key[psset]{pst-spinner}{R}{\def\pst at spinner@R{#1 }} % rayon de cercle circonscrit au spinner
-\define at key[psset]{pst-spinner}{rotation}{\def\pst at spinner@rotation{#1 }} % angle de rotation
+\define at key[psset]{pst-spinner}{R}[3.9]{\def\pst at spinner@R{#1 }} % rayon de cercle circonscrit au spinner
+\define at key[psset]{pst-spinner}{rotation}[0]{\def\pst at spinner@rotation{#1 }} % angle de rotation
 %% couleurs definies par l'utilisateur
 \definecolor{honeydew}{rgb}{0.94 1 0.94}
-\define at key[psset]{pst-spinner}{color0}{\pst at getcolor{#1}\pscolor}
-\define at key[psset]{pst-spinner}{color1}{\pst at getcolor{#1}\pscolora}
-\define at key[psset]{pst-spinner}{color2}{\pst at getcolor{#1}\pscolorb}
-\define at key[psset]{pst-spinner}{color3}{\pst at getcolor{#1}\pscolorc}
-\define at key[psset]{pst-spinner}{colorMask}{\pst at getcolor{#1}\pscolorMask}
+\define at key[psset]{pst-spinner}{color0}[honeydew]{\pst at getcolor{#1}\pscolor}
+\define at key[psset]{pst-spinner}{color1}[red]{\pst at getcolor{#1}\pscolora}
+\define at key[psset]{pst-spinner}{color2}[green]{\pst at getcolor{#1}\pscolorb}
+\define at key[psset]{pst-spinner}{color3}[blue]{\pst at getcolor{#1}\pscolorc}
+\define at key[psset]{pst-spinner}{colorMask}[honeydew]{\pst at getcolor{#1}\pscolorMask}
 \define at boolkey[psset]{pst-spinner}[Pst@]{mask}[true]{} % cache du roulement \xE0 billes du centre
 \define at boolkey[psset]{pst-spinner}[Pst@]{customize}[true]{} % personnaliser le fidget
 \define at boolkey[psset]{pst-spinner}[Pst@]{customizeMask}[true]{} % personnaliser le capuchon de roulement central
-\define at key[psset]{pst-spinner}{image}{\edef\psk at spinner@image{#1}} % chemin des dessins
+\define at key[psset]{pst-spinner}{image}[]{\edef\psk at spinner@image{#1}} % chemin des dessins
 %
 \psset[pst-spinner]{R=3.9,rotation=0,color0=honeydew,color1=red,color2=green,
-  color3=blue!75,colorMask=honeydew,mask=true,customize=false,customizeMask=false,
+  color3=blue!75,colorMask=honeydew,mask,customize=false,customizeMask=false,
   image={}}
+%
 \def\psFidgetSpinner{\def\pst at par{}\pst at object{psFidgetSpinner}}
-\def\psFidgetSpinner at i{%
+\def\psFidgetSpinner at i{\@ifnextchar(\psFidgetSpinner at ii{\psFidgetSpinner at ii(0,0)}}
+\def\psFidgetSpinner at ii(#1){%
+  \pst at getcoor{#1}\pst at tempA
   \begin at SpecialObj
   \addto at pscode{
     tx at spinnerDict begin 
+    \pst at tempA translate
     /cm  {\pst at number\psunit mul} bind def
     /R1 \pst at spinner@R\space cm def
     /color0 {\pst at usecolor\pscolor } def



More information about the tex-live-commits mailing list