Wide Vector in LaTeX (\overrightarrow{AB})
- LaTeX command
\overrightarrow{AB}- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Stretches a right-pointing arrow over its argument, the standard notation for a vector from A to B.
Geometry and vector algebra use \overrightarrow{AB} for the vector from point A to point B, giving identities such as \overrightarrow{AB} + \overrightarrow{BC} = \overrightarrow{AC}. The arrow widens to match the content, unlike \vec, which only fits one letter. In category theory and functional analysis it sometimes marks a direction of a limit or a directed set. The arrow is drawn at full arrow height, so it adds noticeable vertical space; in inline text with tight leading consider \vec{v} or bold letters. Use \overleftarrow for the reverse direction.
Also listed under: الهندسة
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Wide Vector: $\overrightarrow{AB}$
\[ \overrightarrow{AB} + \overrightarrow{BC} = \overrightarrow{AC} \]
\end{document}Related symbols
- Left Vector
\overleftarrow{AB} - Vector Arrow
\vec{x} - Line Arrow (over AB)
\overleftrightarrow{AB} - Underline
\underline{xyz} - Acute
\acute{x} - Overline
\overline{xyz}
Frequently asked questions
- How do I write Wide Vector in LaTeX?
- Type \overrightarrow{AB} in math mode, for example $\overrightarrow{AB} + \overrightarrow{BC} = \overrightarrow{AC}$. It works in plain LaTeX without loading any package.
- Which package do I need for \overrightarrow{AB}?
- None. \overrightarrow{AB} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \overrightarrow{AB} in text mode, or only in math mode?
- Both. \overrightarrow{AB} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث