Say I have an arrow leading pointing from one node to another node under TikZ. Is there a way to highlight this arrow?

I'm looking for a result that looks (more or less) as though I've printed a diagram and used a highlighter marker to accentuation an arrow. Preferably, only the arrow would be highlighted.

  • 6
    Could you provide the code showing the diagram you developed? This would help a lot people that want to answer you. :) – Claudio Fiandrino Sep 19 '12 at 16:28
up vote 9 down vote accepted

You can put a double line(or a thick line) behind your path

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[ultra thick,-latex, %Regular stuff
preaction={%But before that
draw,yellow,-,% Draw yellow without any arrow head
double=yellow,
double distance=2\pgflinewidth,
}] (0,0) to[bend right] (2cm,2cm);
\end{tikzpicture}
\end{document}

enter image description here

  • This is exactly what I was looking for! – Chernoff Sep 19 '12 at 18:23

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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