# Tikz pin inherited line style

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}


How can I remove the dashing on the pin arrow?

• 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

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}


• 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