Difference between revisions of "Documentation/How Tos/Creating Automatic Tables of Contents"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Step 2: To Set Up the Table of Contents)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
This is  a table of contents in Writer. Never, ever create one from scratch. It is so much easier to create one automatically.
 
This is  a table of contents in Writer. Never, ever create one from scratch. It is so much easier to create one automatically.
  
[[Image:Doc_HowTo_TOC.png|thumb|none|500px|Table of contents example in OpenOffice.org]]
+
[[Image:Doc_HowTo_TOC.png|thumb|none|500px|Table of contents example in OpenOffice]]
  
 
* The gray part does not print; it is just there to indicate that there is something automatically happening.
 
* The gray part does not print; it is just there to indicate that there is something automatically happening.
 
* You can change how each level looks just by modifying certain styles; more on that later.
 
* You can change how each level looks just by modifying certain styles; more on that later.
* If you make changes to the document, then right-click on the table of contents and choose '''Update''', the table of contents will automatically reflect the changes in the document. Page numbers will be correct, etc.
+
* If you make changes to the document, then right-click on the table of contents and choose {{button|Update}}, the table of contents will automatically reflect the changes in the document. Page numbers will be correct, etc.
  
 
==Step 1: To Select and Apply Paragraph Styles==
 
==Step 1: To Select and Apply Paragraph Styles==
Line 13: Line 13:
 
Writer knows what to put in the table of contents based on what paragraph styles you tell it to look at. Paragraph styles like Heading1 should be applied to the headings in the document. So plan and apply the paragraph styles that set up the structure of the document.
 
Writer knows what to put in the table of contents based on what paragraph styles you tell it to look at. Paragraph styles like Heading1 should be applied to the headings in the document. So plan and apply the paragraph styles that set up the structure of the document.
  
Paragraph styles are in the Styles and Formatting window; choose '''Format > Styles and Formatting'''. You can use existing ones such as Heading1 through Heading10 (recommended) or create your own.
+
Paragraph styles are in the Styles and Formatting window; choose {{menu|Format|Styles and Formatting}}. You can use existing ones such as Heading1 through Heading10 (recommended) or create your own.
  
 
So that's what you do.
 
So that's what you do.
Line 25: Line 25:
 
Do that to every heading in your document. This is of course less of a pain if you do it as you write the document rather than all at once afterwards.
 
Do that to every heading in your document. This is of course less of a pain if you do it as you write the document rather than all at once afterwards.
  
{{Note |If you apply Heading1, Heading2 and so on and do not like how they look, right-click on a heading with the style applied and choose '''Edit Paragraph Style'''. In the window that appears, just make your changes and click '''OK'''.}}
+
{{Note |If you apply Heading1, Heading2 and so on and do not like how they look, right-click on a heading with the style applied and choose '''Edit Paragraph Style'''. In the window that appears, just make your changes and click {{button|OK}}.}}
  
 
==Step 2: To Set Up the Table of Contents==
 
==Step 2: To Set Up the Table of Contents==
  
 
# Click in your document where you want the table of contents to appear.  
 
# Click in your document where you want the table of contents to appear.  
# Choose '''Insert > Indexes and Tables > Indexes and Tables'''. <br> The Insert Index/Table window will appear.
+
# Choose {{menu|Insert|Indexes and Tables|Indexes and Tables}}. <br /> The Insert Index/Table window will appear.
 
# Check the number of levels you want to include. If you do not want all of them, change the '''Evaluate Up To Level''' setting.
 
# Check the number of levels you want to include. If you do not want all of them, change the '''Evaluate Up To Level''' setting.
# Be sure that the '''Outline''' checkbox is marked. Click the '''...''' button next to it. <br> The Outline/Numbering window will open up.
+
# Be sure that the '''Outline''' checkbox is marked. Click the {{button|…}} button next to it. <br /> The Outline/Numbering window will open up.
# Specify the paragraph styles you selected and applied in the previous major step, then click '''OK'''. <br> If you used Heading1 through Heading10 it should already be set up correctly.
+
# Specify the paragraph styles you selected and applied in the previous major step, then click {{button|OK}}. <br /> If you used Heading1 through Heading10 it should already be set up correctly.
# Then click '''OK''' in the main tab and your table of contents will appear.
+
# Then click {{button|OK}} in the main tab and your table of contents will appear.
  
 
==Step 3: To Modify the Table of Contents==
 
==Step 3: To Modify the Table of Contents==
Line 40: Line 40:
 
If you do not like how the table of contents looks, modify the styles used to format the table of contents.  
 
If you do not like how the table of contents looks, modify the styles used to format the table of contents.  
 
# Right-click on a line in the table of contents that you do not like and choose '''Edit Paragraph Style'''.
 
# Right-click on a line in the table of contents that you do not like and choose '''Edit Paragraph Style'''.
# In the window that appears, change the settings, then click '''OK'''. <br> The table of contents will reflect those changes.
+
# In the window that appears, change the settings, then click {{button|OK}}. <br> The table of contents will reflect those changes.
  
 
To update, edit, or delete the table of contents, right-click on it and choose '''Edit Index/Table'''.
 
To update, edit, or delete the table of contents, right-click on it and choose '''Edit Index/Table'''.
  
 
{{SeeAlso|EN|
 
{{SeeAlso|EN|
* [http://openoffice.blogs.com/openoffice/2005/12/creating_tables.html Creating Tables of Contents (TOCs) in OpenOffice.org] including how to make the table of contents hotlinked.}}
+
* [https://openoffice.blogs.com/openoffice/2005/12/creating_tables.html Creating Tables of Contents (TOCs) in OpenOffice.org] including how to make the table of contents hotlinked.}}
  
  
  
This How To comes from [http://openoffice.blogs.com Solveig Haugland's Blog]
+
This How To comes from [https://openoffice.blogs.com Solveig Haugland's Blog]
  
 
{{PDL1}}
 
{{PDL1}}
  
 
[[Category:Documentation/How Tos/Writer]]
 
[[Category:Documentation/How Tos/Writer]]

Latest revision as of 13:59, 31 August 2022


This is a table of contents in Writer. Never, ever create one from scratch. It is so much easier to create one automatically.

Table of contents example in OpenOffice
  • The gray part does not print; it is just there to indicate that there is something automatically happening.
  • You can change how each level looks just by modifying certain styles; more on that later.
  • If you make changes to the document, then right-click on the table of contents and choose  Update , the table of contents will automatically reflect the changes in the document. Page numbers will be correct, etc.

Step 1: To Select and Apply Paragraph Styles

Writer knows what to put in the table of contents based on what paragraph styles you tell it to look at. Paragraph styles like Heading1 should be applied to the headings in the document. So plan and apply the paragraph styles that set up the structure of the document.

Paragraph styles are in the Styles and Formatting window; choose Format → Styles and Formatting. You can use existing ones such as Heading1 through Heading10 (recommended) or create your own.

So that's what you do.

  1. Decide what paragraph styles you will use on the top-level headings, the second-level headings, and so on.
  2. Apply those styles to the headings.

To apply a style:

  1. Click in the heading
  2. And either double-click the style name in the Styles and Formatting window, or if it is there, select it in the dropdown list on the left.

Do that to every heading in your document. This is of course less of a pain if you do it as you write the document rather than all at once afterwards.

Documentation note.png If you apply Heading1, Heading2 and so on and do not like how they look, right-click on a heading with the style applied and choose Edit Paragraph Style. In the window that appears, just make your changes and click  OK .

Step 2: To Set Up the Table of Contents

  1. Click in your document where you want the table of contents to appear.
  2. Choose Insert → Indexes and Tables → Indexes and Tables.
    The Insert Index/Table window will appear.
  3. Check the number of levels you want to include. If you do not want all of them, change the Evaluate Up To Level setting.
  4. Be sure that the Outline checkbox is marked. Click the  …  button next to it.
    The Outline/Numbering window will open up.
  5. Specify the paragraph styles you selected and applied in the previous major step, then click  OK .
    If you used Heading1 through Heading10 it should already be set up correctly.
  6. Then click  OK  in the main tab and your table of contents will appear.

Step 3: To Modify the Table of Contents

If you do not like how the table of contents looks, modify the styles used to format the table of contents.

  1. Right-click on a line in the table of contents that you do not like and choose Edit Paragraph Style.
  2. In the window that appears, change the settings, then click  OK .
    The table of contents will reflect those changes.

To update, edit, or delete the table of contents, right-click on it and choose Edit Index/Table.



See Also



This How To comes from Solveig Haugland's Blog

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools