xref: /AOO42X/main/helpcontent2/source/text/swriter/guide/header_with_chapter.xhp (revision da39209ec3b2294604e1120a772843de9095355b)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
30e4b25e7SAndrew Rist<!--***********************************************************
4cdf0e10cSrcweir *
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
12cdf0e10cSrcweir *
130e4b25e7SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14cdf0e10cSrcweir *
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.
21cdf0e10cSrcweir *
220e4b25e7SAndrew Rist ***********************************************************-->
230e4b25e7SAndrew Rist
245b00253eSmseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textswriterguideheader_with_chapterxml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Inserting a Chapter Name and Number in a Header or a Footer</title>
28cdf0e10cSrcweir<filename>/text/swriter/guide/header_with_chapter.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
325b00253eSmseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3155919">
335b00253eSmseidel<bookmark_value>running titles in headers</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>floating titles in headers</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>headers; chapter information</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>chapter names in headers</bookmark_value>
37cdf0e10cSrcweir<bookmark_value>names; chapter names in headers</bookmark_value>
38cdf0e10cSrcweir</bookmark>
39*da39209eSmseidel<paragraph xml-lang="en-US" id="hd_id3155919" role="heading" level="1" l10n="U"><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>
40cdf0e10cSrcweir</variable></paragraph>
41*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3153414" role="paragraph" l10n="U">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>
42*da39209eSmseidel<paragraph xml-lang="en-US" id="hd_id3154244" role="heading" level="2" l10n="U">To Create a Paragraph Style for Chapter Titles</paragraph>
43cdf0e10cSrcweir<list type="ordered">
44cdf0e10cSrcweir<listitem>
45*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3155874" role="listitem" l10n="U">Choose <emph>Tools - Outline Numbering</emph>.</paragraph>
46cdf0e10cSrcweir</listitem>
47cdf0e10cSrcweir<listitem>
48*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3155898" role="listitem" l10n="U">In the <item type="menuitem">Style</item> box, select the paragraph style that you want to use for chapter titles, for example, "Heading 1".</paragraph>
49cdf0e10cSrcweir</listitem>
50cdf0e10cSrcweir<listitem>
51*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3147124" role="listitem" l10n="U">Select the numbering style for the chapter titles in the <item type="menuitem">Number</item> box, for example, "1,2,3...".</paragraph>
52cdf0e10cSrcweir</listitem>
53cdf0e10cSrcweir<listitem>
54*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3150219" role="listitem" l10n="U">Type "Chapter" followed by a space in the <item type="menuitem">Before</item> box.</paragraph>
55cdf0e10cSrcweir</listitem>
56cdf0e10cSrcweir<listitem>
57*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3150245" role="listitem" l10n="U">Enter a space in the <item type="menuitem">After</item> box.</paragraph>
58cdf0e10cSrcweir</listitem>
59cdf0e10cSrcweir<listitem>
60*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3150949" role="listitem" l10n="U">Click <emph>OK</emph>.</paragraph>
61cdf0e10cSrcweir</listitem>
62cdf0e10cSrcweir</list>
63*da39209eSmseidel<paragraph xml-lang="en-US" id="hd_id3150505" role="heading" level="2" l10n="U">To Insert the Chapter Name and Number in a Header or a Footer</paragraph>
64cdf0e10cSrcweir<list type="ordered">
65cdf0e10cSrcweir<listitem>
66*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3150527" role="listitem" l10n="U">Apply the paragraph style that you defined for chapter titles to the chapter headings in your document.</paragraph>
67cdf0e10cSrcweir</listitem>
68cdf0e10cSrcweir<listitem>
69*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3153729" role="listitem" l10n="U">Choose <item type="menuitem">Insert - Header</item> or <item type="menuitem">Insert - Footer</item>, and then select the page style for the current page from the submenu.</paragraph>
70cdf0e10cSrcweir</listitem>
71cdf0e10cSrcweir<listitem>
72*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3153762" role="listitem" l10n="U">Click in the header or footer.</paragraph>
73cdf0e10cSrcweir</listitem>
74cdf0e10cSrcweir<listitem>
75*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3146863" role="listitem" l10n="U">Choose <item type="menuitem">Insert - Fields - Other</item> and click the <item type="menuitem">Document</item> tab.</paragraph>
76cdf0e10cSrcweir</listitem>
77cdf0e10cSrcweir</list>
78cdf0e10cSrcweir<list type="ordered" startwith="5">
79cdf0e10cSrcweir<listitem>
80*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3153175" role="listitem" l10n="U">Click "Chapter" in the <item type="menuitem">Type</item> list and "Chapter number and name" in the <item type="menuitem">Format</item> list.</paragraph>
81cdf0e10cSrcweir</listitem>
82cdf0e10cSrcweir<listitem>
83*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3147065" role="listitem" l10n="U">Click <emph>Insert</emph> and then click <emph>Close</emph>.</paragraph>
84cdf0e10cSrcweir</listitem>
85cdf0e10cSrcweir</list>
86*da39209eSmseidel<paragraph xml-lang="en-US" id="par_id3147095" role="paragraph" l10n="U">The header on every page that uses the current page style automatically displays the chapter name and number.</paragraph>
87cdf0e10cSrcweir<embed href="text/shared/00/00000004.xhp#related"/>
88cdf0e10cSrcweir<embed href="text/swriter/guide/header_footer.xhp#header_footer"/>
89cdf0e10cSrcweir<embed href="text/swriter/guide/change_header.xhp#change_header"/>
90cdf0e10cSrcweir<embed href="text/swriter/guide/header_pagestyles.xhp#header_pagestyles"/>
91cdf0e10cSrcweir<embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/>
92cdf0e10cSrcweir</body>
93cdf0e10cSrcweir</helpdocument>
94