<?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="textswriterguideheader_pagestylesxml" indexer="include" status="PUBLISH">
    <title id="tit">Defining Different Headers and Footers</title>
    <filename>/text/swriter/guide/header_pagestyles.xhp</filename>
  </topic>
</meta>

<body>

<bookmark branch="index" id="bm_id3155920">
  <bookmark_value>headers;defining for left and right pages</bookmark_value>
  <bookmark_value>footers;defining for left and right pages</bookmark_value>
  <bookmark_value>page styles; changing</bookmark_value>
  <bookmark_value>defining; headers/footers</bookmark_value>
  <bookmark_value>mirrored page layout</bookmark_value>
</bookmark>

<h1 id="hd_id3155920"><variable id="header_pagestyles"><link href="text/swriter/guide/header_pagestyles.xhp">Defining Different Headers and Footers</link></variable></h1>
<paragraph id="par_id3154263" role="paragraph">You can use different headers and footers on different pages in your document, so long as the pages use different page styles. $[officename] provides several predefined page styles, such as <emph>First page</emph>, <emph>Left page</emph> and <emph>Right page</emph>, or you can create a custom page style.</paragraph>
<paragraph id="par_id3147105" role="paragraph">You can also use the mirrored page layout if you want to add a header to a page style that has different inner and outer page margins. To apply this option to a page style, choose <menuitem>Format - Page Style</menuitem>, click the <menuitem>Page</menuitem> tab, and in the <menuitem>Layout settings</menuitem> area, choose “Mirrored” in the <menuitem>Page layout</menuitem> box.</paragraph>
<paragraph id="par_id3150224" role="paragraph">For example, you can use page styles to define different headers for even and odd pages in a document.</paragraph>

<list type="ordered">
  <listitem>
    <paragraph id="par_id3150929" role="listitem">Open a new text document.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150946" role="listitem">Choose <emph>View - Styles</emph> and click the <emph>Page Styles</emph> icon in the Styles sidebar deck.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150510" role="listitem">Right-click "Right Page" in the list of page styles and choose <emph>Modify</emph>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150536" role="listitem">In the <menuitem>Page Styles</menuitem> dialog, click the <menuitem>Header</menuitem> tab.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3153750" role="listitem">Select <menuitem>Header on</menuitem> and click the <menuitem>General</menuitem> tab.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3146865" role="listitem">In the <menuitem>Next Style</menuitem> box, select "Left Page".</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3146889" role="listitem">Click <emph>OK</emph>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150714" role="listitem">In the <emph>Styles</emph> window, right-click "Left Page" in the list of page styles and choose <emph>Modify</emph>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150748" role="listitem">In the <menuitem>Page Styles</menuitem> dialog, click the <menuitem>Header</menuitem> tab.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3153172" role="listitem">Select <menuitem>Header on</menuitem> and click the <menuitem>General</menuitem> tab.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3147061" role="listitem">In the <menuitem>Next Style</menuitem> box, select "Right Page".</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3147086" role="listitem">Click <emph>OK</emph>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3145263" role="listitem">Double-click "Right Page" in the list of page styles to apply the style to the current page.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3145284" role="listitem">Enter text or graphics in the header for the Left Page style. After the next page is added to your document, enter text or graphics in the header for the Right Page style.</paragraph>
  </listitem>
</list>

<section id="relatedtopics">
<embed href="text/swriter/guide/header_footer.xhp#header_footer"/>
<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>
