A Guide to Write Different Types of Dashes in LaTeX

LaTeX allows users to incorporate different types of dashes within texts. Using specific commands, you can easily generate three different lengths of dashes: hyphen (-), en dash (–), and em dash (—). This guide will walk you through the usage of these dashes and provide examples to demonstrate when and how to employ each type.

Types of Dashes

1. Short Dash or Hyphen (-) in LaTeX

LaTeX Command: The command to write a hyphen in LaTeX is -.

Usage: Employ the hyphen to link interrelated words or phrases within a sentence, promoting smoother readability.

Example:

\documentclass{article}

\begin{document}

The well-known author is hosting a book signing event.

\end{document}

Output

2. Medium Dash or En Dash (–) in LaTeX

LaTeX Command: The command to write an en dash in LaTeX is --.

Usage: Indicate a range, such as in date ranges, using the en dash to enhance clarity in your document.

Example:

\documentclass{article}

\begin{document}

The event will take place on January 15--17.

\end{document}

Output

3. Long Dash or Em Dash (—) in LaTeX

LaTeX Command: The command to write an em dash in LaTeX is ---.

Usage: Use the em dash to illustrate an expression’s extension or set off a distinct clause within your text.

Example:

\documentclass{article}

\begin{document}

The recipe calls for three main ingredients---flour, sugar, and eggs.

\end{document}

Output

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.