Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132934 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{2mm}
4
\usepackage{tikz}
5
\usetikzlibrary{shapes, calc, decorations}
6
\usepackage{amsmath,amssymb}
7
8
\begin{document}
9
\begin{preview}
10
\resizebox{250px}{250px}{
11
\begin{tikzpicture}[]
12
\newcommand\R{1.3cm}
13
14
\draw[fill=gray!2] (0,0) circle (\R);
15
16
% draw the background
17
\draw [line width=0.1pt, fill=gray!10]
18
(0,0) --
19
(170: \R) --
20
(45:\R) -- cycle;
21
22
\begin{scope}[color=green]
23
\draw[fill=green!15] (0,0) --
24
(170:{\R*0.3}) arc (170:45:{{(\R)*0.3}});
25
\end{scope}
26
27
% Kreisbogen
28
\begin{scope}[thick, color=red]
29
\draw[] (170:\R) arc (170:45:\R);
30
\end{scope}
31
32
% Winkel
33
\draw[] (0,0) -- (170:\R);
34
\draw[] (0,0) -- (45:\R);
35
\draw[thick, color=blue] (170:\R) -- (45:\R);
36
37
% draw alpha
38
\coordinate[label=$\alpha$] (Alpha) at (-{\R/20}, 0);
39
\coordinate[label=$r$] (Alpha) at ({\R/2}, {\R/5});
40
\end{tikzpicture}
41
}
42
\end{preview}
43
\end{document}
44
45