Utilisation de sections pour la mise en page

From Apache OpenOffice Wiki
< FR‎ | Documentation‎ | Writer Guide
Revision as of 17:59, 14 April 2009 by Sgauti (Talk | contribs)

Jump to: navigation, search



Introduction aux sections

Une section est un bloc de texte qui a des attributs spéciaux et du formatage. Vous pouvez utiliser les sections pour :

  • Protéger un texte en écriture
  • Masquer du texte
  • Insérer dynamiquement du contenu d'un autre document
  • Ajouter des colonnes, des retraits de marge, une couleur d'arrière-plan ou une image d'arrière-plan à un portion du document
  • Personnaliser les notes de bas de page et de fin pour une portion du document.

Créer des sections

Pour créer une section:

  1. Placez le curseur à l'endroit de votre document où vous souhaitez insérer la nouvelle section. Ou sélectionnez le texte que vous voulez placer dans une nouvelle section.
  2. À partir du menu principal, choisissez Insertion > Section. La boîte de dialogue Insérer une section s'ouvre.
  3. Cliquez sur l'onglet Section, s'il n'est pas déjà affiché. (Voir Utiliser l'onglet Section).

La boîte de dialogue Insérer une section a cinq onglets :

  • Utilisez l'onglet Section pour définir les attributs de la section
  • Utilisez l'onglet Retraits pour définir des retraits dans les marges de droite et de gauche de la section
  • Utilisez l'onglet Arrière-plan pour ajouter de la couleur ou une image à l'arrière-plan de la section
  • Utilisez l'onglet Notes de bas de page/de fin pour personnaliser les notes de bas de section ou de fin.

A tout moment, vous pouvez restaurer les paramètres de ces onglets à leur valeur par défaut en cliquant sur le bouton Rétablir (remarquez cependant que vous ne pouvez pas restaurer l'onglet Section. Si vous souhaitez annuler des modifications faites dans l'onglet Section vous devez le faire manuellement).

Using the Section page

Use the Section page to set the attributes of the current section.

Inserting a section using the Insert Section dialog box.

Naming sections

Writer automatically enters a name for the current section in the top box of the New section area. To change the name, select it and type over it. The name is displayed in the Sections category of the Navigator window. If you give your sections meaningful names, you can navigate to them more easily.

Linking sections

You can insert the contents of another document into the current section and then have Writer update the section whenever the other document is updated. This is called linking the section to the other document.

To link the current section to another document, follow these steps:

  1. In the Link area, check the Link checkbox.
  2. Click the (...) button to the right of the File name field. The Insert dialog box opens.
  3. Find and select the document you want to insert and then click the Insert button. The Insert dialog box closes and the name of the selected document appears in the File name field.
  4. If you want to insert only a section of the selected document, select the desired section from the Section drop-down list.
Linking a section.

Template:Documentation/Note

You can update links automatically or manually. See Updating links.

Write-protecting sections

To write-protect the current section so that its contents cannot be edited, check the Protect checkbox in the Write protection area.

Write-protecting sections.

Template:Documentation/Note

Password-protecting sections

To prevent others from editing the section's attributes or format, protect the section with a password, as follows:

  1. Check the With password checkbox. The Enter Password dialog box opens.
  2. Type a password in the Password field and then confirm the password by typing it again in the Confirm field.
  3. Click OK. The Enter Password dialog box closes. Anyone who tries to edit the section's attributes or format will be prompted to enter the password.
Password-protecting a section.

Template:Documentation/Note

Hiding sections

You can hide the current section so that it will not be displayed on the screen or printed. You can also specify conditions for hiding the section. For example, you can hide the section only from certain users.

Template:Documentation/Note

To hide a section, check the Hide checkbox in the Hide area.

Hiding a section.

To hide the section only under certain conditions, enter the desired conditions in the With Condition field. The syntax and operators that you use to enter conditions are the same ones that you use to enter formulas. For syntax and a list of operators, see Writer's online help under "conditions".

If the section is write-protected with a password, the password must be entered to hide or reveal the text.

Template:Documentation/Note

Using the Columns page

Use the Columns page of the Insert Section dialog box to format the current section into columns. This page is very similar to the Columns dialog box shown in Defining the number of columns on a page. Please refer to that topic for details.

Using the Indents page

Use the Indents page, pictured below, to set indents in the right and left margins of the current section. Enter the desired left-margin indent in the Before section box. Enter the desired right-margin indent in the After section box. The preview box on the right-hand side of the page shows you how the section will look with the indents applied.

Indenting a section.

Using the Footnotes/Endnotes page

Use the Footnotes/Endnotes page, pictured below, to customize the current section's footnotes and endnotes.

Setting footnotes and endnotes for a section.

Customizing footnotes

If you want the current section's footnotes to appear separately from the other footnotes in the document, check the Collect at end of text check box in the Footnotes area.

To number the current section's footnotes separately from the other footnotes in the document, follow these steps:

  1. In the Footnotes area, make sure that the Collect at end of text check box is checked.
  2. Check the Restart numbering checkbox.
  3. If you want the section's footnotes to start at a number other than 1, enter the desired starting number in the Start at spin box.

To edit the format of the section's footnotes, follow these steps:

  1. In the Footnotes area, make sure that the Collect at end of text and Restart numbering checkboxes are checked.
  2. Check the Custom format checkbox.
  3. From the drop-down list under and to the right of the Custom format checkbox, select a numbering format for the footnotes.
  4. To add text to the selected numbering format, use the Before and After fields. For example, if you want the footnote numbers to be preceded by the word "Note" and followed by a colon, fill the Before and After fields like this:
Numbering footnotes for a section.

Customizing endnotes

If you want the current section's endnotes to appear at the end of the section rather than at the end of the document, check the Collect at end of section checkbox in the Endnotes area.

To number the current section's endnotes separately from the other endnotes in the document, follow these steps:

  1. In the Endnotes area, make sure that the Collect at end of section checkbox is checked.
  2. Check the Restart numbering checkbox.
  3. If you want the section's endnotes to start at a number other than 1, enter the desired starting number in the Start at spin box.

To edit the format of the section's endnotes, follow these steps:

  1. In the Endnotes area, make sure that the Collect at end of section and Restart numbering checkboxes are checked.
  2. Check the Custom format checkbox.
  3. From the drop-down list under and to the right of the Custom format checkbox, select a numbering format for the endnotes.
  4. To add text to the selected numbering format, use the Before and After fields, as shown above for footnotes.

Using the Background page

Use the Background page to add color or a graphic to the background of the current section. This page is similar to the Background pages for paragraphs, frames, tables, and other objects in OOo. For more information, refer to Chapter 7 (Working with Styles).

Saving a new section

To save a new section so that it appears in your document, click the Insert button. The Insert Section dialog box closes and the new section appears in your document.

Editing and deleting sections

You can edit a section's attributes and formatting, and you can also delete sections.

Selecting a section

To select the section that you want to edit or delete, follow these steps:

  1. From the main menu, choose Format > Sections. The Edit Sections dialog box opens.
  2. The name of the current section appears in the Section area, in the field above the list box. If you want to edit or delete a different section, click the name of the desired section in the list. The selected section becomes the current section, and its name appears in the field above the list box.
Edit Sections dialog box.

Editing section attributes

To rename the current section, simply type over its name in the Section area.

From the Edit Sections dialog box, you can also edit the current section's link, write-protect, and hide attributes. To learn how to edit these attributes, see:

Deleting sections

To delete the current section, click the Remove button.

Template:Documentation/Note

Editing the format of a section

To edit the format of the current section, click the Options button. The Options dialog box opens.

Options dialog box for sections.

The Options dialog box has four tabbed pages: Columns, Indents, Background, and Footnotes/Endnotes. To learn how to use these pages, see:

To reset a page to its most recently saved settings, click the Reset button.

To save your Options settings and return to the Edit Sections dialog box, click OK.

Updating links

You can have Writer update linked sections automatically, and you can also update links manually.

Updating links automatically

The default behavior, whenever you open a document that contains links, is for Writer to prompt you to update the links. To have Writer update links without prompting you or to turn off automatic updating, follow these steps:

  1. Choose Tools > Options > OpenOffice.org Writer > General. The dialog box displays general text document settings.
  2. In the Update area, under Update links when loading, select one of the following three options:
    • Select Always if you want Writer to update links automatically, without prompting you, whenever you open a document that contains links.
    • Select On request if you want Writer to prompt you before updating links.
    • Select Never if you do not want Writer to update links.
  3. Click OK to save your settings. The Options dialog box closes.
Writer > General Options settings.

Updating links manually

To update a link manually:

  1. Open the document that contains the link.
  2. Choose Edit > Links. The Edit Links dialog box opens.
  3. The list in the Edit Links dialog box displays the names of all the files that are linked to the current document. Click the file that corresponds to the link that you want to update.
  4. Click the Update button. The most recently saved contents of the linked file appear in the current document.
  5. To close the Edit Links dialog box, click Close.
Edit links dialog box.


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools