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.
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.
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.
To create an Em dash, use the shortcut key combination Ctrl + Alt + - . To create an En dash, use the shortcut key combination Ctrl + - .
\textemdash
and \textendash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With