1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
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 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
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
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.
31 %%% From File: ltpageno.dtx
35 \ProvidesFile{ltpageno.dtx}
36 [1994/05/19 v1.1a LaTeX Kernel (Page Numbering)]
38 \documentclass{ltxdoc}
39 \GetFileInfo{ltpageno.dtx}
52 \MaintainedByLaTeXTeam{latex}
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.}
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|.
73 % \DescribeMacro{\pagenumbering}
74 % The user sets the pagenumber 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.
89 \countdef\c@page=0 \c@page=1
91 \def\pagenumbering#1{%
92 \global\c@page \@ne \gdef\thepage{\csname @#1\endcsname