apparently spaces are dropped after tex commands
[latex2e.git] / latex2e-20150101 / base / ltpageno.dtx
blobc2b2f0ea69b4f970e44018b447148071e2dea891
1 % \iffalse meta-comment
3 % Copyright 1993-2015
4 % The LaTeX3 Project and any individual authors listed elsewhere
5 % in this file.
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
22 % information.
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.
28 % \fi
30 % \iffalse
31 %%% From File: ltpageno.dtx
33 %<*driver>
34 % \fi
35 \ProvidesFile{ltpageno.dtx}
36              [1994/05/19 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}
51 \begin{document}
52  \MaintainedByLaTeXTeam{latex}
53  \maketitle
54  \DocInput{\filename}
55 \end{document}
56 %</driver>
57 % \fi
59 % \CheckSum{16}
61 % \changes{v1.0c}{1994/03/29}
62 %     {Create file ltcntlen from parts of ltmiscen and ltherest.}
63 % \changes{v1.1a}{1994/05/19}
64 %     {Extract file ltpageno from ltcntlen.}
66 % \section{Page Numbering}
67 % Page numbers are produced by a page counter, used just like any other
68 % counter.  The only difference is that |\c@page| contains the number of
69 % the next page to be output (the one currently being produced), rather
70 % than one minus it.  Thus, it is normally initialized to~1 rather
71 % than~0.  |\c@page| is defined to be |\count0|, rather than a count
72 % assigned by |\newcount|.
74 % \DescribeMacro{\pagenumbering}
75 % The user sets the pagenumber style with the |\pagenumbering|\marg{foo}
76 % command, which sets the page counter to 1 and defines |\thepage| to be
77 % |\foo|.  For example, |\pagenumbering{roman}| causes pages to be
78 % numbered  i, ii, etc.
81 % \StopEventually{}
83 %    \begin{macrocode}
84 %<*2ekernel>
85 \message{page nos.,}
86 %    \end{macrocode}
89 %    \begin{macrocode}
90 \countdef\c@page=0 \c@page=1
91 \def\cl@page{}
92 \def\pagenumbering#1{%
93   \global\c@page \@ne \gdef\thepage{\csname @#1\endcsname
94    \c@page}}
95 %    \end{macrocode}
97 %    \begin{macrocode}
98 %</2ekernel>
99 %    \end{macrocode}
101 % \Finale