1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir<helpdocument version="1.0"> 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir<!-- 5*cdf0e10cSrcweir*********************************************************************** 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 12*cdf0e10cSrcweir * 13*cdf0e10cSrcweir * This file is part of OpenOffice.org. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 17*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 18*cdf0e10cSrcweir * 19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 26*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 28*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 29*cdf0e10cSrcweir * 30*cdf0e10cSrcweir ************************************************************************ 31*cdf0e10cSrcweir --> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir<meta> 35*cdf0e10cSrcweir <topic id="textswriterguidepagenumbersxml" indexer="include" status="PUBLISH"> 36*cdf0e10cSrcweir <title xml-lang="en-US" id="tit">Page Numbers </title> 37*cdf0e10cSrcweir <filename>/text/swriter/guide/pagenumbers.xhp</filename> 38*cdf0e10cSrcweir </topic> 39*cdf0e10cSrcweir </meta> 40*cdf0e10cSrcweir <body> 41*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id5918759"><bookmark_value>page numbers;inserting/defining/formatting</bookmark_value> 42*cdf0e10cSrcweir <bookmark_value>page styles;page numbering</bookmark_value> 43*cdf0e10cSrcweir <bookmark_value>starting page numbers</bookmark_value> 44*cdf0e10cSrcweir <bookmark_value>formatting;page numbers</bookmark_value> 45*cdf0e10cSrcweir <bookmark_value>defining;starting page numbers</bookmark_value> 46*cdf0e10cSrcweir <bookmark_value>inserting;page numbers</bookmark_value> 47*cdf0e10cSrcweir <bookmark_value>styles;page numbers</bookmark_value> 48*cdf0e10cSrcweir</bookmark><comment>mw inserted six index entries</comment><comment>mw added "styles;"</comment> 49*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id413830" role="heading" level="1" l10n="NEW"><variable id="pagenumbers"><link href="text/swriter/guide/pagenumbers.xhp" name="Page Numbers">Page Numbers</link> 50*cdf0e10cSrcweir</variable></paragraph> 51*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id1617175" role="paragraph" l10n="NEW">In Writer, a page number is a field that you can insert into your text.</paragraph> 52*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id6091494" role="heading" level="2" l10n="NEW">To Insert Page Numbers</paragraph> 53*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id8611102" role="paragraph" l10n="NEW">Choose <emph>Insert - Fields - Page Number</emph> to insert a page number at the current cursor position.</paragraph> 54*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id6604510" role="tip" l10n="NEW">If you see the text "Page number" instead of the number, choose <emph>View - Field names</emph>.</paragraph> 55*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id2678914" role="paragraph" l10n="NEW">However, these fields will change position when you add or remove text. So it is best to insert the page number field into a header or footer that has the same position and that is repeated on every page.</paragraph> 56*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id614642" role="paragraph" l10n="NEW">Choose <item type="menuitem">Insert - Header - (name of page style)</item> or <item type="menuitem">Insert - Footer - (name of page style)</item> to add a header or footer to all pages with the current page style.</paragraph> 57*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id2551652" role="heading" level="2" l10n="NEW">To Start With a Defined Page Number</paragraph> 58*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id6111941" role="paragraph" l10n="NEW">Now you want some more control on page numbers. You are writing a text document that should start with page number 12.</paragraph> 59*cdf0e10cSrcweir <list type="ordered"> 60*cdf0e10cSrcweir <listitem> 61*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id5757621" role="listitem" l10n="NEW">Click into the first paragraph of your document.</paragraph> 62*cdf0e10cSrcweir </listitem> 63*cdf0e10cSrcweir <listitem> 64*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id2632831" role="listitem" l10n="NEW">Choose <emph>Format - Paragraph - Text flow</emph>.</paragraph> 65*cdf0e10cSrcweir </listitem> 66*cdf0e10cSrcweir <listitem> 67*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id4395275" role="listitem" l10n="NEW">In the Breaks area, enable <emph>Insert</emph>. Enable <emph>With Page Style</emph> just to be able to set the new <emph>Page number</emph>. Click <emph>OK</emph>.</paragraph> 68*cdf0e10cSrcweir </listitem> 69*cdf0e10cSrcweir </list> 70*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id1654408" role="note" l10n="NEW">The new page number is an attribute of the first paragraph of the page.</paragraph> 71*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id7519150" role="heading" level="2" l10n="NEW">To Format the Page Number Style</paragraph> 72*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id9029206" role="paragraph" l10n="NEW">You want roman page numbers running i, ii, iii, iv, and so on.</paragraph> 73*cdf0e10cSrcweir <list type="ordered"> 74*cdf0e10cSrcweir <listitem> 75*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3032319" role="listitem" l10n="NEW">Double-click directly before the page number field. You see the <emph>Edit Fields</emph> dialog.</paragraph> 76*cdf0e10cSrcweir </listitem> 77*cdf0e10cSrcweir <listitem> 78*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id9139378" role="listitem" l10n="NEW">Select a number format and click <emph>OK</emph>.</paragraph> 79*cdf0e10cSrcweir </listitem> 80*cdf0e10cSrcweir </list> 81*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id5051728" role="heading" level="2" l10n="NEW">Using Different Page Number Styles</paragraph> 82*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id1558885" role="paragraph" l10n="NEW">You need some pages with the roman numbering style, followed by the remaining pages in another style.</paragraph> 83*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id1541184" role="paragraph" l10n="NEW">In Writer, you will need different page styles. The first page style has a footer with a page number field formatted for roman numbers. The following page style has a footer with a page number field formatted in another look.</paragraph> 84*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id18616" role="paragraph" l10n="NEW">Both page styles must be separated by a page break. In Writer, you can have automatic page breaks and manually inserted page breaks.</paragraph> 85*cdf0e10cSrcweir <list type="unordered"> 86*cdf0e10cSrcweir <listitem> 87*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id6138492" role="paragraph" l10n="NEW">An <emph>automatic page break</emph> appears at the end of a page when the page style has a different "next style".</paragraph> 88*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id4569231" role="paragraph" l10n="NEW">For example, the "First Page" page style has "Default" as the next style. To see this, you may press <switchinline select="sys"><caseinline select="MAC">Command+T</caseinline><defaultinline>F11</defaultinline></switchinline> to open the <item type="menuitem">Styles and Formatting</item> window, click the <item type="menuitem">Page Styles</item> icon, right-click the First Page entry. Choose <item type="menuitem">Modify</item> from the context menu. On the <item type="menuitem">Organizer</item> tab, you can see the "next style".</paragraph> 89*cdf0e10cSrcweir </listitem> 90*cdf0e10cSrcweir <listitem> 91*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id291451" role="paragraph" l10n="NEW">A <emph>manually inserted page break</emph> can be applied without or with a change of page styles.</paragraph> 92*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3341776" role="paragraph" l10n="NEW">If you just press <item type="keycode">Ctrl+Enter</item>, you apply a page break without a change of styles.</paragraph> 93*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id5947141" role="paragraph" l10n="NEW">If you choose <emph>Insert - Manual break</emph>, you can insert a page break without or with a change of style or with a change of page number.</paragraph> 94*cdf0e10cSrcweir </listitem> 95*cdf0e10cSrcweir </list> 96*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id1911679" role="paragraph" l10n="NEW">It depends on your document what is best: to use a manually inserted page break between page styles, or to use an automatic change. If you just need one title page with a different style than the other pages, you can use the automatic method:</paragraph> 97*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id9364909" role="heading" level="3" l10n="NEW">To Apply a Different Page Style to the First Page</paragraph> 98*cdf0e10cSrcweir <list type="ordered"> 99*cdf0e10cSrcweir <listitem> 100*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id4473403" role="listitem" l10n="NEW">Click into the first page of your document.</paragraph> 101*cdf0e10cSrcweir </listitem> 102*cdf0e10cSrcweir <listitem> 103*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id4313791" role="listitem" l10n="NEW">Choose <emph>Format - Styles and Formatting</emph>. </paragraph> 104*cdf0e10cSrcweir </listitem> 105*cdf0e10cSrcweir <listitem> 106*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id4331797" role="listitem" l10n="NEW">In the <emph>Styles and Formatting</emph> window, click the <emph>Page Styles</emph> icon.</paragraph> 107*cdf0e10cSrcweir </listitem> 108*cdf0e10cSrcweir <listitem> 109*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id4191717" role="listitem" l10n="NEW">Double-click the "First Page" style.</paragraph> 110*cdf0e10cSrcweir </listitem> 111*cdf0e10cSrcweir </list> 112*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id2318796" role="paragraph" l10n="NEW">Now your title page has the style "First Page", and the next pages automatically have the "Default" style.</paragraph> 113*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id399182" role="paragraph" l10n="NEW">You can now for example insert a footer for the "Default" page atyle only, or insert footers in both page styles, but with differently formatted page number fields.</paragraph> 114*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id5298318" role="heading" level="3" l10n="NEW">To Apply a Manually Inserted Page Style Change</paragraph> 115*cdf0e10cSrcweir <list type="ordered"> 116*cdf0e10cSrcweir <listitem> 117*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id7588732" role="listitem" l10n="NEW">Click at the start of the first paragraph on the page where a different page style will be applied.</paragraph> 118*cdf0e10cSrcweir </listitem> 119*cdf0e10cSrcweir <listitem> 120*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id95828" role="listitem" l10n="NEW">Choose <emph>Insert - Manual Break</emph>. You see the <emph>Insert Break</emph> dialog.</paragraph> 121*cdf0e10cSrcweir </listitem> 122*cdf0e10cSrcweir <listitem> 123*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3496200" role="listitem" l10n="NEW">In the <item type="menuitem">Style</item> list box, select a page style. You may set a new page number, too. Click <item type="menuitem">OK</item>.</paragraph> 124*cdf0e10cSrcweir </listitem> 125*cdf0e10cSrcweir </list> 126*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id7599108" role="paragraph" l10n="NEW">The selected page style will be used from the current paragraph to the next page break with style. You may need to create the new page style first.</paragraph> 127*cdf0e10cSrcweir <embed href="text/shared/00/00000004.xhp#related"/> 128*cdf0e10cSrcweir <embed href="text/swriter/guide/footer_pagenumber.xhp#footer_pagenumber"/> 129*cdf0e10cSrcweir <embed href="text/swriter/guide/header_footer.xhp#header_footer"/> 130*cdf0e10cSrcweir <embed href="text/swriter/guide/even_odd_sdw.xhp#even_odd_sdw"/> 131*cdf0e10cSrcweir <embed href="text/swriter/guide/change_header.xhp#change_header"/> 132*cdf0e10cSrcweir <embed href="text/swriter/guide/header_with_chapter.xhp#header_with_chapter"/> 133*cdf0e10cSrcweir <embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/> 134*cdf0e10cSrcweir </body> 135*cdf0e10cSrcweir</helpdocument>