I would like to put (any) two symbols on top of each other. With \overset the one on top is smaller. However, I want them to appear vertically centered and of equal size. How can this be done? Obviously, the following is quite a bad hack:
\documentclass{scrartcl}
\usepackage{amsmath}
\newcommand*{\ou}[2]{\overset{\text{\large ${#1}$}}{#2}}
\begin{document}
$a\ou{>}{<}0$ or $a\raisebox{-3pt}{\,$\ou{>}{<}$\,}0$ or $a\,{>\atop <}\,0$
\end{document}
\atop is not too bad, but a) how can I bring the symbols (vertically) closer to each other and b) how can this be defined as a command which takes care of the spacing around operators (\,)?



<and>is\gtrless,\lessgtr,\lesseqgtr,\gtreqless. – Martin Thoma Jun 22 '15 at 18:57