Debian Codegraph @

latex/misc/lastpage.sty

raw
1 %%
2 %% This is file `lastpage.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lastpage.dtx (with options: `package')
8 %%
9 %% IMPORTANT NOTICE:
10 %% This is part of a set of tools (or better yet, experiments)
11 %% written by Jeff Goldberg ([email protected])
12 %% The usual disclaimers apply:
13 %% If it doesn't work right that's your problem.
14 %% It is released under the terms of the
15 %% General Public License Agreement (version 2)
16 \def\filename{lastpage}
17 \def\fileversion{v0.1b}
18 \def\filedate{1994/06/25}
19 \def\docdate {1994/07/20}
20
21 %% \CharacterTable
22 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
23 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
24 %% Digits \0\1\2\3\4\5\6\7\8\9
25 %% Exclamation \! Double quote \" Hash (number) \#
26 %% Dollar \$ Percent \% Ampersand \&
27 %% Acute accent \' Left paren \( Right paren \)
28 %% Asterisk \* Plus \+ Comma \,
29 %% Minus \- Point \. Solidus \/
30 %% Colon \: Semicolon \; Less than \<
31 %% Equals \= Greater than \> Question mark \?
32 %% Commercial at \@ Left bracket \[ Backslash \\
33 %% Right bracket \] Circumflex \^ Underscore \_
34 %% Grave accent \` Left brace \{ Vertical bar \|
35 %% Right brace \} Tilde \~}
36 %%
37 %% Allow for things like |page \thepage\ of \pageref{LastPage}| to
38 %% get `page 5 of 23'
39 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
40 \ProvidesPackage{lastpage}[\filedate\space\fileversion\space
41 LaTeX2e package for refs to last page number (JPG)]
42 \def\lastpage@putlabel{\addtocounter{page}{-1}%
43 \immediate\write\@auxout{\string
44 \newlabel{LastPage}{{}{\thepage}}}%
45 \addtocounter{page}{1}}
46 \AtEndDocument{%
47 \message{AED: lastpage setting LastPage}%
48 \clearpage\lastpage@putlabel}%
49 \endinput
50 %%
51 %% End of file `lastpage.sty'.