How do I generate the | (vertical bar or pipe) symbol in LaTeX?

\usepackage{mathtools} 
\usepackage{amsmath} 
...

\(|\) 

Leave a Comment