7

Consider the following MWE

\documentclass[a4paper]{memoir}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[loosely dashed] (0,0) -- (3,0)
  node[pin={[pin edge={red,<-}]below:$a$}] {};
\end{tikzpicture}
\end{document}

enter image description here

How can I remove the dashing on the pin arrow?

5
  • With node[pin={[pin edge={red,->}]below:$a$}] {};. i.e. with add solid into pin parameters. And your image is not generated with your code, direction of pin arrow is opposite ... – Zarko Sep 25 '15 at 8:42
  • @Zarko: there are sooo many tikz options and the index is not easy to go through. solid works, thanks. I've update the code to match the picture – daleif Sep 25 '15 at 8:46
  • you can add it as an answer if you want – daleif Sep 25 '15 at 8:46
  • In my country people say (literally translated) "devil is in details". I have many tima similar problems :-) – Zarko Sep 25 '15 at 8:48
  • I've edited your answer, as I've already updated my original code to the direction of the arrow is correct – daleif Sep 25 '15 at 8:51
7

With node[pin={[pin edge={red,->}]below:$a$}] {}; i.e. with add solid into pin parameters.

\documentclass[a4paper]{memoir}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[loosely dashed] (0,0) -- (3,0)
  node[pin={[pin edge={red,solid,<-}]below:$a$}] {};
\end{tikzpicture}
\end{document}

enter image description here

1
  • I have to admit I find the pin syntax particularly ugly... way too many special characters required for too little functionality. – jhin Sep 18 '18 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.