tags:

views:

68

answers:

3

How to insert pipe symbol | in TeX (LaTeX)?

+3  A: 

write: \textpipe

Here you have the handbook of latex symbols: The Comprehensive LATEX Symbol List

Jarek Waliszko
simple document fails with error `Undefined control sequence. l.3 \textpipe`
avsej
\textpipe requires loading a package, for instance tipa or t4phonet.
Stefan
A: 

http://www.math.toronto.edu/mathit/symbols-letter.pdf

\textpipe or use something like \big| when in math mode.

polemon
+1  A: 

The pipe symbol may be used directly in the input and will produce the desired output if you use T1 font encoding. For example:

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
Pipe sign: |
\end{document}

See Special LaTeX characters for such an example with its output and more information.

Update: since the question has been posted to tex.stackexchange.com as well, this answer has been copied there.

Stefan