How can I write a vertical dash, that is, a pipe symbol, in LaTeX?

This question is marked "community wiki".

asked 01 Feb '20, 10:35

Community's gravatar image

accept rate: 0%

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

Pipe sign: |


enter image description here

Compare these tables to see the difference between the two font encodings: OT1 (Standard encoding) vs. T1 (Cork encoding). The OT1 table doesn't contain the pipe symbol, but it can be found in the T1 table. It's position is 7C. With OT1 7C means a wide dash, that's why we get a wide dash instead of the pipe symbol in standard encoding.

See Special LaTeX characters for some more information.

For using the command \textpipe loading a package like tipa or t4phonet is necessary.

I originally wrote this text on TeX.SE and share it here.

permanent link

answered 01 Feb '20, 10:36

stefan's gravatar image

stefan ♦♦
accept rate: 42%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Feb '20, 10:35

question was seen: 495 times

last updated: 01 Feb '20, 10:36

Related questions