summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/swriter/guide/pagenumbers.xhp
blob: 2e6fdf5ecdf6f39c0ac8bde9f07ae4aff86f93b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0" encoding="UTF-8"?>



<!--
 ***********************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2008 by Sun Microsystems, Inc.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * $RCSfile: pagenumbers.xhp,v $
 * $Revision: 1.5 $
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************
 -->


		<helpdocument version="1.0">
<meta>
<topic id="textswriterguidepagenumbersxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Page Numbers </title>
<filename>/text/swriter/guide/pagenumbers.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id5918759"><bookmark_value>page numbers;inserting/defining/formatting</bookmark_value>
<bookmark_value>page styles;page numbering</bookmark_value>
<bookmark_value>starting page numbers</bookmark_value>
<bookmark_value>formatting;page numbers</bookmark_value>
<bookmark_value>defining;starting page numbers</bookmark_value>
<bookmark_value>inserting;page numbers</bookmark_value>
</bookmark><comment>mw inserted six index entries</comment><paragraph role="heading" id="hd_id413830" xml-lang="en-US" level="1" l10n="NEW"><variable id="pagenumbers"><link href="text/swriter/guide/pagenumbers.xhp" name="Page Numbers">Page Numbers</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_id1617175" xml-lang="en-US" l10n="NEW">In Writer, a page number is a field that you can insert into your text.</paragraph>
<paragraph role="heading" id="hd_id6091494" xml-lang="en-US" level="2" l10n="NEW">Inserting page numbers</paragraph>
<list type="unordered">
<listitem>
<paragraph role="paragraph" id="par_id8611102" xml-lang="en-US" l10n="NEW">Choose <emph>Insert - Fields - Page Number</emph> to insert a page number at the current cursor position.</paragraph>
</listitem>
</list>
<paragraph role="tip" id="par_id6604510" xml-lang="en-US" l10n="NEW">If you see the text "Page number" instead of the number, choose <emph>View - Field names</emph>.</paragraph>
<paragraph role="paragraph" id="par_id2678914" xml-lang="en-US" 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>
<list type="unordered">
<listitem>
<paragraph role="paragraph" id="par_id614642" xml-lang="en-US" l10n="NEW">Choose <emph>Insert - Header - (name of page style)</emph> or <emph>Insert - Footer - (name of page style)</emph> to add a header or footer to all pages with the current Page Style.</paragraph>
</listitem>
</list>
<paragraph role="heading" id="hd_id2551652" xml-lang="en-US" level="2" l10n="NEW">Starting with a defined page number</paragraph>
<paragraph role="paragraph" id="par_id6111941" xml-lang="en-US" 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>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_id5757621" xml-lang="en-US" l10n="NEW">Click into the first paragraph of your document.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id2632831" xml-lang="en-US" l10n="NEW">Choose <emph>Format - Paragraph - Text flow</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id4395275" xml-lang="en-US" 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>
</listitem>
</list>
<paragraph role="note" id="par_id1654408" xml-lang="en-US" l10n="NEW">The new page number is an attribute of the first paragraph of the page.</paragraph>
<paragraph role="heading" id="hd_id7519150" xml-lang="en-US" level="2" l10n="NEW">Formatting the page number style</paragraph>
<paragraph role="paragraph" id="par_id9029206" xml-lang="en-US" l10n="NEW">You want roman page numbers running i, ii, iii, iv, and so on.</paragraph>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_id3032319" xml-lang="en-US" l10n="NEW">Double-click directly before the page number field. You see the <emph>Edit Fields</emph> dialog.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id9139378" xml-lang="en-US" l10n="NEW">Select a number format and click <emph>OK</emph>.</paragraph>
</listitem>
</list>
<paragraph role="heading" id="hd_id5051728" xml-lang="en-US" level="2" l10n="NEW">Using different page number styles</paragraph>
<paragraph role="paragraph" id="par_id1558885" xml-lang="en-US" l10n="NEW">You need some pages with the roman numbering style, followed by the remaining pages in another style.</paragraph>
<paragraph role="paragraph" id="par_id1541184" xml-lang="en-US" 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>
<paragraph role="paragraph" id="par_id18616" xml-lang="en-US" 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>
<list type="unordered">
<listitem>
<paragraph role="paragraph" id="par_id6138492" xml-lang="en-US" 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>
<paragraph role="paragraph" id="par_id4569231" xml-lang="en-US" l10n="NEW">For example, the "First Page" Page Style has "Default" as the next style. To see this, you may press F11 to open the <emph>Styles and Formatting</emph> window, click the <emph>Page Styles</emph> icon, right-click the First Page entry. Choose <emph>Modify</emph> from the context menu. On the Organizer tab, you can see the "next style".</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id291451" xml-lang="en-US" l10n="NEW">A <emph>manually inserted page break</emph> can be applied without or with a change of page styles.</paragraph>
<paragraph role="paragraph" id="par_id3341776" xml-lang="en-US" l10n="NEW">If you just press <item type="keycode">Ctrl+Enter</item>, you apply a page break without a change of styles.</paragraph>
<paragraph role="paragraph" id="par_id5947141" xml-lang="en-US" 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>
</listitem>
</list>
<paragraph role="paragraph" id="par_id1911679" xml-lang="en-US" 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>
<paragraph role="heading" id="hd_id9364909" xml-lang="en-US" level="3" l10n="NEW">To apply a different page style to the first page</paragraph>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_id4473403" xml-lang="en-US" l10n="NEW">Click into the first page of your document.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id4313791" xml-lang="en-US" l10n="NEW">Choose <emph>Format - Styles and Formatting</emph>. </paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id4331797" xml-lang="en-US" l10n="NEW">In the <emph>Styles and Formatting</emph> window, click the <emph>Page Styles</emph> icon.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id4191717" xml-lang="en-US" l10n="NEW">Double-click the "First Page" style.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id2318796" xml-lang="en-US" l10n="NEW">Now your title page has the style "First Page", and the next pages automatically have the "Default" style.</paragraph>
<paragraph role="paragraph" id="par_id399182" xml-lang="en-US" l10n="NEW">You can now for example insert a footer for the "Default" Page Style only, or insert footers in both Page Styles, but with differently formatted page number fields.</paragraph>
<paragraph role="heading" id="hd_id5298318" xml-lang="en-US" level="3" l10n="NEW">To apply a manually inserted Page Style change</paragraph>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_id7588732" xml-lang="en-US" l10n="NEW">Click at the start of the first paragraph on the page where a different Page Style will be applied.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id95828" xml-lang="en-US" l10n="NEW">Choose <emph>Insert - Manual Break</emph>. You see the <emph>Insert Break</emph> dialog.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id3496200" xml-lang="en-US" l10n="NEW">In the Style list box, select a Page Style. You may set a new page number, too. Click <emph>OK</emph>.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id7599108" xml-lang="en-US" 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>
<embed href="text/shared/00/00000004.xhp#related"/>
<embed href="text/swriter/guide/footer_pagenumber.xhp#footer_pagenumber"/>
<embed href="text/swriter/guide/header_footer.xhp#header_footer"/>
<embed href="text/swriter/guide/even_odd_sdw.xhp#even_odd_sdw"/>
<embed href="text/swriter/guide/change_header.xhp#change_header"/>
<embed href="text/swriter/guide/header_with_chapter.xhp#header_with_chapter"/>
<embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/>
</body>
</helpdocument>