LaTeX Less or Greater () - Complete Guide

The less or greater symbol (≶) indicates ambiguous order.

Symbol Preview

Less or Greater

LaTeX Code

Requires: \usepackage{cmd.package}

Recommended
\lessgtr

Less or greater than

What is the LaTeX Less or Greater?

Used when the order relationship is ambiguous or context-dependent.

How to Use Less or Greater in LaTeX

Method 1: Using \lessgtr

⚠️Required Package:

\usepackage{cmd.package}

Less or greater than

Example: Using \lessgtr

latex
\documentclass{article}
\usepackage{amssymb}
\begin{document}

% Using the Less or Greater
Text with \lessgtr

\end{document}

Common Use Cases

The Less or Greater symbol is commonly used in the following contexts:

Ambiguous Order

Relationship depends on context.

Code

$a \lessgtr b$

Output

a ≶ b

Complete Examples

Ambiguous Comparison

Less or greater notation

latex
\documentclass{article}
\usepackage{amssymb}
\begin{document}

Depending on parameters, $x \lessgtr y$.

\end{document}

Frequently Asked Questions

Which method should I use?

We recommend using the method marked as "Recommended" above. However, the best method depends on your specific needs:

  • \lessgtr: Less or greater than

Where do I use this symbol?

This symbol can be used:

  • In mathematical equations (math mode)
  • In regular text (if using text mode)
  • In various document environments

Can I use this in display mode?

Yes, symbols that work in math mode (between $ $) also work in display mode (between $$ $$). This allows you to display the symbol on its own line with larger formatting.

🔗 Related Symbols You May Need

View all symbols →

🎯 Need to Convert PDF to LaTeX?

Our free PDF to LaTeX converter preserves all mathematical symbols and formatting.

Fast & accurate

Preserves symbols

Free online

No registration

Try Converter Now →