# [Tex/LaTex] Setting two math symbols directly above each other and vertically aligned

amsmathsymbols

I am typesetting the Neyman Pearson decision rule and would like to set the greater than > and smaller than < symbols directly above each other. I tried \overset but that doesn't align the resulting two symbols vertically to the middle.

Of course, there's always \gtrless from

\usepackage{amssymb}% http://ctan.org/pkg/amssymb


If you're not up for using packages, you could rather "overset" the symbols yourself:

\documentclass{article}
\newcommand{\npsym}{%
\mathrel{\ooalign{\raisebox{.6ex}{$>$}\cr\raisebox{-.6ex}{$<$}}}
}
\begin{document}
Here is some text. Here is some text. Here is some text. Here is some text.
See, for example, $x\npsym y$. Here is some text. Here is some text. Here is some text.
Here is some text. Here is some text. Here is some text. Here is some text.
\end{document}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​


See \subseteq + \circ as a single symbol (“open subset”) for a short course in \ooalign.