How to insert pipe symbol |
in TeX (LaTeX)?
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.
In math mode:
\|
is a double pipe: ||
\text{\textbar}
is a single pipe: | (requires the amsmath
package)
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.
http://www.math.toronto.edu/mathit/symbols-letter.pdf
\textpipe
or use something like \big|
when in math mode.
write: \textpipe
Here you have the handbook of latex symbols: The Comprehensive LATEX Symbol List
Undefined control sequence. l.3 \textpipe
–
Nell Using \textbar
will give the pipe symbol.
use $|$
and it the document compiles successfully & it is the best way to type pipe symbol in TeX or Latex.
© 2022 - 2024 — McMap. All rights reserved.