| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1993-2025 |
| 4 |
% The LaTeX Project and any individual authors listed elsewhere |
| 5 |
% in this file. |
| 6 |
% |
| 7 |
% This file is part of the LaTeX base system. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 10 |
% It may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 12 |
% of this license or (at your option) any later version. |
| 13 |
% The latest version of this license is in |
| 14 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008 or later. |
| 17 |
% |
| 18 |
% This file has the LPPL maintenance status "maintained". |
| 19 |
% |
| 20 |
% The list of all files belonging to the LaTeX base distribution is |
| 21 |
% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 22 |
% information. |
| 23 |
% |
| 24 |
% The list of derived (unpacked) files belonging to the distribution |
| 25 |
% and covered by LPPL is defined by the unpacking scripts (with |
| 26 |
% extension .ins) which are part of the distribution. |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% |
| 30 |
% \iffalse |
| 31 |
%%% From File: ltpageno.dtx |
| 32 |
% |
| 33 |
%<*driver> |
| 34 |
% \fi |
| 35 |
\ProvidesFile{ltpageno.dtx} |
| 36 |
[2020/12/05 v1.1a LaTeX Kernel (Page Numbering)] |
| 37 |
% \iffalse |
| 38 |
\documentclass{ltxdoc} |
| 39 |
\GetFileInfo{ltpageno.dtx} |
| 40 |
\title{\filename} |
| 41 |
\date{\filedate} |
| 42 |
\author{% |
| 43 |
Johannes Braams\and |
| 44 |
David Carlisle\and |
| 45 |
Alan Jeffrey\and |
| 46 |
Leslie Lamport\and |
| 47 |
Frank Mittelbach\and |
| 48 |
Chris Rowley\and |
| 49 |
Rainer Sch\"opf} |
| 50 |
|
| 51 |
\begin{document} |
| 52 |
\MaintainedByLaTeXTeam{latex} |
| 53 |
\maketitle |
| 54 |
\DocInput{\filename} |
| 55 |
\end{document} |
| 56 |
%</driver> |
| 57 |
% \fi |
| 58 |
% |
| 59 |
% |
| 60 |
% \changes{v1.0c}{1994/03/29} |
| 61 |
% {Create file ltcntlen from parts of ltmiscen and ltherest.} |
| 62 |
% \changes{v1.1a}{1994/05/19} |
| 63 |
% {Extract file ltpageno from ltcntlen.} |
| 64 |
% |
| 65 |
% \section{Page Numbering} |
| 66 |
% Page numbers are produced by a page counter, used just like any other |
| 67 |
% counter. The only difference is that |\c@page| contains the number of |
| 68 |
% the next page to be output (the one currently being produced), rather |
| 69 |
% than one minus it. Thus, it is normally initialized to~1 rather |
| 70 |
% than~0. |\c@page| is defined to be |\count0|, rather than a count |
| 71 |
% assigned by |\newcount|. |
| 72 |
% |
| 73 |
% \DescribeMacro{\pagenumbering} |
| 74 |
% The user sets the page number style with the |\pagenumbering|\marg{foo} |
| 75 |
% command, which sets the page counter to 1 and defines |\thepage| to be |
| 76 |
% |\foo|. For example, |\pagenumbering{roman}| causes pages to be |
| 77 |
% numbered i, ii, etc. |
| 78 |
% |
| 79 |
% |
| 80 |
% \MaybeStop{} |
| 81 |
% |
| 82 |
% \begin{macrocode} |
| 83 |
%<*2ekernel> |
| 84 |
\message{page nos.,} |
| 85 |
% \end{macrocode} |
| 86 |
% |
| 87 |
% |
| 88 |
% \begin{macrocode} |
| 89 |
\countdef\c@page=0 \c@page=1 |
| 90 |
\def\cl@page{} |
| 91 |
\def\pagenumbering#1{% |
| 92 |
\global\c@page \@ne \gdef\thepage{\csname @#1\endcsname |
| 93 |
\c@page}} |
| 94 |
% \end{macrocode} |
| 95 |
% |
| 96 |
% \begin{macrocode} |
| 97 |
%</2ekernel> |
| 98 |
% \end{macrocode} |
| 99 |
% |
| 100 |
% \Finale |
| 101 |
% |