summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pst-optic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-13 16:36:21 +0000
committerKarl Berry <karl@freefriends.org>2010-09-13 16:36:21 +0000
commitfccd8f0291441a23b2f120a0c516ebee7cfdd047 (patch)
tree5c91ee37b60c7a5bf0658737a91649d9eb5a3f41 /Master/texmf-dist/tex/generic/pst-optic
parentf13eb2154a8c3f2e1a0f1af64ca625ce650f1d48 (diff)
pst-optic 1.01 (23jul10)
git-svn-id: svn://tug.org/texlive/trunk@19704 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pst-optic')
-rw-r--r--Master/texmf-dist/tex/generic/pst-optic/pst-optic.tex74
1 files changed, 37 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-optic/pst-optic.tex b/Master/texmf-dist/tex/generic/pst-optic/pst-optic.tex
index 74d9c2a3e04..e5dd1b3bfd8 100644
--- a/Master/texmf-dist/tex/generic/pst-optic/pst-optic.tex
+++ b/Master/texmf-dist/tex/generic/pst-optic/pst-optic.tex
@@ -8,7 +8,7 @@
%% Manuel Luque <Mluque5130@aol.com> (France)
%% Herbert Voss <voss@perce.de> (Germany)
%%
-%% 2006-07-20
+%% 2010-07-23
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
@@ -21,17 +21,17 @@
\let\PSTopticLoaded\endinput
% Requires PSTricks, pst-node, pst-plot, pst-grad, pst-3d,
% pst-math, pst-xkey, multido packages
-\ifx\PSTricksLoaded\endinput\else\input pstricks.tex\fi
-\ifx\PSTnodesLoaded\endinput\else\input pst-node.tex\fi
-\ifx\PSTplotLoaded\endinput\else\input pst-plot.tex\fi % parametric-plot
-\ifx\PSTthreeDLoaded\endinput\else\input pst-3d.tex\fi % symplan
-\ifx\PSTGradLoaded\endinput\else\input pst-grad.tex\fi
-\ifx\PSTmathLoaded\endinput\else\input pst-math.tex\fi
+\ifx\PSTricksLoaded\endinput\else \input pstricks.tex\fi
+\ifx\PSTnodesLoaded\endinput\else \input pst-node.tex\fi
+\ifx\PSTplotLoaded\endinput\else \input pst-plot.tex\fi % parametric-plot
+\ifx\PSTthreeDLoaded\endinput\else \input pst-3d.tex\fi % symplan
+\ifx\PSTGradLoaded\endinput\else \input pst-grad.tex\fi
+\ifx\PSTmathLoaded\endinput\else \input pst-math.tex\fi
\ifx\PSTMultidoLoaded\endinput\else\input multido.tex\fi
-\ifx\PSTXKeyLoaded\endinput\else\input pst-xkey \fi
+\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey\fi
%
-\def\fileversion{0.97}
-\def\filedate{2007/01/07}
+\def\fileversion{1.01}
+\def\filedate{2010/07/23}
\message{`PST-Optic' v\fileversion, \filedate\space (Manuel Luque and Herbert Voss)}
%
\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax
@@ -398,11 +398,11 @@
%
\def\lensSPH{\@ifnextchar[{\pst@lensSPH}{\pst@lensSPH[]}}
\def\pst@lensSPH[#1]{{%
- \psset{lensType=CVG,OA=-7,%
+ \psset[pst-optic]{lensType=CVG,OA=-7,%
lensHeight=6,%
lensWidth=1.5,%
refractB=2}
- \psset{#1}
+ \ifx\relax#1\relax \else\psset[pst-optic,pstricks]{#1}\fi
\begin{pspicture*}(\psk@optic@xLeft ,\psk@optic@yBottom )
(\psk@optic@xRight ,\psk@optic@yTop)
\pnode(! \psk@optic@xLeft\space 0){xLeft}
@@ -566,7 +566,7 @@
%
\def\lensSPHRay{\@ifnextchar[{\pst@lensSPHRay}{\pst@lensSPHRay[]}}
\def\pst@lensSPHRay[#1](#2)(#3)#4#5#6{{%
- \psset{#1}
+ \psset[pst-optic,pstricks]{#1}
\ifx\psk@optic@lensType\lensTypeCVG% CVG
\ifPst@rightRay
\ABinterSPHLens(#2)(#3)(Center){#6}
@@ -736,8 +736,8 @@
%(#2) est l'abscisse du centre optique
\def\lens{\@ifnextchar[{\pst@lens}{\pst@lens[]}}
\def\pst@lens[#1]{{%
- \psset{xLeft=-7.5,xRight=7.5,yBottom=-3,yTop=3}%
- \psset{#1}%
+ \psset[pst-optic]{xLeft=-7.5,xRight=7.5,yBottom=-3,yTop=3}%
+ \psset[pst-optic,pstricks]{#1}%
\pst@killglue%
% trace les rayons
% calcule la position de l'image
@@ -985,7 +985,7 @@
%
\def\mirrorCVGRay{\@ifnextchar[{\pst@mirrorCVGRay}{\pst@mirrorCVGRay[]}}% Herbert 2003/01/05
\def\pst@mirrorCVGRay[#1](#2)(#3)#4{{%
- \psset{#1}%
+ \ifx\relax#1\relax \else\psset[pst-optic,pstricks]{#1}\fi%
\ifx\psk@optic@mirrorType\mirrorType % CVG
%\typeout{====>\mirrorType}
%\typeout{====>\psk@optic@mirrorType}
@@ -1118,7 +1118,7 @@
/X2 exch \pst@number\psxunit div def
XP X1 sub abs 0.01 gt {X1 Y1}{X2 Y2} ifelse ){#4'}
\reflectionRay[#1](tempRef1)(#4'){#4''}
- \psset{mirrorType=CVG}% restore
+ \psset[pst-optic]{mirrorType=CVG}% restore
\fi
\ifPst@drawing
\psline[#1](#2)(#4)
@@ -1130,14 +1130,14 @@
%
\def\mirrorCVG{\@ifnextchar[{\pst@mirrorCVG}{\pst@mirrorCVG[]}}% Herbert Voss 2003/01/05
\def\pst@mirrorCVG[#1]{{%
- \psset{AB=1.25,OA=4.5,XO=0,YO=0,xLeft=-5,xRight=5,yBottom=-3,yTop=3,%
- mirrorHeight=5,mirrorDepth=1,mirrorWidth=0.2}%
- \psset{#1}
+ \psset[pst-optic]{AB=1.25,OA=4.5,XO=0,YO=0,xLeft=-5,xRight=5,yBottom=-3,yTop=3,
+ mirrorHeight=5,mirrorDepth=1,mirrorWidth=0.2}%
+ \ifx\relax#1\relax \else\psset[pst-optic,pstricks]{#1}\fi%
\def\mirrorType{CVG}%
\begin{pspicture}(\psk@optic@xLeft,\psk@optic@yBottom)(\psk@optic@xRight,\psk@optic@yTop)
\pnode(\psk@optic@xLeft, 0){xLeft}
\pnode(\psk@optic@xRight, 0){xRight}
- \pstVerb{%
+ \pstVerb{
/Height \psk@optic@mirrorHeight\space 2.0 div def
/Depth \psk@optic@mirrorDepth\space def
/Width \psk@optic@mirrorWidth\space def
@@ -1158,7 +1158,7 @@
\pnode(! radius XO add YO){Center}
\pnode(! radius 2 div XO add YO){Focus}
\fi
- \pscustom[fillstyle=solid,fillcolor=\psk@optic@mirrorColor,%
+ \pscustom[fillstyle=solid,fillcolor=\psk@optic@mirrorColor,
linecolor=\psk@optic@mirrorColor]{%
% (d,h/2)->(d-w,h/2)
\psline(!%
@@ -1182,15 +1182,15 @@
\psk@optic@mirrorDepth\space \psk@optic@mirrorHeight\space 2 div neg)
% (w/2,-h/2)->(w/2,h/2)
\ifx\psk@optic@mirrorType\mirrorType % CVG or SPH
- \parametricplot{-\psk@optic@mirrorHeight}{\psk@optic@mirrorHeight}{%
+ \parametricplot{-\psk@optic@mirrorHeight}{\psk@optic@mirrorHeight}{
2 \psk@optic@mirrorHeight\space div dup mul \psk@optic@mirrorDepth\space mul
t 2 exp 4 div mul t 2 div }
\else
- \parametricplot{-\psk@optic@mirrorHeight}{\psk@optic@mirrorHeight}{%
+ \parametricplot{-\psk@optic@mirrorHeight}{\psk@optic@mirrorHeight}{
radius dup dup mul t 2 div dup mul sub sqrt sub t 2 div }
\fi
\fill
- }
+ }%
\ifPst@drawing
\psline[style=opticalAxis](O)(xRight)
\ifx\psk@optic@mirrorType\mirrorType\qdisk(Center){1.5pt}\uput{0.2}[-90](Center){Center}\fi
@@ -1240,11 +1240,11 @@
\def\mirrorDVG{\@ifnextchar[{% Herbert Voss 2003/01/05
\pst@mirrorDVG}{\pst@mirrorDVG[]}}
\def\pst@mirrorDVG[#1]{{%
- \psset{% the defaults
+ \psset[pst-optic]{% the defaults
AB=1.25,OA=4,XO=0,YO=0,xLeft=-5,xRight=5,yBottom=-3,yTop=3,%
mirrorHeight=5,mirrorDepth=1,mirrorWidth=0.2,mirrorType=DVG}%
\def\mirrorType{DVG}%
- \psset{#1}%
+ \psset[pst-optic,pstricks]{#1}%
\pstVerb{
/Height \psk@optic@mirrorHeight\space 2 div def
/Depth \psk@optic@mirrorDepth\space def
@@ -1337,7 +1337,7 @@
%
\def\mirrorDVGRay{\@ifnextchar[{\pst@mirrorDVGRay}{\pst@mirrorDVGRay[]}}% Herbert Voss 2003/01/05
\def\pst@mirrorDVGRay[#1](#2)(#3)#4{{%
- \psset{#1}%
+ \psset[pst-optic,pstricks]{#1}%
\pnode(!%
\psk@optic@mirrorHeight\space dup mul 16 div
\psk@optic@mirrorDepth\space div neg 0){Focus}
@@ -1416,9 +1416,9 @@
%
\def\beamLight{\@ifnextchar[{\pst@beamLight}{\pst@beamLight[]}}
\def\pst@beamLight[#1]{{%
- \psset{xLeft=-5,xRight=5,yBottom=-5,yTop=5,%
+ \psset[pst-optic]{xLeft=-5,xRight=5,yBottom=-5,yTop=5,%
drawing=false}% the defaults
- \psset{#1}%
+ \psset[pst-optic,pstricks]{#1}%
\begin{pspicture*}(\psk@optic@xLeft,\psk@optic@yBottom)(\psk@optic@xRight,\psk@optic@yTop)
\rput(0,0){%
\mirrorCVG[#1]%
@@ -1454,9 +1454,9 @@
%
\def\telescope{\@ifnextchar[{\pst@telescope}{\pst@telescope[]}}
\def\pst@telescope[#1]{{%
- \psset{xLeft=-0.5,xRight=11,yBottom=-6,yTop=2}% the default
+ \psset[pst-optic]{xLeft=-0.5,xRight=11,yBottom=-6,yTop=2}% the default
\def\@tempa{#1}%
- \ifx\@tempa\@empty\else\psset{#1}\fi%
+ \ifx\@tempa\@empty\else\psset[pst-optic,pstricks]{#1}\fi%
\pstVerb{%
/mirrorFocus \psk@optic@mirrorFocus\space def
/Coeff mirrorFocus 4 mul def
@@ -1604,9 +1604,9 @@
X1 Y1){Factice}%
\pst@Verb{%
{ [ax by cx dy tx ty] concat
- } \tx@TMChange}%
+ } tx@3Ddict begin TMChange end }%
\box\pst@hbox
- \pst@Verb{\tx@TMRestore}}%
+ \pst@Verb{ tx@3Ddict begin TMRestore end }}%
}\ignorespaces}
%
% refractionRay[options](A)(B)(C)(D){rNoA}{rNoB}{E}
@@ -1620,7 +1620,7 @@
%
\def\refractionRay{\@ifnextchar[{\pst@refractionRay}{\pst@refractionRay[]}}
\def\pst@refractionRay[#1](#2)(#3)(#4)(#5)#6#7#8{{%
- \psset{#1}
+ \psset[pst-optic,pstricks]{#1}
\pst@getcoor{#2}\pst@tempA
\pst@getcoor{#3}\pst@tempB
\pst@getcoor{#4}\pst@tempc
@@ -1683,7 +1683,7 @@
%
\def\reflectionRay{\@ifnextchar[{\pst@reflectionRay}{\pst@reflectionRay[]}}
\def\pst@reflectionRay[#1](#2)(#3)#4{{%
- \psset{#1}
+ \psset[pst-optic,pstricks]{#1}
\pst@getcoor{#2}\pst@tempA% the starting point
\pst@getcoor{#3}\pst@tempp% the point on the mirror
\pst@getcoor{Center}\pst@tempc% the center/focus of the mirror
@@ -1723,7 +1723,7 @@
\define@key[psset]{pst-optic}{k}{\edef\psk@Prism@k{#1}}
\define@boolkey[psset]{pst-optic}[Pst@Prism@]{notations}[true]{}
%
-\psset{AnglePrism=60,AnglePlan1=25,AnglePlan2=55,k=1,lambda=632.8,notations=true}
+\psset[pst-optic]{AnglePrism=60,AnglePlan1=25,AnglePlan2=55,k=1,lambda=632.8,notations=true}
%
\def\psprism{\pst@object{psprism}}
\def\psprism@i{%