1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--
5***********************************************************************
6 *
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2000, 2010 Oracle and/or its affiliates.
10 *
11 * OpenOffice.org - a multi-platform office productivity suite
12 *
13 * This file is part of OpenOffice.org.
14 *
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
18 *
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
24 *
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org.  If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
29 *
30 ************************************************************************
31 -->
32
33
34<meta>
35      <topic id="textswriterguideheader_with_chapterxml" indexer="include" status="PUBLISH">
36         <title xml-lang="en-US" id="tit">Inserting a Chapter Name and Number in a Header or a Footer</title>
37         <filename>/text/swriter/guide/header_with_chapter.xhp</filename>
38      </topic>
39   </meta>
40   <body>
41<bookmark xml-lang="en-US" branch="index" id="bm_id3155919"><bookmark_value>running titles in headers</bookmark_value>
42      <bookmark_value>floating titles in headers</bookmark_value>
43      <bookmark_value>headers; chapter information</bookmark_value>
44      <bookmark_value>chapter names in headers</bookmark_value>
45      <bookmark_value>names; chapter names in headers</bookmark_value>
46</bookmark>
47<paragraph xml-lang="en-US" id="hd_id3155919" role="heading" level="1" l10n="U" oldref="3"><variable id="header_with_chapter"><link href="text/swriter/guide/header_with_chapter.xhp" name="Inserting a Chapter Name and Number in a Header or a Footer">Inserting a Chapter Name and Number in a Header or a Footer</link>
48</variable></paragraph>
49      <paragraph xml-lang="en-US" id="par_id3153414" role="paragraph" l10n="U" oldref="22">Before you can insert chapter information into a header or footer, you must first set the outline numbering options for the paragraph style that you want to use for chapter titles.</paragraph>
50      <paragraph xml-lang="en-US" id="hd_id3154244" role="heading" level="2" l10n="U"
51                 oldref="23">To Create a Paragraph Style for Chapter Titles</paragraph>
52      <list type="ordered">
53         <listitem>
54            <paragraph xml-lang="en-US" id="par_id3155874" role="listitem" l10n="U" oldref="24">Choose <emph>Tools - Outline Numbering</emph>.</paragraph>
55         </listitem>
56         <listitem>
57            <paragraph xml-lang="en-US" id="par_id3155898" role="listitem" l10n="U" oldref="25">In the <item type="menuitem">Style</item>
58               <emph/>box, select the paragraph style that you want to use for chapter titles, for example, "Heading 1".</paragraph>
59         </listitem>
60         <listitem>
61            <paragraph xml-lang="en-US" id="par_id3147124" role="listitem" l10n="U" oldref="26">Select the numbering style for the chapter titles in the <item type="menuitem">Number</item>
62               <emph/>box, for example, "1,2,3...".</paragraph>
63         </listitem>
64         <listitem>
65            <paragraph xml-lang="en-US" id="par_id3150219" role="listitem" l10n="U" oldref="27">Type "Chapter" followed by a space in the <item type="menuitem">Before</item>
66               <emph/>box.</paragraph>
67         </listitem>
68         <listitem>
69            <paragraph xml-lang="en-US" id="par_id3150245" role="listitem" l10n="U" oldref="28">Enter a space in the <item type="menuitem">After</item>
70               <emph/>box.</paragraph>
71         </listitem>
72         <listitem>
73            <paragraph xml-lang="en-US" id="par_id3150949" role="listitem" l10n="U" oldref="29">Click <emph>OK</emph>.</paragraph>
74         </listitem>
75      </list>
76      <paragraph xml-lang="en-US" id="hd_id3150505" role="heading" level="2" l10n="U"
77                 oldref="30">To Insert the Chapter Name and Number in a Header or a Footer</paragraph>
78      <list type="ordered">
79         <listitem>
80            <paragraph xml-lang="en-US" id="par_id3150527" role="listitem" l10n="U" oldref="5">Apply the paragraph style that you defined for chapter titles to the chapter headings in your document.</paragraph>
81         </listitem>
82         <listitem>
83            <paragraph xml-lang="en-US" id="par_id3153729" role="listitem" l10n="U" oldref="6">Choose <item type="menuitem">Insert - Header</item>
84               <emph/>or <item type="menuitem">Insert - Footer</item>, and then select the page style for the current page from the submenu.</paragraph>
85         </listitem>
86         <listitem>
87            <paragraph xml-lang="en-US" id="par_id3153762" role="listitem" l10n="U" oldref="7">Click in the header or footer.</paragraph>
88         </listitem>
89         <listitem>
90            <paragraph xml-lang="en-US" id="par_id3146863" role="listitem" l10n="U" oldref="9">Choose <item type="menuitem">Insert - Fields - Other</item> and click the<emph/>
91               <item type="menuitem">Document</item> tab.</paragraph>
92         </listitem>
93      </list>
94      <list type="ordered" startwith="5">
95         <listitem>
96            <paragraph xml-lang="en-US" id="par_id3153175" role="listitem" l10n="U" oldref="10">Click "Chapter" in the <item type="menuitem">Type</item>
97               <emph/>list and "Chapter number and name" in the <item type="menuitem">Format</item>
98               <emph/>list.</paragraph>
99         </listitem>
100         <listitem>
101            <paragraph xml-lang="en-US" id="par_id3147065" role="listitem" l10n="U" oldref="11">Click <emph>Insert</emph> and then click <emph>Close</emph>.</paragraph>
102         </listitem>
103      </list>
104      <paragraph xml-lang="en-US" id="par_id3147095" role="paragraph" l10n="U" oldref="12">The header on every page that uses the current page style automatically displays the chapter name and number.</paragraph>
105      <embed href="text/shared/00/00000004.xhp#related"/>
106      <embed href="text/swriter/guide/header_footer.xhp#header_footer"/>
107      <embed href="text/swriter/guide/change_header.xhp#change_header"/>
108      <embed href="text/swriter/guide/header_pagestyles.xhp#header_pagestyles"/>
109      <embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/>
110   </body>
111</helpdocument>