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