arc.tex 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. \begin{document}
  8. \begin{preview}
  9. \resizebox{250px}{250px}{
  10. \begin{tikzpicture}[]
  11. \newcommand\R{1.3cm}
  12. \draw[fill=gray!2] (0,0) circle (\R);
  13. % draw the background
  14. \draw [line width=0.1pt, fill=gray!10]
  15. (0,0) --
  16. (170: \R) --
  17. (45:\R) -- cycle;
  18. \begin{scope}[color=green]
  19. \draw[fill=green!15] (0,0) --
  20. (170:{\R*0.3}) arc (170:45:{{(\R)*0.3}});
  21. \end{scope}
  22. % Kreisbogen
  23. \begin{scope}[thick, color=red]
  24. \draw[] (170:\R) arc (170:45:\R);
  25. \end{scope}
  26. % Winkel
  27. \draw[] (0,0) -- (170:\R);
  28. \draw[] (0,0) -- (45:\R);
  29. \draw[thick, color=blue] (170:\R) -- (45:\R);
  30. % draw alpha
  31. \coordinate[label=$\alpha$] (Alpha) at (-{\R/20}, 0);
  32. \coordinate[label=$r$] (Alpha) at ({\R/2}, {\R/5});
  33. \end{tikzpicture}
  34. }
  35. \end{preview}
  36. \end{document}