\textemdash em dash (—) in LaTeX

Command\textemdash
Modetext
Packagenone, part of LaTeX
Unicode— U+2014
KindText symbols and special characters

\textemdash typesets the symbol “em dash” (—). It is a text symbol.

Example

\documentclass{article}
\begin{document}
wait\textemdash what?
\end{document}

Open in the editor

Compiled with pdfLaTeX from TeX Live 2023.

How to use it

\textemdash is a command for normal text. The command is part of LaTeX; you need no package.

Three hyphens --- give the same dash; see Hyphen, en dash and em dash in LaTeX.

About text symbols and special characters

Ten characters have a job in LaTeX source and do not print when typed alone: # $ % & _ { } ~ ^ \. Seven of them print with a backslash in front; tilde, caret and backslash need a longer command. Most other characters, such as €, § or ß, can be typed directly in a UTF-8 file.

More text symbols and special characters

All text symbols and special characters