blob: 05726d9d0cf59097d4cb225b31f8e6c7e6ff89c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
%% ENUMSPEC.STY -- Enumerate environment with special leading character for
%% LaTeX version 2.09 (\documentstyle[enumspec]{...})
%% January 13, 1988
%% George D. Greenwade (BED_GDG@SHSU), Center for Business & Economic
%% Research, Sam Houston State University, Huntsville, TX 77341-2056
%%
%% Allows for a leading character on the enumi ... enumiv labels. Default
%% character (\leadchar) is $\ast$, but may easily be changed on the first
%% line of the code, in the preamble of the LaTeX document (using \def),
%% or in the body of the LaTeX document (using \renewcommand). Instead of
%% \item in the enumerate environment, use \itemn for normal enumeration and
%% \items for special character enumeration, as these switch between the
%% enumeration labels (NOTE: \item may be used, but once \items is invoked,
%% enumi ... enumiv are globally redefined, until reset using \itemn.)
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Define leading character %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\leadchar{$\ast$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Define special labels %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\stardefs{\def\labelenumi{\leadchar \arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{\leadchar (\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\leadchar \roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\leadchar \Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Define normal labels %%
%% (from ARTICLE.STY) %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\normaldefs{\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Define \items and \itemn %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\items{\stardefs \item}
\def\itemn{\normaldefs \item}
|