10

I'm trying to get an arrow that has an arrow head pointing north east and south west, so like \updownarrow but rotated. I can't seem to find this in LaTeX at all. It has to go inside an equation environment.

Any ideas?

2
  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Commented Nov 14, 2013 at 15:46
  • Considering \neswarrow is in the MnSymbol package, and can be found in the Comprehensive Symbol list this is a duplicate of tex.stackexchange.com/questions/14/…
    – masu
    Commented Nov 14, 2013 at 16:04

3 Answers 3

20

The powerful \ooalign wins; TeX is able to figure out the widths itself.

\documentclass{article}
\usepackage{amsmath}

\DeclareRobustCommand{\neswarrow}{%
  \mathrel{\text{\ooalign{$\swarrow$\cr$\nearrow$}}}%
}

\begin{document}

$a\neswarrow b_{\neswarrow}$

\end{document}

enter image description here

See \subseteq + \circ as a single symbol ("open subset") for more information about \ooalign.

3
  • Good name for it. The same name that the MnSymbol package has. :)
    – masu
    Commented Nov 14, 2013 at 16:01
  • @masu I just thought that usually North is mentioned before South.
    – egreg
    Commented Nov 14, 2013 at 16:03
  • actually, such an arrow does exist in unicode, as U+2922, so it's in the stix and xits fonts, but that isn't documented very well yet, certainly not in the comprehensive symbols list or in detexify. and the shapes of those arrowheads are most likely not sufficiently similar to most other arrowheads that this arrow from one of those fonts wouldn't look out of place. Commented Nov 14, 2013 at 22:28
6

It is not a perfect solution, but maybe it is enough:

\documentclass{article}

\usepackage{amsmath,amsfonts}

\begin{document}


\newlength\nesw
\settowidth{\nesw}{$\nearrow$}
\def\neswarrow{\nearrow\hspace{-\nesw}\swarrow}

\[
\neswarrow
\]
\end{document}

enter image description here

2
  • Thank you! That worked a treat! I can't believe that isn't a standard arrow given the plethora of other arrow choices that are standard.
    – Joe
    Commented Nov 14, 2013 at 15:58
  • @user2933038 There are thousands of "standard" symbols. You usually need less than one hundred. Loading all of them would be quite in-efficient, not speaking about problems with name clashes.
    – yo'
    Commented Nov 15, 2013 at 11:25
2

This is ⤢ (U+2922) in Unicode and \neswarrow in stix and stix2. To use it in unicode-math, load the symbol from either XITS Math or STIX Two Math, e.g.:

\documentclass{article}
\usepackage{unicode-math}

\setmathfont{Latin Modern Math}
\setmathfont[range=\neswarrow, Scale=MatchUppercase]{STIX Two Math}

\pagestyle{empty}

\begin{document}
\[ \neswarrow \]
\end{document}

STIX Two sample

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .