Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132934 views
License: OTHER
1
\documentclass[varwidth=true, border=2pt]{standalone}
2
\usepackage{tikz}
3
\usetikzlibrary{positioning, calc}
4
5
\begin{document}
6
\begin{tikzpicture}[scale=0.8]
7
% draw the background
8
\draw [line width=1.5pt, fill=gray!2] (0,0) -- (60:4) -- (4,0) -- cycle;
9
10
\coordinate[label=left:$A$] (A) at (0,0);
11
\coordinate[label=right:$B$] (B) at (4,0);
12
\coordinate[label=above:$C$] (C) at (2,3.464);
13
14
\coordinate[label=below:$c$](c) at ($ (A)!.5!(B) $);
15
\coordinate[label=left:$b$] (b) at ($ (A)!.5!(C) $);
16
\coordinate[label=right:$a$](a) at ($ (B)!.5!(C) $);
17
18
% angle alpha
19
\draw[fill=green!30] (0,0) -- (0:0.75cm) arc (0:60:.75cm);
20
\draw (0.35cm,0.25cm) node {$\alpha$};
21
22
% angle beta
23
\begin{scope}[shift={(4cm,0cm)}]
24
\draw[fill=green!30] (0,0) -- (-180:0.75cm) arc (180:120:0.75cm);
25
\draw (150:0.5cm) node {$\beta$};
26
\end{scope}
27
28
% angle gamma
29
\begin{scope}[shift={(60:4)}]
30
\draw[fill=green!30] (0,0) -- (-120:.75cm) arc (-120:-60:.75cm);
31
\draw (-90:0.5cm) node {$\gamma$};
32
\end{scope}
33
34
% the triangle
35
\draw [line width=1.5pt] (A) -- (B) -- (C) -- cycle;
36
\end{tikzpicture}
37
\end{document}
38
39