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.

closed as too localized by percusse, lockstep, Mensch, Reinstate Monica - M. Schröder, Werner Mar 27 '13 at 14:04

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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 '13 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 '13 at 17:34
  • And I compile with pdflatex --shell-escape -enable-write18 $fullname – vrleboss Mar 26 '13 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 '13 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 '13 at 18:13

Browse other questions tagged or ask your own question.