An em dash is the nice long one that you insert between thoughts.
Methods for creating them vary from one word processor to another. To create them in OpenOffice.org Writer, I recommend that you use the Autocorrect window. Choose Tools > AutoCorrect, Options tab. Select both checkboxes next to Replace Dashes. (Aside from the first option in the window, this is pretty much the only selection in the Options tab that I recommend.)
How does it work? It takes two regular hyphens that you type using the keyboard and turns'em into an em dash.
So you type this, using the - key that for me is to the right of the zero and left of the = and +.
and then you type the next word (still no change, it's still two hyphens from the keyboard)
but then when you press the spacebar, the substitution happens.
At this point you can copy and paste the em dash anywhere you want, or just keep using the -- approach.
Now, if you want to type something else, like any of these things
you'll want to use the Replacement tab of the same window. I cover that info as well as another approach to longer-text shortcuts here, but here's the basic set of steps.
NOTE: If you want to insert the Em dash using the Special Characters window, with or without the corresponding shortcut, you can find it in the General Punctuation section of the Special Characters window.
1. Choose Insert > Special Characters and find the symbol you want. This can take a while since there are a zillion but scroll around, change the selections in the dropdown lists at the top, and you'll find what you want. Select it in the window and click OK.
2. The symbol will appear in your Writer document. Select it and copy it.
3. Choose Tools > AutoCorrect and click the Replace tab.
4. In the left field type one or more letters that are NOT a word (i.e. you won't be typing them on their own to appear as is) and in the right field paste the symbol.
5. Click New. (The New button will then change to display the word "Replace".) The substitution will appear in the list.
6. Click OK.
7. Now in your document when you want the symbol, type the shortcut that you specified
followed by a space. When you type the space, the substitution will happen.
If it doesn't happen, choose Tools > AutoCorrect, Options tab and be sure that the Use Replacement Table option at the top of the list is marked, with both checkboxes. If it's not, mark both checkboxes and click OK. Then type your shortcut again and a space, and the substitution will work.
The technique works as described, but I've encountered a problem when using the auto-correct technique immediately after closing quotes or closing parenthesis. In short the auto-correct insertion doesn't work when immediately following these other symbols. Is there a way to change the auto-correct behavior so it works in these situations or has anyone created an alternative keystroke sequence, like in MS Word, where you can use Ctrl + Shift + - (number pad minus sign) to insert an em dash whenever and wherever you want?
Posted by: Bill | May 30, 2008 at 08:15 AM
The AutoCorrect feature replacing two hyphens with an em-dash is OK. However, it does have some disadvantages. For various reasons, some writers and editors - even in the Anglo-Saxon world - prefer adding a single space before and after the em-dash (and not only in the case of en-dash), but the AutoCorrect function works only if spaces are not added. Moreover, I cannot add an em-dash at the end of a line with the double-hyphen method. Take a look at Laurence Sterne's Tristram Shandy to see all kinds of functions that a dahs may have in creative writing. Or Emily Dickinson's poetry, for that matter (the modern critical edition, in which the manuscripts' idiosyncratic typography has been preserved, as it should be).
Posted by: Pajari R. | September 19, 2008 at 02:25 AM
Sorry, but autocorrect is just not acceptable. Writers and editors need to be able to use key combinations to produce the characters they want -- and only when they want them. Auto-anything is both too clunky and too vulnerable to mistaken "corrections." There are pages and pages of argument on the OpenOffice forums about how to get real curved quotes and em dashes, but most replies don't understand that no serious user is going to stop to enter Unicode (using multiple keystrokes inthe process) and if there's a solution to how to get these marks with simple key combos, the answer is buried too far into the thread for anyone to find it. Can't anyone come up with a solution?
Posted by: Tom Prete | January 12, 2009 at 04:44 PM
*****
I must SHOUT loud and clear that using auto-correct is just not acceptable to use special characters such as the em and en dashes! Serious writers and editors need to be able to use KEY COMBINATIONS to instantly produce the special characters they need.
"Auto"-anything (or Insert>Special Characters>then hunt-and-peck for the special characters you want to use)is way too s-l-o-w and involved! Also, no serious writer/editor will take the time to stop to enter Unicode (using multiple keystrokes in the process to access these special characters).
For example, MS Word, where you can use Ctrl + Shift + - to insert an em-dash whenever and wherever you want. Why can't this be used in OOo?
We have some of the best minds on the Internet using OOo. Can't anyone come up with a viable solution? Perhaps this can be fixed in the next update of OOo?
lwc
*****
Posted by: Lloyd | March 19, 2009 at 10:03 AM
I agree with the other comments -- I want a way to insert em-dashes using a simple key stroke! In Word, I had assigned the keystroke to CTRL + D, and I am struggling with how to do that effectively in OOo.
Posted by: Winn | June 02, 2009 at 06:32 PM
It is easy to assign anything you want to a keystroke via macros. If you want to assign a dash to a keystroke:
1) Tools / Macros / Record Macro
2) Insert / Special Character (insert the character you want; in this case a dash)
3) Click on "stop recording", and give the macro a meaningful name ("dash" for example)
Now you have recorded the insertion of a dash as a macro, it is simply a matter of attaching this macro to a keystroke:
4) Tools / Customise / (select the "keyboard" tab)
5) Select the key combination to which you want to assign the dash in the top pane
6) In the bottom (left) pane, browse through "Openoffice.org Macros" until you find your macro, and select it
7) Click on "modify", and "OK"
It only looks like a lot of steps because I have spelled out every detail: it is really very easy. In any application that you use a lot, it is worth learning how to create and use macros: you can have a single keystroke perform very complex tasks for you, which can save you a lot of time; or, as in this example, a macro can be as simple as the insertion of a single character.
Posted by: Simon | January 25, 2010 at 04:49 PM
This is awful. I hate auto-correct. What is the manual procedure?
Posted by: adfadf | July 03, 2010 at 03:37 AM
Hi adfadf,
You can insert the em dash under Insert > Special Characters; it's in the General Punctuation section. I've added a screen shot to the blog.
Posted by: Solveig | July 05, 2010 at 12:56 PM