Debian Codegraph @

texmf-dist/tex/latex/oberdiek/classlist.sty

raw
1 %%
2 %% This is file `classlist.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% classlist.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: classlist
12 %% Version: 2016/05/16 v1.5
13 %%
14 %% Copyright (C)
15 %% 2005, 2006, 2008, 2011 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/oberdiek/issues
33 %%
34 %%
35 %% This work consists of the main source file classlist.dtx
36 %% and the derived files
37 %% classlist.sty, classlist.pdf, classlist.ins, classlist.drv.
38 %%
39 \NeedsTeXFormat{LaTeX2e}
40 \ProvidesPackage{classlist}%
41 [2016/05/16 v1.5 Record classes used in a document (HO)]
42 \let\ClassList\@empty
43 \let\MainClassName\relax
44 \ifx\@classoptionslist\relax
45 \let\CL@org@fileswith@pti@ns\@fileswith@pti@ns
46 \def\@fileswith@pti@ns#1[#2]#3[#4]{%
47 \ifx#1\@clsextension
48 \@ifl@aded#1{#3}{%
49 \PackageInfo{classlist}{%
50 Skipping class `#3', because\MessageBreak
51 this class is already loaded%
52 }%
53 }{%
54 \@ifundefined{MainClassName}{%
55 \def\MainClassName{#3}%
56 }{}%
57 \@temptokena\expandafter{%
58 \ClassList
59 \ClassListEntry{#3}{#2}{#4}%
60 }%
61 \edef\ClassList{\the\@temptokena}%
62 }%
63 \fi
64 \CL@org@fileswith@pti@ns{#1}[{#2}]{#3}[{#4}]%
65 }%
66 \let\@@fileswith@pti@ns\@fileswith@pti@ns
67 \else
68 \PackageInfo{classlist}{Use \string\@filelist\space method}%
69
70 \let\ClassListEntry\relax
71 \expandafter\def\expandafter\CL@test
72 \expandafter#\expandafter1\@clsextension#2\@nil{%
73 \ifx\\#2\\%
74 \else
75 \expandafter\CL@test@i\CL@entry\@nil
76 \fi
77 }%
78 \expandafter\def\expandafter\CL@test@i
79 \expandafter#\expandafter1\@clsextension#2\@nil{%
80 \ifx\\#2\\%
81 \@ifundefined{opt@\CL@entry}{%
82 }{%
83 \@ifundefined{MainClassName}{%
84 \let\MainClassName\CL@entry
85 }{%
86 }%
87 \edef\ClassList{%
88 \ClassList
89 \ClassListEntry{\CL@entry}{}{}%
90 }%
91 }%
92 \else
93 \fi
94 }%
95 \@for\CL@entry:=\@filelist\do{%
96 \expandafter\expandafter\expandafter\CL@test\expandafter
97 \CL@entry\@clsextension\@nil
98 }%
99 \fi
100 \providecommand*{\PrintClassListEntry}[3]{%
101 \toks@{* #1}%
102 \typeout{\the\toks@}%
103 }
104 \providecommand*{\PrintClassListTitle}{%
105 \typeout{Class list:}%
106 }
107 \providecommand*{\PrintClassList}{%
108 \begingroup
109 \let\ClassListEntry\PrintClassListEntry
110 \PrintClassListTitle
111 \ClassList
112 \endgroup
113 }
114 \def\CL@InfoEntry#1#2#3{%
115 \advance\count@ by \@ne
116 \def\x{#2}%
117 \@onelevel@sanitize\x
118 \edef\CL@Info{%
119 \CL@Info
120 \noexpand\MessageBreak
121 (\the\count@) %
122 #1 [\x]%
123 \ifx\\#3\\%
124 \else
125 \space[#3]% hash-ok
126 \fi
127 }%
128 }
129 \AtBeginDocument{%
130 \begingroup
131 \count@=\z@
132 \def\CL@Info{Class List:}%
133 \let\ClassListEntry\CL@InfoEntry
134 \ClassList
135 \let\on@line\@empty
136 \PackageInfo{classlist}{\CL@Info}%
137 \endgroup
138 }
139 \endinput
140 %%
141 %% End of file `classlist.sty'.