Using Page Styles

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:15, 10 March 2007 (edit)
Lorinda (Talk | contribs)
(partial translation of page styles in master documents + InTranslation template)
← Previous diff
Revision as of 14:49, 10 March 2007 (edit) (undo)
Lorinda (Talk | contribs)
(Using page styles in a master document - continued translation)
Next diff →
Line 105: Line 105:
<br><br> <br><br>
-While on the one hand this is an intelligent decision, it can create problems when we create documents with different pages styles and then want to unite them in a master document. In effect, the master document ignores all the page styles present in the inserted files and uses only the default style, if we have not taken care to import the different page styles of the inserted documents.+While on the one hand this is an intelligent decision, it can create problems when we create documents with different pages styles and then want to unite them in a master document. In effect, the master document ignores all the page styles present in the inserted files and uses only the default style, even if we have taken care to import the different page styles of the inserted documents.
<br> <br>
 +For example, suppose that we have created a document that includes pages to which we have applied a custom page style, for example a horizontally oriented paged style (i.e. "Landscape" orientation). If we now want to insert that codument in a master document we will discover that the original document, which was horizontal, is now attached veritcally ("Portrait" orientation), eve if we have already imported the Horizontal (landscape) page style into our master document.
 +
 +The only method to successfully attach the horizontal/landscape pages in our master document is to:
 +* split our "single" document into documents that contains only one page style each
 +* insert the sub-files as normally done for inserting files in a master document
 +* in the navigator select the file we want to have the different page style
 +* In the Navigator window, click on the "Insert" button and choose "Text"
 +* double-click on Text you have just inserted
 +* Insert a manual break, choose "page break" and the choose page style you want to use. This page style will be applied from this point of the document onward (unless you have specified something different when you have created that page style). If after one or more pages you want to return to the initial style (in our case the standard veritical or Portrait style, you must repeat the procedure beginning with inserting a "text."
<!--==Utiliser les styles de page dans un document maître== <!--==Utiliser les styles de page dans un document maître==
Il est possible d'organiser vos documents en chapitres qui peuvent être regroupés en un [[Fr:Utilisation_d'un_document_maître|document maître]].<br> Il est possible d'organiser vos documents en chapitres qui peuvent être regroupés en un [[Fr:Utilisation_d'un_document_maître|document maître]].<br>
 +
L'application des styles de page, en ce cas, ne présente aucune difficulté particulière. Nous allons l'expliquer ici. <br> L'application des styles de page, en ce cas, ne présente aucune difficulté particulière. Nous allons l'expliquer ici. <br>
-Supposons que deux auteurs soient en train de travailler sur un livre et se soient partagé les chapitres à écrire ; supposons aussi que l'un des auteurs soit européen et l'autre nord-américain. La page standard pour l'auteur européen est au format '''A4''', alors que pour l'auteur nord-américain la page standard est au format '''Letter'''. Lorsque le livre doit être assemblé, réunir les chapitres des deux auteurs dans deux formats différents pourrait poser un problème. À cause de cela NeoOffice et OpenOffice.org ne se préoccupent pas du format dans lequel sont écrits les chapitres mais utilisent comme page standard celle qui est utilisée lors de la création du document maître.<br><br> 
-Cela, qui de ce point de vue est un comportement intelligent, provoque des problèmes quand nous créons des documents avec des styles de page différents et voulons ensuite les réunir en un document maître : en effet le document maître ignorera tous les styles de page présents dans les fichiers insérés et utilisera seulement le style standard, si nous n'avons pas pris soin d'importer les différents styles de page des documents insérés.+Supposons que deux auteurs soient en train de travailler sur un livre et se soient partagé les chapitres à écrire ; supposons aussi que l'un des auteurs soit européen et l'autre nord-américain. La page standard pour l'auteur européen est au format '''A4''', alors que pour l'auteur nord-américain la page standard est au format '''Letter'''. Lorsque le livre doit être assemblé, réunir les chapitres des deux auteurs dans deux formats différents pourrait poser un problème. À cause de cela NeoOffice et OpenOffice.org ne se préoccupent pas du format dans lequel sont écrits les chapitres mais utilisent comme page standard celle qui est utilisée lors de la création du document maître.<br>
-<br>Prenons un exemple. Supposons que nous ayons écrit un document où ont été insérées des pages auxquelles nous avons appliqué un style de page que nous avons créé, par exemple un style de page orientée horizontalement. Si maintenant nous voulons insérer ce document dans un document maître nous nous apercevrons que les pages du document original étaient horizontales, maintenant nous voulons les afficher verticalement, même si précédemment nous avions importé dans le document maître le style de page "Horizontal". <br>+Cela, qui de ce point de vue est un comportement intelligent, provoque des problèmes quand nous créons des documents avec des styles de page différents et voulons ensuite les réunir en un document maître : en effet le document maître ignorera tous les styles de page présents dans les fichiers insérés et utilisera seulement le style standard, même si nous avons pris soin d'importer les différents styles de page des documents insérés.
 + 
 +<br>Prenons un exemple. Supposons que nous ayons écrit un document où ont été insérées des pages auxquelles nous avons appliqué un style de page que nous avons créé, par exemple un style de page orientée horizontalement (en format "Paysage"). Si maintenant nous voulons insérer ce document dans un document maître nous nous apercevons que les pages du document original qui étaient horizontales, sont maintenant affichées verticalement (en format "Portrait"), même si précédemment nous avions importé dans le document maître le style de page "Paysage" (ou "Horizontal"). <br>
La seule façon de réussir à afficher les pages horizontalement dans notre document maître consiste à La seule façon de réussir à afficher les pages horizontalement dans notre document maître consiste à
*Diviser le fichier contenant les pages avec des styles différents en plusieurs fichiers ne contenant qu'un seul style de page. *Diviser le fichier contenant les pages avec des styles différents en plusieurs fichiers ne contenant qu'un seul style de page.
Line 122: Line 133:
*Cliquez sur l'icône '''Insertion''' de la fenêtre du Navigateur et choisissez '''Texte''' *Cliquez sur l'icône '''Insertion''' de la fenêtre du Navigateur et choisissez '''Texte'''
*Double-cliquez sur votre '''Texte''' dès qu'il est inséré *Double-cliquez sur votre '''Texte''' dès qu'il est inséré
-*Insérez un saut manuel de page dans le menu {{menu|Insertion/Saut manuel…}}. Vérifiez que le bouton-radio {{prefName|Saut de page}} est sélectionné et sélectionnez le modèle de page que vous utilisez. Ce modèle/style de page sera appliqué depuis ce point du document et ensuite, si après une ou plusieurs pages vous voulez revenir au style initial (dans notre cas le standard vertical), il faudra répéter la procédure en insérant un espace de texte, etc.-->+*Insérez un saut manuel de page dans le menu {{menu|Insertion/Saut manuel…}}. Vérifiez que le bouton-radio {{prefName|Saut de page}} est sélectionné et sélectionnez le modèle de page que vous utilisez. Ce modèle/style de page sera appliqué depuis ce point du document et ensuite, si après une ou plusieurs pages vous voulez revenir au style initial (dans notre cas le standard vertical ou "Portrait"), il faudra répéter la procédure en insérant un espace de texte, etc.
- +-->
==Related Articles== ==Related Articles==

Revision as of 14:49, 10 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.

Note: The translation "warning" applies only to the #Using page styles in a master document section.


Page styles are one of OpenOffice.org and NeoOffice's resources. They allow you to create page models like those created by desktop programming software. You can configure and use a variety of page types in a document, independent of its content. The following page style elements are customizable:

  • Format
  • Orientation
  • Margins
  • Background color
  • Header
  • Footer
  • Border
  • Columns


Contents

How to Create a Page Style

First of all, make sure to keep the Styles and Formatting window open. Ctrl-F11. Then you have two options:

The first consists of individually setting the format of the page elements and then clicking on the Page Styles icon. (The fourth from the left). Once the style list appears, click on the icon that looks like a page with a small green cross, and click on New style from selection. Give the style a suitable name in the window which appears and click OK.

The second method consists of creating the page style directly in the Styles and Formatting window. Click on the list of page styles and right click or Ctrl-clic. Choose New from the contextual menu. In the window that appears, specify the settings you want in the various tabs of the page format window. Don't forget to give the style a name in the Organizer tab. Then click OK.

Keep in mind that these page styles only apply to the document that you have created. If you wish to use these styles for other documents, you must create a template.


How to Modify Page Styles

Once a page style has been created, you can always modifier its elements as you like. In the Styles and Formatting window, right click or Ctrl-click on the style name you want to modify. When the contextual menu appears, choose Modify... and then make the changes in the subsequent window. Then click on OK and the modifications will take effect.

The changes that you make will be immediately applied to the pages of your document which use that style.

How to Apply a Style to a page

While the page to which you want to apply the style is visible, open the Styles and Formatting window. You have several options:

  • Double-click on the desired style; it is immediately applied to the page.
  • Select the desired style and click on the paintcan icon, then click on the page and the selected style is immediately applied.
  • You can also use the status bar (at the bottom of the main NeoOffice window). The second option that appears in the status bar (from left to right in the bar by default) indicates the page style of the page in which the cursor is located. Double-clicking on this option brings up a dialog box which allows you to modify the page style. But if you right-click or ctrl-click, the list of available page styles appears. Chose the one which you would like and it is immediately applied to the page in question.

N.B. Sometimes the modfication of a page style can make changes in the following pages. To avoid this, check the styles related to the page style that you are using. This is done by placing the cursor on the name of the style and right-clicking or Ctrl-clicking on it. Choose Modify and in the Organizer tab, check what style appears in the option Next Style. Make sure that it is the page style which you want for the follow pages of the document that you are formatting.

Another means to avoid this problem is to put manual page breaks at the end of the page or to group the pages that you want to modify. To do this, select Manual break... from the Insert menu. In the window which appears, there is a Style option where you can specify the style you want for the following page(s).


How to Import a Page Style

You can import a page style created in an older document into the current document you are formatting.

  • Open the window Styles and Formatting, select the type of style you want to import (First page, right page, etc.), then click on the last icon on the right (the one which shows a page with a small green cross) and chose Load Styles...
  • In the dialog box that opens, check the Page box and click on From File...
  • Choose the document from which you want to import the style and click on Open.

The imported style can be found in the Custom Styles category. You can now apply the style to your page as explained above.


Using page styles in a master document

It is possible to organize your documents in chapters which can be regrouped in a master document.

Using page styles in master documents is not difficult. We will explain it here.

Suppose that two authors are working together on a book and each is to work on different chapters. Also suppose that one of the authors is in Europe and the other in in North America. The standard page size for the European author is in A4, while for the North American author it is Letter. When it is time to assemble the book, joining the chapters by the two authors on two different page sizes could present a problem. Because of that, NeoOffice and OpenOffice.org are not concerned with the page format used in the individual chapters, but instead uses as the default page style in use when the master document is created.

While on the one hand this is an intelligent decision, it can create problems when we create documents with different pages styles and then want to unite them in a master document. In effect, the master document ignores all the page styles present in the inserted files and uses only the default style, even if we have taken care to import the different page styles of the inserted documents.
For example, suppose that we have created a document that includes pages to which we have applied a custom page style, for example a horizontally oriented paged style (i.e. "Landscape" orientation). If we now want to insert that codument in a master document we will discover that the original document, which was horizontal, is now attached veritcally ("Portrait" orientation), eve if we have already imported the Horizontal (landscape) page style into our master document.

The only method to successfully attach the horizontal/landscape pages in our master document is to:

  • split our "single" document into documents that contains only one page style each
  • insert the sub-files as normally done for inserting files in a master document
  • in the navigator select the file we want to have the different page style
  • In the Navigator window, click on the "Insert" button and choose "Text"
  • double-click on Text you have just inserted
  • Insert a manual break, choose "page break" and the choose page style you want to use. This page style will be applied from this point of the document onward (unless you have specified something different when you have created that page style). If after one or more pages you want to return to the initial style (in our case the standard veritical or Portrait style, you must repeat the procedure beginning with inserting a "text."


Related Articles

Editing Default Styles and Using Templates
How to Number Pages (es)



This article in other languages: Français Italiano Español
Personal tools