How to use pipe(|) symbol in LaTeX?

Symbol/UnicodePipe/U+007C
Type of symbolFunction symbol
Package (requirement)No
ArgumentNo
Latex command\mid
Example\mid → |

You can use the pipe key shift + | on the keyboard to use the pipe symbol in latex. But I would recommend using \mid command.

\documentclass{article}
\begin{document}
    \[ x_n \mid \frac{1}{n} \]
    \[ \frac{a}{b} \mid x \]
    \[ mod \;\; m \mid a_i \]
\end{document}

Output :

Use pipe symbol in latex.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top