Debian Codegraph @

texmf-dist/tex/latex/koma-script/koma-script-source-doc.cls

raw
1 %%
2 %% This is file `koma-script-source-doc.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% koma-script-source-doc.dtx (with options: `class')
8 %% scrlogo.dtx (with options: `logo,forcedefine')
9 %%
10 %% IMPORTANT NOTICE:
11 %%
12 %% For the copyright see the source file.
13 %%
14 %% Any modified versions of this file must be renamed
15 %% with new filenames distinct from koma-script-source-doc.cls.
16 %%
17 %% For distribution of the original source see the terms
18 %% for copying and modification in the file koma-script-source-doc.dtx scrlogo.dtx.
19 %%
20 %% This generated file may be distributed as long as the
21 %% original source files, as listed above, are part of the
22 %% same distribution. (The sources need not necessarily be
23 %% in the same archive or directory.)
24 %%
25 \ProvidesClass{koma-script-source-doc}
26 [2022-07-08 v0.92 KOMA-Script source documentation]
27 \RequirePackage{l3keys2e}
28 \ExplSyntaxOn
29 \newif \ifkdoc@indexlatex \kdoc@indexlatexfalse
30 \keys_define:nn {kdoc}
31 {
32 indexlatex .choice:,
33 indexlatex / true .code:n = { \legacy_if_set_true:n { kdoc@indexlatex } },
34 indexlatex / false .code:n = { \legacy_if_set_false:n { kdoc@indexlatex } },
35 indexlatex .default:n = { true },
36 }
37 \ExplSyntaxOff
38 \ProcessKeysOptions {kdoc}
39 \IfFileExists{scrartcl.cls}{%
40 \declare@file@substitution{article.cls}{scrartcl.cls}
41 \PassOptionsToClass{fontsize=10pt}{scrartcl}
42 }{%
43 \ClassWarningNoLine{koma-script-source-doc}{%
44 Usually this class should be used with KOMA-Script\MessageBreak
45 scrartcl. But as that class is not available we use\MessageBreak
46 standard class article as emergency fallback.\MessageBreak
47 It is recommended to repeat this LaTeX run after\MessageBreak
48 build/installation of a complete KOMA-Script%
49 }%
50 }
51 \LoadClassWithOptions{ltxdoc}[2021/12/07]
52 \IfPackageAtLeastTF{doc}{2022/06/01}{}{%
53 \ClassError{koma-script-source-doc}{old package `doc' detected}{%
54 This class needs `doc' v3. It cannot be used with\MessageBreak
55 `doc' v2. `doc' v3 is available at LaTeX developer\MessageBreak
56 release from at least January 2022}%
57 \csname fi\endcsname\csname @@end\endcsname\end\endinput
58 }
59 \SetupDoc{reportchangedates}
60 \CodelineIndex
61 \RecordChanges
62 \ifkdoc@indexlatex\else
63 \DoNotIndex{\.,\\,\ ,\@,\@Alph,\@M}
64 \DoNotIndex{\@abstrtfalse,\@abstrttrue,\@addtoreset,\@afterheading}
65 \DoNotIndex{\@afterindentfalse,\@alph,\@arabic}
66 \DoNotIndex{\@beginparpenalty}
67 \DoNotIndex{\@car,\@cdr,\@centercr}
68 \DoNotIndex{\@dblfloat,\@dotsep}
69 \DoNotIndex{\@dottedtocline,\@empty,\@endparpenalty}
70 \DoNotIndex{\@float,\@fontswitch}
71 \DoNotIndex{\@gobbletwo}
72 \DoNotIndex{\@hangfrom,\@highpenalty}
73 \DoNotIndex{\@ifnextchar,\@ifundefined,\@itempenalty}
74 \DoNotIndex{\@latex@warning}
75 \DoNotIndex{\@m,\@medpenalty,\@minus,\@mkboth,\@mparswitchfalse}
76 \DoNotIndex{\@mparswitchtrue}
77 \DoNotIndex{\@ne,\@nil,\@nobreakfalse,\@nobreaktrue,\@nomath}
78 \DoNotIndex{\@plus}
79 \DoNotIndex{\@Roman,\@roman}
80 \DoNotIndex{\@tempa,\@tempcnta,\@tempdima,\@tempskipka}
81 \DoNotIndex{\@tempswafalse,\@tempswatrue}
82 \DoNotIndex{\@tempb,\@tempcntb,\@tempdimb,\@tempskipkb}
83 \DoNotIndex{\@tempswbfalse,\@tempswbtrue}
84 \DoNotIndex{\@tempc,\@tempcntc,\@tempdimc,\@tempskipkc}
85 \DoNotIndex{\@tocrmarg,\@topnewpage,\@topnum,\@twocolumnfalse}
86 \DoNotIndex{\@twocolumntrue,\@twosidefalse,\@twosidetrue}
87 \DoNotIndex{\@whiledim,\@whilenum}
88 \DoNotIndex{\addcontentsline,\addpenalty,\addtocontents,\addtolength}
89 \DoNotIndex{\addvspace,\advance,\AtBeginDocument}
90 \DoNotIndex{\begin,\begingroup,\bfseries,\box,\bullet}
91 \DoNotIndex{\c@figure,\c@page,\c@secnumdepth,\c@table,\c@tocdepth}
92 \DoNotIndex{\cdot,\centering,\changes,\cleardoublepage,\clearpage}
93 \DoNotIndex{\cmd,\col@number,\CurrentOption,\CodelineIndex,\cs}
94 \DoNotIndex{\day,\dblfloatpagefraction,\dbltopfraction}
95 \DoNotIndex{\declare@file@substitution}
96 \DoNotIndex{\DeclareOldFontCommand,\DeclareOption,\def,\DisableCrossrefs}
97 \DoNotIndex{\divide,\DoNotIndex}
98 \DoNotIndex{\ifdim,\else,\fi,\empty,\em,\EnableCrossrefs,\end}
99 \DoNotIndex{\end@dblfloat}
100 \DoNotIndex{\end@float,\endgroup,\endlist,\endquotation,\endtitlepage}
101 \DoNotIndex{\everypar,\ExecuteOptions,\expandafter}
102 \DoNotIndex{\fboxrule,\fboxsep}
103 \DoNotIndex{\g@addto@macro,\gdef,\global}
104 \DoNotIndex{\hangindent,\hbox,\hfil,\hrule,\hsize,\hskip,\hspace,\hss}
105 \DoNotIndex{\if@tempswa,\ifcase,\or,\fi,\fi}
106 \DoNotIndex{\ifnum,\ifodd,\ifx,\fi,\fi,\fi}
107 \DoNotIndex{\include,\input,\InputIfFileExists,\item,\itshape}
108 \DoNotIndex{\kern,\kernel@ifnextchar}
109 \DoNotIndex{\leavevmode,\leftmark,\leftskip,\let,\lineskip}
110 \DoNotIndex{\list,\long,\LoadClass,\LoadClassWithOptions}
111 \DoNotIndex{\m@ne,\m@th,\marginpar,\markboth,\markright,\mathbf,\mathcal}
112 \DoNotIndex{\mathit,\mathnormal,\mathrm,\mathsf,\mathtt,\MessageBreak}
113 \DoNotIndex{\month}
114 \DoNotIndex{\newblock,\newcommand,\newcount,\newcounter,\newdimen}
115 \DoNotIndex{\newenvironment,\newlength,\newpage,\nobreak,\noindent}
116 \DoNotIndex{\normalfont,\normallineskip,\normalsize,\null,\number}
117 \DoNotIndex{\numberline,\normalcolor}
118 \DoNotIndex{\OldMakeindex,\OnlyDescription,\overfullrule}
119 \DoNotIndex{\p@,\PackageError,\PackageInfo,\PackageWarningNoLine}
120 \DoNotIndex{\pagenumbering,\pagestyle,\par,\paragraph,\parbox}
121 \DoNotIndex{\PassOptionsToPackage,\pcal,\penalty,\pmit,\PrintChanges}
122 \DoNotIndex{\PrintIndex,\ProcessOptions,\protect,\providecommand}
123 \DoNotIndex{\ProvidesClass}
124 \DoNotIndex{\raggedbottom,\raggedleft,\raggedright,\refstepcounter,\relax}
125 \DoNotIndex{\renewcommand,\RenewDocElement,\RequirePackage}
126 \DoNotIndex{\reserved@a,\reserved@b,\reserved@c,\reset@font}
127 \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rmfamily}
128 \DoNotIndex{\scshape,\secdef,\setbox,\setcounter,\setlength}
129 \DoNotIndex{\settowidth,\sfcode,\sffamily,\skip,\sloppy,\slshape,\space}
130 \DoNotIndex{\string}
131 \DoNotIndex{\TeX,\textbf,\textit,\textrm,\textsf,\texttt,\textup}
132 \DoNotIndex{\the,\thispagestyle,\triangleright,\ttfamily}
133 \DoNotIndex{\twocolumn,\typeout}
134 \DoNotIndex{\undefined,\usecounter}
135 \DoNotIndex{\vfil,\vfill,\vspace}
136 \DoNotIndex{\wd,\xdef,\year,\z@}
137 \fi
138 \ifdefined\AfterCalculatingTypearea
139 \AfterCalculatingTypearea{%
140 \addtolength{\oddsidemargin}
141 {.5\dimexpr\oddsidemargin+1in\relax}%
142 \setlength{\marginparwidth}
143 {\dimexpr \oddsidemargin+1in-2\marginparsep\relax}%
144 \setlength{\marginparpush}{0pt}%
145 }
146 \KOMAoption{DIV}{9}
147 \fi
148 \RequirePackage{auxhook}
149 \expandafter\def\expandafter\index@prologue\expandafter{%
150 \expandafter\kssd@section@hack\index@prologue}
151 \expandafter\def\expandafter\glossary@prologue\expandafter{%
152 \expandafter\kssd@section@hack\glossary@prologue}
153 \newcommand*{\kssd@section@hack}{%
154 \let\ksdd@markboth\markboth
155 \def\markboth##1##2{%
156 \@ifundefined{addsectiontocentry}{%
157 \@ifundefined{addxcontentsline}{%
158 \addcontentsline{toc}{section}{\numberline{}##1}%
159 }{%
160 \addxcontentsline{toc}{section}{##1}%
161 }%
162 }{%
163 \addsectiontocentry{}{##1}%
164 }%
165 \let\markboth\ksdd@markboth
166 \markboth{##1}{##2}%
167 }%
168 }
169 \newcommand*{\file}{\texttt}
170 \newcommand*{\cls}{\pkg}
171 \NewDocumentCommand{\pkg}{sO{https://www.ctan.org/pkg/#3}m}{%
172 \IfBooleanTF{#1}{\@gobble}{%
173 \csname tl_if_blank:nTF\endcsname{#2}{\@gobble}{\href}%
174 }%
175 {#2}{\textsf{#3}}%
176 }
177 \newcommand*{\opt}{\texttt}
178 \newcommand*{\optvalue}{\texttt}
179 \newcommand*{\env}{\texttt}
180 \newcommand*{\len}{\cs}
181 \newcommand*{\cnt}{\texttt}
182 \newcommand*{\fnt}{\texttt}
183 \newcommand*{\var}{\texttt}
184 \newcommand*{\plen}{\texttt}
185 \newcommand*{\pstyle}{\texttt}
186 \newcommand*{\dhook}{\texttt}
187 \RenewDocElement[%
188 macrolike = true,
189 toplevel = false,
190 idxtype = ,
191 idxgroup = TeX macros (internal)\actualchar\TeX{} macros (internal),
192 printtype = \textit{intern}
193 ]{Macro}{macro}
194 \NewDocElement[%
195 macrolike = true,
196 toplevel = true,
197 idxtype = ,
198 idxgroup = Commands,
199 printtype = ,
200 ]{Command}{command}
201 \RenewDocElement[%
202 macrolike = false,
203 toplevel = true,
204 idxtype = \textit{env.} ,
205 idxgroup = Environments,
206 printtype = \textit{env.}
207 ]{Env}{environment}
208 \NewDocElement[%
209 macrolike = false,
210 toplevel = true,
211 idxtype = \textit{opt.},
212 idxgroup = Options,
213 printtype = \textit{opt.}
214 ]{Option}{option}
215 \NewDocElement[%
216 macrolike = true,
217 toplevel = false,
218 idxtype = ,
219 idxgroup = Lengths (internal),
220 printtype = \textit{ilen.}
221 ]{ILength}{ilength}
222 \NewDocElement[%
223 macrolike = true,
224 toplevel = true,
225 idxtype = \textit{len.},
226 idxgroup = Lengths (user),
227 printtype = \textit{len.},
228 ]{Length}{length}
229 \NewDocElement[%
230 macrolike = false,
231 toplevel = true,
232 idxtype = \textit{cnt.},
233 idxgroup = Counters,
234 printtype = \textit{cnt.},
235 ]{Counter}{counter}
236 \NewDocElement[%
237 macrolike = false,
238 toplevel = true,
239 idxtype = \textit{font},
240 idxgroup = KOMA-Script font elements\actualchar\KOMAScript{} font elements,
241 printtype = \textit{font},
242 ]{KOMAfont}{fontelement}
243 \NewDocElement[%
244 macrolike = false,
245 toplevel = true,
246 idxtype = \textit{var.},
247 idxgroup = KOMA-Script variables\actualchar\KOMAScript{} variables,
248 printtype = \textit{var.},
249 ]{KOMAvar}{variable}
250 \NewDocElement[%
251 macrolike = false,
252 toplevel = true,
253 idxtype = \textit{plen.},
254 idxgroup = KOMA-Script pseudo-lengths\actualchar\KOMAScript{} pseudo-lengths,
255 printtype = \textit{plen.},
256 ]{PLength}{pseudolength}
257 \NewDocElement[%
258 macrolike = false,
259 toplevel = true,
260 idxtype = \textit{pgstyle},
261 idxgroup = Page styles,
262 printtype = \textit{style}
263 ]{PageStyle}{pgstyle}
264 \NewDocElement[%
265 macrolike = false,
266 toplevel = true,
267 idxtype = \textit{do hook},
268 idxgroup = Do hooks,
269 printtype = \textit{dohook}
270 ]{DoHook}{dohook}
271 %%% From File: $Id: scrlogo.dtx 4032 2023-04-17 09:45:11Z kohm $
272 \IfFileExists{scrlogo.sty}{%
273 \RequirePackage{scrlogo}
274 }{}%
275 \@ifundefined{KOMAScript}{%
276 \DeclareRobustCommand*{\KOMAScript}{\textsf{K\kern.05em O\kern.05em%
277 M\kern.05em A\kern.1em-\kern.1em Script}}%
278 \@ifundefined{pdfstringdefPreHook}{%
279 \def
280 }{%
281 \g@addto@macro
282 }%
283 \pdfstringdefPreHook{%
284 \def\KOMAScript{KOMA-Script}%
285 \expandafter\def\csname KOMAScript \endcsname{KOMA-Script}%
286 }%
287 }{}
288 \endinput
289 %%
290 %% End of file `koma-script-source-doc.cls'.