Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What LaTeX command creates an emdash?

I know I can create an em-dash with --- (and an en-dash with --). However, I want to use these glyphs in my Unicode setup, and trying it as follows:

\DeclareUnicodeCharacter{2012}{--}
\DeclareUnicodeCharacter{2013}{--}
\DeclareUnicodeCharacter{2014}{---}

simply yields series of two or three dashes in the output. What should I use instead? I tried \endash and \ndash, but those are not known commands.

like image 449
F'x Avatar asked Dec 04 '10 13:12

F'x


People also ask

How do you add em dash?

Make an em dash or en dash with a keyboard shortcut less simple: you need to use an alt code to get an em dash. If you have a numeric keyboard, hold down the Alt key and type 0151 for an em dash or 0150 for an en dash.

How do you type a dash?

For Windows on a keyboard with a numeric keypad: Use Alt + 0 1 5 0 (en dash) or Alt + 0 1 5 1 (em dash) using the numeric keypad.

How do you make an em dash copy?

To create an Em dash, use the shortcut key combination Ctrl + Alt + - . To create an En dash, use the shortcut key combination Ctrl + - .


1 Answers

\textemdash and \textendash

like image 135
F'x Avatar answered Sep 19 '22 15:09

F'x