How to write a norm symbol in LaTeX

How to write a norm symbol in LaTeX

This post may contain affiliate links that allow us to earn a commission at no expense to you. Learn more

This article aims to show you a simple way to create a norm symbol in LaTeX.

Coming back to vectors once again, we have the norm of the vectors used in physics and mathematics. And as you probably already know, you need the vertical lines to denote the norm of vectors. 

Today you are going to learn how to write these lines to generate the norm of a vector in LaTeX.

Norm Symbol

The norm usually denotes the length of the vectors, but depending on the context can have more or fewer meanings. For example

    $$||\vec{\mathbf{r}}|| \,
    \lVert\vec{a}\rVert \,
norm symbol in LaTeX
Three different ways to write the symbol

Write Norm Symbol in LaTeX

There are a couple of options to create the symbol in LaTeX, all of them are built-in but can have some limitations. The first option is to use double vertical bars “|”, for example

norm symbol in LaTeX
Definition of norm for a vector

The second option is to use the commands \lVert (left) and \rVert (right). Each one of these creates the double vertical bars, what you want to be inside the double bars must be in the middle of the two commands. One variation of this method is to use the command \Vert on both sides. For example

    $$\lVert\vec{ab}\rVert=\sqrt{(b_1-a_1)^2 + (b_2-a_2)^2}$$
    $$\Vert \sum_{i=1}^{n}x_{i} \Vert$$
norm symbol in LaTeX
\Vert, \lVert and \rVert output

The last option without packages is to use the “command” \|, backslash follow by the vertical bar, for example

norm symbol in LaTeX
\| command

The limitation is clear, the double bars do not size correctly if you have a fraction or the expression has some height. To avoid the limitation you can use two commands right before any of the commands above, the commands are \left and \right, for example

\begin{document}    % \Vert command
    $$\left\Vert \sum_{i=1}^{n}\dfrac{x_{i}}{x_{i}+5} \right\Vert$$    % \lVert and \rVert command
    $$\left\lVert\dfrac{x^4+7x+3}{x+4}\right\lVert$$    % \| command
norm symbol in LaTeX
\left and \right solved the problem

Norm with a package

If you think that to write the norm symbol you have to type a lot, you are not alone. Luckily there are some packages that make writing the norm symbol easier, and practical in terms or legibility of the LaTex code and in terms of time saving.

The main package presented is the physics package, the command to the norm symbol is \norm and besides giving you the entire symbol in one call, it also adjusts to the value given as argument. For example

    $$\norm{2\int_{0}^{\infty}e^{-x^{2}}dx}\leq 0$$
norm symbol in LaTeX
physics package output

Which way you approach the norm symbol is up to you, you can first try without the package and then with the package, or search for other packages out there. Remember that LaTeX is to make life easier, not complicated.

I hope this post was helpful to you, and as always keep writing in LaTeX.

Further Reading

LaTex Tutorial on Symbols

  1. How To Create A Cross Product Symbol In LaTeX
  2. How to create a hat symbol in LaTeX?
  3. How to create a prime symbol in LaTeX?
  4. How to create an absolute value symbol in LaTeX?
  5. How to create an approximate symbol in LaTeX?
  6. How to create an intersection symbol in LaTeX?
  7. How to create the empty set symbol in LaTeX?
  8. How to write a degree symbol in LaTeX?
  9. How to write a dot product in LaTeX?
  10. How to Write a Greater Than Symbol in LaTeX?
  11. How to write A Plus-Minus Symbol in LaTeX
  12. How to write a proportional to symbol in LaTeX?
  13. How to write a real number symbol in LaTeX?
  14. How to write a tilde symbol in LaTeX?
  15. How to write a union symbol in LaTeX?
  16. How to write a vector in LaTeX?
  17. How to write an infinity symbol in LaTeX?
  18. How to write bold text in LaTeX?
  19. How To Write Dots Symbols In LaTeX?
  20. How to write the arrow symbols in LaTeX
  21. How to write the Degree celsius symbol in LaTeX?
  22. How to write the equal or not equal symbol in LaTeX?
  23. How to write the Euro symbol in LaTeX?
  24. How to write the floor symbol in LaTeX?
  25. How to write the gradient operator symbol in LaTeX
  26. How To Write The Greater Than Or Equal To Symbol In LaTeX?
  27. How to write the integer number symbol in LaTeX?
  28. How to write the less than symbol in LaTeX?
  29. How to write the Natural numbers symbol in LaTeX?
  30. How to write the parallel symbol in LaTeX?
  31. How to write the percent symbol in LaTeX?
  32. How to write the square root symbol in LaTeX?
  33. How To Write The Symbol For A Subset In LaTeX?
  34. How to write the symbol for therefore in LaTeX?
  35. How to write with the mathbb in LaTeX?

Photo of author
Joannah W.
Joannah has been a science publisher with close to 20 years of experience. She wants to help students and researchers stay ahead of the trends and developments in the science community by making science more accessible to everyone.

Leave a Comment