topology-ueberlagerung.tex 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{calc,intersections,automata, arrows}
  4. \newcommand\markangle[6]{% origin X Y radius radiusmark mark
  5. % fill red circle
  6. \begin{scope}
  7. \path[clip] (#1) -- (#2) -- (#3);
  8. \fill[color=red,fill opacity=0.5,draw=red,name path=circle]
  9. (#1) circle (#4);
  10. \end{scope}
  11. % middle calculation
  12. \path[name path=line one] (#1) -- (#2);
  13. \path[name path=line two] (#1) -- (#3);
  14. \path[%
  15. name intersections={of=line one and circle, by={inter one}},
  16. name intersections={of=line two and circle, by={inter two}}
  17. ] (inter one) -- (inter two) coordinate[pos=.5] (middle);
  18. % put mark
  19. \node at ($(#1)!#5!(middle)$) {#6};
  20. }
  21. \begin{document}
  22. \begin{tikzpicture}[scale=0.7]
  23. \newcommand{\R}{2}
  24. \draw (0,0) circle (\R);
  25. \draw[->, thick] ({-(\R+0.2)},0) -- ({\R+0.2},0);
  26. \draw[->, thick] (0,{-(\R+0.2)}) -- (0,{\R+0.2});
  27. \draw[thick] (\R,-0.06) -- (\R,0.06) node[label=below:$1$] {};
  28. \draw[thick] (-0.06,\R) -- (0.06,\R) node[label=left:$i$] {};
  29. \draw (0,0) -- ({\R*cos(30)},{\R*sin(30)}) node[label=15:$z$] {};
  30. \draw (0,0) -- ({\R*cos(60)},{\R*sin(60)}) node[label=35:$z^2$] {};
  31. \coordinate (O) at (0,0);
  32. \coordinate (X) at (1,0);
  33. \coordinate (Y) at ({\R*cos(30)},{\R*sin(30)});
  34. \coordinate (Z) at ({\R*cos(60)},{\R*sin(60)});
  35. \markangle{O}{Y}{Z}{10mm}{7mm}{$\varphi$}
  36. \markangle{O}{X}{Y}{10mm}{7mm}{$\varphi$}
  37. \begin{scope}[xshift=4cm, yshift=-1.2cm]
  38. \draw (0,0) circle (\R/2);
  39. \newcommand{\x}{1}
  40. \draw [red,thick,domain=-30:30] plot ({cos(\x)}, {sin(\x)});
  41. \draw [red,thick,domain=210:150] plot ({cos(\x)}, {sin(\x)});
  42. \end{scope}
  43. \begin{scope}[xshift=4cm, yshift=+1.2cm]
  44. \draw (0,0) circle (\R/2);
  45. \newcommand{\x}{1}
  46. \draw [red,thick,domain=-30:30] plot ({cos(\x)}, {sin(\x)});
  47. \end{scope}
  48. \coordinate (T) at (5.5,1);
  49. \path[->] (5.5,-1) edge[bend right] node[label=right:$z^2$] {} (T);
  50. \end{tikzpicture}
  51. \end{document}