Difference between revisions of "Documentation/AOO4 User Guides/Writer Guide/Working With Text/Inserting special characters/Inserting en and em dashes"
From Apache OpenOffice Wiki
< Documentation | AOO4 User Guides/Writer Guide | Working With Text | Inserting special characters
| Line 42: | Line 42: | ||
; | ; | ||
| − | : Hold down one of the '''''Alt''''' keys and type on the numeric keypad: 0150 for an en dash or 0151 for an em dash. The dash appears when you release the '''''Alt''''' key. | + | : Hold down one of the '''''Alt''''' keys and type on the ''numeric keypad'': 0150 for an en dash or 0151 for an em dash. The dash appears when you release the '''''Alt''''' key. |
;Linux | ;Linux | ||
: Hold down the '''''Compose''''' key and type two hyphens and a period for an en dash, or three hyphens for an em dash. The dash appears when you release the '''''Compose''''' key. | : Hold down the '''''Compose''''' key and type two hyphens and a period for an en dash, or three hyphens for an em dash. The dash appears when you release the '''''Compose''''' key. | ||
Revision as of 08:56, 16 September 2025
- Introduction
- Selecting Text
- Cutting, Copying, and Pasting Text
- Finding and Replacing Text
- Inserting Special Characters
- Formatting Paragraphs
- Formatting Characters
- Autoformatting
- Creating Numbered or Bulleted Lists
- Using Footnotes and Endnotes
- Checking Spelling and Grammar
- Using Built-in Language Tools
- Using Synonyms and the Thesaurus
- Hyphenating Words
- Using AutoCorrect
- Using AutoText
- Line Numbering
- Tracking Changes to a Document
- Adding Other Comments
- Linking to Another Part of a Document
- Switching Between Insert and Overwrite Mode
- Counting the Words in a Selection
- Changing the Case of Selected Text
Inserting en and em Dashes
To enter en and em dashes, you can use the Replace dashes option under Tools > AutoCorrect Options (Figure 16). This option replaces two hyphens, under certain conditions, with the corresponding dash.
In the following table, the A and B represent text consisting of letters A to z or digits 0 to 9.
Another means of inserting en or em dashes is through the Insert > Special Characters menu. Select the U+2013 or U+2014 character, respectively. A third method uses keyboard shortcuts. These shortcuts vary depending on your operating system.
| Text that you type: | Result |
|---|---|
| A - B (A, space, minus, space, B) | A – B (A, space, en-dash, space, B) |
| A -- B (A, space, minus, minus, space, B) | A – B (A, space, en-dash, space, B) |
| A-B (A, minus, B) | A—B (A, em-dash, B) |
| A--B (A, minus, minus, B) | A-B (unchanged) |
| A -B (A, space, minus, B) | A -B (unchanged) |
| A --B (A, space, minus, minus, B) | A –B (A, space, en-dash, B) |
- Hold down one of the Alt keys and type on the numeric keypad: 0150 for an en dash or 0151 for an em dash. The dash appears when you release the Alt key.
- Linux
- Hold down the Compose key and type two hyphens and a period for an en dash, or three hyphens for an em dash. The dash appears when you release the Compose key.
| The key that operates as a Compose key varies with the Linux distribution. It is usually one of the Alt or Win keys, but may be another key, and should be user selectable. |
- macOS
- Hold down the Option (Alt) key and type a hyphen for an en dash. For an em dash, the combination is Shift+Option+Hyphen.