texlive[46643] Master: pst-antiprism (14feb18)
commits+karl at tug.org
commits+karl at tug.org
Wed Feb 14 22:36:11 CET 2018
Revision: 46643
http://tug.org/svn/texlive?view=revision&revision=46643
Author: karl
Date: 2018-02-14 22:36:11 +0100 (Wed, 14 Feb 2018)
Log Message:
-----------
pst-antiprism (14feb18)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/libexec/ctan2tds
trunk/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/generic/pst-antiprism/
trunk/Master/texmf-dist/doc/generic/pst-antiprism/Changes
trunk/Master/texmf-dist/doc/generic/pst-antiprism/README.md
trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.bib
trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.pdf
trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.tex
trunk/Master/texmf-dist/dvips/pst-antiprism/
trunk/Master/texmf-dist/dvips/pst-antiprism/pst-antiprism.pro
trunk/Master/texmf-dist/tex/generic/pst-antiprism/
trunk/Master/texmf-dist/tex/generic/pst-antiprism/pst-antiprism.tex
trunk/Master/texmf-dist/tex/latex/pst-antiprism/
trunk/Master/texmf-dist/tex/latex/pst-antiprism/pst-antiprism.sty
trunk/Master/tlpkg/tlpsrc/pst-antiprism.tlpsrc
Added: trunk/Master/texmf-dist/doc/generic/pst-antiprism/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-antiprism/Changes (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/pst-antiprism/Changes 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,10 @@
+pst-antiprism.pro --------
+0.02 2018-02-12 first CTAN version
+
+
+pst-antiprism.tex --------
+0.02 2018-02-12 first CTAN version
+
+
+pst-antiprism.sty --------
+0.02 2018-02-12 first CTAN version
Added: trunk/Master/texmf-dist/doc/generic/pst-antiprism/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-antiprism/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/pst-antiprism/README.md 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,34 @@
+Save the files pst-antiprism.sty|tex in a directory, which is part of your
+local TeX tree. pst-antiprism.pro should be saved in ../texmf/dvips/pstricks/
+Then do not forget to run texhash to update this tree.
+pst-antiprism needs pst-solides3d and pstricks, which should be part of your
+local TeX installation, otherwise get it from a CTAN server
+http://mirror.CTAN.org
+
+
+Save the files
+
+pst-antiprism.sty
+pst-antiprism.tex
+pst-antiprism.pro
+
+in any place, where latex or any other TeX program will find it.
+Do not forget to update your database, when installing this
+package the first time.
+
+If you like to get the documentation file in another format run
+
+latex pst-antiprism-doc.tex
+biber pst-antiprism.doc
+latex pst-antiprism-doc.tex
+dvips pst-antiprism-doc.dvi
+
+to get a PostScript file. But pay attention, that the pst-antiprism
+files are saved in the above mentioned way, before you run
+latex on the documentation file.
+
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory CTAN:/macros/latex/base/lppl.txt.
+
+$Id: README.md 730 2018-02-13 17:50:37Z herbert $
Property changes on: trunk/Master/texmf-dist/doc/generic/pst-antiprism/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.bib
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.bib (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.bib 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,43 @@
+ at STRING{tugboat = {TUGboat} }
+ at STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} }
+
+ at online{weisstein,
+ author = {Eric Weisstein},
+ title = {Antiprism},
+ url = {http://mathworld.wolfram.com/Antiprism.html},
+ urldate = {2018-02-12}
+}
+
+ at online{meyer,
+ author = {Hans-Bernhard Meyer},
+ title = {Hexagonal antiprism},
+ url = {http://www.hbmeyer.de/flechten/ap6/indexeng.html},
+ urldate = {2018-02-12}
+}
+
+ at Book{companion,
+ author = {Michel Goosens and Frank Mittelbach and Sebastian Rahtz and Dennis Roegel and Herbert Voß},
+ title = {The {\LaTeX} Graphics Companion},
+ publisher = {{Addison-Wesley Publishing Company}},
+ edition = {2},
+ date = {2007},
+ location = {Boston, Mass.}
+}
+
+ at ctan{solides3d,
+ Title = {\texttt{pst-solides3d} -- The Basics},
+ Author = {Jean-Paul Vignault and Manuel Luque and Arnauls Schmittbuhl and Jürgen Gilg and Jean-Michel Sarlat and Herbert Voß},
+ url = {/graphics/pstricks/contrib/pst-solides3d/},
+ date = {2017-08-23},
+ urldate = {2018-02-12}
+}
+
+ at Book{PSTricksE,
+ author = {Herbert Vo\ss{}},
+ title = {\texttt{PSTricks} -- {G}raphics and {P}ost{S}cript for \LaTeX},
+ edition = {1},
+ publisher = {UIT},
+ date = {2011},
+ location = {Cambridge -- UK}
+}
+
Property changes on: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.pdf 2018-02-14 21:34:47 UTC (rev 46642)
+++ trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.pdf 2018-02-14 21:36:11 UTC (rev 46643)
Property changes on: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.tex 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,286 @@
+%% $Id: pst-antiprism-doc.tex 729 2018-02-13 17:48:53Z herbert $
+\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,headings=small,
+ headinclude=false,footinclude=false,oneside=true]{pst-doc}
+\listfiles
+
+\usepackage[utf8]{inputenc}
+\usepackage{pst-antiprism}
+\let\pstFV\fileversion
+\def\bgImage{\resizebox{7cm}{!}{\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=100}
+\psAntiprism[a=1,n=15,hue=0 1 0.5 1,
+ linecolor={[rgb]{0 0 0.5}}]
+\end{pspicture}}}
+
+\usepackage{showexpl,listings,xltabular,booktabs,animate}
+
+\lstset{explpreset={pos=l,width=-99pt,overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe={}}}
+
+\usepackage{biblatex}
+\addbibresource{\jobname.bib}
+
+
+\definecolor{Miel} {RGB}{218 179 10}
+\definecolor{Maroon} {cmyk}{0 0.87 0.68 0.32}
+
+\begin{document}
+\title{\texttt{pst-antiprism}: Drawing an antiprism \\
+\small v.\pstFV}
+%\docauthor{}
+\author{Manuel Luque\\Herbert Voß}
+
+\maketitle
+
+\tableofcontents
+
+
+
+\section{Introduction}
+
+An antiprism is a semiregular polyhedron constructed with 2 n-gons and 2n triangles.
+The nets are particularly simple, consisting of two n-gons on top and bottom, separated by a
+ribbon of 2n triangles, with the two n-gons being offset by one ribbon segment.
+The duals of the antiprisms are the trapezohedra.~\cite{weisstein}
+
+The macro \Lcs{psAntiprism} has the following syntax:
+
+\begin{BDef}
+\Lcs{psAntiprism}\OptArgs
+\end{BDef}
+
+The special optional arguments with its default values are
+
+\begin{xltabular}{\linewidth}{@{} >{\ttfamily}l l X @{}}\toprule
+\rmfamily\emph{name} & \emph{default} & \emph{description}\\\midrule
+n & 8 & number of the edges of the polygon\\
+a & 1 & the radius of the outer polygon circle\\
+meshbases & true & A boolean to mesh the bases with triangles whose one vertex is the
+ center of the base and the two other two consecutive vertices of the polygon of the base.\\
+colored & false & A boolean which will color the antiprism. This is only possible with \texttt{meshbases=true}.
+ The bases of the triangles allow a coloration by continuity of a triangle of the periphery of the
+ antiprisme and the corresponding triangle of the base. It is an adaptation of the idea of H.\,B.\,Meyer
+ for hexagonal antiprism.~\cite{meyer}\\
+fan & false & draw the antiprism as a fan.\\
+\bottomrule
+\end{xltabular}
+
+
+\section{Examples}
+\subsection{The default behaviour}
+
+For \Lkeyword{viewpoint} and \Lkeyword{Decran} see the documentation of \LPack{pst-solides3d}.~\cite{solides3d}
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=100}
+\psAntiprism
+\end{pspicture}
+\end{LTXexample}
+
+
+\clearpage
+
+\subsection{Using the optional arguments}
+
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=100}
+\psAntiprism[a=1,n=15,hue=0 1 0.5 1,
+ linecolor={[rgb]{0 0 0.5}}]
+\end{pspicture}
+\end{LTXexample}
+
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=75}
+\psAntiprism[a=2,n=10,fillcolor=Miel,hollow,incolor=yellow!20,
+ linecolor={[rgb]{0 0 0.5}},
+ linewidth=1.5pt,
+ opacity=0.9]
+\end{pspicture}
+\end{LTXexample}
+
+
+
+\subsection{No lines for the base triangles: option \texttt{meshbases=false}}
+In this case, the 2 bases have the numbers 0 and 1 and we can delete them with the optional
+argument setting \Lkeyword{rm}\texttt{=0 1}.
+
+
+
+
+
+
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=100}
+\psAntiprism[a=2,n=8,inouthue=1 0 0.5 1,
+ meshbases=false,hollow,
+ opacity=0.8]
+\end{pspicture}
+\end{LTXexample}
+
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=100}
+\psAntiprism[a=2,n=8,inouthue=1 0 0.5 1,
+ meshbases=false,numfaces=,hollow,
+ opacity=0.8,rm=0 1,affinage=]
+\end{pspicture}
+\end{LTXexample}
+
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 60 30 rtp2xyz,Decran=100}
+\psAntiprism[a=2,n=10,fillcolor=Maroon,
+ incolor=yellow!20,
+ linecolor=blue,
+ meshbases=false,hollow,
+ opacity=0.8,affinage=all]
+\end{pspicture}
+\end{LTXexample}
+
+
+\section{Colored anitpriam}
+
+This behaviour needs the setting \texttt{meshbases=true} and \texttt{colored=true}.
+
+It allows coloring by continuity of a triangle
+around the antiprism and the corresponding triangle of the base. The other options didn't changed
+its meaning.
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 90 30 rtp2xyz,Decran=100}
+\psset{a=1,r=1}
+\psAntiprism[colored,n=17]
+\end{pspicture}
+\end{LTXexample}
+
+
+\begin{LTXexample}[width=0.35\linewidth]
+\begin{pspicture}(-3,-3)(3,3)
+\psset{viewpoint=100 90 -30 rtp2xyz,Decran=100}
+\psset{lightsrc=viewpoint}
+\psset{a=1,r=1,hollow,opacity=0.8,linecolor=blue}
+\psAntiprism[colored,n=17]
+\end{pspicture}
+\end{LTXexample}
+
+
+\section{An antiprism as a fan}
+
+With the optional argument \Lkeyword{fan} the antiprism can be drawn like a fan:
+
+\begin{LTXexample}[width=0.5\linewidth]
+\begin{pspicture}(-4.5,-2.5)(4.5,2.5)
+\psset{viewpoint=200 15 20 rtp2xyz,
+ Decran=500}
+\psAntiprism[fan,a=0.5,n=20,
+ inouthue=0.1 1,hollow,opacity=0.9]
+\end{pspicture}
+\end{LTXexample}
+
+
+
+\begin{LTXexample}[width=0.55\linewidth]
+\begin{pspicture}(-4.5,-3)(4.5,3)
+\psset{viewpoint=100 20 30 rtp2xyz,
+ Decran=150}
+\psAntiprism[fan,n=12,a=1.5,hollow,
+ incolor=yellow,fillcolor=red,
+ linecolor=blue,opacity=0.95,
+ affinage=all,affinagecoeff=0.9]
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[width=0.55\linewidth]
+\begin{pspicture}(-4.5,-3)(4.5,3)
+\psset{viewpoint=200 2 25 rtp2xyz,
+ Decran=500,solidmemory}
+\psAntiprism[fan,n=20,a=0.5,hollow,
+ inouthue=0.1 1,opacity=0.9,
+ plansepare={[1 0 0 0.05]},
+ name=eventail,action=none]
+\psSolid[object=load,load=eventail1,
+ deactivatecolor,hollow,opacity=0.8]
+\end{pspicture}
+\end{LTXexample}
+
+
+\subsection{animation}
+With the package \LPack{animate} one can create inline animations in an easy way:
+
+
+\begin{center}
+\begin{animateinline}[controls,loop,
+ begin={\begin{pspicture}(-4.5,-2.5)(4.5,2.5)},
+ end={\end{pspicture}}]{12}% 25 images/s
+\multiframe{72}{iTheta=0+5}{%
+\psset{viewpoint=200 \iTheta\space 20 rtp2xyz,
+ Decran=500}
+\psAntiprism[fan,a=0.5,n=20,inouthue=0.1 1,hollow,opacity=0.9]}
+\end{animateinline}
+\end{center}
+
+
+\begin{lstlisting}
+\begin{animateinline}[controls,loop,
+ begin={\begin{pspicture}(-4.5,-2.5)(4.5,2.5)},
+ end={\end{pspicture}}]{12}% 25 images/s
+\multiframe{72}{iTheta=0+5}{%
+\psset{viewpoint=200 \iTheta\space 20 rtp2xyz,
+ Decran=500}
+\psAntiprism[fan,a=0.5,n=20,inouthue=0.1 1,hollow,opacity=0.9]}
+\end{animateinline}
+\end{lstlisting}
+
+
+\begin{center}
+\begin{animateinline}[controls,loop,
+ begin={\begin{pspicture}(-4,-4)(4,4)},
+ end={\end{pspicture}}]{12}% 25 images/s
+\multiframe{72}{iTheta=0+5}{%
+\psset{viewpoint=100 90 20 rtp2xyz,Decran=120}
+\psset{lightsrc=viewpoint}
+\psset{a=1,r=1,hollow,opacity=0.8,linecolor=blue,RotSequence=zxy,RotX=\iTheta,RotZ=\iTheta}
+\psAntiprism[colored,n=17]}
+\end{animateinline}
+\end{center}
+
+
+\begin{lstlisting}
+\begin{animateinline}[controls,loop,
+ begin={\begin{pspicture}(-4,-4)(4,4)},
+ end={\end{pspicture}}]{12}% 25 images/s
+\multiframe{72}{iTheta=0+5}{%
+\psset{viewpoint=100 90 20 rtp2xyz,Decran=120}
+\psset{lightsrc=viewpoint}
+\psset{a=1,r=1,hollow,opacity=0.8,linecolor=blue,RotSequence=zxy,RotX=\iTheta,RotZ=\iTheta}
+\psAntiprism[colored,n=17]}
+\end{animateinline}
+\end{lstlisting}
+
+
+
+\clearpage
+
+\section{List of all optional arguments for \texttt{pst-antiprism}}
+
+\xkvview{family=pst-antiprism,columns={key,type,default}}
+
+
+\bgroup
+\raggedright
+\nocite{*}
+\printbibliography
+\egroup
+
+\printindex
+\end{document}
+
Property changes on: trunk/Master/texmf-dist/doc/generic/pst-antiprism/pst-antiprism-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/dvips/pst-antiprism/pst-antiprism.pro
===================================================================
--- trunk/Master/texmf-dist/dvips/pst-antiprism/pst-antiprism.pro (rev 0)
+++ trunk/Master/texmf-dist/dvips/pst-antiprism/pst-antiprism.pro 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,154 @@
+%% $Id: pst-antiprism.pro 522 2017-08-23 09:03:52Z herbert $
+%% PostScript prologue for pst-antiprism.tex.
+%%
+%% Version 0.02, 2018/02/12
+%%
+%% For distribution, see pst-antiprism.tex.
+%%
+%%
+/ps at antiprism { 12 dict begin
+ /n exch def % cotè du polygone
+ /a exch def % length on the antiprism side
+ /angle 360 n div def
+ % hauteur entre les 2 plans
+ /h a 1 1 angle 4 div cos 2 mul dup mul div sub sqrt mul 2 div def
+ % rayon du cercle circonscrit au polygone
+ /r a 2 div angle 2 div sin div def
+ % Les sommets des polygones réguliers supérieur et inférieur, alternativement
+ % inscrit dans un cercle de rayon 1
+ /sommets [ % 0->2n-1
+ 0 1 n 1 sub {
+ /k exch def
+ angle k mul cos r mul
+ angle k mul sin r mul
+ h
+ k 0.5 add angle mul cos r mul
+ k 0.5 add angle mul sin r mul
+ h neg
+ } for
+ meshbases { % les centres de 2 faces polygonales
+ 0 0 h % né 2n
+ 0 0 h neg % né 2n+1
+ } if
+ ] def
+ % les faces
+ /faces [
+ /i 0 def
+ n {
+ [0 i add 1 i add 2 i add ]
+ /i i 2 add def
+ } repeat
+ /i 0 def
+ n {
+ [1 i add 3 i add 2 i add ]
+ /i i 2 add def
+ } repeat
+ meshbases {
+ % les faces sup et inf en triangles
+ /i 0 def
+ n 1 sub {
+ [2 n mul 0 i add 2 i add ]
+ /i i 2 add def
+ } repeat
+ [2 n mul 2 n mul 2 sub 0 ]
+ /i 0 def
+ n 1 sub {
+ [2 n mul 1 add 3 i add 1 i add ]
+ /i i 2 add def
+ } repeat
+ [2 n mul 1 add 1 2 n mul 1 sub ]
+ }{ % face polygonale sup
+ [ 0 2 2 n mul 2 sub {} for ]
+ % face polygonale inf
+ [ 1 2 2 n mul 1 sub {} for ]
+ } ifelse
+ ] def
+ faces n 1 sub get 2 0 put
+ faces 2 n mul 1 sub get 1 1 put
+ faces 2 n mul 1 sub get 2 0 put
+ % dans le cas oé les bases ne sont pas étoilées
+ % base sup = 2n
+ % base inf = 2n+1
+ %facessup faces 2 n mul get
+ %facesinf faces 2 n mul 1 get
+ %facestemp faces 0 2 n 1 sub getintervall
+ %
+ meshbases {}{
+ /faces1 faces faces length 2 sub 2 getinterval def
+ /faces2 faces 0 faces length 2 sub getinterval def
+ /faces [faces1 aload pop faces2 aload pop] def
+ } ifelse
+ sommets faces generesolid
+end
+} def
+%
+/ps at antiprism-fan {
+ 10 dict begin
+ /n exch def
+ % coté du polygone
+ /a exch def % length on the antiprism side
+ /angle 360 n div def
+ % hauteur entre les 2 plans
+ /h a
+ 1
+ 1
+ angle 4 div cos 2 mul dup mul div sub sqrt mul 2 div def
+% rayon du cercle circonscrit au polygone
+/r a 2 div angle 2 div sin div def
+% Les sommets des polygones r\xE9guliers sup\xE9rieur et inf\xE9rieur, alternativement
+% inscrit dans un cercle de rayon r
+/sommets [ % 0->2n-1
+0 1 n 1 sub {/k exch def
+ angle k mul cos r mul
+ angle k mul sin r mul
+ h
+ k 0.5 add angle mul cos r mul
+ k 0.5 add angle mul sin r mul
+ h neg
+ } for
+% les centres de 2 faces polygonales
+ 0 0 h % n\xB0 2n
+ 0 0 h neg % n\xB0 2n+1
+ ] def
+% les faces
+/faces [
+0 2 n 2 mul 3 sub {/i exch def
+[
+ i
+ i 1 add
+ 2 n mul 1 add
+ 2 n mul
+ ]
+[
+ i 1 add
+ i 2 add
+ 2 n mul
+ 2 n mul 1 add
+ ]
+} for
+[
+ 2 n mul
+ 2 n mul 2 sub 2 n mul 1 sub 2 n mul 1 add
+]
+[
+ 2 n mul 1 sub
+ 0
+ 2 n mul
+ 2 n mul 1 add
+]
+] def
+sommets faces generesolid
+end
+} def
+%
+/pst-antiprism-fan {
+ a n@ ps at antiprism-fan
+ gere_pstricks_opt
+} def
+%
+/pst-antiprism {
+ a n@ ps at antiprism
+ gere_pstricks_opt
+} def
+%
+%
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/dvips/pst-antiprism/pst-antiprism.pro
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/pst-antiprism/pst-antiprism.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-antiprism/pst-antiprism.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/pst-antiprism/pst-antiprism.tex 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,72 @@
+%% $Id: pst-antiprism.tex 730 2018-02-13 17:50:37Z herbert $
+%% Package `pst-antiprism.tex'
+%%
+%% 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: 3d representation of an antiprism
+%%
+%% Author : <manuel.luque27 at gmail.com>
+%% Author : <hvoss at tug.org>
+%%
+\csname PSTANTIPRISMLoaded\endcsname
+\let \PSTANTIPRISMLoaded\endinput
+% Require PSTricks and pst-solides3d
+\ifx\PSTricksLoaded\endinput \else\input pstricks.tex\fi
+\ifx\PSTSOLIDESIIIDLoaded\endinput \else\input pst-solides3d.tex\fi
+\ifx\PSTXKeyLoaded\endinput \else\input pst-xkey.tex\fi
+
+\def\fileversion{0.02}
+\def\filedate{2018/02/07}
+\message{`PST' v\fileversion, \filedate}
+
+\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
+
+\pst at addfams{pst-antiprism}
+
+\pstheader{pst-antiprism.pro}
+
+\addtosolideslistobject{antiprism,antiprism-fan}
+
+\define at key[psset]{pst-antiprism}{n}{\def\pst at antiprism@n{#1 }} % nombre de cotes des polygones
+% Mesh of the bases of the antiprism
+\define at boolkey[psset]{pst-antiprism}[Pst@]{meshbases}[true]{} %
+\define at boolkey[psset]{pst-antiprism}[Pst@]{colored}[true]{} %
+\define at boolkey[psset]{pst-antiprism}[Pst@]{fan}[true]{} %
+\psset[pst-antiprism]{n=5,meshbases=true,colored=false,fan=false}
+\psset[pst-solides3d]{a=1}
+%
+\def\psAntiprism{\pst at object{psAntiprism}}
+\def\psAntiprism at i{%
+ \pst at killglue
+ \begingroup
+ \use at keep@par
+ \ifPst at colored
+ \addbefore at par{%
+ fcol=
+ 0 1 \pst at antiprism@n 2 mul 1 sub {/i exch def i (i \pst at antiprism@n 2 mul div 1 1 sethsbcolor)} for % le tour complet
+ \pst at antiprism@n 2 mul 1 \pst at antiprism@n 3 mul 1 sub {/i exch def i (i \pst at antiprism@n 2 mul sub \pst at antiprism@n 2 mul div 1 1 sethsbcolor)} for
+ \pst at antiprism@n 3 mul 1 \pst at antiprism@n 4 mul 1 sub {/i exch def i (i \pst at antiprism@n 2 mul sub \pst at antiprism@n 2 mul div 1 1 sethsbcolor)} for,
+ opacity=0.9
+ }%
+ \fi
+ \use at par
+ \addto at pscode{
+ \tx at optionssolides
+ SolidesDict begin
+ /n@ \pst at antiprism@n def
+ /meshbases \ifPst at meshbases true \else false \fi def
+ end
+ }%
+ \ifPst at fan\psSolid[object=antiprism-fan]\else\psSolid[object=antiprism]\fi
+% \use at pscode
+ \showpointsfalse
+ \endgroup
+ \ignorespaces
+}% % fin de la commande PSTricks
+
+
+\catcode`\@=\PstAtCode\relax
+%
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/generic/pst-antiprism/pst-antiprism.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/pst-antiprism/pst-antiprism.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pst-antiprism/pst-antiprism.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/pst-antiprism/pst-antiprism.sty 2018-02-14 21:36:11 UTC (rev 46643)
@@ -0,0 +1,20 @@
+%% $Id: pst-antiprism.sty 730 2018-02-13 17:50:37Z herbert $
+
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN archives
+%% in directory CTAN:/macros/latex/base/lppl.txt.
+%
+\ProvidesPackage{pst-antiprism.tex}[2018/02/12 package wrapper for PSTricks pst-antiprism.tex]
+%
+\RequirePackage{pstricks}
+\RequirePackage{pst-solides3d}
+%
+\input{pst-antiprism}
+\ProvidesFile{pst-antiprism.tex}
+ [\filedate\space v\fileversion\space `PST-antiprism.tex']
+\IfFileExists{pst-antiprism.pro}{%
+ \ProvidesFile{pst-antiprism.pro}
+ [2018/02/12 PostScript prologue file (ml,hv)]
+ \@addtofilelist{pst-antiprism.pro}}{}%
+\endinput
+%% End of file `pst-antiprism.tex.sty'.
Property changes on: trunk/Master/texmf-dist/tex/latex/pst-antiprism/pst-antiprism.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2018-02-14 21:34:47 UTC (rev 46642)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2018-02-14 21:36:11 UTC (rev 46643)
@@ -506,7 +506,8 @@
prosper protex protocol przechlewski-book
psbao pseudocode psfrag psfrag-italian psfragx
psgo psizzl pslatex psnfss pspicture
- pst-2dplot pst-3d pst-3dplot pst-abspos pst-am pst-arrow pst-asr pst-bar
+ pst-2dplot pst-3d pst-3dplot
+ pst-abspos pst-am pst-antiprism pst-arrow pst-asr pst-bar
pst-barcode pst-bezier pst-blur pst-bspline
pst-calculate pst-calendar pst-cie pst-circ pst-coil pst-cox
pst-dart pst-dbicons pst-diffraction
Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds 2018-02-14 21:34:47 UTC (rev 46642)
+++ trunk/Master/tlpkg/libexec/ctan2tds 2018-02-14 21:36:11 UTC (rev 46643)
@@ -897,6 +897,7 @@
'pst-3d', "&MAKEpst",
'pst-3dplot', "&MAKEpst",
'pst-abspos', "&MAKEpst",
+ 'pst-antiprism',"&MAKEpst",
'pst-arrow', "&MAKEpst",
'pst-am', "&MAKEpst",
'pst-asr', "&MAKEpst",
Modified: trunk/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc 2018-02-14 21:34:47 UTC (rev 46642)
+++ trunk/Master/tlpkg/tlpsrc/collection-pstricks.tlpsrc 2018-02-14 21:36:11 UTC (rev 46643)
@@ -19,6 +19,7 @@
depend pst-abspos
depend pst-arrow
depend pst-am
+depend pst-antiprism
depend pst-asr
depend pst-bar
depend pst-barcode
Added: trunk/Master/tlpkg/tlpsrc/pst-antiprism.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list