The title pretty much says it all: how can I type an em-dash (—)?
Control-capital-u means Unicode, and the four-digit hexadecimal number for em dash (or any other Unicode character) can be found via the Character Map in Ubuntu ( The first option allows you to separately type the correct digits for your character, which appears upon hitting Enter or Space. You can also edit the numbers you typed using backspace before pressing Return. |
|||||||||||||||
|
|
I could not find a way to type it using AltGr and default settings, but I found another way:
[Here's a list of more characters you can type this way.] UPDATE: As of Ubuntu 12.04
|
|||||||||
|
|
|||||||||||||||
|
|
The following keyboard layouts contain the em dash:
Personally, I use Colemak, in which the em dash is AltGr+Shift+-. |
|||
|
|
|
I prefer remapping one of my lesser-used keys to an em-dash so that I don't have to type a crazy combination of keys in order to get it.
|
|||
|
|
|
To get xmodmap to run on startup in Ubuntu 12.10, Go to Dash Home. Type in Startup. Click on Startup Applications. Click Add. In the "add startup program" window, give it a name. In the command box, enter: xmodmap -e "keycode 94 = emdash ellipsis" Then, click on Add. You'll see the program name you just gave this under startup applications. Close the windows. The command will run the next time you start the computer. (I just spent a week and many hours reading these posts here and finally figured it out on my own.) This might not be the best way to do this, but it works. |
||||
|
|






