Debian Codegraph @

texmf-dist/doc/latex/lapdf/pythagor.tex

raw
1 \input preamble.tex
2
3 \def\Disk(#1,#2){\Circle(16)(#1,#2,0.03) \Gfill(0)}
4
5 % ---------------------------------------------------------------------------
6 \begin{document}
7 \unitlength1.25cm
8
9 \begin{center}
10 {\Huge\bf{Pythagoras I}}
11 \bigskip
12
13 \begin{lapdf}(14.9,16.4)(-8.5,-7.8)
14 \Setwidth(0.01)
15 \Dash(1)
16 \Line(0,0)(0,3.6) \Stroke
17 \Dash(0)
18 \Arc(8)(+0.0,+3.6)(216.87,90)(0.4)
19 \Disk(+0.0,+3.4)
20 \Arc(8)(+0.0,+0.0)(90,90)(0.4)
21 \Disk(-0.18,+0.18)
22 \Varc(8)(-4.8,+0.0)(0,36.87)(1)
23 \Varc(8)(+2.7,+0.0)(180,-53.13)(1)
24 \Setwidth(0.02)
25 \Red
26 \Rectangle(-4.8,0)(6,6)(36.87) \Fill(1,0.9,0.9)
27 \Green
28 \Rectangle(2.7,0)(4.5,4.5)(36.87) \Fill(0.9,1,0.9)
29 \Blue
30 \Rectangle(2.7,0)(7.5,7.5)(180) \Fill(0.9,0.9,1)
31 \Text(+1.4,+2.1,c){$a$}
32 \Text(-2.6,+2.1,c){$b$}
33 \Text(-1.0,-0.3,c){$c$}
34 \Text(+0.8,+0.2,c){$p$}
35 \Text(-2.2,+0.2,c){$q$}
36 \Text(+0.2,+1.5,c){$h$}
37 \Text(+3.0,+3.1,c){$A_1$}
38 \Text(-4.5,+4.2,c){$A_2$}
39 \Text(-1.1,-3.7,c){$A_3=A_1+A_2$}
40 \Text(-4.2,+0.2,c){$\alpha$}
41 \Text(+2.1,+0.25,c){$\beta$}
42 \end{lapdf}
43
44 \newpage
45
46 {\Huge\bf{Pythagoras II}}
47 \bigskip
48
49 \begin{lapdf}(12.5,11.8)(-7.5,-5.2)
50 \Setwidth(0.01)
51 \Dash(1)
52 \Line(0,0)(0,4.8) \Stroke
53 \Dash(0)
54 \Arc(8)(+0.0,+4.8)(216.87,90)(0.4)
55 \Disk(+0.0,+4.6)
56 \Arc(8)(+0.0,+0.0)(90,90)(0.4)
57 \Disk(-0.15,+0.15)
58 \Varc(8)(-6.4,+0.0)(0,36.87)(1.2)
59 \Varc(8)(+3.6,+0.0)(180,-53.13)(1.2)
60 \Setwidth(0.02)
61 \Red
62 \Sector(64)(-3.2,+2.4)(36.87,180)(4.0) \Fill(1,0.9,0.9)
63 \Green
64 \Sector(64)(+1.8,+2.4)(-53.13,180)(3.0) \Fill(0.9,1,0.9)
65 \Blue
66 \Sector(64)(-1.4,+0.0)(180,180)(5.0) \Fill(0.9,0.9,1)
67 \Text(+1.9,+2.7,c){$a$}
68 \Text(-3.4,+2.7,c){$b$}
69 \Text(-1.0,-0.3,c){$c$}
70 \Text(+1.2,+0.2,c){$p$}
71 \Text(-3.0,+0.2,c){$q$}
72 \Text(+0.2,+2.0,c){$h$}
73 \Text(+2.9,+3.1,c){$A_1$}
74 \Text(-4.7,+3.8,c){$A_2$}
75 \Text(-1.4,-2.3,c){$A_3=A_1+A_2$}
76 \Text(-5.7,+0.2,c){$\alpha$}
77 \Text(+2.9,+0.25,c){$\beta$}
78 \end{lapdf}
79 \end{center}
80 \end{document}