How to use pipe(|) symbol in LaTeX?

Type of symbolFunction symbol
Package (requirement)No
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.

    \[ x_n \mid \frac{1}{n} \]
    \[ \frac{a}{b} \mid x \]
    \[ mod \;\; m \mid a_i \]

Output :

Use pipe symbol in latex.

Leave a Comment

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

Scroll to Top