Creating a Table of Contents

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:46, 28 February 2007 (edit)
Lorinda (Talk | contribs)
m (Updating Using The Insert Index Window - commenting fix again)
← Previous diff
Revision as of 03:05, 1 March 2007 (edit) (undo)
Lorinda (Talk | contribs)
(Updating Using The Insert Index Window - adding updated French article as comments)
Next diff →
Line 289: Line 289:
* Cliquez sur l'onglet {{section|Entrées}}. * Cliquez sur l'onglet {{section|Entrées}}.
* Dans la section {{section|Niveau}} choisissez le niveau auquel vous voulez associer un hyperlien. * Dans la section {{section|Niveau}} choisissez le niveau auquel vous voulez associer un hyperlien.
-* Dans la section {{section|Structure}}, cliquez sur la case vide qui précède le bouton {{button|E}} puis cliquez sur le bouton {{button|Hyperlien}}. Un bouton {{button|DH}} apparait dans cette case.+* Dans la section {{section|Structure}}, cliquez sur la case vide qui précède le bouton {{button|E}} puis cliquez sur le bouton {{button|Hyperlien}}. Un bouton {{button|DH}} apparait dans cette case.
-* Cliquez dans la case vide qui suit le bouton {{button|E}}, puis sur le bouton {{button|Hyperlien}}. Un bouton {{button|FH}} apparait dans la case.+* Cliquez dans la case vide qui suit le bouton {{button|E}}, puis sur le bouton {{button|Hyperlien}}. Un bouton {{button|FH}} apparait dans la case. Dans ce cas seul le titre sera cliquable. Si vous voulez que le numéro de page soit aussi dliquable, il faut placer le bouton {{button|FH}} dans la case qui suit le bouton {{button|#}}.
'''N.B''' Si vous cliquez sur le bouton {{button|Tous}} le même format est appliqué à tous les niveaux de la table, ce qui n'est pas toujours satisfaisant. Il vaut parfois mieux réitérer le processus pour chaque niveau séparément. '''N.B''' Si vous cliquez sur le bouton {{button|Tous}} le même format est appliqué à tous les niveaux de la table, ce qui n'est pas toujours satisfaisant. Il vaut parfois mieux réitérer le processus pour chaque niveau séparément.
* Cliquez sur {{button|OK}}. * Cliquez sur {{button|OK}}.
 +Malheureusement, si vous n'êtes pas satisfait de ces hyperliens, le seul moyen de les éliminer est de supprimer entièrement la table.
===Suppression de la table des matières=== ===Suppression de la table des matières===
-''Notez que la destruction d'une table des matières n'entraîne ni la destruction des styles de paragraphes affiliés, ni les titres de votre document.''+''Notez que la destruction d'une table des matières n'entraîne ni la destruction des styles de paragraphes affiliés, ni les titres de votre document.''<br>
- +Faites un clic droit, ou Ctrl-clic, dans le texte de la table et choisir l'entrée {{prefName|Supprimer l'index}}.
-S'assurer que la Table des matières n'est pas protégée contre toute manipulation :+
-# Placer le curseur dans la Table des matières à détruire,+
-# Ouvrir la boîte de dialogue « Insertion d'index » (menu <tt>Insertion > Index > Index…</tt>),+
-# Dans l'onglet « Index », s'assurer que la case « Protégé contre toute modification manuelle » est bien décochée,+
-# Cliquer sur le bouton « OK » pour prendre en compte le changement+
- +
-Maintenant que la Table des matières n'est plus protégée, on peut la détruire comme n'importe quel autre texte :+
- +
-# Placer votre curseur juste avant cette table des matières,+
-# Trouver à l'aide de l'ascenseur vertical la fin de la Table des matières,+
-# Tout en maintenant la touche <tt>Majuscule</tt>, cliquer à la fin de la Table des matières,+
-# —> Cela doit avoir pour effet de sélectionner toute votre Table des matières+
-# Cliquer sur la touche <tt>Effacement</tt>.+
-# —> NeoOffice supprime la Table des matières sélectionnée.+
- +
- +
==Aspect de la Table des matières== ==Aspect de la Table des matières==
- 
-Les titres de la Table des matières peuvent avoir un aspect différent des titres dans votre document. 
- 
-(procédure pour régler l'affichage d'une tdm) 
#####Valterb adding #####Valterb adding
Line 327: Line 308:
End of Valterb adding##### End of Valterb adding#####
 +
 +Les titres de la Table des matières peuvent avoir un aspect différent des titres dans votre document. À l'entrée de la table associée aux chapitres de niveau 1 est attribué le style de paragraphe {{prefName|Table des matières Niveau 1}}, à l'entrée de la table associée aux chapitres de niveau 2 est attribué le style de paragraphe {{prefName|Table des matières Niveau 2}}, etc. Si vous voulez alors modiier la typographie de la table vous ne pouvez le faire qu'en utilisant la méthode de [[Fr:Comment utiliser les styles de paragraphe#Comment modifier les styles de paragraphe|modification des styles de paragraphe]]
 +
 +Vous pouvez modifier l'arrière-plan de la table, l'option par défaut n'étant pas très "Mac-like". Pour cela :
 +*Faites un clic droit, ou Ctrl-clic, dans le texte de la table.
 +*Choisissez l'option {{prefName|Éditer l'index}}.
 +*Dans la fenêtre de dialogue qui s'ouvre, cliquez sur l'onglet {{prefName|Arrière-plan}} et choisissez un arrière-plan qui vous convient.
 +*Cliquez sur {{button|OK}}.
 +
 +
==Bons tuyaux à connaître== ==Bons tuyaux à connaître==

Revision as of 03:05, 1 March 2007

This page is in the process of being translated. In time, the entire article will appear here. Until then, the full article is available in one or more other languages by clicking on the links at the bottom of the page.

Contents

Introduction

What is more interesting than seeing the structure of a document when one is in the midst of writing it. What is more practical than easily finding, in a document of 100 or 1000 pages, the location of a chapter or a subsection.

It is possible to achieve that very simply with NeoOffice's Writer component, thanks to the Tables of Contents. Their manipulation is extremely simple, contrary to appearances.

It is important to keep in mind the different elements which are involved in order for NeoOffice to create this Table of Contents and keep it up-to-date.

In the first place, it is important to understand that for Writer, a Table of Contents is an index like other indexes. Thus the tools that direct the Table of Contents found in the Index tools.

The secon thing to keep in mind is that Writer doesn't use the terms "Title" or "Sub-title," but refers instead to Chapter and Level. For example, the Outline Numbering... command in the Tools menu is used in creating Tables of Contents and all the heading levels.


What is Needed to Create a Table of Contents

In order to construct a Table of Contents, Writer must know on what to base the structure of the document, that is to say which titles it is to include in the flow of the document.

Aas we have seen above, Writer calls these titles chapters.

Here, it is important to understandthat Writer, in itself, is incapable of differentiating between text and title, sub title, sub-sub title, etc. It is by using paragraph styles that we can tell Writer which is which. Without these style sheets, NeoOffice will be incapable of creating a table of contents.

In other words, it is necessary that your titles—those which will be used to create the desired table of contents—are styled correctly. Whether you use your own styles or the existing styles does not matter.

Then, NeoOfice needs to know where to place this table of contents.

Finally, NeoOffice needs to know what form to give it (what title levels to include, style of the text, columns, etc.)

We will discuss each of these tasks below.


Manipulating a Table of Contents

By default, Writer uses the pargraph styles "Heading 1," "Heading 2," through "Heading 10" to construct a table of contents. You can see this by going to the Tools menu and choosing Outline Numbering.... If it is not already active, click on the Numbering tab. In the column on the right is a list of the 10 styles that are available for reference.

These ten styles correspond to levels: Style 1=Level 1= e.g. Country
Style 2=Level 2= e.g. Cities
Style 3=Level 3= e.g. Streets
Style 4=Level 4= e.g. Building/Street Address
etc.

They would appear in the table of contents as follows:

•United Kingdom (level 1)
   ••London (level 2)
      •••Bridge Street
         ••••1. Cafe Nero, 1-2 Bridge Street (level 4)
         ••••3. Boots, 11 Bridge Street
      •••Downing Street (level 3)
   ••Cambridge(level 2)
   ••Oxford  (level 2)
      •••Mansfield Road (level 3)
•Canada
   ••Toronto
       •••Don Valley Parkway
   ••Montreal
•United States


Personalized Styles

While you can use the default styles to specify the titles which are to be included in the table of contents, you can use any paragraph styles:

  1. Create a paragraph style
  2. Under the Tools menu, chose Outline Number....
  3. Click on the Numbering tab
  4. choose the level you want the style applied to
  5. Choose the style you want applied to this level in the Paragraph Style drop down menu
  6. —> Writer will add this style to the right hand column
  7. You can can choose the type of numbering for this level of title from the Number drop down
  8. You can also define the character style to use, the character (point, caret, etc.) that will appear between the number (or letter) and your titles, etc.
  9. —> Writer reflects the changes you make in the right column, which shows you how the table of contents will be formatted.
  10. Repeat these steps to define all the needed paragraph styles.

To save time, create all of the needed paragraph styles for your headings and then open the Outline Numbering... window to define the table of contents.

Note: When defining paragaph styles for headings, remember to set the Numbering Style (In the Numbering tab of the Format Paragraph window) to "None." Numbering must be set in the Outline Numbering... window to devine the table of contents.


Identifying the headings of the Table of Contents

Construct your document using these paragraph styles (either the default ones or those which you have defined), or apply these styles to your existing document.

Once you have done this, you are ready to construct the table of contents.


Positioning the Table of Contents

  1. Place the cursor where you want the table of contents to appear.
  2. Under the Insert menu, choose Indexes and Tables and then Indexes and Tables...
  3. -> Writer opens the Insert Index/Table window

Note: Writer considers the table of contents, like the bibiliography, to be an index.


Creation of the Table of Contents

  1. In the Insert Index/Table window (see above), choose the Index/Table tab
  2. Choose Table of Contents in the "Type" drop-down menu
  3. You may give the table of contents a name in the first input field
  4. You can "protect" the table of contents from manual editing by checking the Protected against manual changes. This is usually a good idea.
  5. If it is a general table of contents, that is to say covering the whole document, choose Entire Document in the section {{section|Create Index/Table}]
  6. In this same section, choose the level of inclusion. Even if you use ten heading levels in your document, you can choose to only include (evaluate) a certain number of levels in the Table of Contents. (For example, enter "1" if you only want to include chapter headings)
  7. In the Create from section, only check the Outline box
  8. Click on OK
  9. —>NeoOffice inserts a table of contents for your document at the cursor.


Updating a Table of Contents

There are two methods of updating a Table of Contents, one of which is analogous to the one used for creating a Table of Contents, and the other by working directly in the text.

Updating Using The Insert Index Window

This procedure is the same as that for creating a Table of Contents, and it is useful if you want to modify the structure of the table, for example, if you want to change the number of heading levels. (Attention, this is only possible if you have placed the cursor in the text of the Table of Contents)

  1. Place you cursor in the texte of the Table of Contents you want to edit
  2. Open the Insert Indexes and Tables window (Click on the Insert menu, then Index then Indexes and Tables...
  3. Optional: Modify certain settings if neceesaire,
  4. Click OK
  5. -> NeoOffice will update your Table of contents.

Or

  1. Right click or Ctrl-Click in any part of the table.
  2. In the contextuatl menu that appears, choose the Edit Index
  3. The Insert Index windwo opens
  4. Make the modifications you want
  5. Click on OK

-> In this case, NeoOffice updates your Table of Contents.

Note: if you work with a master document, you updating "everything" (by choosing Update all option



This article in other languages: français Italiano
Personal tools