9

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.

F'x
  • 12,105
  • 7
  • 71
  • 123
  • 4
    (1) Try this: http://tex.stackexchange.com/. (2) Try this: http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf (3) Consider learning to use Google's search. – S.Lott Dec 04 '10 at 13:23
  • 3
    Really, Google? How does it work? It seems like, well... magic! – F'x Dec 04 '10 at 13:27
  • 5
    (4) Try this: http://detexify.kirelabs.org/classify.html – moinudin Dec 04 '10 at 13:59
  • 3
    This page is now the #1 Google's search result, so the world is better off with this question asked here. – Jess Riedel Dec 02 '13 at 04:58

1 Answers1

17

\textemdash and \textendash

F'x
  • 12,105
  • 7
  • 71
  • 123