diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-10-12 20:30:27 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-10-12 20:30:27 +0200 |
commit | cf73f8509ae8f801e24d312c5bb582dc31addc11 (patch) | |
tree | 9521700edc11be6ec1920a5cc020d9413a59abe2 | |
parent | 7f2dc088d9f0a6a82ad254ad5457f70fed222036 (diff) |
Add optional angle argument to \hoekje
-rw-r--r-- | giraf.sty | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -59,11 +59,14 @@ \\% } -\newcommand\hoekje{% +\newcommand\hoekje[1][90]{% \raisebox{-0.5pt}{% \begin{tikzpicture}[scale=0.25] - \draw [line cap=round] (0,1) -- (0,0) -- (1,0); - \draw[black,fill=black] (0.3,0.3) circle [radius=0.15]; + \def\ang{(#1)} + \def\dotdist{(2/(\ang/6+3)+0.3)} + \def\dotscale{((0.15-0.5/(\ang/15+0.5/0.15))*(\ang>19))} + \draw [line cap=round] ({cos(\ang)},{sin(\ang)}) -- (0,0) -- (1,0); + \draw [black,fill=black] ({\dotdist * cos(\ang/2)},{\dotdist * sin(\ang/2)}) circle [radius=\dotscale]; \end{tikzpicture}% }% } |