16

The command $\rightsquigarrow$ produces a funny looking arrow that points to the right. I want to get an arrow of the same style but points to the left.

One would think that $\leftsquigarrow$ will do the job, but LaTex saids it is an Undefined control sequence.

Am I missing something here? How do you get an arrow like $\rightsquigarrow$ but points to the left?

Since1996
  • 305
  • 1
    Not sure of the exact packages, but bizarrely I found myself in a situation where not only was \rightsquigarrow defined, but \leftrightsquigarrow was also defined, and yet \leftsquigarrow was not! – tcamps Jun 25 '22 at 14:10

3 Answers3

14

Here's the way, reflecting the arrow:

\documentclass{article}
\usepackage{amsmath,amssymb,graphicx}

\makeatletter
\providecommand{\leftsquigarrow}{%
  \mathrel{\mathpalette\reflect@squig\relax}%
}
\newcommand{\reflect@squig}[2]{%
  \reflectbox{$\m@th#1\rightsquigarrow$}%
}
\makeatother

\begin{document}
$A\rightsquigarrow B\leftsquigarrow C$
\end{document}

enter image description here

The \providecommand is because some math font packages may have the symbol (it is with newtxmath, for instance).

egreg
  • 1,121,712
9

mathabx also has:

enter image description here

As to MnSymbol, it has a whole tribe:

enter image description here

MdSymbol has about as many:

enter image description here

Bernard
  • 271,350
7

It is not amsmathcommand, but one can obtain it through txfonts package:

\documentclass{article}
%\usepackage{amsmath}
\usepackage{txfonts}

\begin{document}

$\leftsquigarrow$

\end{document}