summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/32-03-18.ltx
blob: a3dc0a1a8b3cd5c47d54f988d2d6c8ebafbab694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel 32-03-18 auf Seite 734.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{193.16928pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{pst-optic}
%StopShownPreambleCommands
\begin{document}
\begin{pspicture}(-5,-3)(5,3)
\pnodes(-1,-2.5){A}(1,-2.5){B}(1,2.5){C}(-1,2.5){D}
\uput[-135](A){A}\uput[-45](B){B}\uput[45](C){C}\uput[135](D){D}
\pspolygon[fillcolor=lightgray,fillstyle=solid,linecolor=blue](A)(B)(C)(D)
\refractionRay(-3,-3)(-2,-2)(D)(A){1}{1.5}{END}%    1.
\psset{linecolor=red,linewidth=2pt,arrowsize=5pt,arrows=->}
\arrowLine(-3,-3)(END){2}  \ABinterCD(END)(END')(C)(B){Out}
\arrowLine(END)(Out){1}    \refractionRay(END)(Out)(C)(B){1.5}{1}{Q}
\arrowLine(Q)(Q'){1}       \psOutLine[length=2](Q)(Q'){End}
\refractionRay(-3,0)(-2,0)(A)(D){1}{1.5}{END}%      2.
\psset{linecolor=green,linewidth=2pt,arrowsize=5pt,arrows=->}
\arrowLine(-3,0)(END){2}  \ABinterCD(END)(END')(C)(B){Out}
\arrowLine(END)(Out){1}   \refractionRay(END)(Out)(C)(B){1.5}{1}{Q}
\arrowLine(Q)(Q'){1}      \psOutLine[length=2](Q)(Q'){End}
\refractionRay(-3,3)(-2,2)(D)(A){1}{1.5}{END}%      3.
\psset{linecolor=blue,linewidth=2pt,arrowsize=5pt,arrows=->}
\arrowLine(-3,3)(END){2}   \ABinterCD(END)(END')(C)(B){Out}
\arrowLine(END)(Out){1}    \refractionRay(END)(Out)(C)(B){1.5}{1}{Q}
\arrowLine(Q)(Q'){1}       \psOutLine[length=2](Q)(Q'){End}
\end{pspicture}
\end{document}