The Package: Rplain
The Package: Rplain
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.
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
2
2.1
The Implementation
Identification
1 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
2 \ProvidesPackage{rplain}[2006/01/29
3 \PackageWarning{rplain}{%
4
2.2
\ps@plain
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