\| double vertical bar (‖) in LaTeX
| Command | \| |
|---|---|
| Mode | math |
| Package | none, part of LaTeX |
| Unicode | ‖ U+2016 |
| Kind | Brackets and delimiters |
| Also called | norm, parallel bars |
\| typesets the symbol “double vertical bar” (‖). It is a delimiter.
Try it
Open this formula in the editor The preview is drawn in your browser by KaTeX, which knows the common math commands. The editor compiles the formula with pdfTeX.
Example
\documentclass{article}
\begin{document}
\( \| v \| \)
\end{document}Compiled with pdfLaTeX from TeX Live 2023.
How to use it
\| works only in math mode. In running text, put it between $...$ or \(...\). Outside math mode LaTeX stops with Missing $ inserted. The command is part of LaTeX; you need no package.
About brackets and delimiters
Delimiters enclose an expression. Put \left before the opening one and \right before the closing one and both grow to the height of the content. \big, \Big, \bigg and \Bigg set a fixed size instead.