<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">

<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->


<meta>
      <topic id="textswriterguidefooter_pagenumberxml" indexer="include" status="PUBLISH">
         <title id="tit">Inserting Page Numbers in Footers</title>
         <filename>/text/swriter/guide/footer_pagenumber.xhp</filename>
      </topic>
   </meta>
   <body>
<bookmark branch="index" id="bm_id3155624"><bookmark_value>footers; with page numbers</bookmark_value>
      <bookmark_value>pages; numbers and count of</bookmark_value>
      <bookmark_value>page numbers; footers</bookmark_value>
      <bookmark_value>numbering;pages</bookmark_value>
</bookmark>
<h1 id="hd_id3155624"><variable id="footer_pagenumber"><link href="text/swriter/guide/footer_pagenumber.xhp">Inserting Page Numbers in Footers</link></variable></h1>
      <paragraph id="par_id8230842" role="paragraph">You can easily insert a page number field in the footer of your document. The easiest way is using <emph>Insert - Page Number</emph> dialog. The following procedure describes a manual method. You can also add a page count to the footer, for example, in the form "Page 9 of 12"</paragraph>
      <h2 id="hd_id7867366">To Insert a Page Number</h2>
      <list type="ordered">
         <listitem>
            <paragraph id="par_id3150508" role="listitem">If the needed page style doesn't have a footer yet, choose <emph>Insert - Header and Footer - Footer</emph> and select the page style that you want to add the footer to; this will automatically put cursor to the newly added footer. If the page style already had a footer, double-click the footer area to put cursor there.</paragraph>
         </listitem>
         <listitem>
            <paragraph id="par_id3150534" role="listitem">Choose <emph>Insert - Field - Page Number</emph>.</paragraph>
         </listitem>
      </list>
      <paragraph id="par_id3153155" role="paragraph">If you want, you can align the page number field as you would text.</paragraph>
      <h2 id="hd_id2988677">To Additionally Add a Page Count</h2>
      <list type="ordered">
         <listitem>
            <paragraph id="par_id3155532" role="listitem">Click in front of the page number field, type <item type="literal">Page</item> and enter a space; click after the field, enter a space and then type <item type="literal">of</item> and enter another space.</paragraph>
         </listitem>
         <listitem>
            <paragraph id="par_id3155554" role="listitem">Choose <emph>Insert - Field - Page Count</emph>.</paragraph>
         </listitem>
      </list>
      <h2 id="hd_id331715628566984" localize="false"><embedvar href="text/swriter/guide/title_page.xhp#usingtitlepage"/></h2>
      <paragraph role="paragraph" id="par_id21715629004389">Title pages are a common way to create documents with different page numbering schemes.</paragraph>
<section id="relatedtopics">
      <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"/>
</section>
   </body>
</helpdocument>
