1<?xml version="1.0" encoding="UTF-8"?> 2<helpdocument version="1.0"> 3 4<!--*********************************************************** 5 * 6 * Licensed to the Apache Software Foundation (ASF) under one 7 * or more contributor license agreements. See the NOTICE file 8 * distributed with this work for additional information 9 * regarding copyright ownership. The ASF licenses this file 10 * to you under the Apache License, Version 2.0 (the 11 * "License"); you may not use this file except in compliance 12 * with the License. You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, 17 * software distributed under the License is distributed on an 18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19 * KIND, either express or implied. See the License for the 20 * specific language governing permissions and limitations 21 * under the License. 22 * 23 ***********************************************************--> 24 25 26 27 28<meta> 29 <topic id="textswriterguideheader_with_chapterxml" indexer="include" status="PUBLISH"> 30 <title xml-lang="en-US" id="tit">Inserting a Chapter Name and Number in a Header or a Footer</title> 31 <filename>/text/swriter/guide/header_with_chapter.xhp</filename> 32 </topic> 33 </meta> 34 <body> 35<bookmark xml-lang="en-US" branch="index" id="bm_id3155919"><bookmark_value>running titles in headers</bookmark_value> 36 <bookmark_value>floating titles in headers</bookmark_value> 37 <bookmark_value>headers; chapter information</bookmark_value> 38 <bookmark_value>chapter names in headers</bookmark_value> 39 <bookmark_value>names; chapter names in headers</bookmark_value> 40</bookmark> 41<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> 42</variable></paragraph> 43 <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> 44 <paragraph xml-lang="en-US" id="hd_id3154244" role="heading" level="2" l10n="U" 45 oldref="23">To Create a Paragraph Style for Chapter Titles</paragraph> 46 <list type="ordered"> 47 <listitem> 48 <paragraph xml-lang="en-US" id="par_id3155874" role="listitem" l10n="U" oldref="24">Choose <emph>Tools - Outline Numbering</emph>.</paragraph> 49 </listitem> 50 <listitem> 51 <paragraph xml-lang="en-US" id="par_id3155898" role="listitem" l10n="U" oldref="25">In the <item type="menuitem">Style</item> 52 <emph/>box, select the paragraph style that you want to use for chapter titles, for example, "Heading 1".</paragraph> 53 </listitem> 54 <listitem> 55 <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> 56 <emph/>box, for example, "1,2,3...".</paragraph> 57 </listitem> 58 <listitem> 59 <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> 60 <emph/>box.</paragraph> 61 </listitem> 62 <listitem> 63 <paragraph xml-lang="en-US" id="par_id3150245" role="listitem" l10n="U" oldref="28">Enter a space in the <item type="menuitem">After</item> 64 <emph/>box.</paragraph> 65 </listitem> 66 <listitem> 67 <paragraph xml-lang="en-US" id="par_id3150949" role="listitem" l10n="U" oldref="29">Click <emph>OK</emph>.</paragraph> 68 </listitem> 69 </list> 70 <paragraph xml-lang="en-US" id="hd_id3150505" role="heading" level="2" l10n="U" 71 oldref="30">To Insert the Chapter Name and Number in a Header or a Footer</paragraph> 72 <list type="ordered"> 73 <listitem> 74 <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> 75 </listitem> 76 <listitem> 77 <paragraph xml-lang="en-US" id="par_id3153729" role="listitem" l10n="U" oldref="6">Choose <item type="menuitem">Insert - Header</item> 78 <emph/>or <item type="menuitem">Insert - Footer</item>, and then select the page style for the current page from the submenu.</paragraph> 79 </listitem> 80 <listitem> 81 <paragraph xml-lang="en-US" id="par_id3153762" role="listitem" l10n="U" oldref="7">Click in the header or footer.</paragraph> 82 </listitem> 83 <listitem> 84 <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/> 85 <item type="menuitem">Document</item> tab.</paragraph> 86 </listitem> 87 </list> 88 <list type="ordered" startwith="5"> 89 <listitem> 90 <paragraph xml-lang="en-US" id="par_id3153175" role="listitem" l10n="U" oldref="10">Click "Chapter" in the <item type="menuitem">Type</item> 91 <emph/>list and "Chapter number and name" in the <item type="menuitem">Format</item> 92 <emph/>list.</paragraph> 93 </listitem> 94 <listitem> 95 <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> 96 </listitem> 97 </list> 98 <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> 99 <embed href="text/shared/00/00000004.xhp#related"/> 100 <embed href="text/swriter/guide/header_footer.xhp#header_footer"/> 101 <embed href="text/swriter/guide/change_header.xhp#change_header"/> 102 <embed href="text/swriter/guide/header_pagestyles.xhp#header_pagestyles"/> 103 <embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/> 104 </body> 105</helpdocument>