Debian Codegraph @

texmf-dist/tex/latex-dev/tools/enumerate.sty

raw
1 %%
2 %% This is file `enumerate.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% enumerate.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs/
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2026
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
21 %% --------------------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2005/12/01 or later.
30 %%
31 %% This file may only be distributed together with a copy of the LaTeX
32 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
33 %% without such generated files.
34 %%
35 %% The list of all files belonging to the LaTeX `Tools Bundle' is
36 %% given in the file `manifest.txt'.
37 %%
38 %% File: enumerate.dtx Copyright 1993 1994 1999 David Carlisle
39 \NeedsTeXFormat{LaTeX2e}
40 \ProvidesPackage{enumerate}
41 [2023/07/04 v3.00 enumerate extensions (DPC)]
42 \newtoks\@enLab
43 \def\@enQmark{?}
44 \def\@enLabel#1#2{%
45 \edef\@enThe{\noexpand#1{\@enumctr}}%
46 \@enLab\expandafter{\the\@enLab\csname the\@enumctr\endcsname}%
47 \@enloop}
48 \def\@enSpace{\afterassignment\@enSp@ce\let\@tempa= }
49 \def\@enSp@ce{\@enLab\expandafter{\the\@enLab\space}\@enloop}
50 \def\@enGroup#1{\@enLab\expandafter{\the\@enLab{#1}}\@enloop}
51 \def\@enOther#1{\@enLab\expandafter{\the\@enLab#1}\@enloop}
52 \def\@enloop{\futurelet\@entemp\@enloop@}
53 \def\@enloop@{%
54 \ifx A\@entemp \def\@tempa{\@enLabel\Alph }\else
55 \ifx a\@entemp \def\@tempa{\@enLabel\alph }\else
56 \ifx i\@entemp \def\@tempa{\@enLabel\roman }\else
57 \ifx I\@entemp \def\@tempa{\@enLabel\Roman }\else
58 \ifx 1\@entemp \def\@tempa{\@enLabel\arabic}\else
59 \ifx \@sptoken\@entemp \let\@tempa\@enSpace \else
60 \ifx \bgroup\@entemp \let\@tempa\@enGroup \else
61 \ifx \@enum@\@entemp \let\@tempa\@gobble \else
62 \let\@tempa\@enOther
63 \@enhook
64 \fi\fi\fi\fi\fi\fi\fi\fi
65 \@tempa}
66 \providecommand\@enhook{}
67 \def\enumerate{%
68 \ifnum \@enumdepth >3 \@toodeep\else
69 \advance\@enumdepth \@ne
70 \edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi
71 \@ifnextchar[{\@@enum@}{\@enum@}}
72 \def\@@enum@[#1]{%
73 \@enLab{}\let\@enThe\@enQmark
74 \@enloop#1\@enum@
75 \ifx\@enThe\@enQmark\@warning{The counter will not be printed.%
76 ^^J\space\@spaces\@spaces\@spaces The label is: \the\@enLab}\fi
77 \expandafter\edef\csname label\@enumctr\endcsname{\the\@enLab}%
78 \expandafter\let\csname the\@enumctr\endcsname\@enThe
79 \csname c@\@enumctr\endcsname7
80 \expandafter\settowidth
81 \csname leftmargin\romannumeral\@enumdepth\endcsname
82 {\the\@enLab\hspace{\labelsep}}%
83 \@enum@}
84 \def\@enum@{\list{\csname label\@enumctr\endcsname}%
85 {\usecounter{\@enumctr}\def\makelabel##1{\hss\llap{##1}}}}
86 \endinput
87 %%
88 %% End of file `enumerate.sty'.