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 there some way for me to get long squiggly arrows of length comparable to \longrightarrow or \longmapsto in LaTeX?

share|improve this question
2  
You can make them with TikZ. See Squiggly arrows in TikZ. –  Alan Munn Feb 20 '13 at 2:44
    
How straightforward will it be to write a script for squiggly arrows that can be used inside math environment without much problems (not having to care about alignment and positioning)? If it can be straightforward, then I can try writing a command for it. –  Jayesh Badwaik Feb 20 '13 at 2:47
add comment

1 Answer

up vote 5 down vote accepted

Well, if you don't mind using Xy-pic, you can type

\documentclass[12pt]{article}
\usepackage[cmtip,all]{xy}
\newcommand{\longsquiggly}{\xymatrix{{}\ar@{~>}[r]&{}}}
\begin{document}
\thispagestyle{empty}

$X \longrightarrow Y$

$X \longmapsto Y$

$X \longsquiggly Y$

$X \xymatrix@C=1.5em{{}\ar@{~>}[r]&{}} Y$

\end{document}

and it will give you

enter image description here

share|improve this answer
    
Thanks a lot. The arrows are working really nice! –  Jayesh Badwaik Feb 26 '13 at 14:33
add comment

Your Answer

 
discard

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

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