# Larger than or smaller than decision

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!

• Like this? \documentclass{article} \usepackage{amssymb} \begin{document} $A\gtrless B$ \end{document} – Gonzalo Medina Jan 28 '15 at 18:08
• Welcome to TeX.SX! Is Gonzalo's comment helpful? Otherwise, which symbol are you referring to that you can't find? This question might be helpful if you cannot find a particular symbol: tex.stackexchange.com/questions/14/… – Adam Liter Jan 28 '15 at 18:17
• Thank you, his answer was very helpful. I will use that link as well. Thanks! – Maria Jan 28 '15 at 18:23

One option:

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

\begin{document}

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

\end{document}


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.

• Followup to @GonzaloMedina 's answer. If F and P represent variables, keep them as they are so they are italicized and spaced properly. If they are text, use \text{FP}. (A general principle for text in equations.) – Ethan Bolker Jan 28 '15 at 18:29
• @EthanBolker I added a little remark to my answer. Thanks! – Gonzalo Medina Jan 28 '15 at 18:32