Sharedwww / cv / revnum.styOpen in CoCalc
Author: William A. Stein
1
%%
2
%% This is file `revnum.sty',
3
%% generated with the docstrip utility.
4
%%
5
%% The original source files were:
6
%%
7
%% revnum.dtx
8
%%
9
%% IMPORTANT NOTICE:
10
%%
11
%% For the copyright see the source file.
12
%%
13
%% You are *not* allowed to modify this file.
14
%%
15
%% You are *not* allowed to distribute this file.
16
%% For distribution of the original source see the terms
17
%% for copying and modification in the file revnum.dtx.
18
%%
19
%% File: revnum.dtx, Copyright (C) 1996 Joern Wilms
20
\NeedsTeXFormat{LaTeX2e}
21
\ProvidesPackage{revnum}[1997/05/10 v1.0 reverse enumerate, jw]
22
\newcounter{rev@cnti} \def\[email protected]{i\arabic{rev@cnti}}
23
\newcounter{rev@cntii} \def\[email protected]{ii\arabic{rev@cntii}}
24
\newcounter{rev@cntiii} \def\[email protected]{iii\arabic{rev@cntiii}}
25
\newcounter{rev@cntiv} \def\[email protected]{vi\arabic{rev@cntiv}}
26
%% \begin{environment}{revnumerate}
27
\newenvironment{revnumerate}[1][-1]%
28
{%
29
\ifnum\@enumdepth >\[email protected]@\@toodeep\else
30
\advance\@enumdepth\@ne
31
\edef\@enumctr{enum\romannumeral\the\@enumdepth}
32
\edef\@revcnt{rev@cnt\romannumeral\the\@enumdepth}
33
\stepcounter{\@revcnt}
34
\edef\[email protected]{rev\csname the\@revcnt\endcsname}
35
\expandafter\ifx\csname c@\[email protected]\endcsname\relax%
36
\newcounter{\[email protected]}
37
\setcounter{\[email protected]}{26}
38
\fi
39
\ifnum #1 <0
40
\setcounter{\@enumctr}{\value{\[email protected]}}
41
\else
42
\setcounter{\@enumctr}{#1}
43
\fi
44
\stepcounter{\@enumctr}%
45
\setcounter{\[email protected]}{0}%
46
\begin{list}%
47
{\addtocounter{\@enumctr}{-1}%
48
\stepcounter{\[email protected]}%
49
\global\edef\@currentlabel
50
{\csname p@\@enumctr\endcsname\csname the\@enumctr\endcsname}%
51
\csname label\@enumctr\endcsname%
52
}{}%
53
\fi
54
}{%
55
\end{list}
56
\[email protected]\@auxout{}{%
57
\string\expandafter%
58
\string\ifx\string\csname\space c@\[email protected]\string\endcsname\relax%
59
\string\newcounter {\[email protected]}\string\fi
60
}
61
\[email protected]\@auxout{}{%
62
\string\setcounter {\[email protected]}%
63
{\number\csname c@\[email protected]\endcsname}
64
}
65
}
66
%% \end{environment}
67
\endinput
68
%%
69
%% End of file `revnum.sty'.
70