Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to get a path in tikz that looks like \rightsquigarrow?

share|improve this question
add comment

1 Answer

up vote 12 down vote accepted

It is possible, indeed. You can use the decorations.pathmorphing library for this, which allows very fine control over how your paths look:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\usepackage{amssymb}

\begin{document}
$\rightsquigarrow$

\tikz \draw [->,
line join=round,
decorate, decoration={
    zigzag,
    segment length=4,
    amplitude=.9,post=lineto,
    post length=2pt
}]  (0,0) -- (0.3,0);
\end{document}

rightsquigarrow and tikz equivalent

share|improve this answer
2  
Thanks! The things one can do in tikz never cease to amaze me. –  user3980 Mar 4 '11 at 21:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.