<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to HowTo_PaginationInFooterMiddle</title><link>https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterMiddle/</link><description>Recent changes to HowTo_PaginationInFooterMiddle</description><atom:link href="https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterMiddle/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 28 Jul 2021 09:26:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterMiddle/feed" rel="self" type="application/rss+xml"/><item><title>HowTo_PaginationInFooterMiddle modified by Markus Kohm</title><link>https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterMiddle/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Markus Kohm</dc:creator><pubDate>Wed, 28 Jul 2021 09:26:30 -0000</pubDate><guid>https://sourceforge.net8d35e218540ff43189671baca3261674effbae54</guid></item><item><title>HowTo_PaginationInFooterMiddle modified by Markus Kohm</title><link>https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterMiddle/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="how-to-move-the-page-number-to-the-middle-of-the-foot-for-a-double-sided-document"&gt;How to move the page number to the middle of the foot for a double-sided document&lt;/h1&gt;
&lt;p&gt;Usually, the KOMA-Script classes set the page number for a double-sided document like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;\documentclass&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;scrbook&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;blindtext&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\begin&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;document&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\blinddocument&lt;/span&gt;
&lt;span class="k"&gt;\end&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;document&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;in the footer outside flush with the text area. The classes themselves do not offer the option of pagination in the middle of the footer instead. For a corresponding change, a package such as &lt;a class="" href="https://www.ctan.org/pkg/scrlayer-scrpage" rel="nofollow"&gt;&lt;code&gt;scrlayer-scrpage&lt;/code&gt;&lt;/a&gt; is therefore absolutely necessary.&lt;/p&gt;
&lt;p&gt;To output the page number in the middle of the footer the command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;\cfoot*&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\pagemark&lt;/span&gt;&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;of &lt;code&gt;scrlayer-scrpage&lt;/code&gt; can be used. The asterisk at the end of the name of the command ensures that this change is also applied to plain pages, for example, on the first page of a chapter. If you try out:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;\documentclass&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;scrbook&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="na"&gt;[automark]&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;scrlayer-scrpage&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;blindtext&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\cfoot*&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\pagemark&lt;/span&gt;&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\begin&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;document&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\blinddocument&lt;/span&gt;
&lt;span class="k"&gt;\end&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;document&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;you will get two page numbers in each foot: the desired one in the middle and the undesired one on the outside. To get rid of the default page number on the outside, you have to fill the corresponding field with an empty content by&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;\ofoot*&lt;/span&gt;&lt;span class="nb"&gt;{}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;With:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;\documentclass&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;scrbook&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="na"&gt;[automark]&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;scrlayer-scrpage&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\usepackage&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;blindtext&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\cfoot*&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;&lt;span class="k"&gt;\pagemark&lt;/span&gt;&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\ofoot*&lt;/span&gt;&lt;span class="nb"&gt;{}&lt;/span&gt;
&lt;span class="k"&gt;\begin&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;document&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;\blinddocument&lt;/span&gt;
&lt;span class="k"&gt;\end&lt;/span&gt;&lt;span class="nb"&gt;{&lt;/span&gt;document&lt;span class="nb"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;you will get only the desired page number in the middle of the footer.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Markus Kohm</dc:creator><pubDate>Tue, 27 Apr 2021 14:16:24 -0000</pubDate><guid>https://sourceforge.netfe2e6a66f48c5ada28d25f40647b11a125c0f6e6</guid></item></channel></rss>