geometry-7.tex 906 B

12345678910111213141516171819202122232425262728
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tkz-euclide}
  3. \begin{document}
  4. \usetkzobj{all}
  5. \begin{tikzpicture}
  6. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  7. \tkzSetUpLine[line width=1]
  8. \tkzDefPoints{0/0/Q, 2/0/P, 1/2/R}
  9. \pgfmathsetmacro{\firstAngle}{0}
  10. \pgfmathsetmacro{\secondAngle}{-120}
  11. \path[draw,red, fill=red!40] (Q) -- ++(\firstAngle:.4) arc[start angle=\firstAngle, delta angle=\secondAngle,radius=.4];
  12. \tkzMarkAngle[arc=l,size=0.8cm,color=green,fill=green!20](Q,R,P)
  13. \path[draw] ++(-50:.2) node[rotate=-50] {$\alpha$};
  14. \node at (1,1.5) {$\beta$};
  15. \tkzDrawLine(Q,P)
  16. \tkzDrawLine(Q,R)
  17. \tkzDrawLine(P,R)
  18. \tkzDrawPoints(P,Q,R)
  19. \node at ($(R) + (0.03,0.4)$) {$R$}; %top
  20. \node at ($(Q) + (-0.3,-0.22)$) {$Q$}; %left
  21. \node at ($(P) + ( 0.3,-0.18)$) {$P$}; %right
  22. \end{tikzpicture}
  23. \end{document}