Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. documentclass[tikz]{standalone}
  2. usepackage{amssymb}
  3. usepackage[backgrounds]{tikz}
  4.  
  5. makeatletter
  6. deftikz@arc@opt[#1]{% over-write!
  7. {%
  8. tikzset{every arc/.try,#1}%
  9. pgfkeysgetvalue{/tikz/start angle}tikz@s
  10. pgfkeysgetvalue{/tikz/end angle}tikz@e
  11. pgfkeysgetvalue{/tikz/delta angle}tikz@d
  12. ifxtikz@spgfutil@empty%
  13. pgfmathsetmacrotikz@s{tikz@e-tikz@d}
  14. else
  15. ifxtikz@epgfutil@empty%
  16. pgfmathsetmacrotikz@e{tikz@s+tikz@d}
  17. fi%
  18. fi
  19. tikz@arc@moveto
  20. xdefpgf@marshal{noexpand%
  21. tikz@do@arc{tikz@s}{tikz@e}
  22. {pgfkeysvalueof{/tikz/x radius}}
  23. {pgfkeysvalueof{/tikz/y radius}}}%
  24. }%
  25. pgf@marshal%
  26. tikz@arcfinal%
  27. }
  28. lettikz@arc@movetorelax
  29. deftikz@arc@movetolineto#1{%
  30. deftikz@arc@moveto{tikz@@@parse@polar{tikz@arc@@movetolineto#1}(tikz@s:pgfkeysvalueof{/tikz/x radius} and pgfkeysvalueof{/tikz/y radius})}}
  31. deftikz@arc@@movetolineto#1#2{#1{pgfpointadd{#2}{tikz@last@position@saved}}}
  32. tikzset{%
  33. move to start/.code=tikz@arc@movetolinetopgfpathmoveto,%
  34. line to start/.code=tikz@arc@movetolinetopgfpathlineto}
  35. makeatother
  36.  
  37.  
  38. begin{document}
  39.  
  40. begin{center}
  41. begin{tikzpicture}[x radius=7cm, y radius=4cm, white, ultra thick]
  42. centering
  43. draw[fill=blue] (C) arc [line to start, start angle=90, delta angle=-180] -- cycle;
  44. draw[fill=blue!70] (C) arc [line to start, start angle=90, delta angle=180] -- cycle;
  45. draw[white, fill=blue!55, ultra thick] (-3,0.25) circle [radius=2.75];
  46. draw[white, fill=blue!45, ultra thick] (-2.5,-1) circle [radius=1.75];
  47. node at (1,4.5){huge $mathbb{R}$};
  48. node[white] at (-0.75,2.5){huge $mathbb{Q}$};
  49. node[white] at (3.75,0.25){huge $mathbb{I}$};
  50. node[white] at (-2.25,2){huge $mathbb{Z}$};
  51. node[white] at (-2.25,-0.75){huge $mathbb{N}$};
  52. end{tikzpicture}
  53. end{center}
  54.  
  55. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement