[Tex/LaTex] Larger than or smaller than decision

symbols

This is my first time using Latex, is there a way to write an equation like this??

I can't find that symbol. Thank you very much!

Best Answer

One option:

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

\begin{document}

$\Lambda(x)\underset{FP}{\overset{TP}{\gtrless}} T^{\ast}$

\end{document}

enter image description here

Of course, define a command:

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

\newcommand\gldec[2]{
\underset{#1}{\overset{#2}{\gtrless}}
}

\begin{document}

$\Lambda(x)\gldec{FP}{TP} T^{\ast}$

\end{document}

Or (should "FP" and "TP" be fixed):

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

\newcommand\gldec{
\underset{FP}{\overset{TP}{\gtrless}}
}

\begin{document}

$\Lambda(x)\gldec T^{\ast}$

\end{document}

I'm not sure of the font that should be used for "FP" and "TP", but that is up to their meaning; is they should be treated like text, then \text{FP} and \text{TP} should be used.

Related Question