<?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_PaginationInFooterRight</title><link>https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterRight/</link><description>Recent changes to HowTo_PaginationInFooterRight</description><atom:link href="https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterRight/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 28 Jul 2021 09:28:54 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterRight/feed" rel="self" type="application/rss+xml"/><item><title>HowTo_PaginationInFooterRight modified by Markus Kohm</title><link>https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterRight/</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:28:54 -0000</pubDate><guid>https://sourceforge.net10ff2227e374127be0b57f9a2667a70f0313bbc0</guid></item><item><title>HowTo_PaginationInFooterRight modified by Markus Kohm</title><link>https://sourceforge.net/p/koma-script/wiki-en/HowTo_PaginationInFooterRight/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="how-to-move-the-page-number-to-the-right-for-a-single-sided-document"&gt;How to move the page number to the right for a single-sided document&lt;/h1&gt;
&lt;p&gt;Usually, the KOMA-Script classes set the page number for a single-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;scrreprt&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;is centred in the footer. The classes themselves do not offer the option of pagination right aligned in the footer (relative to the text area). 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 right aligned in 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;\ofoot*&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;scrreprt&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;\ofoot*&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 right aligned one and the undesired one in the middle. To get rid of the default page number in the middle, 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;\cfoot*&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;\ofoot*&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;\cfoot*&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 right aligned page number in the footer.&lt;/p&gt;
&lt;p&gt;Instead of &lt;code&gt;\ofoot*&lt;/code&gt;, &lt;code&gt;\rofoot*&lt;/code&gt; could have been used in the examples, since in single-sided documents only right (in LaTeX terminology odd) pages exist. However, there is a difference when using option &lt;code&gt;twoside=semi&lt;/code&gt;.&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:29:02 -0000</pubDate><guid>https://sourceforge.netb5eb58b5dcf713540b35b68021a254d947cc6db5</guid></item></channel></rss>