[Tex/LaTex] How to create a “succeeds or precedes” symbol

equationsmath-modemath-operatorsrelation-symbolssymbols

Might be an obvious (or impossible) request, but does anyone know if there's an equivalent of the "less than or greater than" symbol but for "succeeds or precedes?" Thanks!

I've tried using detexify (which would just come back with the \lessgtr symbol) and looking through as many of the math symbol pdf guides as I can find. I might just be missing it, but I've tried searching a few different ways. Alternatively, if the sumbol doesn't exist, is there an easy (and at least somewhat elegant) way to force a \succ and \prec on top of each other?

Best Answer

With just primitive commands:

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

\makeatletter
\newcommand{\succprec}{\mathrel{\mathpalette\succ@prec{\succ\prec}}}
\newcommand{\precsucc}{\mathrel{\mathpalette\succ@prec{\prec\succ}}}

\newcommand{\succ@prec}[2]{\succ@@prec#1#2}
\newcommand{\succ@@prec}[3]{%
  \vcenter{\m@th\offinterlineskip
    \sbox\z@{$#1#3$}%
    \hbox{$#1#2$}\kern-0.4\ht\z@\box\z@
  }%
}
\makeatother

\begin{document}

$A\succprec B\precsucc C_{\succprec\precsucc}$

$\succ\succprec>\gtrless$

\end{document}

enter image description here