SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

TikZ (Palestra)
Quando eu dou de comer aos pobres
Me chamam de santo
Quando eu pergunto por que eles são pobres
Me chamam de comunista
Dom Helder Câmera

Angles with TiKZ

  • Angles in Degrees per Default.
  • Option to tikzpicture: \begin{tikzpicture}[trig format=rad]
  • However, problems with:
    • Some Arrows
    • \tkzMarkAngle
    • \tkzLabelAngle

Math Watch...
TiKZ Listing: Fig.tikz.tex. PDF   PNG   SVG   ZIP*  
\begin{tikzpicture}
  \tikzmath{\R=2;};
   %Sizing of canvas
  \tikzmath{\FrameSize=\R;};
   %Number positions
  \tikzmath{\NumPos=0.925*\R;};
   %Number positions
  \tikzmath{\ArrowSize=0.85*\R;};
  
   \filldraw [white]
   (\FrameSize,\FrameSize)
   --
   (-\FrameSize,\FrameSize)
   --
   (-\FrameSize,-\FrameSize)
   --
   (\FrameSize,-\FrameSize)
   -- cycle;
  
   \coordinate (O) at (0,0);

   \filldraw (O) circle(1pt);
   \foreach \n in {1,...,12}
   {
       \tikzmath{\Angle=\n*30;};
       \draw[-Latex,very thin,gray] (O) -- (\Angle:\ArrowSize);
       \draw (\Angle:\NumPos) node {\n};
   }

   \draw (O) circle(\R);
\end{tikzpicture}
Messages:
0 secs.