<?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="textswriterguidepagestylesxml" indexer="include" status="PUBLISH">
    <title id="tit">Creating and Applying Page Styles</title>
    <filename>/text/swriter/guide/pagestyles.xhp</filename>
  </topic>
</meta>

<body>

<bookmark branch="index" id="bm_id7071138">
  <bookmark_value>page styles;creating and applying</bookmark_value>
  <bookmark_value>defining;page styles</bookmark_value>
  <bookmark_value>styles;for pages</bookmark_value>
  <bookmark_value>overriding next style;for pages</bookmark_value>
</bookmark>

<h1 id="hd_id3155182"><variable id="pagestyles"><link href="text/swriter/guide/pagestyles.xhp">Creating and Applying Page Styles</link></variable></h1>
<paragraph id="par_id3149846" role="paragraph">$[officename] uses page styles to specify the layout of a page, including the page orientation, background, margins, headers, footers, and text columns. To change the layout of an individual page in a document, you must create and apply a custom page style to the page.</paragraph>

<h2 id="hd_id3156109">To Define a New Page Style</h2>

<list type="ordered">
  <listitem>
    <paragraph id="par_id3153411" role="listitem">Choose <menuitem>View - Styles</menuitem>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3153133" role="listitem">Click the <emph>Page Styles</emph> icon.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3149641" role="listitem">In the list of page styles, right-click an item, and then choose <emph>New</emph>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3149614" role="listitem">On the <emph>General</emph> tab, type a name in the <emph>Name</emph> box.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3145110" role="listitem">Do one of the following:</paragraph>
  </listitem>
</list>

<list type="unordered">
  <listitem>
    <paragraph id="par_id3156252" role="listitem">To apply the custom page style to a single page, select the default page style that is used in your document in the <emph>Next Style</emph> box.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3153376" role="listitem">To apply the custom page style to more than one page, select its name in the <emph>Next Style</emph> box. To stop using the style, insert a manual page break and assign it a different page style.</paragraph>
  </listitem></list>

<list type="ordered" startwith="6">
  <listitem>
    <paragraph id="par_id3154252" role="listitem">Use the tabs in the dialog to set the layout options for the page style, and then click <emph>OK</emph>.</paragraph>
  </listitem>
</list>

<h2 id="hd_id3154851">To Apply a Page Style</h2>

<list type="ordered">
  <listitem>
    <paragraph id="par_id3154873" role="listitem">Click in the page that you want to apply the page style to.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id471615462517274" role="listitem">Do one of the following:</paragraph>
  </listitem>
</list>
  <list type="unordered">
  <listitem>
    <paragraph id="par_id3155888" role="listitem">Choose <menuitem>View - Styles</menuitem>, and then click the <menuitem>Page Style</menuitem> icon.</paragraph>
    <paragraph id="par_id3148685" role="listitem">Double-click a name in the list.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id891615460923756" role="listitem">Right-click the page style displayed in the <link href="text/shared/01/03060000">Status Bar</link>. Select another page style.</paragraph>
  </listitem>
  </list>

<h2 id="hd_id181615419889677">To Manually Override the “Next style” of a Page Style</h2>

<list type="ordered">
  <listitem>
    <paragraph id="par_id601615419994433" role="listitem">Place cursor between the page with the page style and the page with the style specified in <emph>Next style</emph>.</paragraph>
  </listitem>
  <listitem>
      <paragraph id="par_id301615420000676" role="listitem">Right-click and choose <menuitem>Edit Page Break</menuitem>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id271615420006519" role="listitem">Select the <emph>With page style</emph> checkbox.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id601615420013170" role="listitem">Enter the page style to be applied.</paragraph>
  </listitem>
</list>
<paragraph role="paragraph" id="par_id231615420303511">See <link href="text/swriter/guide/pageorientation.xhp#scope">Manually Defined Range of a Page style</link>.</paragraph>

<note id="par_id891615463137607"> A special situation arises when a <emph>Next style</emph> is different than the page style itself, and you want to apply that page style to two consecutive pages. For example, if you have applied <emph>First Page</emph> style to a page, and want to apply First Page style again to the immediately following page, then you must manually override First Page style, because it is configured to be followed by <emph>Default Page Style</emph>.</note>

<h2 id="hd_id3148701">To Apply a Page Style to a New Page</h2>

<list type="ordered">
  <listitem>
    <paragraph id="par_id3147122" role="listitem">Click in the document where you want a new page to start.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150210" role="listitem">Choose <menuitem>Insert - More Breaks - Manual Break</menuitem>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150235" role="listitem">Select <emph>Page break</emph>.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150939" role="listitem">In the <menuitem>Page Style</menuitem> box, select the page style that you want to apply to the page that follows the manual break.</paragraph>
  </listitem>
  <listitem>
    <paragraph id="par_id3150965" role="listitem">Click <emph>OK</emph>.</paragraph>
  </listitem>
</list>
<section id="relatedtopics">
<embed href="text/swriter/guide/change_header.xhp#change_header"/>
<embed href="text/swriter/guide/pagenumbers.xhp#pagenumbers"/>
<embed href="text/swriter/guide/header_with_chapter.xhp#header_with_chapter"/>
<embed href="text/swriter/guide/header_footer.xhp#header_footer"/>
<embed href="text/swriter/guide/header_with_line.xhp#header_with_line"/>
<embed href="text/shared/guide/standard_template.xhp#standard_template"/>
<embed href="text/swriter/guide/pageorientation.xhp#pageorientation"/>
<embed href="text/swriter/guide/pagebackground.xhp#pagebackground"/>
</section>
</body>
</helpdocument>
