Some experiments in LaTeX that I mention in my zine, the codex.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

  1. %POLAR COORDINATES
  2. %The print template for A4 paper (portrait)
  3. %Author: Zoran Nikolic
  4. \documentclass[12pt]{article}
  5. \usepackage[margin=0.5in,paper=a4paper]{geometry} %Shrinking margins to 0.5in
  6. \usepackage[x11names]{xcolor} %Additional colors
  7. \usepackage{tikz}
  8. %%%<
  9. \usepackage{verbatim}
  10. \usepackage[active,tightpage]{preview}
  11. \PreviewEnvironment{tikzpicture}
  12. \setlength\PreviewBorder{5pt}%
  13. %%%>
  14. % Found at https://texample.net/tikz/examples/polar-coordinates-template/
  15. \begin{comment}
  16. :Title: Polar coordinates template
  17. \end{comment}
  18. \usepackage{euler} %Nicer numbers
  19. %Note about the colors:
  20. % The color of the "ray" lines should not be
  21. % black or gray as on some printers, significant
  22. % aliasing distorsion becomes visible.
  23. \begin{document}
  24. \thispagestyle{empty} %Please, no page numbers or similar
  25. \begin{center}
  26. \begin{tikzpicture}
  27. %Circles
  28. \foreach \r in {1, 2,...,7}
  29. \draw[SteelBlue3, thick] (0,0) circle (\r);
  30. \foreach \r in {0.5, 1.5,...,7}
  31. \draw[Azure4, thin] (0,0) circle (\r);
  32. %1° Rays
  33. \foreach \a in {0, 1,...,359}
  34. \draw[Azure4] (\a:7.7) -- (\a:8);
  35. %5° Rays
  36. \foreach \a in {0, 5,...,359}
  37. \draw[Azure4] (\a:7.5) -- (\a:8);
  38. %15° Rays
  39. \foreach \a in {0, 15,...,359}
  40. \draw[thick,Azure4] (\a:1) -- (\a:8);
  41. %30° Rays
  42. \foreach \a in {0, 30,...,359}
  43. \draw[thick,Azure4] (0, 0) -- (\a:8);
  44. %Radius labels (background filled white)
  45. \foreach \r in {1, 2,...,7}
  46. \draw (\r,0) node[inner sep=1pt,below=3pt,rectangle,fill=white] {$\r$};
  47. %Main rays
  48. \foreach \a in {0, 90,...,359}
  49. \draw[very thick] (0, 0) -- (\a:8);
  50. %Angle labels
  51. \foreach \a in {0, 15,...,359}
  52. \draw (\a: 8.5) node {$\a^\circ$};
  53. %Central point
  54. \draw[fill=red] (0,0) circle(0.7mm);
  55. \end{tikzpicture}
  56. \end{center}
  57. \end{document}