1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 30e4b25e7SAndrew Rist<!--*********************************************************** 4*3de3c617Smseidel * 50e4b25e7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 60e4b25e7SAndrew Rist * or more contributor license agreements. See the NOTICE file 70e4b25e7SAndrew Rist * distributed with this work for additional information 80e4b25e7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 90e4b25e7SAndrew Rist * to you under the Apache License, Version 2.0 (the 100e4b25e7SAndrew Rist * "License"); you may not use this file except in compliance 110e4b25e7SAndrew Rist * with the License. You may obtain a copy of the License at 12*3de3c617Smseidel * 130e4b25e7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14*3de3c617Smseidel * 150e4b25e7SAndrew Rist * Unless required by applicable law or agreed to in writing, 160e4b25e7SAndrew Rist * software distributed under the License is distributed on an 170e4b25e7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 180e4b25e7SAndrew Rist * KIND, either express or implied. See the License for the 190e4b25e7SAndrew Rist * specific language governing permissions and limitations 200e4b25e7SAndrew Rist * under the License. 21*3de3c617Smseidel * 220e4b25e7SAndrew Rist ***********************************************************--> 230e4b25e7SAndrew Rist 24*3de3c617Smseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26*3de3c617Smseidel<topic id="textswriterguidepagenumbersxml" indexer="include" status="PUBLISH"> 27*3de3c617Smseidel<title xml-lang="en-US" id="tit">Page Numbers</title> 28*3de3c617Smseidel<filename>/text/swriter/guide/pagenumbers.xhp</filename> 29*3de3c617Smseidel</topic> 30*3de3c617Smseidel</meta> 31*3de3c617Smseidel<body> 32*3de3c617Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id5918759"> 33*3de3c617Smseidel<bookmark_value>page numbers;inserting/defining/formatting</bookmark_value> 34*3de3c617Smseidel<bookmark_value>page styles;page numbering</bookmark_value> 35*3de3c617Smseidel<bookmark_value>starting page numbers</bookmark_value> 36*3de3c617Smseidel<bookmark_value>formatting;page numbers</bookmark_value> 37*3de3c617Smseidel<bookmark_value>defining;starting page numbers</bookmark_value> 38*3de3c617Smseidel<bookmark_value>inserting;page numbers</bookmark_value> 39*3de3c617Smseidel<bookmark_value>styles;page numbers</bookmark_value> 40cdf0e10cSrcweir</bookmark><comment>mw inserted six index entries</comment><comment>mw added "styles;"</comment> 41cdf0e10cSrcweir<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> 42cdf0e10cSrcweir</variable></paragraph> 43*3de3c617Smseidel<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> 44*3de3c617Smseidel<paragraph xml-lang="en-US" id="hd_id6091494" role="heading" level="2" l10n="NEW">To Insert Page Numbers</paragraph> 45*3de3c617Smseidel<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> 46*3de3c617Smseidel<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> 47*3de3c617Smseidel<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> 48*3de3c617Smseidel<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> 49*3de3c617Smseidel<paragraph xml-lang="en-US" id="hd_id2551652" role="heading" level="2" l10n="NEW">To Start With a Defined Page Number</paragraph> 50*3de3c617Smseidel<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> 51*3de3c617Smseidel<list type="ordered"> 52*3de3c617Smseidel<listitem> 53*3de3c617Smseidel<paragraph xml-lang="en-US" id="par_id5757621" role="listitem" l10n="NEW">Click into the first paragraph of your document.</paragraph> 54*3de3c617Smseidel</listitem> 55*3de3c617Smseidel<listitem> 56*3de3c617Smseidel<paragraph xml-lang="en-US" id="par_id2632831" role="listitem" l10n="NEW">Choose <emph>Format - Paragraph - Text flow</emph>.</paragraph> 57*3de3c617Smseidel</listitem> 58*3de3c617Smseidel<listitem> 59*3de3c617Smseidel<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> 60*3de3c617Smseidel</listitem> 61*3de3c617Smseidel</list> 62*3de3c617Smseidel<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> 63*3de3c617Smseidel<paragraph xml-lang="en-US" id="hd_id7519150" role="heading" level="2" l10n="NEW">To Format the Page Number Style</paragraph> 64*3de3c617Smseidel<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> 65*3de3c617Smseidel<list type="ordered"> 66*3de3c617Smseidel<listitem> 67*3de3c617Smseidel<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> 68*3de3c617Smseidel</listitem> 69*3de3c617Smseidel<listitem> 70*3de3c617Smseidel<paragraph xml-lang="en-US" id="par_id9139378" role="listitem" l10n="NEW">Select a number format and click <emph>OK</emph>.</paragraph> 71*3de3c617Smseidel</listitem> 72*3de3c617Smseidel</list> 73*3de3c617Smseidel<paragraph xml-lang="en-US" id="hd_id5051728" role="heading" level="2" l10n="NEW">Using Different Page Number Styles</paragraph> 74*3de3c617Smseidel<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> 75*3de3c617Smseidel<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> 76*3de3c617Smseidel<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> 77*3de3c617Smseidel<list type="unordered"> 78*3de3c617Smseidel<listitem> 79*3de3c617Smseidel<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> 80*3de3c617Smseidel<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> 81*3de3c617Smseidel</listitem> 82*3de3c617Smseidel<listitem> 83*3de3c617Smseidel<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> 84*3de3c617Smseidel<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> 85*3de3c617Smseidel<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> 86*3de3c617Smseidel</listitem> 87*3de3c617Smseidel</list> 88*3de3c617Smseidel<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> 89*3de3c617Smseidel<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> 90*3de3c617Smseidel<list type="ordered"> 91*3de3c617Smseidel<listitem> 92*3de3c617Smseidel<paragraph xml-lang="en-US" id="par_id4473403" role="listitem" l10n="NEW">Click into the first page of your document.</paragraph> 93*3de3c617Smseidel</listitem> 94*3de3c617Smseidel<listitem> 95*3de3c617Smseidel<paragraph xml-lang="en-US" id="par_id4313791" role="listitem" l10n="NEW">Choose <emph>Format - Styles and Formatting</emph>.</paragraph> 96*3de3c617Smseidel</listitem> 97*3de3c617Smseidel<listitem> 98*3de3c617Smseidel<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> 99*3de3c617Smseidel</listitem> 100*3de3c617Smseidel<listitem> 101*3de3c617Smseidel<paragraph xml-lang="en-US" id="par_id4191717" role="listitem" l10n="NEW">Double-click the "First Page" style.</paragraph> 102*3de3c617Smseidel</listitem> 103*3de3c617Smseidel</list> 104*3de3c617Smseidel<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> 105*3de3c617Smseidel<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> 106*3de3c617Smseidel<paragraph xml-lang="en-US" id="hd_id5298318" role="heading" level="3" l10n="NEW">To Apply a Manually Inserted Page Style Change</paragraph> 107*3de3c617Smseidel<list type="ordered"> 108*3de3c617Smseidel<listitem> 109*3de3c617Smseidel<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> 110*3de3c617Smseidel</listitem> 111*3de3c617Smseidel<listitem> 112*3de3c617Smseidel<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> 113*3de3c617Smseidel</listitem> 114*3de3c617Smseidel<listitem> 115*3de3c617Smseidel<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> 116*3de3c617Smseidel</listitem> 117*3de3c617Smseidel</list> 118*3de3c617Smseidel<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> 119*3de3c617Smseidel<embed href="text/shared/00/00000004.xhp#related"/> 120*3de3c617Smseidel<embed href="text/swriter/guide/footer_pagenumber.xhp#footer_pagenumber"/> 121*3de3c617Smseidel<embed href="text/swriter/guide/header_footer.xhp#header_footer"/> 122*3de3c617Smseidel<embed href="text/swriter/guide/even_odd_sdw.xhp#even_odd_sdw"/> 123*3de3c617Smseidel<embed href="text/swriter/guide/change_header.xhp#change_header"/> 124*3de3c617Smseidel<embed href="text/swriter/guide/header_with_chapter.xhp#header_with_chapter"/> 125*3de3c617Smseidel<embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/> 126*3de3c617Smseidel</body> 127*3de3c617Smseidel</helpdocument> 128