Text Formattingautomatic formating - dashes

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
hbs
Posts: 1
Joined: Thu Sep 06, 2012 4:50 am

automatic formating - dashes

Post by hbs »

I want to write three short dashes ---, but Latex automaticaly change it to one long dash (em-dash). Any idea how to override that so I can get my three figure dashes instead?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

automatic formating - dashes

Post by Stefan Kottwitz »

Hi hbs,

Welcome to the board!

To prevent that TeX produces this ligature, you could insert braces, such as

Code: Select all

-{}-{}-
Or a bit shorter, enclose the middle on in braces:

Code: Select all

-{-}-
If you need it more than just one time, I recommend to define a macro for it.

Stefan
LaTeX.org admin
Post Reply