Dear all,
is there anyone who knows the Latex symbol for a vector magnitude/length?
Thank you.
General ⇒ Latex symbol for vector magnitude
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Latex symbol for vector magnitude
I'm not sure whether I understand you right. A vector is normally specified by a simple command from standard LaTeX.
This puts an arrow atop r which now symbolizes a vector. Another way would be the representation of a vector drawn from an initial point A to a terminal point B. This can be done by typing
with the help of amsmath. The last point is the norm of a vector, the square root from the sum of its components. I suggest to define new commands (again with amsmath) in the preamble for an easier workflow.
Test them and you will find out what is the right one for you. Examples can be
Best Regards
Thorsten
Code: Select all
\vec{r}
Code: Select all
\overrightarrow{\text{AB}}
Code: Select all
\newcommand{\abs}[1]{\lvert#1\rvert}\newcommand{\norm}[1]{\lVert#1\rVert}
Code: Select all
\abs{\vec{r}}\norm{\vec{r}}
Best Regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Latex symbol for vector magnitude
Dear localghost,
this is exactly what I wished to hear.
Thank you.
Mattia.
this is exactly what I wished to hear.

Thank you.
Mattia.