hyperbolic-triangle-interior-angles.tex 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tkz-euclide}
  3. \usetkzobj{all}
  4. % Thanks to Jan Hlavacek for giving an example for hyperbolic triangles
  5. % (http://tex.stackexchange.com/a/16749/5645)
  6. % Thanks to Jonas Granholm for help with the angles
  7. % (http://tex.stackexchange.com/a/204435/5645)
  8. \usepackage{helvet}
  9. \usepackage[eulergreek]{sansmath}
  10. \begin{document}
  11. \begin{tikzpicture}[scale=3,font=\sffamily\sansmath]
  12. \tkzDefPoint(0,0){O}
  13. \tkzDefPoint(1,0){Z}
  14. % Define points
  15. \tkzDefPoint(-0.7,-0.1){A}
  16. \tkzDefPoint(0.4,-0.3){B}
  17. \tkzDefPoint(0.1,0.4){C}
  18. % Draw big circle
  19. \tkzDrawCircle[fill=white](O,Z)
  20. % I have no idea what this does,
  21. % but when I remove it the rest of the image (the big circles)
  22. % get visible. So it seems to crop the image to the size of the circle
  23. \tkzClipCircle(O,Z)
  24. % Draw angles
  25. \tkzMarkAngles[fill= orange,size=0.3cm,opacity=.3](B,A,C)
  26. \tkzLabelAngle[pos=0.2](B,A,C){$\alpha$}
  27. \tkzMarkAngles[fill= orange,size=0.3cm,opacity=.3](C,B,A)
  28. \tkzLabelAngle[pos=0.2](C,B,A){$\beta$}
  29. \tkzMarkAngles[fill= orange,size=0.3cm,opacity=.3](A,C,B)
  30. \tkzLabelAngle[pos=0.2](A,C,B){$\gamma$}
  31. % "Clip" angles
  32. \tkzDrawCircle[fill,orthogonal through=A and B,color=white](O,Z)
  33. \tkzDrawCircle[fill,orthogonal through=A and C,color=white](O,Z)
  34. \tkzDrawCircle[fill,orthogonal through=B and C,color=white](O,Z)
  35. % Draw big circle
  36. \tkzDrawCircle(O,Z)
  37. % Draw lines
  38. \tkzDrawCircle[orthogonal through=A and B,color=green](O,Z)
  39. \tkzDrawCircle[orthogonal through=A and C,color=blue](O,Z)
  40. \tkzDrawCircle[orthogonal through=B and C,color=red](O,Z)
  41. % Draw points and label them
  42. \tkzDrawPoints[color=black,fill=red,size=5](A,B,C)
  43. \tkzLabelPoints[below](A)
  44. \tkzLabelPoints[below left](B)
  45. \tkzLabelPoints[above left](C)
  46. \end{tikzpicture}
  47. \end{document}