How to Write the Ray (Half-line) Symbol (↞) in LaTeX
In LaTeX, you can write the ray (half-line) symbol (↞) using the \twoheadleftarrow
command. This command is part of the amssymb
package, so you need to include this package in LaTeX document.
The following examples show how to write the ray (half-line) symbol in LaTeX.
How to Write the Ray (Half-line) Symbol in Text
We can use the \twoheadleftarrow
command to write the ray (half-line) symbol in LaTeX document for text.
Suppose we want to write the ray (half-line) symbol in the text.
We can use the following LaTeX code to do so:
\documentclass{article}
\usepackage{amssymb}
\begin{document}
This is an example of using the ray (half-line) symbol \( \twoheadleftarrow \) in a sentence.
\end{document}
Output: 👇️
This is an example of using the ray (half-line) symbol ↞ in a sentence.
In this example, we use the \twoheadleftarrow
command to display the ray (half-line) symbol in the text.
How to Write the Ray (Half-line) Symbol in Mathematical Expressions
For mathematical expressions, We can use the \twoheadleftarrow
command to ensure proper formatting.
Suppose we would like to write mathematical expressions that contain the ray (half-line) symbol.
We can use the following LaTeX code to do so:
\documentclass{article}
\usepackage{amssymb}
\begin{document}
An inline mathematical expression: \( \twoheadleftarrow \).
A displayed mathematical expression:
\[
\twoheadleftarrow
\]
\end{document}
Output: 👇️
In this example, we use the \twoheadleftarrow
command to denote the ray (half-line) symbol in both inline and displayed mathematical expressions.
Conclusion
We can use the \twoheadleftarrow
command from the amssymb
package for both text and mathematical expressions. This ensures that the ray (half-line) symbol is properly formatted and displayed in LaTeX document.