summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_7_de/35-00-103.ltx
blob: 6f7e4b596a2bf862ec912bbb7e7a6970b0d7f6f8 (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
50
51
52
53
54
55
56
57
58
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  7. Auflage
%% 
%%  Beispiel 35-00-103 auf Seite 860.
%% 
%%  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{352.81416pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{pst-eucl,pst-plot}
%StopShownPreambleCommands
\begin{document}
\def\Angle{37}
\def\R{5}
\begin{pspicture}(-\R,-\R)(\R,\R)
    \pstGeonode[PointSymbol=none,PosAngle={45,-90},PointNameSep=24pt](\R;\Angle){B}(0,0){O}(\R;0){A}
    \pcline[linecolor=lightgray,linewidth=12pt,offset=-6pt,strokeopacity=0.6](O)(A)
    \pcline[linecolor=lightgray,linewidth=12pt,offset=6pt,strokeopacity=0.6](O)(B)
    \psline(B)(O)(A)
    \pstMarkAngle[MarkAngleRadius=1.6,LabelSep=.8]{A}{O}{B}{$\theta$}
    \pstGeonode(!3 \Angle\space 2 div PtoC){X}
    \color{blue}\psset{linecolor=blue}%
    \pstOrtSym{O}{A}{X}[I_1] \psline[linestyle=dotted](X)(I_1)
    \newif\ifA \Afalse
    \pstFPDiv\No{360}{\Angle}
    \multido{\iA=1+1,\iB=2+1}{\numexpr\No-1}{%
      \ifA\pstOrtSym{O}{A}{I_\iA}[I_\iB]\else\pstOrtSym{O}{B}{I_\iA}[I_\iB]\fi
      \psline[linestyle=dotted](I_\iA)(I_\iB)
      \ifA\Afalse\else\Atrue\fi
    }%
    \color{red}\psset{linecolor=red}%
    \pstOrtSym{O}{B}{X}[I_1] \psline[linestyle=dotted](X)(I_1)
    \newif\ifA \Atrue
    \pstFPDiv\No{360}{\Angle}
    \multido{\iA=1+1,\iB=2+1}{\numexpr\No-1}{%
      \ifA\pstOrtSym{O}{A}{I_\iA}[I_\iB]\else\pstOrtSym{O}{B}{I_\iA}[I_\iB]\fi
      \psline[linestyle=dotted](I_\iA)(I_\iB)
      \ifA\Afalse\else\Atrue\fi
    }%
    \pscircle[linestyle=dotted](O){3}
\end{pspicture}
\end{document}