9

How can I type an en dash?

On OS X, I can type Alt + - (hyphen). On Windows, I can type Alt+0150.

If you're not familiar with the different types of dashes, you can read about them here.

Pablo Bianchi
  • 15,657

3 Answers3

12

You have to press Ctrl + Shift + u (for Unicode characters) then add the respective hexadecimal number of your symbol, which you can get from the Character Map (gucharmap) and press enter. In your case this would be 2013 or 2010.

Pablo Bianchi
  • 15,657
5

Compose+--. is the fastest way.

Kev
  • 101
  • 1
  • 5
1

As the community wiki says

Compose+--. is the fastest way.

NOTE: That is Compose + - (a hyphen keypress), a second press of that same key, and a . (period keypress), all in close succession.

But for those wondering what a "Compose key" is, it's a key not found on many modern American keyboards ... but that doesn't mean you're out of luck. You can enable a "Compose" key using your OS variant's keyboard tool.

For instance, in Linux Mint you would go to keyboard settings (or "preferences"), click the Layout tab, click the Options button, and then use Position of Compose Key option to set which key on your keyboard you want to use.

I picked the right Windows key on my keyboard, and from that point on I could press that key, and then the hyphen key three times, to generate an em dash, or that key, a period, and two hyphens to generate an en dash.

  • As LM is not Ubuntu, I don't see the merit to this answer. Keyboard Preferences GUIs are different from distro to distro. – mikewhatever Sep 25 '20 at 08:10
  • 1
    Ubuntu has an equivalent dialog, but you may have to sudo apt install gnome-tweak-tool first. – machineghost Sep 25 '20 at 22:46
  • I use caps lock as my compose key. After all, how often do we really need to TYPE IN ALL CAPS nowadays? Well, for me, less often than I need to use the compose key. :) – Kev Feb 27 '24 at 11:21