LaTeX is a powerful tool for creating scientific and technical documents. One element about working with such documents is the use of various types of arrows.
In this quick guide, we shall discuss various types of arrows and how you can use them in your LaTeX documents.
Types of LaTeX Arrows
LaTeX supports the following types of arrows.
- Single line left arrow
- Single line right arrow
- Double line left arrow
- Double line right arrow
- Single line up arrow
- Single line down arrow
- Double line up arrow
- Double line down arrow
- Maps to arrow
- Long maps to arrow
- Ne arrow
- Se arrow
- Left harpoon up
- Right harpoon up
- Left harpoon down
- Right harpoon down
- Nw arrow
- Left right arrow
- Up down arrow
LaTeX Arrow Commands
The following are the commands you can use to create arrows in LaTeX documents.
Arrow type | Respective Command |
Single line left arrow | leftarrow |
Single line right arrow | rightarrow |
Double line left arrow | Leftarrow |
Double line right arrow | Rightarrow |
Single line up arrow | uparrow |
Single line down arrow | downarrow |
Double line up arrow | Uparrow |
Double line down arrow | Downarrow |
Maps to arrow | mapsto |
Long maps to arrow | longmapsto |
Ne arrow | nearrow |
Se arrow | searrow |
Left harpoon up | leftharpoonup |
Right harpoon up | rightharpoonup |
Nw arrow | nwarrow |
Left right arrow | Leftrightarrow |
Up down arrow | Updownarrow |
The following code shows all the arrows mentioned above.
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
begin{document}
$
leftarrow \
rightarrow \
Leftarrow \
Rightarrow \
uparrow \
downarrow \
Uparrow \
Downarrow \
Leftrightarrow \
Updownarrow \
mapsto \
longmapsto \
nearrow \
searrow \
swarrow \
nwarrow \
leftharpoonup \
rightharpoonup \
leftharpoondown \
rightharpoondown \
$
end{document
}
<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/07/echo/word-image-264.png" data-lazy- height="751" src="data:image/svg xml,” width=”319″>
Conclusion
LaTeX provides us with powerful and easy-to-use shortcuts for creating symbols and arrows. To learn more, consider the LaTeX documentation.
About the author
<img alt="" data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/07/echo/john-150×150.png60f5adfab15fd.jpg" height="112" src="data:image/svg xml,” width=”112″>
John Otieno
My name is John and am a fellow geek like you. I am passionate about all things computers from Hardware, Operating systems to Programming. My dream is to share my knowledge with the world and help out fellow geeks. Follow my content by subscribing to LinuxHint mailing list