Difference between revisions of "Documentation/UserGuide/Writer/Text"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
Line 3: Line 3:
 
{{DISPLAYTITLE:Working with Text}}
 
{{DISPLAYTITLE:Working with Text}}
  
In Writer, you can use the toolbars, the sidebar and menus (normal and contextual) to modify text. For example, modify the selected paragraph through {{Menu|Format|Paragraph}} (choose {{Menu|Character}} to format text). Alternatively, right click the selection and choose {{Menu|Paragraph}} or{{Menu|Character}}.  
+
In Writer, you can use the toolbars, the sidebar and menus (normal and contextual) to modify text. For example, modify the selected paragraph through {{Menu|Format|Paragraph}} (choose {{Menu|Character}} to format text). Alternatively, right click the selection and choose {{Menu|Paragraph}} or {{Menu|Character}}.  
  
 
Formatting tools are available through the Format menu or a right click on the page. But it is important to note that these options only modify the corresponding page style. ''In Writer there is no direct formatting for pages, page formatting can only be done through styles''. For this reason, we will leave the details on how to format pages to the corresponding section for page styles.
 
Formatting tools are available through the Format menu or a right click on the page. But it is important to note that these options only modify the corresponding page style. ''In Writer there is no direct formatting for pages, page formatting can only be done through styles''. For this reason, we will leave the details on how to format pages to the corresponding section for page styles.
Line 61: Line 61:
 
=Autotext=
 
=Autotext=
  
In an empty paragraph in a Writer document, write "dt" (without quotes) and press {{Key|F3}}: a long paragraph with a sample text will be introduced (note: "dt" stands for "dummy text" and different acronyms may apply to non-English versions: use {{Menu|Edit|AutoText}} to see the one appropriate for your language). Now, type "fn" (again, without quotes) and press {{Key|F3}}: a one row and two columns table will be introduced, with a Math object on the left cell and a variable on the other.  
+
Use AutoText to insert text, tables, fields and other items for reuse, by assigning a key combination to the item for retrieval.  
  
Both examples show what AutoText does and their use: to introduce a document snip previously defined in any place, using only an abbreviation and a keyboard shortcut.
+
For example, by typing ''dt'' and {{Key|F3}}, a long paragraph with a sample text will insert into the document (note: "dt" stands for "dummy text" and different acronyms may apply to non-English versions: use {{Menu|Edit|AutoText}} to see the one appropriate for your language). Typing ''fn'' and {{Key|F3}} will produce a table with one row and two columns, with a Math object on the left cell and a variable on the other.
 +
 
 +
Both examples show what AutoText does and its use, to introduce a document snip previously defined in any place, using only an abbreviation and a keyboard shortcut.
  
 
== Inserting an AutoText ==
 
== Inserting an AutoText ==
  
The faster way to insert an AutoText is to use the abbreviation followed by {{Key|F3}}. The problem with this method is the need to remember all the abbreviations and their functions.
+
Insert an AutoText by typing the abbreviation followed by {{Key|F3}}.  
  
With {{Menu|Edit|AutoText}} ({{Key|Ctrl|F3}}) we will have a list of all the available AutoTexts, but there is an easier method: [[Documentation/UserGuide/UI#Toolbars|Activating the Insert toolbar]], we will have a button with a list of all the AutoTexts with their abbreviations: one click on the element on the list will introduce the autotext on the document
+
To view the available abbreviations, you can choose {{Menu|Edit|AutoText}} ({{Key|Ctrl|F3}}), but there is an easier method: [[Documentation/UserGuide/UI#Toolbars|Activating the Insert toolbar]]. By choosing the AutoText icon, you can view the AutoText categories and their respective abbreviations.
  
 
[[File:AOO-InsertAutoText.png|600px]]
 
[[File:AOO-InsertAutoText.png|600px]]
Line 75: Line 77:
 
== Defining an AutoText ==
 
== Defining an AutoText ==
  
In any document, select what you want to use for an AutoText. The content can be anything: text, tables, pictures, frames, sections... everything. With the content selected {{Menu|Edit|AutoText}}{{Documentation/Caution|If the AutoText contains a table, it is necessary to select at least one line before and one line after the table, otherwise only the content and not the table itself will go into the AutoText.}}
+
# Select the content you want to use for an AutoText. The content can be anything: text, tables, pictures, frames, sections, etc.  
 +
# With the content selected, go to {{Menu|Edit|AutoText}}.
 +
# The AutoText dialog box will appear. Provide a name for your entry in the ''Name'' box. Writer will suggest a shortcut, which you can change.
 +
# In the box to the left, choose a category for the entry, where the AutoText will be classified.
 +
# Select the {{Button|AutoText}} button to the right, and select either {{Menu|New (text only)}} (for the AutoText to take on formatting where it is inserted into the document) or {{Menu|New}} (for the AutoText to retain its formatting).
 +
# Select {{Button|Close}} to return to the document.
  
[[File:AOO-AutoText.png|600px]]
+
{{Documentation/Caution|If the AutoText contains a table, it is necessary to select at least one line before and one line after the table, otherwise only the content and not the table itself will go into the AutoText.}}
  
Under "Name" and "Shortcut" set a name and an abbreviation for the AutoText. In the box to the left choose where the new AutoText will be classified.
+
[[File:AOO-AutoText.png|600px]]
  
With the option "Display remainder of the name as suggestion while typing" enabled, Writer will try to guess if the user wants to insert an AutoText while writing so if you start to type the AutoText name Writer will suggest it, pressing {{Key|Enter}} the AutoText will be introduced.
+
Inside the AutoText dialog box, note the following features:
  
To the right of the window, the {{Button|Categories...}} button allows you to create new categories to classify the AutoTexts.
+
* With the option {{Menu|Display remainder of the name as suggestion while typing}} enabled, Writer will suggest an AutoText if you start to type the AutoText name. The suggestion will appear in a pop-up box, and pressing {{Key|Enter}} will insert the AutoText.
 
+
* The {{Button|Categories...}} button allows you to create new categories to classify your AutoTexts.
Also to the right, the {{Button|AutoText}} button shows a drop down menu with different options, like create a new AutoText. {{Button|Path...}} defines where to save the AutoTexts.
+
* {{Button|Path...}} defines where to save the AutoTexts.
 
+
From the options at the bottom of the page, the first two change how links are saved on the AutoText while the "Show preview" is only valid for existing AutoText: it will not work with new ones.
+
  
 
== Editing an AutoText ==
 
== Editing an AutoText ==
  
On the same menu used to create the AutoText, it is possible to select an existing one from the list: the {{Button|AutoText...}} button now offers the possibility to modify or even eliminate the AutoText.
+
In the AutoText dialog box ({{Menu|Edit|AutoText}}), you can edit your AutoText entries.
 +
 
 +
Select an existing AutoText, and choose the {{Menu|AutoText...}} button to modify or even eliminate the AutoText.
  
Selecting Edit, a document will be opened with the AutoText. It is enough to modify that document and save it.
+
Selecting {{Menu|Edit}}, a document will open with the AutoText. Simply make the changes and save. The entry will now be available as edited.  
  
 
{{Documentation/Caution|The changes will apply only to AutoTexts inserted after the modification, AutoText already inserted will not be changed}}
 
{{Documentation/Caution|The changes will apply only to AutoTexts inserted after the modification, AutoText already inserted will not be changed}}
  
[[Category:Documentation]] [[Category:Documentation/Writer]]
+
==Print a list of AutoText entries==
  
 +
# Choose {{Menu|Tools|Macros|Organize Macros|OpenOffice Basics}}.
 +
# In the ''Macro from'' list, choose {{Menu|OpenOffice Macros|Gimmicks}}.
 +
# Select {{Menu|AutoText}} and click {{Button|Run}}.
 +
# A list of the AutoText entries will be generated in a new document. You can print this document.
  
 
[[Category:Documentation]] [[Category:Documentation/Writer]]
 
[[Category:Documentation]] [[Category:Documentation/Writer]]

Revision as of 17:31, 14 August 2013

Template:Documentation/DraftPage


In Writer, you can use the toolbars, the sidebar and menus (normal and contextual) to modify text. For example, modify the selected paragraph through Format → Paragraph (choose Character to format text). Alternatively, right click the selection and choose Paragraph or Character.

Formatting tools are available through the Format menu or a right click on the page. But it is important to note that these options only modify the corresponding page style. In Writer there is no direct formatting for pages, page formatting can only be done through styles. For this reason, we will leave the details on how to format pages to the corresponding section for page styles.

Numbered and bulleted lists

There are several ways to create numbered or bulleted lists:

  • Auto-formatting (covered later in this chapter)
  • List Styles (covered in the chapter on Styles)
  • The Numbering Writer-numbering-icon.jpg and Bullets Writer-bullets-icon.jpg icons on the paragraph formatting toolbar. The use of these icons will be described in the section below.


Documentation caution.png It is important to note that it is better to avoid the use of numbered list in numbered chapters. In another section of this guide we will see how to number chapters and give an outline to a document.

To produce a numbered or bulleted list, select the paragraphs in the list and choose the appropriate icon.

Using the Bullets and Numbering Toolbar

With a numbered or bulleted list active, a contextual toolbar will open.

AOO-BulletNumbering.png


The buttons, numbered on the screenshot, perform the following actions:

  1. Bullets ON/OFF
  2. Numbering ON/OFF
  3. Numbering OFF
  4. Promote one level
  5. Demote one level
  6. Promote one level with sub-points
  7. Demote one level with sub-points
  8. Insert an unnumbered entry
  9. Move line up
  10. Move line down
  11. Move line up with sub-points
  12. Move line down with sub-points
  13. Restart numbering
  14. Bullets and Numbering dialog box


The options in the Bullets and Numbering dialog box are the same as when editing a list style, so these properties will be covered in the chapter on List Styles.

Nested Lists

As mentioned earlier, list sub-points refer to the levels of a numbered list or bullet, see example below:

  1. First
    1. Sub First
  2. Second
    1. Sub Second
      1. Sub Sub Second


To change the level of one line in the list, either use the Promote/Demote Level Writer-promote-or-demote-icons.jpg icons in the Bullets and Numbering toolbar, or place the cursor at the beginning of the line and press  Tab ⇆  or  ⇧ Shift  +  Tab ⇆ .

Autotext

Use AutoText to insert text, tables, fields and other items for reuse, by assigning a key combination to the item for retrieval.

For example, by typing dt and  F3 , a long paragraph with a sample text will insert into the document (note: "dt" stands for "dummy text" and different acronyms may apply to non-English versions: use Edit → AutoText to see the one appropriate for your language). Typing fn and  F3  will produce a table with one row and two columns, with a Math object on the left cell and a variable on the other.

Both examples show what AutoText does and its use, to introduce a document snip previously defined in any place, using only an abbreviation and a keyboard shortcut.

Inserting an AutoText

Insert an AutoText by typing the abbreviation followed by  F3 .

To view the available abbreviations, you can choose Edit → AutoText ( Ctrl  +  F3 ), but there is an easier method: Activating the Insert toolbar. By choosing the AutoText icon, you can view the AutoText categories and their respective abbreviations.

AOO-InsertAutoText.png

Defining an AutoText

  1. Select the content you want to use for an AutoText. The content can be anything: text, tables, pictures, frames, sections, etc.
  2. With the content selected, go to Edit → AutoText.
  3. The AutoText dialog box will appear. Provide a name for your entry in the Name box. Writer will suggest a shortcut, which you can change.
  4. In the box to the left, choose a category for the entry, where the AutoText will be classified.
  5. Select the  AutoText  button to the right, and select either New (text only) (for the AutoText to take on formatting where it is inserted into the document) or New (for the AutoText to retain its formatting).
  6. Select  Close  to return to the document.
Documentation caution.png If the AutoText contains a table, it is necessary to select at least one line before and one line after the table, otherwise only the content and not the table itself will go into the AutoText.

AOO-AutoText.png

Inside the AutoText dialog box, note the following features:

  • With the option Display remainder of the name as suggestion while typing enabled, Writer will suggest an AutoText if you start to type the AutoText name. The suggestion will appear in a pop-up box, and pressing  ↵ Enter  will insert the AutoText.
  • The  Categories...  button allows you to create new categories to classify your AutoTexts.
  •  Path...  defines where to save the AutoTexts.

Editing an AutoText

In the AutoText dialog box (Edit → AutoText), you can edit your AutoText entries.

Select an existing AutoText, and choose the AutoText... button to modify or even eliminate the AutoText.

Selecting Edit, a document will open with the AutoText. Simply make the changes and save. The entry will now be available as edited.

Documentation caution.png The changes will apply only to AutoTexts inserted after the modification, AutoText already inserted will not be changed

Print a list of AutoText entries

  1. Choose Tools → Macros → Organize Macros → OpenOffice Basics.
  2. In the Macro from list, choose OpenOffice Macros → Gimmicks.
  3. Select AutoText and click  Run .
  4. A list of the AutoText entries will be generated in a new document. You can print this document.
Personal tools