0% found this document useful (0 votes)
37 views2 pages

The Package: Rplain

This package is obsolete. It used to redefine the plain page style so that page numbers would be placed in the lower corners of pages rather than centered. However, it has been superseded by the fancyhdr package, which provides more control over headers and footers and should be used instead. The fancyhdr package is loaded with \usepackage{fancyhdr} and the plain page style can be redefined to move page numbers to the lower corners.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

The Package: Rplain

This package is obsolete. It used to redefine the plain page style so that page numbers would be placed in the lower corners of pages rather than centered. However, it has been superseded by the fancyhdr package, which provides more control over headers and footers and should be used instead. The fancyhdr package is loaded with \usepackage{fancyhdr} and the plain page style can be redefined to move page numbers to the lower corners.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

The rplain package

Axel Sommerfeldt
[email protected]
2006/01/29

Abstract
The rplain package redefines the plain pagestyle. The page numbers are now in
the lower right corner instead of being centered, like in this one-sided document. In
two-sided documents, the page numbers are in the lower left or right corner.

This package is obsolete!


This package was superseeded by the fancyhdr package [1] and therefore is no longer
supported. So please dont use rplain, just use fancyhdr instead:

The user interface

Type
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\pagestyle{plain}
in the preamble of your document. (See also section 7 Redefining plain style in
fancyhdr.pdf.)

This

package has version number v1.0b, last revised 2006/01/29.

2
2.1

The Implementation
Identification

1 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
2 \ProvidesPackage{rplain}[2006/01/29

v1.0b rplain package (AS)]

3 \PackageWarning{rplain}{%
4

2.2
\ps@plain

This package has been superseeded by the fancyhdr package}

Main code

This macro was taken from report.cls (LATEX 2 94/06/01 patch level 3) and modified.
5 \renewcommand{\ps@plain}{%
6
7
8
9

\let\@mkboth\@gobbletwo
\let\@oddhead\@empty\let\@evenhead\@empty
\def\@evenfoot{\reset@font\rmfamily\thepage\hfil}%
\def\@oddfoot{\reset@font\rmfamily\hfil\thepage}}

Now we have to call \pagestyle{plain} (again), so that the above macro will be
used.
10 \pagestyle{plain}

References
[1] Piet van Oostrum: Page layout in LATEX, 2000/10/11

You might also like