Outils pour utilisateurs

Outils du site


issue51:libreoffice_partie_6_pp._15-16

In this month's article, we will discover a few new ways to format our documents using page styles, headers and footers. In past articles, I have discussed the use of paragraph and character styles. Page styles are similar, but deal with the overall geometry and formatting of the entire page. Headers and footers are the area at the top and bottom of the page, and are usually the same on every page of the same style. We will start by setting up our document and styles. Start a new writer document, File > New. In order to have access to the document's title, we will change some of the document's properties, File > Properties. On the description tab, put “This Is The Title” as the title of the document. We will use this later when we start creating our headers and footers. Click OK to save your changes.

Ce mois-ci, nous allons découvrir quelques méthodes nouvelles pour formater nos documents en utilisant les styles de page, les en-têtes et les pieds de page. Dans des articles précédents, j'ai expliqué l'utilisation des styles de paragraphe et de caractères. Les styles de page sont similaires, mais traitent de la géométrie de l'ensemble et du formatage de la page entière. Quant aux en-têtes et aux pieds de page, il s'agit des zones en haut et en bas de la page. Ils sont habituellement identiques sur chaque page du même style.

Pour commencer, nous allons configurer nos document et styles. Démarrer un nouveau document texte, Fichier > Nouveau. Pour pouvoir accéder au titre du document, nous allons changer certaines des propriétés du document, Fichier > Propriétés. Sous l'onglet Description, mettre comme titre du document « Ceci est le titre ». Nous allons nous en servir plus tard quand nous commencerons à créer nos en-têtes et nos pieds de page. Cliquez sur OK pour sauvegarder vos changements.

Now, we need to set up our page styles. We will use three page styles, First Page, Normal Page, and Landscape. First Page and Landscape already exist, but we will modify them. We will create our Normal Page style first. For our normal page style, we want a header area at the top with a light gray background. Open the Styles and Formatting dialog, Tools > Styles and Formatting, or click on the Style and formatting button (right). Click on the page styles button (right), right-click in the window, and select new. The Page Style dialog appears. On the Organizer tab, name the style “Normal Page.” Change the next style to Normal Page. This tells Writer that when we get to the end of the page, it will create a new page with the same style. On the Header tab, check Header On. This inserts a header area on the page. Still on the Header tab, click the More button. A new dialog comes up. This dialog allows us to add borders and background colors to our header. On the Background tab, pick the light gray color for the background. Click OK on both dialogs, and we are finished with our Normal Page style. For our First Page, we will modify the one that already exists. We want a 3” (7.5cm) margin at the top (for first page graphics added at another time), and a light gray footer area at the bottom. Right-click the First Page style in the Styles and Formatting dialog, and select modify. On the organizer tab, make our Normal Page the next style. The Page tab allows us to change the margins for the page. Make the top margin 3” (7.5cm). This time we will go to the footer tab, check Footer On, click on the More button, and choose our light gray background.

Maintenant, nous devons configurer nos styles de page. Nous allons en utiliser trois : Première page, Standard et Paysage. Première page et Paysage existent déjà, mais nous allons les modifier. D'abord, nous créerons notre style Standard. Pour ce style Standard, nous voulons une zone d'en-tête en haut, dont l'arrière-plan soit en gris clair. Ouvrez le dialogue Styles et formatage, Outils > Styles et formatage ou cliquez sur le bouton Styles et formatage (à droite). Cliquez sur le bouton styles de page (à droite), faites un clic droit dans la fenêtre et sélectionner Nouveau… Le dialogue de Style de page s'affiche. Sous l'onglet Gérer, nommez le style « Standard ». Changer le Style de suite en Standard. Cela signifie à Writer que, quand nous aurons atteint le bas de la page, il devra créer une nouvelle page avec le même style. Sous l'onglet En-tête, cochez Activer l'en-tête, ce qui insérera une zone d'en-tête dans la page. Toujours sous l'onglet En-tête, cliquez sur le bouton Plus…. Une nouvelle fenêtre de dialogue s'affichera ; c'est là que nous pourrons ajouter une bordure et une couleur d'arrière-plan à notre en-tête. Sous l'onglet Arrière-plan, choisissez la couleur gris clair pour l'arrière-plan. Cliquez sur OK dans les deux fenêtres de dialogue et nous avons terminé avec le style de notre page Standard.

Pour la Première page, nous allons en modifier une qui existe déjà. Nous voulons une marge du haut de 3“ (7,5 cm) - pour les graphismes de la première page rajoutés à un autre moment - et une zone de pied de page en gris clair en bas. Faites un clic droit sur le style Première page dans le dialogue des Styles et formatage et sélectionnez Modifier… Sous l'onglet Gérer, choisissez Standard comme Style de suite. L'onglet page nous permet de changer les marges pour la page. Réglez la marge du haut à 3” (7,5 cm). Cette fois-ci nous allons aussi à l'onglet Pied de page où vous cocherez Activer le pied de page. Cliquez ensuite sur le bouton Plus… et choisissez la couleur Gris clair pour l'arrière-plan.

For our Landscape page style, we will modify the existing Landscape style. For our Landscape style, we will add both a header and footer. Right-click on the Landscape style and modify. Take a few moments to look at the page tab and notice the orientation for the page is landscape, which is exactly what we wanted. Turn on the header and footer on their respective tabs, and select the light gray background for both. Now, we are ready to create our document. Double-click the First Page style, and the page in your document will change to the formatting we added. You will notice the light gray footer area at the bottom. Click inside the box to edit the footer. We will first add our title, Insert > Fields > Title. This inserts the title we added in the document properties. You can use this method to insert the title of the document anywhere you need it. If you change your title later in the document properties, you can update all instances of the inserted field with Tools > Update > Fields or by pressing F9 on your keyboard. Type “ Page “, remembering to put spaces on either side of the word Page, and insert the page number, Insert > Fields > Page Number. Move your cursor to the beginning of “Page” and press the tab key on your keyboard until the page number is flush against the right side of the footer area. Click out of the footer area into the main body of the page.

Pour régler le style de notre page Paysage, nous modifierons celui qui existe déjà. Pour le style Paysage, nous ajouterons un En-tête et un Pied de page. Faites un clic droit sur le style Paysage, puis cliquez sur modifier… Prenez le temps de regarder sous l'onglet Page et remarquez que l'orientation de la page est bien paysage - exactement ce que nous voulions. Activez l'En-tête et le Pied de page sous leur onglet respectif et sélectionnez gris clair comme couleur d'arrière-plan pour les deux.

Nous sommes maintenant prêts à créer notre document. Double-cliquez sur le style Première page et le formatage de la page de votre document deviendra le formatage que nous avons ajouté. Vous remarquerez la zone gris clair du pied de page en bas. Cliquez à l'intérieur de cette zone pour modifier le pied de page. Mais d'abord nous allons y ajouter le titre, Insertion > Champs > Titre. Le titre que nous avons mis dans les propriétés du document y sera inséré. Vous pouvez utiliser cette méthode pour insérer le titre du document partout où vous en avez besoin. Si, par la suite, vous changez votre titre dans les propriétés du document, vous pouvez mettre à jour toutes les instances du champ inséré avec Outils > Actualiser > Champs ou en appuyant sur la touche F9 de votre clavier. Tapez « Page » en vous assurant de mettre une espace de chaque côté du mot Page et insérer le numéro de page, Insertion > Champs > Numéro de page. Positionnez le curseur au début du mot Page et appuyez sur la touche Tab de votre clavier jusqu'à ce que le numéro de page se trouve contre le côté droit de la zone du pied de page. Cliquez en dehors de la zone du pied de page pour vous retrouver dans le corps de la page.

Once this is done, you can begin to type in your text. Once you reach the end of the page and a new page is inserted, you will notice it is formatted with the Normal Page style with a header area at the top. Fill in the header information just like we did for the footer of the first page. Make sure you use the fields, especially on the page number. The page number field comes in handy when we get to the third page. You will then notice the header information has been copied for you and the page number updated to reflect the current page. Next, we will insert a Landscape page. Before you get to a new page, Insert > Manual Break. Select Page Break, and under the style, select Landscape. This will take you to a new page with a Landscape layout. Because this is a different style from our Normal Page style, we will need to fill in our header and footer information. This is handy should you need different header or footer information on some pages, just insert a page with a different page style. Once you have completed your landscaped page, create another page break (Insert > Manual Break) with a style of Normal Page. You will notice your page numbering continues, including the inserted landscaped page(s). If you do not want the inserted landscape pages included in the page count, you can manually adjust the page number in the Manual Break dialog.

Une fois que vous aurez fait tout cela, vous pourrez commencer à taper votre texte. Une fois que vous aurez atteint le bas de la page et qu'une nouvelle page apparaîtra, vous remarquerez qu'elle est formatée en style Standard avec une zone d'en-tête en haut. Renseignez l'en-tête exactement comme nous avons fait pour le pied de page de la première page. Assurez-vous d'utiliser les champs, surtout pour le numéro de page. Le champ de numéro de page sera utile quand nous atteindrons la troisième page. Vous remarquerez alors que les informations dans l'en-tête ont été copiées pour vous et que le numéro de page a été mis à jour afin de correspondre à la page actuelle.

Ensuite, nous allons insérer une page Paysage. Avant d'arriver à une nouvelle page, Insertion > Saut Manuel. Sélectionnez Saut de page, et sous Style sélectionnez Paysage. Cela vous mènera à une nouvelle page avec le style Paysage. Comme c'est un style différent de notre style Standard, nous aurons besoin de remplir les informations d'en-tête et de pied de page. Ceci est pratique si vous voulez un en-tête ou un pied de page différent sur certaines pages, il suffit d'insérer une page avec un style de page différent. Lorsque vous avez terminé votre page Paysage, créez un autre saut de page (Insertion > Saut manuel) avec un style Standard. Vous remarquerez que la numérotation des pages continue, en comptant la ou les pages Paysage insérées. Si vous ne voulez pas que les pages Paysage insérées soient comptées dans le nombre de pages, vous pouvez ajuster manuellement le numéro de page dans la boîte de dialogue Saut manuel.

Writer makes it easy to add pages with different styles and orientation, as well as automatic headers and footers. You can make the headers and footers as big as you want, and they can contain whatever information you want to put in them. Fields help keep certain information consistent in your document, and let you write without worrying about page numbers. In my next article, I will move away from Writer and show you how to make a poor man's database using a Calc spreadsheet. After that, we will use our spreadsheet to create a form letter.

Writer rend facile l'ajout de pages avec un style et une orientation différents, aussi bien que les en-têtes et les pieds de page automatiques. Vous pouvez faire les en-têtes et les pieds de page aussi grands que vous voulez et ils peuvent contenir toute l'information que vous voulez y mettre. Les champs aident à assurer la cohérence ce certaines informations dans votre document et vous permettent d'écrire sans vous soucier des numéros de page.

Dans le prochain article, je quitterai Writer pour vous montrer comment faire la base de données du pauvre en utilisant un classeur Calc. Après cela, nous utiliserons le classeur pour créer une lettre-type.

issue51/libreoffice_partie_6_pp._15-16.txt · Dernière modification : 2011/08/26 21:55 de fredphil91