summaryrefslogtreecommitdiff
path: root/obsolete/macros/latex/contrib/rplain/rplain.dtx
blob: 0e42d8679bc4f6be8cbbfc2e089dbff8f59baa32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
% \iffalse meta-comment
%
% This is file `rplain.dtx'.
%
% Copyright (C) 1994-2006 Axel Sommerfeldt (caption@sommerfee.de)
% 
% --------------------------------------------------------------------------
% 
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
% 
% This work has the LPPL maintenance status "maintained".
% 
% This Current Maintainer of this work is Axel Sommerfeldt.
% 
% This work consists of the files rplain.ins, rplain.dtx
% and the derived file rplain.sty.
%
% \fi
% \CheckSum{27}
%
% \iffalse
%<*driver>
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\documentclass{ltxdoc}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\smallskipamount}
%
\ifx\pdfoutput\undefined\else
  \ifcase\pdfoutput\else
    \usepackage{mathptmx,courier}
    \usepackage[scaled=0.90]{helvet}
    \addtolength\marginparwidth{15pt}
  \fi
\fi
%
\usepackage{rplain}
\usepackage{hyperref}
%
%<+driver>\OnlyDescription
%
\begin{document}
  \DocInput{rplain.dtx}
\end{document}
%</driver>
% \fi
%
% \newcommand*{\purerm}[1]{{\upshape\mdseries\rmfamily #1}}
% \newcommand*{\puresf}[1]{{\upshape\mdseries\sffamily #1}}
% \newcommand*{\purett}[1]{{\upshape\mdseries\ttfamily #1}}
% \let\package\puresf\def\thispackage{\package{rplain}}
% \let\env\purett \let\opt\purett
%
% \changes{v1.0}{1994/10/10}{First release}
% \changes{v1.0a}{2002/02/04}{`Obsolete' warning added}
% \changes{v1.0b}{2006/01/29}{\cs{typeout} message removed}
%
% \GetFileInfo{rplain.sty}
% \title{The \thispackage\ package\thanks{This package has version number
%        \fileversion, last revised \filedate.}}
% \author{Axel Sommerfeldt\\\href{mailto:caption@sommerfee.de}{\texttt{caption@sommerfee.de}}}
% \date{2006/01/29}
% \maketitle
%
% \begin{abstract}
% The \thispackage\ package redefines the \texttt{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.
% \end{abstract}
%
% \section*{This package is obsolete!}
% This package was superseeded by the \package{fancyhdr} package~\cite{fancyhdr}
% and therefore is no longer supported.
% So please don't use \thispackage, just use \package{fancyhdr} instead:
%
% \section{The user interface}
% Type
% \begin{quote}
% |\usepackage{fancyhdr}|\\
% |\fancypagestyle{plain}{%|\\
% |  \fancyhf{} % clear all header and footer fields|\\
% |  \fancyfoot[LE,RO]{\thepage}|\\
% |  \renewcommand{\headrulewidth}{0pt}|\\
% |  \renewcommand{\footrulewidth}{0pt}}|\\
% |\pagestyle{plain}|
% \end{quote}
% in the preamble of your document.
% (See also section 7 ``Redefining \texttt{plain} style'' in \texttt{fancyhdr.pdf}.)
%
% \StopEventually{
%   \begin{thebibliography}{9}
%   \bibitem{fancyhdr}
%   Piet van Oostrum:
%   \textsl{Page layout in \LaTeX},
%   2000/10/11
%   \end{thebibliography}
% }
%
% \DoNotIndex{\@ifnextchar,\@ifundefined,\@namedef,\@nameuse}
% \DoNotIndex{\bgroup,\columnwidth,\csname,\def,\edef,\egroup,\else,\endcsname}
% \DoNotIndex{\empty,\expandafter,\fi,\global,\hfil,\ifx,\let,\newcommand,\noexpand}
% \DoNotIndex{\renewcommand,\rmfamily,\setbox,\textheight,\typeout,\undefined,\vbox}
% \DoNotIndex{\CurrentOption,\DeclareOption,\ExecuteOptions,\NeedsTeXFormat}
% \DoNotIndex{\PassOptionsToPackage,\ProcessOptions,\ProvidesPackage,\RequirePackage}
%
% \clearpage
% \setlength{\parskip}{0pt plus 1pt}
%
% \iffalse
%<*package>
% \fi
%
% \section{The Implementation}
%
% \subsection{Identification}
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{rplain}[2006/01/29 v1.0b rplain package (AS)]
\PackageWarning{rplain}{%
  This package has been superseeded by the `fancyhdr' package}
%    \end{macrocode}
%
% \subsection{Main code}
% \begin{macro}{\ps@plain}
% This macro was taken from |report.cls| (\LaTeXe\ 94/06/01 patch level 3)
% and modified.
%    \begin{macrocode}
\renewcommand{\ps@plain}{%
   \let\@mkboth\@gobbletwo
   \let\@oddhead\@empty\let\@evenhead\@empty
   \def\@evenfoot{\reset@font\rmfamily\thepage\hfil}%
   \def\@oddfoot{\reset@font\rmfamily\hfil\thepage}}
%    \end{macrocode}
% \end{macro}
% Now we have to call |\pagestyle{plain}| (again), so that the above macro
% will be used.
%    \begin{macrocode}
\pagestyle{plain}
%    \end{macrocode}
%
% \iffalse
%</package>
% \fi
%
% \Finale
%
\endinput