How to Write the Greater Than Symbol (>) in LaTeX
In LaTeX, you can write the greater than symbol (>) using the \textgreater
command.
The following examples show how to write the greater than symbol in LaTeX.
How to Write the Greater Than Symbol in Text
We can use the \textgreater
command to write the greater than symbol in LaTeX document for text.
Suppose we want to write the greater than symbol in the text.
We can use the following LaTeX code to do so:
\documentclass{article}
\begin{document}
This is an example of using the greater than symbol \textgreater in a sentence.
\end{document}
Output: 👇️
This is an example of using the greater than symbol > in a sentence.
In this example, we use the \textgreater
command to display the greater than symbol in the text.
How to Write the Greater Than Symbol in Mathematical Expressions
For mathematical expressions, We can use the >
symbol directly to ensure proper formatting.
Suppose we would like to write mathematical expressions that contain the greater than symbol.
We can use the following LaTeX code to do so:
\documentclass{article}
\begin{document}
An inline mathematical expression: \( a > b \).
A displayed mathematical expression:
\[
a > b
\]
\end{document}
Output: 👇️
In this example, we use the >
symbol is used directly to denote the greater than symbol in both inline and displayed mathematical expressions.
Conclusion
We can use the \textgreater
command for text and the >
symbol directly for mathematical expressions. This ensures that the greater than symbol is properly formatted and displayed in LaTeX document.