# How can I write a vertical dash?

 0 How can I write a vertical dash, that is, a pipe symbol, in LaTeX? This question is marked "community wiki". asked 01 Feb, 10:35 Community 37●2 accept rate: 0%

 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: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} Pipe sign: | \end{document}  Output: 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. answered 01 Feb, 10:36 stefan ♦♦ 86●2 accept rate: 42%
 toggle preview community wiki:

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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:

×1