3

I am trying to draw a pin with a 45-degree angle. For some reason, the angle is not accepted and is seen as the pin label:

\documentclass[tikz]{standalone}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}[scale=2.54]
 \path[draw,red,name path=thresh] (0,0.4) -- (4.0,0.4);
 \path[draw,blue,name path=four] (0,0) -- (4.0,1);
 \path[name intersections={of=four and thresh,name=newfour}];
 \node[style={fill=black,circle,scale=0.3},
      pin={[pin edge={black,thick}]45:{cross}}] at (newfour-1) { };
\end{tikzpicture}
\end{document}

Here is the result: enter image description here

How can I fix this issue?

Note: My pgf version is 2.10.

12
  • 2
    Your code works correctly with pgf 2.10, as you can check it here for example (include \pgfversion command in the docuemnt to see that it has 2.10). Also here too.
    – JLDiaz
    Mar 26, 2013 at 17:31
  • The problem must be elswhere then. I am using MacTex and when including \pgfversion the resukt is 2.10 as reported.
    – vrleboss
    Mar 26, 2013 at 17:34
  • And I compile with pdflatex --shell-escape -enable-write18 $fullname
    – vrleboss
    Mar 26, 2013 at 17:36
  • Pin angles are known to snap to certain angles. There must be a long thread about that. Here it is tex.stackexchange.com/questions/43912/…
    – percusse
    Mar 26, 2013 at 17:43
  • 1
    Probably there is something wrong with your installation. That's a valid syntax provided that you are loading the calc library.
    – percusse
    Mar 26, 2013 at 18:13

0

Browse other questions tagged or ask your own question.