Debian Codegraph @

texmf-dist/tex/latex/koma-script/scrartcl.cls

raw
1 %%
2 %% This is file `scrartcl.cls',
3 %% generated with the docstrip utility, extended by scrdocstrip.
4 %%
5 %% The original source files were:
6 %%
7 %% scrkernel-version.dtx (with options: `class,article')
8 %% scrkernel-basics.dtx (with options: `class,load')
9 %% tocbasic.dtx (with options: `class,load')
10 %% scrkernel-listsof.dtx (with options: `class,article,prepare')
11 %% scrkernel-tocstyle.dtx (with options: `class,article,prepare')
12 %% scrkernel-sections.dtx (with options: `class,article,prepare')
13 %% scrkernel-compatibility.dtx (with options: `class,article,init')
14 %% scrkernel-typearea.dtx (with options: `class,article,init')
15 %% scrkernel-compatibility.dtx (with options: `class,article,option')
16 %% scrkernel-miscellaneous.dtx (with options: `class,article,option')
17 %% scrkernel-language.dtx (with options: `class,article,option')
18 %% scrkernel-fonts.dtx (with options: `class,article,option')
19 %% scrkernel-typearea.dtx (with options: `class,article,options')
20 %% scrkernel-paragraphs.dtx (with options: `class,article,option')
21 %% scrkernel-title.dtx (with options: `class,article,option')
22 %% scrkernel-tocstyle.dtx (with options: `class,article,option')
23 %% scrkernel-sections.dtx (with options: `class,article,option')
24 %% scrkernel-pagestyles.dtx (with options: `class,article,option')
25 %% scrkernel-floats.dtx (with options: `class,article,option')
26 %% scrkernel-footnotes.dtx (with options: `class,article,option')
27 %% scrkernel-listsof.dtx (with options: `class,article,option')
28 %% scrkernel-bibliography.dtx (with options: `class,article,option')
29 %% scrkernel-index.dtx (with options: `class,article,option')
30 %% scrkernel-listsandtabulars.dtx (with options: `class,article,option')
31 %% scrkernel-sections.dtx (with options: `class,article,execoption')
32 %% scrkernel-miscellaneous.dtx (with options: `class,article,execoption')
33 %% scrkernel-compatibility.dtx (with options: `class,article,body')
34 %% scrkernel-fonts.dtx (with options: `class,article,body')
35 %% scrkernel-language.dtx (with options: `class,article,body')
36 %% scrkernel-typearea.dtx (with options: `class,article,body')
37 %% scrkernel-paragraphs.dtx (with options: `class,article,body')
38 %% scrkernel-title.dtx (with options: `class,article,body')
39 %% scrkernel-tocstyle.dtx (with options: `class,article,body')
40 %% scrkernel-tocstyle.dtx (with options: `class,article,style,part')
41 %% scrkernel-tocstyle.dtx (with options: `class,article,style,section')
42 %% scrkernel-tocstyle.dtx (with options: `class,article,style,subsection')
43 %% scrkernel-tocstyle.dtx (with options: `class,article,style,default')
44 %% scrkernel-sections.dtx (with options: `class,article,body')
45 %% scrkernel-miscellaneous.dtx (with options: `class,article,body')
46 %% scrkernel-pagestyles.dtx (with options: `class,article,body')
47 %% scrlayer.dtx (with options: `class,article,body')
48 %% scrkernel-floats.dtx (with options: `class,article,body')
49 %% scrkernel-footnotes.dtx (with options: `class,article,body')
50 %% scrkernel-listsof.dtx (with options: `class,article,body')
51 %% scrkernel-bibliography.dtx (with options: `class,article,body')
52 %% scrkernel-index.dtx (with options: `class,article,body')
53 %% scrkernel-listsandtabulars.dtx (with options: `class,article,body')
54 %% scrlogo.dtx (with options: `logo')
55 %%
56 %% Copyright (c) 1994-2026 Markus Kohm [komascript at gmx info]
57 %%
58 %% This file was generated from file(s) of the KOMA-Script bundle.
59 %% ---------------------------------------------------------------
60 %%
61 %% It may be distributed under the conditions of the
62 %% LaTeX Project Public License in the version distributed together
63 %% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'.
64 %%
65 %% This file may only be distributed together with a copy of the
66 %% KOMA-Script bundle. You may however distribute the
67 %% KOMA-Script bundle without all such generated files. See also
68 %% `lppl.txt' or `lppl-de.txt' for additional information.
69 %%
70 %% The list of files belonging to KOMA-Script distribution is given in
71 %% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for
72 %% additional information.
73 %%
74 %% If this file is a beta version, you may not be allowed to distribute
75 %% it. Look at the comments below to see if this is the case.
76 %%
77 %% English and German manuals are part of KOMA-Script bundle.
78 %% ----------------------------------------------------------
79 %%
80 %% See `README'.
81 %%
82 %% The KOMA-Script bundle (but maybe not this file) was based upon the
83 %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e
84 %% standard classes created by The LaTeX3 Project 1994-1996. You can
85 %% find a complete unmodified copy of LaTeX2e at
86 %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
87 %%
88 %%% From File: $Id: scrkernel-version.dtx 4261 2026-02-02 09:02:14Z kohm $
89 \providecommand*{\@CheckKOMAScriptVersion}{%
90 \begingroup
91 \ExplSyntaxOff
92 \@@CheckKOMAScriptVersion
93 }
94 \providecommand*{\@@CheckKOMAScriptVersion}[1]{%
95 \@ifundefined{KOMAScriptVersion}{%
96 \gdef\KOMAScriptVersion{#1}%
97 }{%
98 \def\@tempa{#1}%
99 \ifx\KOMAScriptVersion\@tempa\else
100 \GenericWarning{\space\@spaces\@spaces\@spaces\@spaces}{%
101 Version warning:
102 \noexpand\KOMAScriptVersion is
103 `\csname KOMAScriptVersion\endcsname',\MessageBreak
104 but `#1' was expected!\MessageBreak
105 You should not use classes, packages or files
106 from\MessageBreak
107 different KOMA-Script versions\@gobble
108 }%
109 \fi
110 }%
111 \endgroup
112 }
113 \@CheckKOMAScriptVersion{2026/02/02 v3.49.2 KOMA-Script}%
114 \providecommand*{\scr@clsextension}{\@clsextension}
115 \AtBeginDocument{%
116 \let\scr@clsextension\@clsextension
117 }
118 \newcommand*{\KOMAClassName}{scrartcl}
119 \newcommand*{\KOMAClassFileName}{\KOMAClassName.\@clsextension}
120 \edef\KOMAClassFileName{\KOMAClassFileName}
121 \newcommand*{\ClassName}{%
122 article%
123 }
124 \ProvidesClass{\KOMAClassName}[%
125 2026/02/02 v3.49.2 KOMA-Script
126 document class (\ClassName)%
127 ]
128 %%% From File: $Id: scrkernel-basics.dtx 4198 2025-08-15 09:19:27Z kohm $
129 %%% (run: load)
130 \RequirePackage{scrkbase}[\KOMAScriptVersion]
131 %%% From File: $Id: tocbasic.dtx 4251 2025-12-31 10:31:49Z kohm $
132 \RequirePackage[enablepatch=caption]{tocbasic}[%
133 2026/02/02 v3.49.2 KOMA-Script
134 ]
135 \ExplSyntaxOn
136 \tocbasic_define_caption_keys:n { table }
137 \tocbasic_define_caption_keys:n { figure }
138 \ExplSyntaxOff
139 %%% From File: $Id: scrkernel-listsof.dtx 4193 2025-08-12 14:24:39Z kohm $
140 %%% (run: prepare)
141 \addtotoclist[ToC]{toc}
142 \Ifstr{\ext@toc}{toc}{}{%
143 \expandafter\addtotoclist
144 \expandafter[\expandafter T\expandafter o\expandafter C\expandafter ]%
145 \expandafter{\ext@toc}%
146 }
147 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
148 %%% (run: prepare)
149 %%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $
150 %%% (run: prepare)
151 \newcommand*{\scr@dotchangeatdocument}[1]{%
152 \ClassError{\KOMAClassName}{%
153 change of end dot feature after \string\begin{document}%
154 }{%
155 You've tried to set `numbers=#1' after \string\begin{document},\MessageBreak
156 but this option is only allowed at the document preamble.\MessageBreak
157 See KOMA-Script manual for more information about.%
158 }%
159 }
160 \newif\if@altsecnumformat\@altsecnumformatfalse
161 \newif\if@autodot
162 \renewcommand*{\@autodottrue}{\global\let\if@autodot\iftrue}
163 \renewcommand*{\@autodotfalse}{\global\let\if@autodot\iffalse}
164 \@autodotfalse
165 \newcommand*{\scr@altsecnumhook}{}
166 \AtBeginDocument{\scr@altsecnumhook}
167 \newcommand*{\scr@altsecnumhooktrue}{%
168 \@altsecnumformattrue\global\let\@altsecnumformatfalse\@altsecnumformattrue
169 }
170 \newcommand*{\scr@altsecnumhookfalse}{%
171 \@altsecnumformatfalse\global\let\@altsecnumformattrue\@altsecnumformatfalse
172 }
173 \newcommand*{\scr@osectarg}{0}
174 \newcommand*{\scr@activate@xsection}[1]{%
175 \renewcommand*{\scr@osectarg}{#1}%
176 }
177 \NewHook{\KOMAClassName/appendix}
178 \newcommand*{\size@part}{}
179 \newcommand*{\scr@fnt@part}{\size@part}
180 \newcommand*{\size@partnumber}{}
181 \newcommand*{\scr@fnt@partnumber}{\size@partnumber}
182 \aliaskomafont{partprefix}{partnumber}
183 \newcommand*{\scr@part@beforeskip}{%
184 4ex
185 }
186 \newcommand*{\scr@part@afterskip}{%
187 3ex
188 }
189 \newcommand*{\scr@part@style}{part}
190 \newcommand*{\partheadstartvskip}{%
191 \addvspace{\@tempskipa}%
192 }
193 \newcommand*{\partheadmidvskip}{%
194 \par\nobreak
195 }
196 \newcommand*{\partheadendvskip}{%
197 \vskip\@tempskipa
198 }
199 \newcommand*{\size@section}{}
200 \newcommand*{\scr@fnt@section}{\size@section}
201 \newcommand*{\size@subsection}{}
202 \newcommand*{\scr@fnt@subsection}{\size@subsection}
203 \newcommand*{\size@subsubsection}{}
204 \newcommand*{\scr@fnt@subsubsection}{\size@subsubsection}
205 \newcommand*{\size@paragraph}{}
206 \newcommand*{\scr@fnt@paragraph}{\size@paragraph}
207 \newcommand*{\size@subparagraph}{}
208 \newcommand*{\scr@fnt@subparagraph}{\size@subparagraph}
209 \newcommand*{\sectfont}{\normalcolor\maybesffamily\bfseries}
210 %%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $
211 %%% (run: init)
212 \newcommand*
213 {\scr@compatibility}{\scr@v@last}
214 \@namedef{scr@v@first}{29000}
215 \@namedef{scr@[email protected]}{29000}
216 \@namedef{scr@[email protected]}{29019}
217 \@namedef{scr@[email protected]}{29020}
218 \@namedef{scr@[email protected]}{29500}
219 \@namedef{scr@[email protected]}{29501}
220 \@namedef{scr@[email protected]}{29502}
221 \@namedef{scr@[email protected]}{29600}
222 \@namedef{scr@[email protected]}{29601}
223 \@namedef{scr@[email protected]}{29700}
224 \@namedef{scr@[email protected]}{29701}
225 \@namedef{scr@[email protected]}{29702}
226 \@namedef{scr@[email protected]}{29703}
227 \@namedef{scr@[email protected]}{29704}
228 \@namedef{scr@[email protected]}{29705}
229 \@namedef{scr@[email protected]}{29800}
230 \@namedef{scr@[email protected]}{29801}
231 \@namedef{scr@[email protected]}{29802}
232 \@namedef{scr@[email protected]}{29803}
233 \@namedef{scr@[email protected]}{30000}
234 \@namedef{scr@[email protected]}{30100}
235 \@namedef{scr@[email protected]}{30101}
236 \@namedef{scr@[email protected]}{30102}
237 \@namedef{scr@[email protected]}{30103}
238 \@namedef{scr@[email protected]}{30200}
239 \@namedef{scr@[email protected]}{30202}
240 \@namedef{scr@[email protected]}{30203}
241 \@namedef{scr@[email protected]}{30300}
242 \@namedef{scr@[email protected]}{30301}
243 \@namedef{scr@[email protected]}{30302}
244 \@namedef{scr@[email protected]}{30400}
245 \@namedef{scr@[email protected]}{30401}
246 \@namedef{scr@[email protected]}{30500}
247 \@namedef{scr@[email protected]}{30501}
248 \@namedef{scr@[email protected]}{30600}
249 \@namedef{scr@[email protected]}{30700}
250 \@namedef{scr@[email protected]}{30800}
251 \@namedef{scr@[email protected]}{30801}
252 \@namedef{scr@[email protected]}{30802}
253 \@namedef{scr@[email protected]}{30900}
254 \@namedef{scr@[email protected]}{30901}
255 \@namedef{scr@[email protected]}{31000}
256 \@namedef{scr@[email protected]}{31001}
257 \@namedef{scr@[email protected]}{31002}
258 \@namedef{scr@[email protected]}{31100}
259 \@namedef{scr@[email protected]}{31101}
260 \@namedef{scr@[email protected]}{31102}
261 \@namedef{scr@[email protected]}{31200}
262 \@namedef{scr@[email protected]}{31300}
263 \@namedef{scr@[email protected]}{31301}
264 \@namedef{scr@[email protected]}{31400}
265 \@namedef{scr@[email protected]}{31500}
266 \@namedef{scr@[email protected]}{31600}
267 \@namedef{scr@[email protected]}{31700}
268 \@namedef{scr@[email protected]}{31701}
269 \@namedef{scr@[email protected]}{31703}
270 \@namedef{scr@[email protected]}{31800}
271 \@namedef{scr@[email protected]}{31801}
272 \@namedef{scr@[email protected]}{31900}
273 \@namedef{scr@[email protected]}{31901}
274 \@namedef{scr@[email protected]}{32000}
275 \@namedef{scr@[email protected]}{32100}
276 \@namedef{scr@[email protected]}{32200}
277 \@namedef{scr@[email protected]}{32300}
278 \@namedef{scr@[email protected]}{32400}
279 \@namedef{scr@[email protected]}{32500}
280 \@namedef{scr@[email protected]}{32600}
281 \@namedef{scr@[email protected]}{32601}
282 \@namedef{scr@[email protected]}{32602}
283 \@namedef{scr@[email protected]}{32700}
284 \@namedef{scr@[email protected]}{32701}
285 \@namedef{scr@[email protected]}{32800}
286 \@namedef{scr@[email protected]}{32900}
287 \@namedef{scr@[email protected]}{33300}
288 \@namedef{scr@[email protected]}{33100}
289 \@namedef{scr@[email protected]}{33200}
290 \@namedef{scr@[email protected]}{33300}
291 \@namedef{scr@[email protected]}{33400}
292 \@namedef{scr@[email protected]}{33500}
293 \@namedef{scr@[email protected]}{33600}
294 \@namedef{scr@[email protected]}{33700}
295 \@namedef{scr@[email protected]}{33800}
296 \@namedef{scr@[email protected]}{33900}
297 \@namedef{scr@[email protected]}{34000}
298 \@namedef{scr@[email protected]}{34100}
299 \@namedef{scr@[email protected]}{34200}
300 \@namedef{scr@[email protected]}{34300}
301 \@namedef{scr@[email protected]}{34400}
302 \@namedef{scr@[email protected]}{34500}
303 \@namedef{scr@[email protected]}{34600}
304 \@namedef{scr@[email protected]}{34700}
305 \@namedef{scr@[email protected]}{34800}
306 \@namedef{scr@[email protected]}{34900}
307 \@namedef{scr@[email protected]}{34901}
308 \@namedef{scr@[email protected]}{34902}
309 \@namedef{scr@v@last}{34902}
310 %%% From File: $Id: scrkernel-typearea.dtx 4181 2025-06-14 09:11:13Z kohm $
311 %%% (run: init)
312 %%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $
313 %%% (run: option)
314 \newif\if@scr@emulatestandardclasses
315 \let\scr@emulatestandardclassestrue\relax
316 \let\scr@emulatestandardclassesfalse\relax
317 \DeclareOption{emulatestandardclasses}{%
318 \ClassWarningNoLine{\KOMAClassName}{%
319 The use of the undocumented and therefore unofficial\MessageBreak
320 and highly experimental option `emulatestandardclasses'\MessageBreak
321 leads to restrictions in support. In particular, it is\MessageBreak
322 to be expected that the function of the option will\MessageBreak
323 change at any time or that the option will be removed\MessageBreak
324 from the \KOMAClassName\space class.%
325 }%
326 \let\if@scr@emulatestandardclasses\iftrue
327 \KOMAExecuteOptions{%
328 fontsize=10pt,%
329 headings=standardclasses,%
330 cleardoublepage=current
331 }%
332 \newcommand*{\defaultpapersize}{letter}%
333 \AtEndOfClass{%
334 \setkomafont{descriptionlabel}{\bfseries}%
335 \setkomafont{dictum}{\normalfont\small}%
336 \setkomafont{caption}{}%
337 \setkomafont{captionlabel}{}%
338 \setcapindent{0pt}%
339 \RequirePackage[pagestyleset=standard,markcase=upper]{scrlayer-scrpage}%
340 \PreventPackageFromLoading{scrpage2}%
341 \setkomafont{pagenumber}{\normalfont}%
342 \setkomafont{pageheadfoot}{\normalfont}%
343 \cfoot[\pagemark]{}%
344 \pagestyle{plain}%
345 }%
346 }
347 \KOMA@key{version}[last]{%
348 \scr@ifundefinedorrelax{scr@v@#1}{%
349 \def\scr@compatibility{0}%
350 \ClassWarningNoLine{\KOMAClassName}{%
351 You have set option `version' to value `#1', but\MessageBreak
352 this value of version is not supported.\MessageBreak
353 Because of this, version was set to `first'%
354 }%
355 \FamilyKeyStateProcessed
356 \KOMA@kav@replacevalue{%
357 \KOMAClassFileName
358 }{version}{first}%
359 }{%
360 \ClassInfoNoLine{\KOMAClassName}{%
361 Switching compatibility level to `#1'%
362 }%
363 \edef\scr@compatibility{\@nameuse{scr@v@#1}}%
364 \FamilyKeyStateProcessed
365 \KOMA@kav@xreplacevalue{%
366 \KOMAClassFileName
367 }{version}{#1}%
368 \ifnum\scr@compatibility<\scr@v@last
369 \ClassWarningNoLine{\KOMAClassName}{%
370 Switching back to an old KOMA-Script release does\MessageBreak
371 not mean, that KOMA-Script is fully compatible with\MessageBreak
372 the old release. If you need full compatibility\MessageBreak
373 to an old KOMA-Script release, you should use that\MessageBreak
374 old KOMA-Script release. However, in that case you\MessageBreak
375 could also need old releases of other packages and\MessageBreak
376 even of the LaTeX kernel.\MessageBreak
377 Please also note, that the KOMA-Script developers\MessageBreak
378 refuse support for documents using `version=#1'.\MessageBreak
379 We recommend to eliminate all deprecated options\MessageBreak
380 and commands. We also recommend to not use option\MessageBreak
381 `version', i.e., with other values than `last'%
382 }%
383 \fi
384 }%
385 }
386 \KOMA@kav@add{\KOMAClassFileName}{version}{last}
387 \AtEndOfClass{%
388 \KOMA@key{version}[]{%
389 \ClassError{\KOMAClassName}{%
390 Option `version' too late%
391 }{%
392 Option `version' may be set only while loading the
393 class.\MessageBreak
394 But you've tried to set it up later.%
395 }%
396 \FamilyKeyStateProcessed
397 }%
398 }
399 \newcommand*{\scr@v@is@lt}[1]{%
400 \scr@compatibility<\@nameuse{scr@v@#1}
401 }
402 \newcommand*{\scr@v@is@gt}[1]{%
403 \scr@compatibility>\@nameuse{scr@v@#1}
404 }
405 \newcommand*{\scr@v@is@le}[1]{%
406 \numexpr\scr@compatibility-\@ne\relax<\@nameuse{scr@v@#1}
407 }
408 \newcommand*{\scr@v@is@ge}[1]{%
409 \numexpr\scr@compatibility+\@ne\relax>\@nameuse{scr@v@#1}
410 }
411 \newcommand*{\scr@v@is@eq}[1]{%
412 \scr@compatibility=\@nameuse{scr@v@#1}
413 }
414 %%% From File: $Id: scrkernel-miscellaneous.dtx 4223 2025-09-11 09:09:44Z kohm $
415 %%% (run: option)
416 \KOMA@key{draft}[true]{%
417 \KOMA@set@ifkey{draft}{@tempswa}{#1}%
418 \ifx\FamilyKeyState\FamilyKeyStateProcessed
419 \if@tempswa
420 \KOMA@kav@replacebool{%
421 \KOMAClassFileName
422 }{draft}{@tempswa}%
423 \KOMA@kav@replacebool{%
424 \KOMAClassFileName
425 }{overfullrule}{@tempswa}%
426 \setlength{\overfullrule}{5pt}%
427 \else
428 \KOMA@kav@replacebool{%
429 \KOMAClassFileName
430 }{draft}{@tempswa}%
431 \KOMA@kav@replacebool{%
432 \KOMAClassFileName
433 }{overfullrule}{@tempswa}%
434 \setlength{\overfullrule}{\z@}%
435 \fi
436 \fi
437 }
438 \KOMA@kav@add{\KOMAClassFileName}{draft}{false}
439 \KOMA@DeclareStandardOption
440 {final}{draft=false}
441 \KOMA@key{overfullrule}[true]{%
442 \KOMA@set@ifkey{overfullrule}{@tempswa}{#1}%
443 \ifx\FamilyKeyState\FamilyKeyStateProcessed
444 \if@tempswa
445 \KOMA@kav@replacebool{%
446 \KOMAClassFileName
447 }{draft}{@tempswa}%
448 \KOMA@kav@replacebool{%
449 \KOMAClassFileName
450 }{overfullrule}{@tempswa}%
451 \setlength{\overfullrule}{5pt}%
452 \else
453 \KOMA@kav@replacebool{%
454 \KOMAClassFileName
455 }{draft}{@tempswa}%
456 \KOMA@kav@replacebool{%
457 \KOMAClassFileName
458 }{overfullrule}{@tempswa}%
459 \setlength{\overfullrule}{\z@}%
460 \fi
461 \fi
462 }
463 \KOMA@kav@add{\KOMAClassFileName}{overfullrule}{false}
464 \DeclareOption{leqno}{\input{leqno.clo}}
465 \DeclareOption{fleqn}{\input{fleqn.clo}}
466 %%% From File: $Id: scrkernel-language.dtx 4140 2025-02-22 12:39:23Z kohm $
467 %%% (run: option)
468 %%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $
469 %%% (run: option)
470 \providecommand*\@ptsize{%
471 11%
472 }
473 \newcommand*{\@pt@scan}{%
474 \expandafter\@pt@@scan\CurrentOption pt\@pt@@scan%
475 }
476 \newcommand*{\@pt@@scan}{}
477 \def\@pt@@scan #1pt#2\@pt@@scan{%
478 \Ifstr{#2}{pt}{%
479 \Ifnumber{#1}{%
480 \Ifstr{#1}{10}{%
481 \KOMA@UseStandardOption{\PackageInfoNoLine{\KOMAClassName}}%
482 {#1#2}{fontsize=#1#2}%
483 }{%
484 \Ifstr{#1}{11}{%
485 \KOMA@UseStandardOption{\PackageInfoNoLine{\KOMAClassName}}%
486 {#1#2}{fontsize=#1#2}%
487 }{%
488 \Ifstr{#1}{12}{%
489 \KOMA@UseStandardOption{\PackageInfoNoLine{\KOMAClassName}}%
490 {#1#2}{fontsize=#1#2}%
491 }{%
492 \KOMA@UseDeprecatedOption{\PackageWarningNoLine{\KOMAClassName}}%
493 {#1#2}{fontsize=#1#2}%
494 }%
495 }%
496 }
497 }{\@headlines}%
498 }{\@headlines}%
499 }
500 \providecommand*{\@fontsizefilebase}{scrsize}
501 \KOMA@key{fontsize}{%
502 \scr@ifundefinedorrelax{changefontsizes}{%
503 \@defaultunits\@tempdima#1pt\relax\@nnil
504 \edef\@ptsize{#1}%
505 }{%
506 \ifvmode\else
507 \par
508 \ClassError{\KOMAClassName}{%
509 Option `fontsize' inside paragraph not allowed%
510 }{%
511 Option `fontsize' has been designed to change the base font size of
512 a\MessageBreak
513 document. It has not been made to change the current font
514 size. Moreover\MessageBreak
515 using it inside a paragraph mostly will not have the intended result,
516 because\MessageBreak
517 TeX always uses the setting of `\string\baselineskip' and other
518 parameters from the\MessageBreak
519 end of a paragraph for the whole paragraph. Therefore using option
520 `fontsize'\MessageBreak
521 in TeX's horizontal mode does not make sense and is not
522 permitted.\MessageBreak
523 You should use font size commands like `\string\Huge'…`\string\tiny'
524 or `\string\fontsize' here.\MessageBreak
525 See a LaTeX introduction for more information.\MessageBreak
526 But maybe you've just forgotten to make a paragraph. So if you'd
527 continue,\MessageBreak
528 I'll add `\expandafter\string\csname par\endcsname'.%
529 }%
530 \fi
531 \expandafter\@defaultunits\expandafter\@tempdima#1 pt\relax\@nnil
532 \edef\@tempa{#1}%
533 \setlength{\@tempdimb}{\@tempdima}%
534 \edef\@tempb{\strip@pt\@tempdimb}%
535 \addtolength{\@tempdimb}{-10\p@}%
536 \edef\@ptsize{\strip@pt\@tempdimb}%
537 \edef\@tempa{%
538 \noexpand\makeatletter
539 \noexpand\InputIfFileExists{\@fontsizefilebase\@tempa.clo}{%
540 \noexpand\ClassInfo{\KOMAClassName}{%
541 File `\@fontsizefilebase\@tempa.clo' used to setup font sizes}%
542 }{%
543 \noexpand\InputIfFileExists{\@fontsizefilebase\@tempb pt.clo}{%
544 \noexpand\ClassInfo{\KOMAClassName}{%
545 File `\@fontsizefilebase\@tempb pt.clo' used instead of%
546 \noexpand\MessageBreak
547 file `\@fontsizefilebase\@tempa.clo' to setup font sizes}%
548 }{%
549 \noexpand\changefontsizes{#1}%
550 }%
551 }%
552 \noexpand\catcode`\noexpand\@=\the\catcode`\@
553 }%
554 \@tempa
555 }%
556 \FamilyKeyStateProcessed
557 \KOMA@kav@xreplacevalue{%
558 \KOMAClassFileName
559 }{fontsize}{#1}%
560 }
561 \DeclareOption{enabledeprecatedfontcommands}{%
562 \ClassWarningNoLine{\KOMAClassName}{%
563 deprecated option `enabledeprecatedfontcommands'.\MessageBreak
564 Note, that this option was already depreacted when\MessageBreak
565 it has been defined. Support for old font commands\MessageBreak
566 has been removed from KOMA-Script more than one\MessageBreak
567 decade ago. It is not recommended to use them any\MessageBreak
568 longer. Therefore usage of this class option also\MessageBreak
569 is not recommended%
570 }%
571 \let\scr@defineobsoletefonts\@ne
572 }
573 \scr@ifundefinedorrelax{scr@defineobsoletefonts}{%
574 \let\scr@defineobsoletefonts\z@
575 }{}
576 \BeforePackage{tex4ht}{%
577 \let\scr@defineobsoletefonts\thr@@
578 }
579 \newif\if@sfdefaults\@sfdefaultstrue
580 \KOMA@ifkey{sfdefaults}{@sfdefaults}
581 \newcommand*{\maybesffamily}{\if@sfdefaults \sffamily \fi}
582 \newcommand*{\textmaybesf}{%
583 \if@sfdefaults \expandafter\textsf \else \expandafter\@firstofone \fi
584 }
585 %% \begin{option}{egegdoesnotlikesansseriftitles}
586 \KOMA@key{egregdoesnotlikesansseriftitles}[true]{%
587 \ClassWarningNoLine{\KOMAClassName}%
588 {%
589 You've used deprecated option `egregdoesnotlikesansseriftitles'.\MessageBreak
590 In 2016 this option has been implemented as a joke\MessageBreak
591 answer to egreg's comment:\MessageBreak
592 \space\space ``In my opinion there should be a document class\MessageBreak
593 \space\space option for it, instead of the
594 \string\setkomafont\MessageBreak
595 \space\space statement. And yes, I find imposing sans serif
596 for\MessageBreak
597 \space\space titles is not the best choice (one of the
598 reasons\MessageBreak
599 \space\space why I don't use Koma-script classes).''\MessageBreak
600 to question https://tex.stackexchange.com/q/289853\MessageBreak
601 at TeX.SX.\MessageBreak
602 The option has never been documented in the official\MessageBreak
603 user manuals and therefore should never have been\MessageBreak
604 used in real live documents. It was intended to be\MessageBreak
605 removed after some month.\MessageBreak
606 However, it has been used and also almost forgotten\MessageBreak
607 by the author.\MessageBreak
608 For this the author apologizes both to users but\MessageBreak
609 especially to egreg.\MessageBreak
610 Rightly, egreg has criticized the permanent retention\MessageBreak
611 of the option as unfunny to inappropriate and has\MessageBreak
612 asked that it be removed or replaced.\MessageBreak
613 It will be removed soon!\MessageBreak
614 You should use `sfdefaults=false` instead%
615 }%
616 \KOMA@set@ifkey{egregdoesnotlikesansseriftitles}%
617 {@sfdefaults}%
618 {#1}%
619 \ifx\FamilyKeyState\FamilyKeyStateProcessed
620 \if@sfdefault \@sfdefaultsfalse \else \@sfdefaulttrue \fi
621 \KOMA@kav@xreplacevalue{\KOMAClassFileName}%
622 {sfdefaults}{\if@sfdefaults true\else false\fi}%
623 \fi
624 }
625 %%% From File: $Id: scrkernel-typearea.dtx 4181 2025-06-14 09:11:13Z kohm $
626 %%% (run: options)
627 \KOMA@key{twoside}[true]{%
628 \if@atdocument\else\PassOptionsToPackage{twoside=#1}{typearea}\fi%
629 \Ifstr{#1}{semi}{%
630 \@twosidetrue
631 \FamilyKeyStateProcessed
632 }{%
633 \def\FamilyElseValue{, `semi'}%
634 \KOMA@set@ifkey{twoside}{%
635 @twoside%
636 }{#1}%
637 }%
638 \ifx\FamilyKeyState\FamilyKeyStateProcessed
639 \expandafter\ifnum\scr@v@is@ge{3.17}%
640 \if@twoside\flushbottom
641 \else
642 \if@twocolumn\sloppy\flushbottom\else\raggedbottom\fi
643 \fi
644 \fi
645 \KOMA@kav@xreplacevalue
646 {\KOMAClassFileName}%
647 {twoside}{#1}%
648 \fi
649 }
650 \KOMAExecuteOptions{twoside=false}
651 \KOMA@DeclareStandardOption%
652 {oneside}{twoside=false}
653 \KOMA@key{twocolumn}[true]{%
654 \if@atdocument\else\PassOptionsToPackage{twocolumn=#1}{typearea}\fi%
655 \KOMA@set@ifkey{twocolumn}{@twocolumn}{#1}%
656 \ifx\FamilyKeyState\FamilyKeyStateProcessed
657 \KOMA@kav@replacebool
658 {\KOMAClassFileName}%
659 {twocolumn}{@twocolumn}%
660 \if@atdocument\expandafter\@firstofone
661 \else\IfPackageLoadedTF{typearea}{\expandafter\@firstofone}
662 {\expandafter\AtEndOfClass}\fi
663 {%
664 \expandafter\ifnum\scr@v@is@ge{3.17}%
665 \if@twocolumn\twocolumn\sloppy\flushbottom
666 \else
667 \onecolumn
668 \if@twoside\flushbottom\else
669 \raggedbottom
670 \fi
671 \fi
672 \fi
673 }%
674 \fi
675 }
676 \AtEndOfClass{%
677 \expandafter\ifnum\scr@v@is@lt{3.17}%
678 \if@twocolumn\twocolumn\sloppy\flushbottom
679 \else\onecolumn\if@twoside\flushbottom\else\raggedbottom\fi\fi
680 \fi
681 }
682 \KOMAExecuteOptions{twocolumn=false}
683 \KOMA@DeclareStandardOption%
684 {onecolumn}{twocolumn=false}
685 \newcommand*{\@BCOR}{\expandafter\@@BCOR\CurrentOption BCORBCOR\@@BCOR}
686 \newcommand*{\@@BCOR}{}
687 \def\@@BCOR #1BCOR#2BCOR#3\@@BCOR{%
688 \Ifstr{#1}{}{%
689 \Ifstr{#3}{BCOR}{%
690 \Ifstrstart{#2}{=}{%
691 \edef\reserved@a{\noexpand\Ifdimen{\@gobble#2}}%
692 \reserved@a{\PassOptionsToPackage{BCOR#2}{typearea}}{\OptionNotUsed}%
693 }{%
694 \Ifdimen{#2}{\PassOptionsToPackage{BCOR#2}{typearea}}{\OptionNotUsed}%
695 }%
696 }{\scr@pti@nerr@r}%
697 }{\scr@pti@nerr@r}%
698 }
699 \newcommand*{\@DIV}{\expandafter\@@DIV\CurrentOption DIVDIV\@@DIV}
700 \newcommand*{\@@DIV}{}
701 \def\@@DIV #1DIV#2DIV#3\@@DIV{%
702 \edef\@tempa{#1}\ifx\@tempa\@empty
703 \edef\@tempa{#3}\def\@tempb{DIV}\ifx\@tempa\@tempb
704 \Ifstrstart{#2}{=}{%
705 \edef\reserved@a{\noexpand\Ifnumber{\@gobble#2}}%
706 \reserved@a{\PassOptionsToPackage{DIV#2}{typearea}}{\OptionNotUsed}%
707 }{%
708 \Ifnumber{#2}{\PassOptionsToPackage{DIV#2}{typearea}}{\OptionNotUsed}%
709 }%
710 \else\scr@pti@nerr@r\fi
711 \else\@BCOR\fi
712 }
713 \newcommand{\@headlines}{%
714 \expandafter\@@headlines\CurrentOption headlines\@@headlines%
715 }
716 \newcommand*{\@@headlines}{}
717 \def\@@headlines #1headlines#2\@@headlines{
718 \edef\@tempa{#2}\edef\@tempb{headlines}\ifx\@tempa\@tempb
719 \PassOptionsToPackage{#1headlines}{typearea}
720 \else\@DIV\fi
721 }
722 \newcommand*{\x@paper}{%
723 \expandafter\x@@paper\CurrentOption paper\x@@paper%
724 }
725 \newcommand*{\x@@paper}{}
726 \def\x@@paper #1#2paper#3\x@@paper{%
727 \Ifstr{#3}{paper}{%
728 \Ifnumber{#2}{%
729 \Ifstr{#1}{a}{%
730 \PassOptionsToPackage{#3=#1#2}{typearea}%
731 }{%
732 \Ifstr{#1}{b}{%
733 \PassOptionsToPackage{#3=#1#2}{typearea}%
734 }{%
735 \Ifstr{#1}{c}{%
736 \PassOptionsToPackage{#3=#1#2}{typearea}%
737 }{%
738 \Ifstr{#1}{d}{%
739 \PassOptionsToPackage{#3=#1#2}{typearea}%
740 }{\scr@pti@nerr@r}%
741 }%
742 }%
743 }%
744 }{\scr@pti@nerr@r}%
745 }{%
746 \@pt@scan
747 }%
748 }
749 \newcommand*{\scr@pti@nerr@r}{
750 \OptionNotUsed
751 }
752 \DeclareOption*{%
753 \x@paper}
754 %%% From File: $Id: scrkernel-paragraphs.dtx 4145 2025-05-13 16:54:14Z kohm $
755 %%% (run: option)
756 \newcommand*{\setparsizes}[3]{%
757 \edef\f@parindent{\the\parindent}%
758 \edef\f@parskip{\the\parskip}%
759 \edef\f@parfillskip{\the\parfillskip}%
760 \def\scr@parindent{#1}%
761 \def\scr@parskip{#2}%
762 \def\scr@parfillskip{#3}%
763 \def\par@update{%
764 \if@atdocument\let\par@update\default@par@update\fi
765 \par@updaterelative
766 }%
767 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{false}%
768 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{never}%
769 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{full}%
770 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{full-}%
771 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{full+}%
772 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{full*}%
773 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{half}%
774 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{half-}%
775 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{half+}%
776 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{half*}%
777 }
778 \newcommand*{\f@parindent}{\the\parindent}
779 \newcommand*{\f@parskip}{\the\parskip}
780 \newcommand*{\f@parfillskip}{\the\parfillskip}
781 \newcommand*{\scr@parindent}{1em}
782 \newcommand*{\scr@parskip}{\z@}
783 \newcommand*{\scr@parfillskip}{\z@ \@plus 1fil}
784 \AtEndOfClass{%
785 \edef\f@parindent{\the\parindent}%
786 \edef\f@parskip{\the\parskip}%
787 \edef\f@parfillskip{\the\parfillskip}%
788 }
789 \newcommand*{\par@update}{}
790 \let\par@update\relax
791 \newcommand*{\default@par@update}{}
792 \let\default@par@update\relax
793 \AtBeginDocument{\par@update}
794 \KOMA@key{parskip}[true]{%
795 \begingroup
796 \KOMA@set@ncmdkey{parskip}{@tempa}{%
797 {never}{0},%
798 {false}{1},{off}{1},{no}{1},%
799 {full-}{2},%
800 {half-}{3},%
801 {full}{4},{true}{4},{on}{4},{yes}{4},%
802 {half}{5},%
803 {full+}{6},%
804 {half+}{7},%
805 {full*}{8},%
806 {half*}{9},%
807 {relative}{10},%
808 {absolute}{11}%
809 }{#1}%
810 \ifx\FamilyKeyState\FamilyKeyStateProcessed
811 \aftergroup\FamilyKeyStateProcessed
812 \ifcase\number\@tempa% 0
813 \endgroup
814 \setparsizes{1em}{\z@}{\z@ \@plus 1fil}%
815 \KOMA@kav@add{\KOMAClassFileName}{parskip}{never}%
816 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
817 \or% 1
818 \endgroup
819 \setparsizes{1em}{\z@ \@plus \p@}{\z@ \@plus 1fil}%
820 \KOMA@kav@add{\KOMAClassFileName}{parskip}{false}%
821 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
822 \or% 2
823 \endgroup
824 \setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{%
825 \z@ \@plus 1fil}%
826 \KOMA@kav@add{\KOMAClassFileName}{parskip}{full-}%
827 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
828 \or% 3
829 \endgroup
830 \setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{%
831 \z@ \@plus 1fil}%
832 \KOMA@kav@add{\KOMAClassFileName}{parskip}{half-}%
833 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
834 \or% 4
835 \endgroup
836 \setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{%
837 1em \@plus 1fil}%
838 \KOMA@kav@add{\KOMAClassFileName}{parskip}{full}%
839 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
840 \or% 5
841 \endgroup
842 \setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{%
843 1em \@plus 1fil}%
844 \KOMA@kav@add{\KOMAClassFileName}{parskip}{half}%
845 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
846 \or% 6
847 \endgroup
848 \setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{%
849 .3333\linewidth\@plus 1fil}%
850 \KOMA@kav@add{\KOMAClassFileName}{parskip}{full+}%
851 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
852 \or% 7
853 \endgroup
854 \setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{%
855 .3333\linewidth \@plus 1fil}%
856 \KOMA@kav@add{\KOMAClassFileName}{parskip}{half+}%
857 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
858 \or% 8
859 \endgroup
860 \setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{%
861 .25\linewidth \@plus 1fil}%
862 \KOMA@kav@add{\KOMAClassFileName}{parskip}{full*}%
863 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
864 \or% 9
865 \endgroup
866 \setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{%
867 .25\linewidth \@plus 1fil}%
868 \KOMA@kav@add{\KOMAClassFileName}{parskip}{half*}%
869 \if@atdocument\AfterKOMAoptions{\selectfont}\fi
870 \or% 10
871 \endgroup
872 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{absolute}%
873 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{relative}%
874 \KOMA@kav@add{\KOMAClassFileName}{parskip}{relative}%
875 \ifx\par@updaterelative\undefined
876 \expandafter\AtEndOfClass
877 \else
878 \expandafter\@firstofone
879 \fi
880 {%
881 \ifx\par@update\default@par@update
882 \let\par@update\par@updaterelative
883 \fi
884 \let\default@par@update=\par@updaterelative
885 }%
886 \or%11
887 \endgroup
888 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{absolute}%
889 \KOMA@kav@remove{\KOMAClassFileName}{parskip}{relative}%
890 \KOMA@kav@add{\KOMAClassFileName}{parskip}{absolute}%
891 \ifx\par@updaterelative\undefined
892 \expandafter\AtEndOfClass
893 \else
894 \expandafter\@firstofone
895 \fi
896 {%
897 \ifx\par@update\default@par@update
898 \let\par@update\relax
899 \fi
900 \let\default@par@update=\relax
901 }%
902 \else% should never be
903 \endgroup
904 \fi
905 \else
906 \endgroup
907 \FamilyKeyStateUnknownValue
908 \fi
909 }
910 \KOMA@DeclareDeprecatedOption{parskip-}{parskip=full-}
911 \KOMA@DeclareDeprecatedOption{parskip+}{parskip=full+}
912 \KOMA@DeclareDeprecatedOption{parskip*}{parskip=full*}
913 \KOMA@DeclareDeprecatedOption{halfparskip}{parskip=half}
914 \KOMA@DeclareDeprecatedOption{halfparskip-}{parskip=half-}
915 \KOMA@DeclareDeprecatedOption{halfparskip+}{parskip=half+}
916 \KOMA@DeclareDeprecatedOption{halfparskip*}{parskip=half*}
917 \KOMA@DeclareDeprecatedOption{parindent}{parskip=false}
918 \KOMA@kav@add{\KOMAClassFileName}{parskip}{false}
919 \KOMA@kav@add{\KOMAClassFileName}{parskip}{absolute}
920 %%% From File: $Id: scrkernel-title.dtx 4032 2023-04-17 09:45:11Z kohm $
921 %%% (run: option)
922 \newif\if@titlepage
923 \@titlepagefalse
924 \newif\if@titlepageiscoverpage
925 \KOMA@key{titlepage}[true]{%
926 \Ifstr{#1}{firstiscover}{%
927 \@titlepagetrue
928 \@titlepageiscoverpagetrue
929 \FamilyKeyStateProcessed
930 \KOMA@kav@replacevalue{%
931 \KOMAClassFileName
932 }{titlepage}{firstiscover}%
933 }{%
934 \def\FamilyElseValue{, `firstiscover'}%
935 \KOMA@set@ifkey{titlepage}{@titlepage}{#1}%
936 \ifx\FamilyKeyState\FamilyKeyStateProcessed
937 \KOMA@kav@remove{%
938 \KOMAClassFileName
939 }{titlepage}{firstiscover}%
940 \KOMA@kav@replacebool{%
941 \KOMAClassFileName
942 }{titlepage}{@titlepage}%
943 \@titlepageiscoverpagefalse
944 \fi
945 }%
946 }
947 \KOMA@kav@xadd{%
948 \KOMAClassFileName
949 }{titlepage}{\if@titlepage true\else false\fi}
950 \KOMA@DeclareStandardOption%
951 {notitlepage}{titlepage=false}
952 \KOMA@ifkey{abstract}{@abstrt}
953 \KOMA@DeclareDeprecatedOption{abstracton}{abstract=true}
954 \KOMA@DeclareDeprecatedOption{abstractoff}{abstract=false}
955 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
956 %%% (run: option)
957 %%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $
958 %%% (run: option)
959 \KOMA@key{numbers}{%
960 \KOMA@set@ncmdkey{numbers}{@tempa}{%
961 {autoendperiod}{0},{autoenddot}{0},{auto}{0},%
962 {endperiod}{1},{withendperiod}{1},{periodatend}{1},%
963 {enddot}{1},{withenddot}{1},{dotatend}{1},%
964 {noendperiod}{2},{noperiodatend}{2},%
965 {noenddot}{2},{nodotatend}{2}%
966 }{#1}%
967 \ifx\FamilyKeyState\FamilyKeyStateProcessed
968 \KOMA@kav@xreplacevalue{\KOMAClassFileName}{numbers}{#1}%
969 \ifcase \@tempa\relax
970 \if@atdocument\scr@dotchangeatdocument{#1}\else
971 \let\scr@altsecnumhook\@empty
972 \fi
973 \or
974 \if@atdocument\scr@dotchangeatdocument{#1}\else
975 \let\scr@altsecnumhook\scr@altsecnumhooktrue
976 \fi
977 \or
978 \if@atdocument\scr@dotchangeatdocument{#1}\else
979 \let\scr@altsecnumhook\scr@altsecnumhookfalse
980 \fi
981 \fi
982 \fi
983 }
984 \KOMA@DeclareDeprecatedOption{pointednumbers}{numbers=enddot}
985 \KOMA@DeclareDeprecatedOption{pointlessnumbers}{numbers=noenddot}
986 \KOMA@ifkey{bookmarkpackage}{@scr@autoloadbookmarkpackage}
987 \@scr@autoloadbookmarkpackagetrue
988 \KOMA@kav@add{\KOMAClassFileName}{bookmarkpackage}{true}
989 \AddToHook{package/hyperref/after}{%
990 \AddToHook{begindocument/before}[\KOMAClassName]{%
991 \IfPackageLoadedF{bookmark}{%
992 \if@scr@autoloadbookmarkpackage
993 \IfFileExists{bookmark.sty}{}{%
994 \ClassWarningNoLine{\KOMAClassName}{%
995 Using `bookmark' together with `hyperref' is
996 recommended,\MessageBreak
997 because of handling of possible bookmark level gaps.\MessageBreak
998 However, the package seems not to be installed and\MessageBreak
999 therefore cannot be loaded automatically.\MessageBreak
1000 It is recommended to install package `bookmark'!\MessageBreak
1001 However, you can avoid this warning without\MessageBreak
1002 installation of package `bookmark', if you'd
1003 deactivate\MessageBreak
1004 automatically loading of `bookmark' using KOMA-Script\MessageBreak
1005 option `bookmarkpackage=false' before
1006 \string\begin{document}%
1007 }%
1008 \@scr@autoloadbookmarkpackagefalse
1009 \KOMA@kav@replacevalue{\KOMAClassFileName}{bookmarkpackage}{false}%
1010 }%
1011 \fi
1012 \if@scr@autoloadbookmarkpackage
1013 \scr@ifundefinedorrelax{Hy@driver}{%
1014 \ClassWarning{\KOMAClassName}{%
1015 `hyperref' loaded but `\string\Hy@driver' undefined.\MessageBreak
1016 This should not happen!\MessageBreak
1017 Maybe `hyperref' not loaded or unknown version?%
1018 }%
1019 }{%
1020 \Ifstr{\Hy@driver}{hdvips}{%
1021 \providecommand*{\BookmarkDriverDefault}{dvips}%
1022 }{%
1023 \Ifstr{\Hy@driver}{hdvipdfm}{%
1024 \providecommand*{\BookmarkDriverDefault}{dvipdfm}%
1025 }{%
1026 \Ifstr{\Hy@driver}{hdvipson}{%
1027 \providecommand*{\BookmarkDriverDefault}{dvipsone}%
1028 }{%
1029 \Ifstr{\Hy@driver}{htexture}{%
1030 \providecommand*{\BookmarkDriverDefault}{textures}%
1031 }{%
1032 }%
1033 }%
1034 }%
1035 }%
1036 }%
1037 \ClassInfo{\KOMAClassName}{%
1038 loading recommended package `bookmark'.\MessageBreak
1039 Using `bookmark' together with `hyperref' is
1040 recommended,\MessageBreak
1041 because of handling of possible bookmark level gaps.\MessageBreak
1042 You can avoid loading `bookmark' with KOMA-Script
1043 option\MessageBreak
1044 `bookmarkpackage=false' before \string\begin{document}
1045 and\MessageBreak
1046 you can avoid this message adding:\MessageBreak
1047 \space\space\string\usepackage
1048 \scr@ifundefinedorrelax{BookmarkDriverDefault}{}{%
1049 [\BookmarkDriverDefault]%
1050 }{bookmark}\MessageBreak
1051 before \string\begin{document}%
1052 }%
1053 \@ifundefined{es@quoting}{%
1054 \RequirePackage{bookmark}%
1055 }{%
1056 \ifx\es@quoting\activatequoting
1057 \ClassInfo{\KOMAClassName}{%
1058 temporary deactivation of babel-spanish quoting
1059 }%
1060 \deactivatequoting
1061 \RequirePackage{bookmark}%
1062 \ClassInfo{\KOMAClassName}{%
1063 reactivation of babel-spanish quoting
1064 }%
1065 \activatequoting
1066 \else
1067 \RequirePackage{bookmark}%
1068 \fi
1069 }%
1070 \@ifpackagelater{hyperref}{2022/09/22}{}{%
1071 \ifx\@beginmainauxhook\relax
1072 \else
1073 \if@filesw
1074 \ClassWarning{\KOMAClassName}{%
1075 seems someone has broken package `auxhook'.\MessageBreak
1076 Usually this happens, if `auxhook' is loaded or
1077 used\MessageBreak
1078 implicitly or explicitly by patching
1079 \string\document%
1080 \scr@ifundefinedorrelax{AtEndPreamble}{}{%
1081 \MessageBreak
1082 or via etoolbox command \string\AtEndPreamble%
1083 }.\MessageBreak
1084 Trying an emergency workaround.\MessageBreak
1085 You can avoid this warning adding:\MessageBreak
1086 \space\space\string\usepackage{auxhook}\MessageBreak
1087 before \string\begin{document}%
1088 }%
1089 \@beginmainauxhook
1090 \fi
1091 \fi
1092 }%
1093 \fi
1094 }%
1095 }%
1096 }
1097 \KOMA@ifkey{sectionentrydots}{@sectionentrywithdots}
1098 \KOMA@key{headings}{%
1099 \KOMA@set@ncmdkey{headings}{@tempa}{%
1100 {big}{0},%
1101 {normal}{1},%
1102 {small}{2},%
1103 {optiontotocandhead}{10},{optiontoheadandtoc}{10},%
1104 {optiontotoc}{11},%
1105 {optiontohead}{12},%
1106 {standardclasses}{13}%
1107 }{#1}%
1108 \ifx\FamilyKeyState\FamilyKeyStateProcessed
1109 \ifcase \@tempa\relax% big
1110 \KOMA@kav@remove{\KOMAClassFileName}{headings}{big}%
1111 \KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}%
1112 \KOMA@kav@remove{\KOMAClassFileName}{headings}{small}%
1113 \KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}%
1114 \KOMA@kav@add{\KOMAClassFileName}{headings}{big}%
1115 \setkomafont{part}{\Huge}%
1116 \setkomafont{partnumber}{\huge}%
1117 \setkomafont{section}{\Large}%
1118 \setkomafont{subsection}{\large}%
1119 \setkomafont{subsubsection}{\normalsize}%
1120 \setkomafont{paragraph}{\normalsize}%
1121 \setkomafont{subparagraph}{\normalsize}%
1122 \or % normal
1123 \KOMA@kav@remove{\KOMAClassFileName}{headings}{big}%
1124 \KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}%
1125 \KOMA@kav@remove{\KOMAClassFileName}{headings}{small}%
1126 \KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}%
1127 \KOMA@kav@add{\KOMAClassFileName}{headings}{normal}%
1128 \setkomafont{part}{\huge}%
1129 \setkomafont{partnumber}{\huge}%
1130 \setkomafont{section}{\large}%
1131 \setkomafont{subsection}{\normalsize}%
1132 \setkomafont{subsubsection}{\normalsize}%
1133 \setkomafont{paragraph}{\normalsize}%
1134 \setkomafont{subparagraph}{\normalsize}%
1135 \or % small
1136 \KOMA@kav@remove{\KOMAClassFileName}{headings}{big}%
1137 \KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}%
1138 \KOMA@kav@remove{\KOMAClassFileName}{headings}{small}%
1139 \KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}%
1140 \KOMA@kav@add{\KOMAClassFileName}{headings}{small}%
1141 \setkomafont{part}{\LARGE}%
1142 \setkomafont{partnumber}{\LARGE}%
1143 \setkomafont{section}{\normalsize}%
1144 \setkomafont{subsection}{\normalsize}%
1145 \setkomafont{subsubsection}{\normalsize}%
1146 \setkomafont{paragraph}{\normalsize}%
1147 \setkomafont{subparagraph}{\normalsize}%
1148 \or % openany
1149 \or % openright
1150 \or % openleft
1151 \or % twolinechapter
1152 \or % onelinechapter
1153 \or % twolineappendix
1154 \or % onelineappendix
1155 \or % optiontotocandhead
1156 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotocandhead}%
1157 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotoc}%
1158 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontohead}%
1159 \KOMA@kav@add{\KOMAClassFileName}{headings}{optiontotocandhead}%
1160 \scr@activate@xsection{3}%
1161 \or % optiontotoc
1162 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotocandhead}%
1163 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotoc}%
1164 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontohead}%
1165 \KOMA@kav@add{\KOMAClassFileName}{headings}{optiontotoc}%
1166 \scr@activate@xsection{2}%
1167 \or % optiontohead
1168 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotocandhead}%
1169 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotoc}%
1170 \KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontohead}%
1171 \KOMA@kav@add{\KOMAClassFileName}{headings}{optiontohead}%
1172 \scr@activate@xsection{1}%
1173 \or % standardclasses
1174 \KOMA@kav@remove{\KOMAClassFileName}{headings}{big}%
1175 \KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}%
1176 \KOMA@kav@remove{\KOMAClassFileName}{headings}{small}%
1177 \KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}%
1178 \KOMA@kav@add{\KOMAClassFileName}{headings}{standardclasses}%
1179 \setkomafont{part}{\huge}%
1180 \setkomafont{partnumber}{\Large}%
1181 \setkomafont{section}{\Large}%
1182 \setkomafont{subsection}{\large}%
1183 \setkomafont{subsubsection}{\normalsize}%
1184 \setkomafont{paragraph}{\normalsize}%
1185 \setkomafont{subparagraph}{\normalsize}%
1186 \renewcommand*{\sectfont}{\bfseries}%
1187 \fi
1188 \fi
1189 }
1190 \KOMA@kav@add{\KOMAClassFileName}{headings}{big}
1191 \KOMA@DeclareDeprecatedOption{bigheadings}{headings=big}
1192 \KOMA@DeclareDeprecatedOption{normalheadings}{headings=normal}
1193 \KOMA@DeclareDeprecatedOption{smallheadings}{headings=small}
1194 %%% From File: $Id: scrkernel-pagestyles.dtx 4058 2023-06-16 08:32:27Z kohm $
1195 %%% (run: option)
1196 \KOMA@ifkey{headsepline}{@hsl}%
1197 \KOMA@kav@add{\KOMAClassFileName}{headsepline}{false}
1198 \KOMA@DeclareDeprecatedOption{headnosepline}{headsepline=false}
1199 \KOMA@ifkey{footsepline}{@fsl}%
1200 \KOMA@kav@add{\KOMAClassFileName}{footsepline}{false}
1201 \KOMA@DeclareDeprecatedOption{footnosepline}{footsepline=false}
1202 \KOMA@key{cleardoublepage}{%
1203 \begingroup
1204 \def\@tempc{%
1205 \endgroup
1206 \KOMA@unknown@keyval{cleardoublepage}{#1}{%
1207 'current' or any defined pagestyle e.g. 'empty','plain', 'headings'}%
1208 }%
1209 \Ifstr{#1}{current}{%
1210 \def\@tempc{\endgroup
1211 \def\cleardoublepage{\cleardoublestandardpage}%
1212 \def\cleardoubleoddpage{\cleardoubleoddstandardpage}%
1213 \def\cleardoubleevenpage{\cleardoubleevenstandardpage}%
1214 \FamilyKeyStateProcessed
1215 \KOMA@kav@replacevalue{%
1216 \KOMAClassFileName
1217 }{cleardoublepage}{current}%
1218 }%
1219 }{%
1220 \Ifnotundefined{ps@#1}{%
1221 \def\@tempc{\endgroup
1222 \def\cleardoublepage{\cleardoublepageusingstyle{#1}}%
1223 \def\cleardoubleoddpage{\cleardoubleoddpageusingstyle{#1}}%
1224 \def\cleardoubleevenpage{\cleardoubleevenpageusingstyle{#1}}%
1225 \FamilyKeyStateProcessed
1226 \KOMA@kav@xreplacevalue{%
1227 \KOMAClassFileName
1228 }{cleardoublepage}{#1}%
1229 }%
1230 }{%
1231 \ifx\@currname\KOMAClassName
1232 \ifx\@currext\@clsextension
1233 \Ifstr{#1}{headings}{%
1234 \def\@tempc{\endgroup
1235 \def\cleardoublepage{\cleardoublepageusingstyle{#1}}%
1236 \def\cleardoubleoddpage{\cleardoubleoddpageusingstyle{#1}}%
1237 \def\cleardoubleevenpage{\cleardoubleevenpageusingstyle{#1}}%
1238 \FamilyKeyStateProcessed
1239 \KOMA@kav@xreplacevalue{\KOMAClassFileName}%
1240 {cleardoublepage}{#1}%
1241 }%
1242 }{}%
1243 \fi
1244 \fi
1245 }%
1246 }%
1247 \@tempc
1248 }
1249 \newcommand*{\cleardoubleoddstandardpage}{}
1250 \let\cleardoubleoddstandardpage=\cleardoublepage
1251 \newcommand*{\cleardoubleoddpageusingstyle}[1]{\clearpage
1252 {\pagestyle{#1}\cleardoubleoddstandardpage}}
1253 \newcommand*{\cleardoubleoddemptypage}{\cleardoubleoddpageusingstyle{empty}}
1254 \newcommand*{\cleardoubleoddplainpage}{\cleardoubleoddpageusingstyle{plain}}
1255 \newcommand*{\cleardoubleevenstandardpage}{%
1256 \clearpage
1257 \if@twoside\ifodd\c@page
1258 \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi
1259 \fi\fi
1260 }
1261 \newcommand*{\cleardoubleevenpageusingstyle}[1]{\clearpage
1262 {\pagestyle{#1}\cleardoubleevenstandardpage}}
1263 \newcommand*{\cleardoubleevenemptypage}{\cleardoubleevenpageusingstyle{empty}}
1264 \newcommand*{\cleardoubleevenplainpage}{\cleardoubleevenpageusingstyle{plain}}
1265 \newcommand*{\cleardoublestandardpage}{\cleardoubleoddstandardpage}
1266 \renewcommand*{\cleardoublepage}{%
1267 \expandafter\ifnum \scr@v@is@gt{2.98c}%
1268 \cleardoubleemptypage
1269 \else
1270 \cleardoublestandardpage
1271 \fi
1272 }
1273 \KOMA@kav@add{%
1274 \KOMAClassFileName
1275 }{cleardoublepage}{%
1276 \expandafter\ifnum \scr@v@is@gt{2.98c}
1277 empty%
1278 \else current\fi
1279 }
1280 \AtEndOfClass{%
1281 \KOMAoptionOf[\expandafter\edef\expandafter\@tempa\@firstofone]%
1282 {%
1283 \KOMAClassFileName
1284 }{cleardoublepage}%
1285 \KOMA@kav@removekey{%
1286 \KOMAClassFileName
1287 }{cleardoublepage}%
1288 \KOMA@kav@xadd{%
1289 \KOMAClassFileName
1290 }{cleardoublepage}{\@tempa}%
1291 }
1292 \newcommand*{\cleardoubleoddpage}{\cleardoubleoddemptypage}
1293 \newcommand*{\cleardoubleevenpage}{\cleardoubleevenemptypage}
1294 \newcommand*{\cleardoublepageusingstyle}[1]{\clearpage
1295 {\pagestyle{#1}\cleardoublestandardpage}}
1296 \newcommand*{\cleardoubleemptypage}{\cleardoublepageusingstyle{empty}}
1297 \newcommand*{\cleardoubleplainpage}{\cleardoublepageusingstyle{plain}}
1298 \KOMA@DeclareDeprecatedOption{cleardoubleempty}{cleardoublepage=empty}
1299 \KOMA@DeclareDeprecatedOption{cleardoubleplain}{cleardoublepage=plain}
1300 \KOMA@DeclareDeprecatedOption{cleardoublestandard}{cleardoublepage=current}
1301 %%% From File: $Id: scrkernel-floats.dtx 4197 2025-08-15 09:13:30Z kohm $
1302 %%% (run: option)
1303 \newif\if@captionabove\@captionabovefalse
1304 \newif\ifonelinecaptions\onelinecaptionstrue
1305 \AddToHook{package/caption3/after}{%
1306 \DeclareCaptionSinglelinecheck{koma}{%
1307 \ifonelinecaptions
1308 \expandafter\@firstoftwo
1309 \else
1310 \expandafter\@secondoftwo
1311 \fi}%
1312 \SetCaptionDefault{singlelinecheck}{koma}%
1313 }
1314 \newcommand*{\scap@pos}{r}
1315 \newcommand*{\scap@valign}{b}
1316 \KOMA@key{captions}{%
1317 \KOMA@set@ncmdkey{captions}{@tempa}{%
1318 {heading}{0},{above}{0},{top}{0},%
1319 {signature}{1},{below}{1},{bot}{1},{bottom}{1},%
1320 {tableheading}{2},%
1321 {tableabove}{2},{abovetable}{2},{abovetabular}{2},{topattable}{2},%
1322 {tablesignature}{3},%
1323 {tablebelow}{3},{belowtable}{3},{belowtabular}{3},{bottomattable}{3},%
1324 {figureheading}{4},{figureabove}{4},{abovefigure}{4},{topatfigure}{4},%
1325 {figuresignature}{5},{figurebelow}{5},{belowfigure}{5},{bottomatfigure}{5},%
1326 {oneline}{6},%
1327 {nooneline}{7},%
1328 {rightbeside}{8},{besideright}{8},%
1329 {leftbeside}{9},{besideleft}{9},%
1330 {innerbeside}{10},{besideinner}{10},%
1331 {outerbeside}{11},{besideouter}{11},%
1332 {topbeside}{12},{besidetop}{12},%
1333 {centeredbeside}{13},{besidecentered}{13},%
1334 {middlebeside}{13},{besidemiddle}{13},%
1335 {bottombeside}{14},{besidebottom}{14}%
1336 }{#1}%
1337 \ifx\FamilyKeyState\FamilyKeyStateProcessed
1338 \ifcase \@tempa\relax % heading
1339 \SetKeys[tocbasic]{captionabove}%
1340 \KOMA@kav@remove{\KOMAClassFileName}{captions}{heading}%
1341 \KOMA@kav@remove{\KOMAClassFileName}{captions}{signature}%
1342 \KOMA@kav@add{\KOMAClassFileName}{captions}{heading}%
1343 \or % signature
1344 \SetKeys[tocbasic]{captionbelow}%
1345 \KOMA@kav@remove{\KOMAClassFileName}{captions}{heading}%
1346 \KOMA@kav@remove{\KOMAClassFileName}{captions}{signature}%
1347 \KOMA@kav@add{\KOMAClassFileName}{captions}{signature}%
1348 \or % tableheading
1349 \SetKeys[tocbasic]{tablecaptionabove}
1350 \KOMA@kav@remove{\KOMAClassFileName}{captions}{tableheading}%
1351 \KOMA@kav@remove{\KOMAClassFileName}{captions}{tablesignature}%
1352 \KOMA@kav@add{\KOMAClassFileName}{captions}{tableheading}%
1353 \or % tablesignature
1354 \SetKeys[tocbasic]{tablecaptionbelow}
1355 \KOMA@kav@remove{\KOMAClassFileName}{captions}{tableheading}%
1356 \KOMA@kav@remove{\KOMAClassFileName}{captions}{tablesignature}%
1357 \KOMA@kav@add{\KOMAClassFileName}{captions}{tablesignature}%
1358 \or % figureheading
1359 \SetKeys[tocbasic]{figurecaptionabove}
1360 \KOMA@kav@remove{\KOMAClassFileName}{captions}{figureheading}%
1361 \KOMA@kav@remove{\KOMAClassFileName}{captions}{figuresignature}%
1362 \KOMA@kav@add{\KOMAClassFileName}{captions}{figureheading}%
1363 \or % figuresignature
1364 \SetKeys[tocbasic]{figurecaptionbelow}
1365 \KOMA@kav@remove{\KOMAClassFileName}{captions}{figureheading}%
1366 \KOMA@kav@remove{\KOMAClassFileName}{captions}{figuresignature}%
1367 \KOMA@kav@add{\KOMAClassFileName}{captions}{figuresignature}%
1368 \or % oneline
1369 \onelinecaptionstrue
1370 \KOMA@kav@remove{\KOMAClassFileName}{captions}{oneline}%
1371 \KOMA@kav@remove{\KOMAClassFileName}{captions}{nooneline}%
1372 \KOMA@kav@add{\KOMAClassFileName}{captions}{oneline}%
1373 \or % nooneline
1374 \onelinecaptionsfalse
1375 \KOMA@kav@remove{\KOMAClassFileName}{captions}{oneline}%
1376 \KOMA@kav@remove{\KOMAClassFileName}{captions}{nooneline}%
1377 \KOMA@kav@add{\KOMAClassFileName}{captions}{nooneline}%
1378 \or % rightbeside
1379 \renewcommand*{\scap@pos}{r}%
1380 \KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}%
1381 \KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}%
1382 \KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}%
1383 \KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}%
1384 \KOMA@kav@add{\KOMAClassFileName}{captions}{rightbeside}%
1385 \or % leftbeside
1386 \renewcommand*{\scap@pos}{l}%
1387 \KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}%
1388 \KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}%
1389 \KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}%
1390 \KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}%
1391 \KOMA@kav@add{\KOMAClassFileName}{captions}{leftbeside}%
1392 \or % innerbeside
1393 \renewcommand*{\scap@pos}{i}%
1394 \KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}%
1395 \KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}%
1396 \KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}%
1397 \KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}%
1398 \KOMA@kav@add{\KOMAClassFileName}{captions}{innerbeside}%
1399 \or % outerbeside
1400 \renewcommand*{\scap@pos}{o}%
1401 \KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}%
1402 \KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}%
1403 \KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}%
1404 \KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}%
1405 \KOMA@kav@add{\KOMAClassFileName}{captions}{outerbeside}%
1406 \or % topbeside
1407 \renewcommand*{\scap@valign}{t}%
1408 \KOMA@kav@remove{\KOMAClassFileName}{captions}{topbeside}%
1409 \KOMA@kav@remove{\KOMAClassFileName}{captions}{centeredbeside}%
1410 \KOMA@kav@remove{\KOMAClassFileName}{captions}{bottombeside}%
1411 \KOMA@kav@add{\KOMAClassFileName}{captions}{topbeside}%
1412 \or % centeredbeside
1413 \renewcommand*{\scap@valign}{c}%
1414 \KOMA@kav@remove{\KOMAClassFileName}{captions}{topbeside}%
1415 \KOMA@kav@remove{\KOMAClassFileName}{captions}{centeredbeside}%
1416 \KOMA@kav@remove{\KOMAClassFileName}{captions}{bottombeside}%
1417 \KOMA@kav@add{\KOMAClassFileName}{captions}{centeredbeside}%
1418 \or % bottombeside
1419 \renewcommand*{\scap@valign}{b}%
1420 \KOMA@kav@remove{\KOMAClassFileName}{captions}{topbeside}%
1421 \KOMA@kav@remove{\KOMAClassFileName}{captions}{centeredbeside}%
1422 \KOMA@kav@remove{\KOMAClassFileName}{captions}{bottombeside}%
1423 \KOMA@kav@add{\KOMAClassFileName}{captions}{bottombeside}%
1424 \fi
1425 \fi
1426 }
1427 \KOMA@kav@add{\KOMAClassFileName}{captions}{signature}
1428 \KOMA@kav@add{\KOMAClassFileName}{captions}{oneline}
1429 \KOMA@kav@add{\KOMAClassFileName}{captions}{rightbeside}
1430 \KOMA@kav@add{\KOMAClassFileName}{captions}{bottombeside}
1431 \KOMA@DeclareDeprecatedOption{tablecaptionabove}{captions=tableheading}
1432 \KOMA@DeclareDeprecatedOption{tablecaptionbelow}{captions=tablesignature}
1433 \newif\if@komalongtable\@komalongtabletrue
1434 \DeclareOption{origlongtable}{\@komalongtablefalse}
1435 \KOMA@DeclareDeprecatedOption{onelinecaption}{captions=oneline}
1436 \KOMA@DeclareDeprecatedOption{noonelinecaption}{captions=nooneline}
1437 %%% From File: $Id: scrkernel-footnotes.dtx 4245 2025-11-26 08:59:26Z kohm $
1438 %%% (run: option)
1439 \KOMA@key{footnotes}{%
1440 \ifx\@footnotemark\scr@saved@footnotemark
1441 \else
1442 \ifx\@footnotemark\scr@footnotemark
1443 \else
1444 \ClassWarning{\KOMAClassName}{%
1445 Change of `\string\@footnotemark' detected!\MessageBreak
1446 Use of `footnotes=#1' may break\MessageBreak
1447 another package!\MessageBreak
1448 Maybe you should remove the usage of\MessageBreak
1449 option `footnotes=#1'}%
1450 \fi
1451 \fi
1452 \Ifstr{#1}{multiple}{%
1453 \let\@footnotemark\scr@footnotemark
1454 \def\FN@mf@prepare{\scr@mf@prepare}%
1455 \def\scr@footmisc@options{multiple}%
1456 \FamilyKeyStateProcessed
1457 \KOMA@kav@replacevalue{%
1458 \KOMAClassFileName
1459 }{footnotes}{multiple}%
1460 }{%
1461 \Ifstr{#1}{nomultiple}{%
1462 \let\@footnotemark\scr@saved@footnotemark
1463 \let\FN@mf@prepare\relax
1464 \let\scr@footmisc@options\@empty
1465 \FamilyKeyStateProcessed
1466 \KOMA@kav@replacevalue{%
1467 \KOMAClassFileName
1468 }{footnotes}{nomultiple}%
1469 }{%
1470 \KOMA@unknown@keyval{footnotes}{#1}{`multiple' and `nomultiple'}%
1471 }%
1472 }%
1473 }
1474 \AtBeginDocument{%
1475 \ifx\@footnotemark\scr@saved@footnotemark
1476 \KOMA@kav@removekey{%
1477 \KOMAClassFileName
1478 }{footnotes}%
1479 \KOMA@kav@add{%
1480 \KOMAClassFileName
1481 }{footnotes}{nomultiple}%
1482 \else\ifx\@footnotemark\scr@footnotemark
1483 \KOMA@kav@removekey{%
1484 \KOMAClassFileName
1485 }{footnotes}%
1486 \KOMA@kav@add{%
1487 \KOMAClassFileName
1488 }{footnotes}{multiple}%
1489 \fi\fi
1490 }
1491 \newcommand*{\scr@footmisc@options}{}
1492 \PassOptionsToPackage{\noexpand\scr@footmisc@options}{footmisc}
1493 \newcommand*{\scr@saved@footnotemark}{%
1494 \leavevmode
1495 \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
1496 \@makefnmark
1497 \ifhmode\spacefactor\@x@sf\fi
1498 \relax}
1499 \expandafter\CheckCommand\expandafter*\expandafter\@footnotemark
1500 \expandafter{\scr@saved@footnotemark}
1501 \newcommand*{\scr@footnotemark}{%
1502 \leavevmode
1503 \ifhmode\edef\@x@sf{\the\spacefactor}\FN@mf@check\nobreak\fi
1504 \@makefnmark
1505 \csname FN@mf@prepare\endcsname
1506 \ifhmode\spacefactor\@x@sf\fi
1507 \relax}
1508 %%% From File: $Id: scrkernel-listsof.dtx 4193 2025-08-12 14:24:39Z kohm $
1509 %%% (run: option)
1510 \newif\if@tocleft
1511 \KOMA@key{toc}{%
1512 \KOMA@set@ncmdkey{toc}{@tempa}{%
1513 {noindex}{0},{noidx}{0},%
1514 {index}{1},{idx}{1},%
1515 {indexnumbered}{2},{idxnumbered}{2},{numberedindex}{2},{numberedidx}{2},%
1516 {nolistof}{3},{nolistsof}{3},%
1517 {listof}{4},{listsof}{4},%
1518 {listofnumbered}{5},{numberedlistof}{5},%
1519 {listsofnumbered}{5},{numberedlistsof}{5},%
1520 {nobibliography}{6},{nobib}{6},%
1521 {bibliography}{7},{bib}{7},%
1522 {bibliographynumbered}{8},{bibnumbered}{8},{numberedbibliography}{8},%
1523 {numberedbib}{8},%
1524 {flat}{9},{left}{9},%
1525 {graduated}{10},{indent}{10},{indented}{10},%
1526 {indenttextentries}{11},{indentunnumbered}{11},{numberline}{11},%
1527 {leftaligntextentries}{12},{leftalignunnumbered}{12},{nonumberline}{12},%
1528 {sectionentrywithdots}{13},{sectionentrydotfill}{13},
1529 {sectionentrywithoutdots}{14},{sectionentryfill}{14}%
1530 }{#1}%
1531 \ifx\FamilyKeyState\FamilyKeyStateProcessed
1532 \ifcase \@tempa\relax % noindex
1533 \KOMAoptions{index=notoc}%
1534 \or % index
1535 \KOMAoptions{index=totoc}%
1536 \or % indexnumbered
1537 \KOMAoptions{index=numbered}%
1538 \or % listof
1539 \KOMAoptions{listof=notoc}%
1540 \or % nolistof
1541 \KOMAoptions{listof=totoc}%
1542 \or % listofnumbered
1543 \KOMAoptions{listof=numbered}%
1544 \or % nobibliography
1545 \KOMAoptions{bibliography=nottotoc}%
1546 \or % bibliography
1547 \KOMAoptions{bibliography=totoc}%
1548 \or % bibliographynumbered
1549 \KOMAoptions{bibliography=totocnumbered}%
1550 \or % flat
1551 \KOMA@kav@remove{\KOMAClassFileName}{toc}{flat}%
1552 \KOMA@kav@remove{\KOMAClassFileName}{toc}{graduated}%
1553 \KOMA@kav@add{\KOMAClassFileName}{toc}{flat}%
1554 \@toclefttrue
1555 \or % graduated
1556 \KOMA@kav@remove{\KOMAClassFileName}{toc}{flat}%
1557 \KOMA@kav@remove{\KOMAClassFileName}{toc}{graduated}%
1558 \KOMA@kav@add{\KOMAClassFileName}{toc}{graduated}%
1559 \@tocleftfalse
1560 \or % indenttextentries
1561 \KOMA@kav@remove{\KOMAClassFileName}{toc}{indenttextentries}%
1562 \KOMA@kav@remove{\KOMAClassFileName}{toc}{leftaligntextentries}%
1563 \KOMA@kav@add{\KOMAClassFileName}{toc}{indenttextentries}%
1564 \expandafter\setuptoc\expandafter{\ext@toc}{numberline}%
1565 \or % leftaligntextentries
1566 \KOMA@kav@remove{\KOMAClassFileName}{toc}{indenttextentries}%
1567 \KOMA@kav@remove{\KOMAClassFileName}{toc}{leftaligntextentries}%
1568 \KOMA@kav@add{\KOMAClassFileName}{toc}{leftaligntextentries}%
1569 \expandafter\unsettoc\expandafter{\ext@toc}{numberline}%
1570 \or % chapterentrywithdots/sectionentrywithdots
1571 \KOMAoptions{sectionentrydots=true}%
1572 \or % chapterentrywithoutdots/sectionentrywithoutdots
1573 \KOMAoptions{sectionentrydots=false}%
1574 \fi
1575 \fi
1576 }
1577 \KOMA@DeclareDeprecatedOption{tocleft}{toc=flat}
1578 \KOMA@DeclareDeprecatedOption{tocindent}{toc=graduated}
1579 \newcommand*{\float@@listhead}{%
1580 \section*
1581 }
1582 \newif\if@dynlist
1583 \KOMA@key{listof}{%
1584 \KOMA@set@ncmdkey{listof}{@tempa}{%
1585 {notoc}{0},{nottotoc}{0},{plainheading}{0},%
1586 {totoc}{1},{toc}{1},{notnumbered}{1},%
1587 {numbered}{2},{totocnumbered}{2},{tocnumbered}{2},{numberedtotoc}{2},%
1588 {numberedtoc}{2},%
1589 {flat}{3},{left}{3},%
1590 {graduated}{4},{indent}{4},{indented}{4},%
1591 {leveldown}{5},
1592 {standardlevel}{6},
1593 {entryprefix}{7},
1594 {indenttextentries}{8},{indentunnumbered}{8},{numberline}{8},%
1595 {leftaligntextentries}{9},{leftalignunnumbered}{9},{nonumberline}{9}%
1596 }{#1}%
1597 \ifx\FamilyKeyState\FamilyKeyStateProcessed
1598 \ifcase \@tempa\relax % notoc
1599 \KOMA@kav@remove{\KOMAClassFileName}{toc}{nolistof}%
1600 \KOMA@kav@remove{\KOMAClassFileName}{toc}{listof}%
1601 \KOMA@kav@remove{\KOMAClassFileName}{toc}{listofnumbered}%
1602 \KOMA@kav@add{\KOMAClassFileName}{toc}{nolistof}%
1603 \KOMA@kav@remove{\KOMAClassFileName}{listof}{notoc}%
1604 \KOMA@kav@remove{\KOMAClassFileName}{listof}{totoc}%
1605 \KOMA@kav@remove{\KOMAClassFileName}{listof}{numbered}%
1606 \KOMA@kav@add{\KOMAClassFileName}{listof}{notoc}%
1607 \renewcommand*{\float@@listhead}{%
1608 \section*
1609 }%
1610 \doforeachtocfile[float]{%
1611 \unsettoc{\@currext}{numbered}%
1612 \unsettoc{\@currext}{totoc}%
1613 }%
1614 \AtAddToTocList[float]{%
1615 \unsettoc{\@currext}{numbered}%
1616 \unsettoc{\@currext}{totoc}%
1617 }%
1618 \or% totoc
1619 \KOMA@kav@remove{\KOMAClassFileName}{toc}{nolistof}%
1620 \KOMA@kav@remove{\KOMAClassFileName}{toc}{listof}%
1621 \KOMA@kav@remove{\KOMAClassFileName}{toc}{listofnumbered}%
1622 \KOMA@kav@add{\KOMAClassFileName}{toc}{listof}%
1623 \KOMA@kav@remove{\KOMAClassFileName}{listof}{notoc}%
1624 \KOMA@kav@remove{\KOMAClassFileName}{listof}{totoc}%
1625 \KOMA@kav@remove{\KOMAClassFileName}{listof}{numbered}%
1626 \KOMA@kav@add{\KOMAClassFileName}{listof}{totoc}%
1627 \renewcommand*{\float@@listhead}{%
1628 \addsec
1629 }%
1630 \doforeachtocfile[float]{%
1631 \unsettoc{\@currext}{numbered}%
1632 \setuptoc{\@currext}{totoc}%
1633 }%
1634 \AtAddToTocList[float]{%
1635 \unsettoc{\@currext}{numbered}%
1636 \setuptoc{\@currext}{totoc}%
1637 }%
1638 \or% numbered
1639 \KOMA@kav@remove{\KOMAClassFileName}{toc}{nolistof}%
1640 \KOMA@kav@remove{\KOMAClassFileName}{toc}{listof}%
1641 \KOMA@kav@remove{\KOMAClassFileName}{toc}{listofnumbered}%
1642 \KOMA@kav@add{\KOMAClassFileName}{toc}{listofnumbered}%
1643 \KOMA@kav@remove{\KOMAClassFileName}{listof}{notoc}%
1644 \KOMA@kav@remove{\KOMAClassFileName}{listof}{totoc}%
1645 \KOMA@kav@remove{\KOMAClassFileName}{listof}{numbered}%
1646 \KOMA@kav@add{\KOMAClassFileName}{listof}{numbered}%
1647 \renewcommand*{\float@@listhead}{%
1648 \section
1649 }%
1650 \doforeachtocfile[float]{%
1651 \setuptoc{\@currext}{numbered}%
1652 \setuptoc{\@currext}{totoc}%
1653 }%
1654 \AtAddToTocList[float]{%
1655 \setuptoc{\@currext}{numbered}%
1656 \setuptoc{\@currext}{totoc}%
1657 }%
1658 \or% flat
1659 \KOMA@kav@remove{\KOMAClassFileName}{listof}{flat}%
1660 \KOMA@kav@remove{\KOMAClassFileName}{listof}{graduated}%
1661 \KOMA@kav@add{\KOMAClassFileName}{listof}{flat}%
1662 \@dynlisttrue
1663 \or% graduated
1664 \KOMA@kav@remove{\KOMAClassFileName}{listof}{flat}%
1665 \KOMA@kav@remove{\KOMAClassFileName}{listof}{graduated}%
1666 \KOMA@kav@add{\KOMAClassFileName}{listof}{graduated}%
1667 \@dynlistfalse
1668 \or% leveldown
1669 \KOMA@kav@remove{\KOMAClassFileName}{listof}{standardlevel}%
1670 \KOMA@kav@add{\KOMAClassFileName}{listof}{leveldown}%
1671 \doforeachtocfile[float]{%
1672 \setuptoc{\@currext}{leveldown}%
1673 }%
1674 \AtAddToTocList[float]{%
1675 \setuptoc{\@currext}{leveldown}%
1676 }%
1677 \or% standardlevel
1678 \KOMA@kav@remove{\KOMAClassFileName}{listof}{leveldown}%
1679 \KOMA@kav@add{\KOMAClassFileName}{listof}{standardlevel}%
1680 \doforeachtocfile[float]{%
1681 \unsettoc{\@currext}{leveldown}%
1682 }%
1683 \AtAddToTocList[float]{%
1684 \unsettoc{\@currext}{leveldown}%
1685 }%
1686 \or% entryprefix
1687 \KOMA@kav@add{\KOMAClassFileName}{listof}{entryprefix}%
1688 \@dynlisttrue
1689 \doforeachtocfile[float]{%
1690 \BeforeStartingTOC[\@currext]{%
1691 \scr@ifundefinedorrelax{listof\@currext entryname}{}{%
1692 \expandafter\def\expandafter\numberline@prefix
1693 \expandafter{\csname listof\@currext entryname\endcsname
1694 \nobreakspace}%
1695 }%
1696 }%
1697 }%
1698 \AtAddToTocList[float]{%
1699 \BeforeStartingTOC[\@currext]{%
1700 \scr@ifundefinedorrelax{listof\@currext entryname}{}{%
1701 \expandafter\def\expandafter\numberline@prefix
1702 \expandafter{\csname listof\@currext entryname\endcsname
1703 \nobreakspace}%
1704 }%
1705 }%
1706 }%
1707 \or% indenttextentries
1708 \KOMA@kav@remove{\KOMAClassFileName}{listof}{indenttextentries}%
1709 \KOMA@kav@remove{\KOMAClassFileName}{listof}{leftaligntextentries}%
1710 \KOMA@kav@add{\KOMAClassFileName}{listof}{indenttextentries}%
1711 \doforeachtocfile[float]{%
1712 \setuptoc{\@currext}{numberline}%
1713 }%
1714 \AtAddToTocList[float]{%
1715 \setuptoc{\@currext}{numberline}%
1716 }
1717 \or% leftaligntextentries
1718 \KOMA@kav@remove{\KOMAClassFileName}{listof}{indenttextentries}%
1719 \KOMA@kav@remove{\KOMAClassFileName}{listof}{leftaligntextentries}%
1720 \KOMA@kav@add{\KOMAClassFileName}{listof}{leftaligntextentries}%
1721 \doforeachtocfile[float]{%
1722 \unsettoc{\@currext}{numberline}%
1723 }%
1724 \AtAddToTocList[float]{%
1725 \unsettoc{\@currext}{numberline}%
1726 }
1727 \fi
1728 \fi
1729 }
1730 \KOMA@kav@add{\KOMAClassFileName}{toc}{nolistof}
1731 \KOMA@kav@add{\KOMAClassFileName}{listof}{notoc}
1732 \KOMA@kav@add{\KOMAClassFileName}{listof}{graduated}
1733 \KOMA@kav@add{\KOMAClassFileName}{listof}{leftaligntextentries}
1734 \KOMA@DeclareDeprecatedOption{liststotoc}{listof=totoc}
1735 \KOMA@DeclareDeprecatedOption{liststotocnumbered}{listof=numbered}
1736 \KOMA@DeclareDeprecatedOption{listsleft}{listof=flat}
1737 \KOMA@DeclareDeprecatedOption{listsindent}{listof=graduated}
1738 %%% From File: $Id: scrkernel-bibliography.dtx 4032 2023-04-17 09:45:11Z kohm $
1739 %%% (run: option)
1740 \newcommand{\newbibstyle}[3][]{%
1741 \scr@ifundefinedorrelax{scr@bibstyle@#2}{%
1742 \scr@ifundefinedorrelax{scr@bibstyle@#1}{%
1743 \ClassError{\KOMAClassName}{%
1744 parent bibliography style `#1' does not exist}{%
1745 You've told me to define the new bibliography style `#2'\MessageBreak
1746 to be a child of bibliography style `#1', but bibliography
1747 style\MessageBreak
1748 `#1' does not exist.\MessageBreak
1749 You have to remove the parent declaration or use an existing parent!
1750 See the KOMA-Script manual for more information.%
1751 }%
1752 }{%
1753 \@namedef{scr@bibstyle@#2}{%
1754 \let\@openbib@code\@empty
1755 \let\newblock\@empty
1756 \let\bib@beginhook\@empty
1757 \let\bib@endhook\@empty
1758 \@ifundefined{scr@current@bibstyle}{}{%
1759 \Ifstr{\scr@current@bibstyle}{}{}{%
1760 \edef\reserved@a{%
1761 \noexpand\KOMA@kav@remove{\KOMAClassFileName}{bibliography}%
1762 {\scr@current@bibstyle}%
1763 }\reserved@a
1764 }%
1765 }%
1766 \def\scr@current@bibstyle{#2}%
1767 \KOMA@kav@xadd{\KOMAClassFileName}{bibliography}{#2}%
1768 \csname scr@bibstyle@#1\endcsname
1769 #3%
1770 }%
1771 \ifx\scr@bibstylelist\@empty
1772 \edef\scr@bibstylelist{`#2'}%
1773 \else
1774 \edef\scr@bibstylelist{\scr@bibstylelist, `#2'}%
1775 \fi
1776 }%
1777 }{%
1778 \ClassError{\KOMAClassName}{bibliography style `#2' already exists}{%
1779 You've told me to define the new bibliography style `#2',\MessageBreak
1780 but this style already exists.\MessageBreak
1781 You have to use another bibliography style name.\MessageBreak
1782 See the KOMA-Script manual for more information.%
1783 }%
1784 }%
1785 }
1786 \newcommand*{\scr@bibstyle@}{}
1787 \newcommand*{\bib@beginhook}{}
1788 \newcommand*{\bib@endhook}{}
1789 \newcommand*{\scr@bibstylelist}{}
1790 \newcommand*{\@openbib@code}{}
1791 \newcommand*{\newblock}{}
1792 \newbibstyle{openstyle}{%
1793 \renewcommand*{\@openbib@code}{%
1794 \advance\leftmargin\bibindent
1795 \itemindent -\bibindent
1796 \listparindent \itemindent
1797 \parsep \z@
1798 }%
1799 \renewcommand*{\newblock}{\par}%
1800 }
1801 \newbibstyle{oldstyle}{%
1802 \renewcommand*{\newblock}{\hskip .11em\@plus.33em\@minus.07em}%
1803 }
1804 \scr@bibstyle@oldstyle
1805 \newcommand*{\bib@heading}{%
1806 \bibliography@heading{\refname}%
1807 }
1808 \newcommand*{\bibliography@heading}[1]{%
1809 \ifbib@leveldown
1810 \subsection*{#1}%
1811 \begingroup
1812 \c@secnumdepth=-\maxdimen
1813 \subsectionmark{#1}%
1814 \endgroup
1815 \else
1816 \section*{#1}%
1817 \@mkdouble{\MakeMarkcase{#1}}%
1818 \fi
1819 }%
1820 \newif\ifbib@leveldown
1821 \KOMA@key{bibliography}{%
1822 \scr@ifundefinedorrelax{scr@bibstyle@#1}{%
1823 \KOMA@set@ncmdkey{bibliography}{@tempa}{%
1824 {notoc}{0},{nottotoc}{0},{plainheading}{0},%
1825 {totoc}{1},{toc}{1},{notnumbered}{1},%
1826 {numbered}{2},{totocnumbered}{2},{tocnumbered}{2},{numberedtotoc}{2},%
1827 {numberedtoc}{2},%
1828 {leveldown}{3},%
1829 {standardlevel}{4}%
1830 }{#1}%
1831 \ifcase \@tempa\relax % notoc
1832 \KOMA@kav@remove{\KOMAClassFileName}{toc}{nobibliography}%
1833 \KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliography}%
1834 \KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliographynumbered}%
1835 \KOMA@kav@add{\KOMAClassFileName}{toc}{nobibliography}%
1836 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{notoc}%
1837 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{totoc}%
1838 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{numbered}%
1839 \KOMA@kav@add{\KOMAClassFileName}{bibliography}{notoc}%
1840 \renewcommand*{\bibliography@heading}[1]{%
1841 \ifbib@leveldown
1842 \subsection*{##1}%
1843 \@mkright{\MakeMarkcase{##1}}%
1844 \else
1845 \section*{##1}%
1846 \@mkdouble{\MakeMarkcase{##1}}%
1847 \fi
1848 }%
1849 \or% totoc
1850 \KOMA@kav@remove{\KOMAClassFileName}{toc}{nobibliography}%
1851 \KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliography}%
1852 \KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliographynumbered}%
1853 \KOMA@kav@add{\KOMAClassFileName}{toc}{bibliography}%
1854 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{notoc}%
1855 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{totoc}%
1856 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{numbered}%
1857 \KOMA@kav@add{\KOMAClassFileName}{bibliography}{totoc}%
1858 \renewcommand*{\bibliography@heading}[1]{%
1859 \ifbib@leveldown
1860 \subsection*{%
1861 \addsubsectiontocentry{}{##1}%
1862 ##1%
1863 }%
1864 \@mkright{\MakeMarkcase{##1}}%
1865 \else
1866 \addsec{##1}%
1867 \@mkdouble{\MakeMarkcase{##1}}%
1868 \fi
1869 }%
1870 \or% numbered
1871 \KOMA@kav@remove{\KOMAClassFileName}{toc}{nobibliography}%
1872 \KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliography}%
1873 \KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliographynumbered}%
1874 \KOMA@kav@add{\KOMAClassFileName}{toc}{bibliographynumbered}%
1875 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{notoc}%
1876 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{totoc}%
1877 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{numbered}%
1878 \KOMA@kav@add{\KOMAClassFileName}{bibliography}{numbered}%
1879 \renewcommand*{\bibliography@heading}[1]{%
1880 \ifbib@leveldown
1881 \subsection{##1}%
1882 \else
1883 \section{##1}%
1884 \@mkdouble{\MakeMarkcase{\sectionmarkformat ##1}}%
1885 \fi
1886 }
1887 \or% leveldown
1888 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{leveldown}%
1889 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{standardlevel}%
1890 \KOMA@kav@add{\KOMAClassFileName}{bibliography}{leveldown}%
1891 \bib@leveldowntrue
1892 \or% standardlevel
1893 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{leveldown}%
1894 \KOMA@kav@remove{\KOMAClassFileName}{bibliography}{standardlevel}%
1895 \KOMA@kav@add{\KOMAClassFileName}{bibliography}{standardlevel}%
1896 \bib@leveldownfalse
1897 \fi
1898 }{%
1899 \FamilyKeyStateProcessed
1900 \edef\reserved@a{%
1901 \noexpand\KOMA@kav@remove{\KOMAClassFileName}{bibliography}%
1902 {\scr@current@bibstyle}%
1903 }\reserved@a
1904 \csname scr@bibstyle@#1\endcsname
1905 }%
1906 }
1907 \KOMA@DeclareStandardOption{openbib}{bibliography=openstyle}
1908 \KOMA@DeclareDeprecatedOption{bibtotoc}{bibliography=totoc}
1909 \KOMA@DeclareDeprecatedOption{bibtotocnumbered}{bibliography=totocnumbered}
1910 %%% From File: $Id: scrkernel-index.dtx 4181 2025-06-14 09:11:13Z kohm $
1911 %%% (run: option)
1912 \newcommand*{\idx@@heading}{%
1913 \ifidx@leveldown
1914 \expandafter\subsection
1915 \else
1916 \expandafter\section
1917 \fi*%
1918 }
1919 \newcommand*{\idx@@forcemark}[1]{%
1920 \ifidx@leveldown
1921 \begingroup
1922 \value{secnumdepth}=-\maxdimen
1923 \subsectionmark{#1}%
1924 \endgroup
1925 \else
1926 \@mkdouble{\MakeMarkcase{#1}}%
1927 \fi
1928 }
1929 \newcommand*{\idx@@forcemarknumbered}[1]{%
1930 \ifidx@leveldown
1931 \subsectionmark{#1}%
1932 \else
1933 \sectionmark{#1}%
1934 \fi
1935 }
1936 \newcommand*{\idx@@mark}{}
1937 \let\idx@@mark\idx@@forcemark
1938 \newif\ifidx@leveldown
1939 \KOMA@key{index}{%
1940 \KOMA@set@ncmdkey{index}{@tempa}{%
1941 {notoc}{0},{nottotoc}{0},{default}{0},{plainheading}{0},%
1942 {totoc}{1},{toc}{1},{notnumbered}{1},%
1943 {numbered}{2},{totocnumbered}{2},{numberedtotoc}{2},{tocnumbered}{2},%
1944 {numberedtoc}{2},%
1945 {leveldown}{3},%
1946 {standardlevel}{4}%
1947 }{#1}%
1948 \ifx\FamilyKeyState\FamilyKeyStateProcessed
1949 \ifcase \@tempa\relax
1950 \KOMA@kav@remove{\KOMAClassFileName}{toc}{noindex}%
1951 \KOMA@kav@remove{\KOMAClassFileName}{toc}{indexnumbered}%
1952 \KOMA@kav@remove{\KOMAClassFileName}{toc}{index}%
1953 \KOMA@kav@remove{\KOMAClassFileName}{index}{notoc}%
1954 \KOMA@kav@remove{\KOMAClassFileName}{index}{numbered}%
1955 \KOMA@kav@remove{\KOMAClassFileName}{index}{toc}%
1956 \KOMA@kav@add{\KOMAClassFileName}{toc}{noindex}%
1957 \KOMA@kav@add{\KOMAClassFileName}{index}{notoc}%
1958 \renewcommand*{\idx@@heading}{%
1959 \ifidx@leveldown
1960 \expandafter\subsection
1961 \else
1962 \expandafter\section
1963 \fi*%
1964 }%
1965 \let\idx@@mark\idx@@forcemark
1966 \or
1967 \KOMA@kav@remove{\KOMAClassFileName}{toc}{noindex}%
1968 \KOMA@kav@remove{\KOMAClassFileName}{toc}{indexnumbered}%
1969 \KOMA@kav@remove{\KOMAClassFileName}{toc}{index}%
1970 \KOMA@kav@remove{\KOMAClassFileName}{index}{notoc}%
1971 \KOMA@kav@remove{\KOMAClassFileName}{index}{numbered}%
1972 \KOMA@kav@remove{\KOMAClassFileName}{index}{toc}%
1973 \KOMA@kav@add{\KOMAClassFileName}{toc}{index}%
1974 \KOMA@kav@add{\KOMAClassFileName}{index}{toc}%
1975 \renewcommand*{\idx@@heading}{%
1976 \ifidx@leveldown
1977 \expandafter\expandafter\expandafter\subsection\expandafter*%
1978 \else
1979 \expandafter\addsec
1980 \fi
1981 }%
1982 \let\idx@@mark\idx@@forcemark
1983 \or
1984 \KOMA@kav@remove{\KOMAClassFileName}{toc}{noindex}%
1985 \KOMA@kav@remove{\KOMAClassFileName}{toc}{indexnumbered}%
1986 \KOMA@kav@remove{\KOMAClassFileName}{toc}{index}%
1987 \KOMA@kav@remove{\KOMAClassFileName}{index}{notoc}%
1988 \KOMA@kav@remove{\KOMAClassFileName}{index}{numbered}%
1989 \KOMA@kav@remove{\KOMAClassFileName}{index}{toc}%
1990 \KOMA@kav@add{\KOMAClassFileName}{toc}{indexnumbered}%
1991 \KOMA@kav@add{\KOMAClassFileName}{index}{numbered}%
1992 \renewcommand*{\idx@@heading}{%
1993 \ifidx@leveldown
1994 \expandafter\subsection
1995 \else
1996 \expandafter\section
1997 \fi
1998 }%
1999 \let\idx@@mark\idx@@forcemarknumbered
2000 \or
2001 \KOMA@kav@remove{\KOMAClassFileName}{index}{leveldown}%
2002 \KOMA@kav@remove{\KOMAClassFileName}{index}{standardlevel}%
2003 \KOMA@kav@add{\KOMAClassFileName}{index}{leveldown}%
2004 \idx@leveldowntrue
2005 \or
2006 \KOMA@kav@remove{\KOMAClassFileName}{index}{leveldown}%
2007 \KOMA@kav@remove{\KOMAClassFileName}{index}{standardlevel}%
2008 \KOMA@kav@add{\KOMAClassFileName}{index}{standardlevel}%
2009 \idx@leveldownfalse
2010 \fi
2011 \fi
2012 }
2013 \KOMA@kav@add{\KOMAClassFileName}{toc}{noindex}
2014 \KOMA@kav@add{\KOMAClassFileName}{index}{notoc}
2015 \KOMA@kav@add{\KOMAClassFileName}{index}{standardlevel}
2016 \KOMA@DeclareDeprecatedOption{idxtotoc}{index=totoc}
2017 %%% From File: $Id: scrkernel-listsandtabulars.dtx 4138 2025-02-10 13:55:51Z kohm $
2018 %%% (run: option)
2019 %%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $
2020 %%% (run: execoption)
2021 \KOMAExecuteOptions{numbers=autoendperiod}
2022 %%% From File: $Id: scrkernel-miscellaneous.dtx 4223 2025-09-11 09:09:44Z kohm $
2023 %%% (run: execoption)
2024 \KOMAExecuteOptions{%
2025 parskip=false,%
2026 headings=big%
2027 }
2028 \KOMAProcessOptions\relax
2029 %%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $
2030 %%% (run: body)
2031 \AtBeginDocument{%
2032 \begingroup
2033 \def\reserved@a#1/#2/#3 #4\@nil{\@tempcnta=#1\relax\@tempcntb=#2\relax}%
2034 \expandafter\reserved@a\KOMAScriptVersion\@nil
2035 \edef\reserved@a{\the\numexpr\@tempcnta+2\relax/%
2036 \ifnum\@tempcntb<10 0\fi\the\@tempcntb/01}%
2037 \expandafter\IfLTXAtLeastTF\expandafter{\reserved@a}{%
2038 \ClassWarningNoLine{\KOMAClassName}{%
2039 Your are using a KOMA-Script version, that has not\MessageBreak
2040 been tested with your more than one year newer\MessageBreak
2041 LaTeX release `\fmtversion'.\MessageBreak
2042 Because of the high speed of LaTeX kernel development,\MessageBreak
2043 this could result in a lot of issues.\MessageBreak
2044 Please have a look at\MessageBreak
2045 <http://www.ctan.org/pkg/koma-script> and if this\MessageBreak
2046 shows a newer KOMA-Script version than\MessageBreak
2047 `\KOMAScriptVersion', we suggest to do\MessageBreak
2048 an update of KOMA-Script or maybe even the whole\MessageBreak
2049 TeX distribution%
2050 }%
2051 }{%
2052 \edef\reserved@a{\the\numexpr\@tempcnta-4\relax/%
2053 \ifnum\@tempcntb<10 0\fi\the\@tempcntb/01}%
2054 \expandafter\IfLTXAtLeastTF\expandafter{\reserved@a}{}{%
2055 \ClassWarningNoLine{\KOMAClassName}{%
2056 You are using a KOMA-Script version, that has not been\MessageBreak
2057 tested with your more than four years older LaTeX\MessageBreak
2058 release `\fmtversion'.\MessageBreak
2059 Because of the high speed of LaTeX kernel development,\MessageBreak
2060 KOMA-Script releases cannot be tested with all past\MessageBreak
2061 LaTeX releases.\MessageBreak
2062 \ifnum\scr@compatibility<\scr@v@last
2063 So even if you are using option `version' implicitly\MessageBreak
2064 or explicitly, this
2065 \else
2066 So this
2067 \fi
2068 could result in a lot of issues.\MessageBreak
2069 We recommend, to update the whole TeX distribution.\MessageBreak
2070 If this could not be done, we suggest to use at\MessageBreak
2071 least an older KOMA-Script release, e.g., from\MessageBreak
2072 <https://sf.net/projects/koma-script/files/KOMA-Script/>%
2073 }%
2074 }%
2075 }%
2076 \endgroup
2077 }
2078 %%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $
2079 %%% (run: body)
2080 \newcommand*\scr@setlength[4]{%
2081 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2082 \setlength{#1}{#2 \@plus#3 \@minus#4}%
2083 \else
2084 \ifdim #2<\ifdim #2=\z@ \z@ \else \p@\fi
2085 \ifdim #3<\ifdim #3=\z@ \z@ \else \p@\fi
2086 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
2087 \setlength{#1}{\p@ \@plus\p@ \@minus\p@}%
2088 \else
2089 \setlength{#1}{\p@ \@plus\p@ \@minus#4}%
2090 \fi
2091 \else
2092 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
2093 \setlength{#1}{\p@ \@plus#3 \@minus\p@}%
2094 \else
2095 \setlength{#1}{\p@ \@plus#3 \@minus#4}%
2096 \fi
2097 \fi
2098 \else
2099 \ifdim #3<\ifdim #3=\z@ \z@ \else \p@\fi
2100 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
2101 \setlength{#1}{#2 \@plus\p@ \@minus\p@}%
2102 \else
2103 \setlength{#1}{#2 \@plus\p@ \@minus#4}%
2104 \fi
2105 \else
2106 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
2107 \setlength{#1}{#2 \@plus#3 \@minus\p@}%
2108 \else
2109 \setlength{#1}{#2 \@plus#3 \@minus#4}%
2110 \fi
2111 \fi
2112 \fi
2113 \fi
2114 }
2115 \providecommand*{\simple@changefontsizes}[2][1.2\@tempdima]{%
2116 \KOMA@kav@removekey{%
2117 \KOMAClassFileName
2118 }{fontsize}%
2119 \@defaultunits\@tempdima#2pt\relax\@nnil
2120 \setlength{\@tempdimc}{\@tempdima}%
2121 \addtolength{\@tempdimc}{-10\p@}%
2122 \edef\@ptsize{\strip@pt\@tempdimc}%
2123 \@defaultunits\@tempdimb#1pt\relax\@nnil
2124 \setlength{\@tempdimc}{\dimexpr (100\@tempdimb / \@tempdima * \p@)}%
2125 \edef\@tempb{\the\@tempdimc}%
2126 \setlength{\@tempdimc}{\@tempdima}%
2127 \def\@tempa##1##2##3##4##5\@nnil{\def##1{##2.##3##4}}%
2128 \expandafter\@tempa\expandafter\@tempb\@tempb\@nnil%
2129 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2130 \setlength{\abovedisplayskip}{%
2131 \@tempdima \@plus .25\@tempdima \@minus .58\@tempdima}%
2132 \setlength{\abovedisplayshortskip}{\z@ \@plus .25\@tempdima}%
2133 \setlength{\belowdisplayshortskip}{%
2134 .55\@tempdima \@plus .3\@tempdima \@minus .25\@tempdima}%
2135 \else
2136 \scr@setlength{\abovedisplayskip}%
2137 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
2138 \scr@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
2139 \scr@setlength{\belowdisplayshortskip}%
2140 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
2141 \fi
2142 \setlength{\belowdisplayskip}{\abovedisplayskip}%
2143 \edef\reserved@a{%
2144 \noexpand\@setfontsize\noexpand\normalsize
2145 {\the\@tempdima}{\the\@tempdimb}%
2146 \abovedisplayskip \the\abovedisplayskip
2147 \abovedisplayshortskip \the\abovedisplayshortskip
2148 \belowdisplayskip \the\belowdisplayskip
2149 \belowdisplayshortskip \the\belowdisplayshortskip
2150 \let\noexpand\@listi\noexpand\@listI
2151 }%
2152 \let\normalsize\@undefined
2153 \expandafter\DeclareRobustCommand\expandafter\normalsize\expandafter{\reserved@a}%
2154 \setlength{\@tempdima}{0.9125\@tempdimc}%
2155 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2156 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2157 \setlength{\abovedisplayskip}{%
2158 \@tempdima \@plus .25\@tempdima \@minus .58\@tempdima}%
2159 \setlength{\abovedisplayshortskip}{\z@ \@plus .25\@tempdima}%
2160 \setlength{\belowdisplayshortskip}{%
2161 .55\@tempdima \@plus .3\@tempdima \@minus .25\@tempdima}%
2162 \else
2163 \scr@setlength{\abovedisplayskip}%
2164 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
2165 \scr@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
2166 \scr@setlength{\belowdisplayshortskip}%
2167 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
2168 \fi
2169 \setlength{\belowdisplayskip}{\abovedisplayskip}%
2170 \edef\reserved@a{%
2171 \noexpand\@setfontsize\noexpand\small
2172 {\the\@tempdima}{\the\@tempdimb}%
2173 \abovedisplayskip \the\abovedisplayskip
2174 \abovedisplayshortskip \the\abovedisplayshortskip
2175 \belowdisplayskip \the\belowdisplayskip
2176 \belowdisplayshortskip \the\belowdisplayshortskip
2177 \let\noexpand\@listi\noexpand\@listi@small
2178 }%
2179 \let\small\@undefined
2180 \expandafter\DeclareRobustCommand\expandafter\small\expandafter{\reserved@a}%
2181 \setlength{\@tempdima}{.83334\@tempdimc}%
2182 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2183 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2184 \setlength{\abovedisplayskip}{%
2185 \@tempdima \@plus .25\@tempdima \@minus .58\@tempdima}%
2186 \setlength{\abovedisplayshortskip}{\z@ \@plus .25\@tempdima}%
2187 \setlength{\belowdisplayshortskip}{%
2188 .55\@tempdima \@plus .3\@tempdima \@minus .25\@tempdima}%
2189 \else
2190 \scr@setlength{\abovedisplayskip}%
2191 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
2192 \scr@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
2193 \scr@setlength{\belowdisplayshortskip}%
2194 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
2195 \fi
2196 \setlength{\belowdisplayskip}{\abovedisplayskip}%
2197 \edef\reserved@a{%
2198 \noexpand\@setfontsize\noexpand\footnotesize
2199 {\the\@tempdima}{\the\@tempdimb}%
2200 \abovedisplayskip \the\abovedisplayskip
2201 \abovedisplayshortskip \the\abovedisplayshortskip
2202 \belowdisplayskip \the\belowdisplayskip
2203 \belowdisplayshortskip \the\belowdisplayshortskip
2204 \let\noexpand\@listi\noexpand\@listi@footnotesize
2205 }%
2206 \let\footnotesize\@undefined
2207 \expandafter\DeclareRobustCommand\expandafter\footnotesize\expandafter{\reserved@a}%
2208 \setlength{\@tempdima}{.66667\@tempdimc}%
2209 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2210 \edef\reserved@a{%
2211 \noexpand\@setfontsize\noexpand\scriptsize
2212 {\the\@tempdima}{\the\@tempdimb}%
2213 }%
2214 \let\scriptsize\@undefined
2215 \expandafter\DeclareRobustCommand\expandafter\scriptsize\expandafter{\reserved@a}%
2216 \setlength{\@tempdima}{.5\@tempdimc}%
2217 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2218 \edef\reserved@a{%
2219 \noexpand\@setfontsize\noexpand\tiny
2220 {\the\@tempdima}{\the\@tempdimb}%
2221 }%
2222 \let\tiny\@undefined
2223 \expandafter\DeclareRobustCommand\expandafter\tiny\expandafter{\reserved@a}%
2224 \setlength{\@tempdima}{1.2\@tempdimc}%
2225 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2226 \edef\reserved@a{%
2227 \noexpand\@setfontsize\noexpand\large
2228 {\the\@tempdima}{\the\@tempdimb}%
2229 }%
2230 \let\large\@undefined
2231 \expandafter\DeclareRobustCommand\expandafter\large\expandafter{\reserved@a}%
2232 \setlength{\@tempdima}{1.44\@tempdimc}%
2233 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2234 \edef\reserved@a{%
2235 \noexpand\@setfontsize\noexpand\Large
2236 {\the\@tempdima}{\the\@tempdimb}%
2237 }%
2238 \let\Large\@undefined
2239 \expandafter\DeclareRobustCommand\expandafter\Large\expandafter{\reserved@a}%
2240 \setlength{\@tempdima}{1.728\@tempdimc}%
2241 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2242 \edef\reserved@a{%
2243 \noexpand\@setfontsize\noexpand\LARGE
2244 {\the\@tempdima}{\the\@tempdimb}%
2245 }%
2246 \let\LARGE\@undefined
2247 \expandafter\DeclareRobustCommand\expandafter\LARGE\expandafter{\reserved@a}%
2248 \setlength{\@tempdima}{2.074\@tempdimc}%
2249 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2250 \edef\reserved@a{%
2251 \noexpand\@setfontsize\noexpand\huge
2252 {\the\@tempdima}{\the\@tempdimb}%
2253 }%
2254 \let\huge\@undefined
2255 \expandafter\DeclareRobustCommand\expandafter\huge\expandafter{\reserved@a}%
2256 \setlength{\@tempdima}{2.488\@tempdimc}%
2257 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2258 \edef\reserved@a{%
2259 \noexpand\@setfontsize\noexpand\Huge
2260 {\the\@tempdima}{\the\@tempdimb}%
2261 }%
2262 \let\Huge\@undefined
2263 \expandafter\DeclareRobustCommand\expandafter\Huge\expandafter{\reserved@a}%
2264 \normalsize
2265 \expandafter\ifnum\scr@v@is@ge{3.17}
2266 \@nameuse{par@updaterelative}%
2267 \fi
2268 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2269 \setlength{\footnotesep}{.7\@tempdimc}%
2270 \setlength{\skip\footins}{.9\@tempdimc \@plus .3333\@tempdimc \@minus
2271 .6\@tempdimc}%
2272 \setlength{\floatsep}{\@tempdimc \@plus .1667\@tempdimc \@minus
2273 .3333\@tempdimc}%
2274 \setlength{\textfloatsep}{1.6667\@tempdimc \@plus .1667\@tempdimc \@minus
2275 .3333\@tempdimc}%
2276 \setlength{\intextsep}{\@tempb\@tempdimc \@plus .3333\@tempdimc \@minus
2277 .3333\@tempdimc}%
2278 \setlength{\dblfloatsep}{\@tempb\@tempdimc \@plus .1667\@tempdimc \@minus
2279 .3333\@tempdimc}%
2280 \setlength{\dbltextfloatsep}{\textfloatsep}%
2281 \setlength{\@fptop}{0\p@ \@plus 1fil}%
2282 \setlength{\@fpsep}{.8333\@tempdimc \@plus 2fil}%
2283 \setlength{\@fpbot}{\@fptop}%
2284 \setlength{\@dblfptop}{0\p@ \@plus 1fil}%
2285 \setlength{\@dblfpsep}{.8333\@tempdimc \@plus 2fil}%
2286 \setlength{\@dblfpbot}{\@fptop}%
2287 \fi
2288 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2289 \setlength{\topsep}{.8333\@tempdimc \@plus .3333\@tempdimc \@minus
2290 .5\@tempdimc}%
2291 \setlength{\parsep}{.4167\@tempdimc \@plus .2083\@tempdimc \@minus \p@}%
2292 \else
2293 \setlength{\@tempdimb}{\f@baselineskip}%
2294 \scr@setlength{\parsep}%
2295 {.3333\@tempdimb}{.1667\@tempdimb}{.0833\@tempdimb}%
2296 \scr@setlength{\topsep}%
2297 {.6667\@tempdimb}{.1667\@tempdimb}{.3333\@tempdimb}%
2298 \fi
2299 \@tempswafalse
2300 \begingroup
2301 \def\@list@extra{\aftergroup\@tempswatrue}%
2302 \csname @listi\endcsname
2303 \endgroup
2304 \edef\@listi{\leftmargin\leftmargini
2305 \topsep \the\topsep
2306 \parsep \the\parsep
2307 \itemsep \parsep
2308 \if@tempswa\noexpand\@list@extra\fi
2309 }%
2310 \let\@listI\@listi
2311 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2312 \setlength{\topsep}{.75\@tempdimc \@plus .25\@tempdimc \@minus
2313 .41667\@tempdimc}%
2314 \setlength{\parsep}{.375\@tempdimc \@plus .16667\@tempdimc \@minus \p@}%
2315 \else
2316 \scr@setlength{\parsep}%
2317 {.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}%
2318 \scr@setlength{\topsep}%
2319 {.3333\@tempdimb}{.1667\@tempdimb}{.1667\@tempdimb}%
2320 \fi
2321 \@tempswafalse
2322 \begingroup
2323 \def\@list@extra{\aftergroup\@tempswatrue}%
2324 \csname @listi\endcsname
2325 \endgroup
2326 \edef\@listi@small{\leftmargin\leftmargini
2327 \topsep \the\topsep
2328 \parsep \the\parsep
2329 \itemsep \parsep
2330 \if@tempswa\noexpand\@list@extra\fi
2331 }%
2332 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2333 \setlength{\topsep}{.5\@tempdimc \@plus .16667\@tempdimc \@minus
2334 .16667\@tempdimc}%
2335 \setlength{\parsep}{.25\@tempdimc \@plus .16667\@tempdimc \@minus \p@}%
2336 \else
2337 \scr@setlength{\parsep}%
2338 {.125\@tempdimb}{.0625\@tempdimb}{.0625\@tempdimb}%
2339 \scr@setlength{\topsep}%
2340 {.25\@tempdimb}{.125\@tempdimb}{.125\@tempdimb}%
2341 \fi
2342 \@tempswafalse
2343 \begingroup
2344 \def\@list@extra{\aftergroup\@tempswatrue}%
2345 \csname @listi\endcsname
2346 \endgroup
2347 \edef\@listi@footnotesize{\leftmargin\leftmargini
2348 \topsep \the\topsep
2349 \parsep \the\parsep
2350 \itemsep \parsep
2351 \if@tempswa\noexpand\@list@extra\fi
2352 }%
2353 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2354 \setlength{\topsep}{.4167\@tempdimc \@plus .2083\@tempdimc \@minus \p@}%
2355 \setlength{\parsep}{.2083\@tempdimc \@plus \p@ \@minus \p@}%
2356 \else
2357 \scr@setlength{\parsep}%
2358 {.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}%
2359 \scr@setlength{\topsep}%
2360 {.3333\@tempdimb}{.1667\@tempdimb}{.0833\@tempdimb}%
2361 \fi
2362 \@tempswafalse
2363 \begingroup
2364 \def\@list@extra{\aftergroup\@tempswatrue}%
2365 \csname @listii\endcsname
2366 \endgroup
2367 \edef\@listii{\leftmargin\leftmarginii
2368 \labelwidth=\dimexpr \leftmargin-\labelsep
2369 \topsep \the\topsep
2370 \parsep \the\parsep
2371 \itemsep \parsep
2372 \if@tempswa\noexpand\@list@extra\fi
2373 }%
2374 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2375 \setlength{\topsep}{.2083\@tempdimc \@plus \p@ \@minus \p@}%
2376 \else
2377 \scr@setlength{\topsep}%
2378 {.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}%
2379 \fi
2380 \setlength{\partopsep}{\z@ \@plus\z@ \@minus\p@}%
2381 \@tempswafalse
2382 \begingroup
2383 \def\@list@extra{\aftergroup\@tempswatrue}%
2384 \csname @listiii\endcsname
2385 \endgroup
2386 \edef\@listiii{\leftmargin\leftmarginiii
2387 \labelwidth=\dimexpr \leftmargin-\labelsep
2388 \topsep \the\topsep
2389 \parsep \z@
2390 \partopsep \the\partopsep
2391 \itemsep \topsep
2392 \if@tempswa\noexpand\@list@extra\fi
2393 }%
2394 \@tempswafalse
2395 \begingroup
2396 \def\@list@extra{\aftergroup\@tempswatrue}%
2397 \csname @listiv\endcsname
2398 \endgroup
2399 \edef\@listiv{\leftmargin\leftmarginiv
2400 \labelwidth=\dimexpr \leftmargin-\labelsep\relax
2401 \if@tempswa\noexpand\@list@extra\fi
2402 }%
2403 \@tempswafalse
2404 \begingroup
2405 \def\@list@extra{\aftergroup\@tempswatrue}%
2406 \csname @listv\endcsname
2407 \endgroup
2408 \edef\@listv{\leftmargin\leftmarginv
2409 \labelwidth=\dimexpr \leftmargin-\labelsep\relax
2410 \if@tempswa\noexpand\@list@extra\fi
2411 }%
2412 \@tempswafalse
2413 \begingroup
2414 \def\@list@extra{\aftergroup\@tempswatrue}%
2415 \csname @listvi\endcsname
2416 \endgroup
2417 \edef\@listvi{\leftmargin\leftmarginvi
2418 \labelwidth=\dimexpr \leftmargin-\labelsep\relax
2419 \if@tempswa\noexpand\@list@extra\fi
2420 }%
2421 \@listi
2422 \expandafter\ifnum\scr@v@is@lt{3.12}\relax
2423 \setlength{\@tempdimb}{\@tempb\@tempdima}%
2424 \setlength{\@tempdima}{\dimexpr \@tempdimb-\@tempdimc}%
2425 \setlength\intextsep{\@tempdimb \@plus.2\@tempdima \@minus.2\@tempdima}%
2426 \setlength\dblfloatsep\intextsep
2427 \setlength\partopsep{.2\@tempdimc \@plus.1\@tempdimc \@minus.1\@tempdimc}%
2428 \else
2429 \setlength{\@tempdimb}{\f@baselineskip}%
2430 \setlength{\footnotesep}{.555\@tempdimb}%
2431 \scr@setlength{\skip\footins}%
2432 {.75\@tempdimb}{.3333\@tempdimb}{.1667\@tempdimb}%
2433 \scr@setlength{\floatsep}%
2434 {\@tempdimb}{.1667\@tempdimb}{.1667\@tempdimb}%
2435 \scr@setlength{\textfloatsep}%
2436 {1.6667\@tempdimb}{.1667\@tempdimb}{.3333\@tempdimb}%
2437 \setlength{\intextsep}{\floatsep}%
2438 \setlength{\dblfloatsep}{\floatsep}%
2439 \setlength{\dbltextfloatsep}{\textfloatsep}%
2440 \setlength{\@fptop}{\z@ \@plus 1fil}%
2441 \setlength{\@fpsep}{.6667\@tempdimb \@plus 2fil}%
2442 \setlength{\@fpbot}{\@fptop}%
2443 \setlength{\@dblfptop}{\@fptop}%
2444 \setlength{\@dblfpsep}{\@fpsep}%
2445 \setlength{\@dblfpbot}{\@fptop}%
2446 \scr@setlength{\partopsep}{.2\@tempdimb}{.1\@tempdimb}{.1\@tempdimb}%
2447 \fi
2448 }
2449 \scr@ifundefinedorrelax{changefontsizes}{%
2450 \let\changefontsizes\simple@changefontsizes
2451 }{%
2452 \ClassWarning{\KOMAClassName}{%
2453 \string\changefontsizes\space already defined.\MessageBreak
2454 I hope, the definition is compatible,\MessageBreak
2455 because I do not change it%
2456 }%
2457 }
2458 \expandafter\@defaultunits\expandafter\@tempdima\@ptsize pt\relax\@nnil
2459 \edef\@tempa{\@ptsize}%
2460 \setlength{\@tempdimb}{\@tempdima}%
2461 \edef\@tempb{\strip@pt\@tempdimb}%
2462 \addtolength{\@tempdimb}{-10\p@}%
2463 \edef\@ptsize{\strip@pt\@tempdimb}%
2464 \InputIfFileExists{\@fontsizefilebase\@tempa.clo}{%
2465 \ClassInfo{\KOMAClassName}{%
2466 File `\@fontsizefilebase\@tempa.clo' used to setup font sizes}%
2467 \KOMA@kav@removekey{\KOMAClassFileName}{fontsize}%
2468 \KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempa}%
2469 }{%
2470 \InputIfFileExists{\@fontsizefilebase\@tempb pt.clo}{%
2471 \ClassInfo{\KOMAClassName}{%
2472 File `\@fontsizefilebase\@tempb pt.clo' used instead of\MessageBreak
2473 file `\@fontsizefilebase\@tempa.clo' to setup font sizes}%
2474 \KOMA@kav@removekey{\KOMAClassFileName}{fontsize}%
2475 \KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempb pt}%
2476 }{%
2477 \InputIfFileExists{size\@tempb.clo}{%
2478 \ClassInfo{\KOMAClassName}{%
2479 File `size\@tempb.clo' used to setup font sizes}%
2480 \KOMA@kav@removekey{\KOMAClassFileName}{fontsize}%
2481 \KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempb}%
2482 }{%
2483 \edef\@tempa{%
2484 \noexpand\changefontsizes{\@tempa}%
2485 \noexpand\KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempa}%
2486 }\@tempa
2487 }%
2488 }%
2489 }
2490 \newcommand*{\scr@DeclareOldFontCommand}[3]{%
2491 \ifnum\scr@defineobsoletefonts<\z@\else
2492 \ifnum\scr@defineobsoletefonts>\tw@
2493 \DeclareOldFontCommand{#1}{#2}{#3}%
2494 \else
2495 \AtBeginDocument{%
2496 \ifdefined#1\else
2497 \DeclareOldFontCommand{#1}{%
2498 \scr@ErrorWarningInfo{#1}{#2}#2%
2499 }{%
2500 \scr@ErrorWarningInfo{#1}{#3}#3%
2501 }%
2502 \fi
2503 }%
2504 \fi
2505 \fi
2506 }
2507 \DeclareRobustCommand*{\scr@ErrorWarningInfo}[2]{%
2508 \ifnum \scr@defineobsoletefonts=\z@
2509 \ClassError{\KOMAClassName}{undefined old font command `\string#1'}{%
2510 You should note that since 1994 LaTeX2e provides a new font selection
2511 scheme\MessageBreak
2512 called NFSS2 with several new, combinable font commands.
2513 KOMA-Script\MessageBreak
2514 classes had defined the old font commands like `\string#1'
2515 only for compatibility\MessageBreak
2516 with old LaTeX 2.09 document styles of Script 2.0. Nevertheless,
2517 these\MessageBreak
2518 commands are deprecated and undocumented at least since 2003. Since
2519 2013\MessageBreak
2520 KOMA-Script classes warned about soon removement of these deprecated
2521 commands.\MessageBreak
2522 Now, after two decades of LaTeX2e and NFSS2, these commands will not
2523 work any\MessageBreak
2524 more. If loading a package results in this error message, you should
2525 contact\MessageBreak
2526 the author of that package and ask him to replace the deprecated font
2527 command\MessageBreak
2528 `\string#1', e.g., by `\detokenize{#2}`. Otherwise you should
2529 reconfigure\MessageBreak
2530 or replace the package. If you have used the old font command
2531 `\string#1' yourself,\MessageBreak
2532 you should replace it, e.g., by `\detokenize{#2}'.\MessageBreak
2533 To make it work for now, you can use the already also deprecated class
2534 option\MessageBreak
2535 `enabledeprecatedfontcommands'.%
2536 }%
2537 \else
2538 \ifcase \scr@defineobsoletefonts
2539 \or
2540 \expandafter\ClassWarning
2541 \or
2542 \expandafter\ClassInfo
2543 \else
2544 \expandafter\@gobbletwo
2545 \fi
2546 {\KOMAClassName}{deprecated old font command `\string#1' used.\MessageBreak
2547 You should note, that since 1994 LaTeX2e provides a\MessageBreak
2548 new font selection scheme called NFSS2 with several\MessageBreak
2549 new, combinable font commands. New KOMA-Script classes\MessageBreak
2550 defined the old font commands like `\string#1' only for\MessageBreak
2551 compatibility with LaTeX 2.09 document styles of\MessageBreak
2552 Script 2.0. These commands are deprecated and\MessageBreak
2553 undocumented at least since 2003. Since 2013,\MessageBreak
2554 KOMA-Script classes warned about soon removement of\MessageBreak
2555 these deprecated commands. Now, after two decades of\MessageBreak
2556 LaTeX2e, NFSS2, and KOMA-Script these commands will\MessageBreak
2557 not work any longer. If loading a package results in\MessageBreak
2558 this message you should contact the author of that\MessageBreak
2559 package and ask him to replace the depracted font\MessageBreak
2560 command `\string#1', e.g., by `\detokenize{#2}'.\MessageBreak
2561 Otherwise you should reconfigure or replace the\MessageBreak
2562 package. If you have used the old font command\MessageBreak
2563 `\string #1' yourself you should replace it, e.g., by\MessageBreak
2564 `\detokenize{#2}'%
2565 }%
2566 \fi
2567 }
2568 \scr@DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
2569 \scr@DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
2570 \scr@DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
2571 \scr@DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
2572 \scr@DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
2573 \scr@DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
2574 \scr@DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
2575 \scr@DeclareOldFontCommand{\sfb}{\normalfont\sffamily\bfseries}{%
2576 \@nomath\sfb}
2577 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
2578 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
2579 %%% From File: $Id: scrkernel-language.dtx 4140 2025-02-22 12:39:23Z kohm $
2580 %%% (run: body)
2581 \def\today{\ifcase\month\or
2582 January\or February\or March\or April\or May\or June\or
2583 July\or August\or September\or October\or November\or December\fi
2584 \space\number\day, \number\year}%
2585 %%% From File: $Id: scrkernel-typearea.dtx 4181 2025-06-14 09:11:13Z kohm $
2586 %%% (run: body)
2587 \let\@BCOR =\relax
2588 \let\@@BCOR =\relax
2589 \let\@DIV =\relax
2590 \let\@@DIV =\relax
2591 \let\@headlines =\relax
2592 \let\@@headlines =\relax
2593 \let\x@paper =\relax
2594 \let\x@@paper =\relax
2595 \let\scr@pti@nerr@r =\relax
2596 \RequirePackage{typearea}[\KOMAScriptVersion]
2597 \if@scr@emulatestandardclasses
2598 \Ifstr{\@lastdiv}{areaset}{}{%
2599 \ifnum\@lastdiv=\z@
2600 \setlength{\textwidth}{\dimexpr \paperwidth-2in\relax}
2601 \ifdim \f@size\p@<10.5\p@
2602 \setlength{\@tempdimb}{345\p@}
2603 \else\ifdim \f@size\p@<11.5\p@
2604 \setlength{\@tempdimb}{360\p@}
2605 \else
2606 \setlength{\@tempdimb}{390\p@}
2607 \fi
2608 \fi
2609 \if@twocolumn
2610 \ifdim\@textwidth>2\@tempdimb\relax
2611 \setlength{\textwidth}{2\@tempdimb}
2612 \fi
2613 \else
2614 \ifdim\textwidth>\@tempdimb
2615 \setlength{\textwidth}{\@tempdimb}
2616 \fi
2617 \fi
2618 \@settopoint\textwidth
2619 \setlength{\@tempdima}{\dimexpr \paperheight-3.5in\relax}
2620 \divide\@tempdima\baselineskip
2621 \@tempcnta=\@tempdima
2622 \setlength{\textheight}{\@tempcnta\baselineskip}
2623 \addtolength{\textheight}{\topskip}
2624 \edef\reserved@a{%
2625 \noexpand\@areasetadvancedtrue
2626 \noexpand\areaset[current]{\noexpand\textwidth}{\noexpand\textheight}%
2627 \if@areasetadvanced\else\noexpand\@areasetadvancedfalse\fi
2628 }\reserved@a
2629 \fi
2630 }%
2631 \fi
2632 %%% From File: $Id: scrkernel-paragraphs.dtx 4145 2025-05-13 16:54:14Z kohm $
2633 %%% (run: body)
2634 \newcommand*{\par@updaterelative}{%
2635 \begingroup
2636 \edef\reserved@a{\the\parindent}\ifx\reserved@a\f@parindent
2637 \aftergroup\parindent@update
2638 \fi
2639 \edef\reserved@a{\the\parskip}\ifx\reserved@a\f@parskip
2640 \aftergroup\parskip@update
2641 \fi
2642 \edef\reserved@a{\the\parfillskip}\ifx\reserved@a\f@parfillskip
2643 \aftergroup\parfillskip@update
2644 \fi
2645 \endgroup
2646 }
2647 \newcommand*{\parindent@update}{%
2648 \scr@defaultunits\parindent\scr@parindent
2649 \begingroup
2650 \let\reserved@b\endgroup
2651 \edef\reserved@a{\the\parindent}\ifx\reserved@a\f@parindent\else
2652 \def\reserved@b{\endgroup\edef\f@parindent{\the\parindent}}%
2653 \fi
2654 \reserved@b
2655 }
2656 \newcommand*{\parskip@update}{%
2657 \scr@defaultunits\parskip\scr@parskip
2658 \begingroup
2659 \let\reserved@b\endgroup
2660 \edef\reserved@a{\the\parskip}\ifx\reserved@a\f@parskip\else
2661 \def\reserved@b{\endgroup\edef\f@parskip{\the\parskip}}%
2662 \fi
2663 \reserved@b
2664 }
2665 \newcommand*{\parfillskip@update}{%
2666 \scr@defaultunits\parfillskip\scr@parfillskip
2667 \begingroup
2668 \let\reserved@b\endgroup
2669 \edef\reserved@a{\the\parfillskip}\ifx\reserved@a\f@parfillskip\else
2670 \def\reserved@b{\endgroup\edef\f@parfillskip{\the\parfillskip}}%
2671 \fi
2672 \reserved@b
2673 }
2674 \setlength{\lineskip}{\p@}
2675 \setlength{\normallineskip}{\p@}
2676 \AddToHook{selectfont}{\par@update}%
2677 \AfterPackage{everysel}{%
2678 \IfPackageAtLeastTF{everysel}{2021/01/18}{}{%
2679 \ClassError{\KOMAClassName}{%
2680 incompatible `everysel' detected
2681 }{%
2682 You are using an old version of `everysel' in combination with a
2683 LaTeX\MessageBreak
2684 version >= 2021/06/01 and KOMA-Script >= 3.33. This combination
2685 is\MessageBreak
2686 not supported.\MessageBreak
2687 You could switch back to an older LaTeX using package
2688 `latexrelease'.\MessageBreak
2689 But I recommend to update `everysel'%
2690 }%
2691 }%
2692 }%
2693 \AfterPackage{tracefnt}{%
2694 \IfPackageAtLeastTF{tracefnt}{2020/12/22}{}{%
2695 \ClassError{\KOMAClassName}{%
2696 incompatible `tracefnt' detected
2697 }{%
2698 `tracefnt' is a LaTeX base package and therefore should be updated
2699 together\MessageBreak
2700 with LaTeX kernel. So this should never happen! Please check
2701 your\MessageBreak
2702 LaTeX installation%
2703 }%
2704 }%
2705 }%
2706 \newcommand*{\scr@defaultunits}[2]{%
2707 \begingroup
2708 \edef\@tempa{#2}%
2709 \expandafter\scr@@defaultunits\expandafter#1\@tempa plusplus\@nnil
2710 \edef\@tempa{\noexpand\endgroup\noexpand#1\the\glueexpr #1\relax}%
2711 \@tempa
2712 }
2713 \newcommand*{\scr@@defaultunits}{}
2714 \def\scr@@defaultunits#1#2plus#3plus#4\@nnil{%
2715 \ifx\relax#3\relax
2716 \scr@@@defaultunits#1{}#2minusminus\@nnil
2717 \else
2718 \scr@@@defaultunits#1{#2}#3minusminus\@nnil
2719 \fi
2720 }
2721 \newcommand*{\scr@@@defaultunits}{}
2722 \def\scr@@@defaultunits#1#2#3minus#4minus#5\@nnil{%
2723 \ifx\relax#2\relax
2724 \@defaultunits\@tempskipa#3pt\relax\@nnil
2725 #1\@tempskipa
2726 \else
2727 \@defaultunits\@tempskipa\z@\@plus#3pt\relax\@nnil
2728 #1\@tempskipa
2729 \@defaultunits\@tempskipa#2pt\relax\@nnil
2730 \advance#1\@tempskipa
2731 \fi
2732 \ifx\relax#4\relax\else
2733 \@defaultunits\@tempskipa\z@\@minus #4pt\relax\@nnil
2734 \advance#1\@tempskipa
2735 \fi
2736 }
2737 \newcommand*{\@list@extra}{%
2738 \ifdim\parskip>\z@\topsep\z@\parsep\parskip\itemsep\z@\fi
2739 }
2740 \newcommand*{\add@extra@listi}[1]{%
2741 \expandafter\let\csname #1@listi\endcsname=\@listi
2742 \def\@listi{\csname #1@listi\endcsname\@list@extra}%
2743 }
2744 \AfterPackage{amsthm}{%
2745 \RequirePackage{xpatch}%
2746 \xpatchcmd{\deferred@thm@head}{\addvspace{-\parskip}}{}{%
2747 \ClassInfoNoLine{\KOMAClassName}{%
2748 amsthm's \string\deferred@thm@head\space patched}%
2749 }{%
2750 \ClassWarningNoLine{\KOMAClassName}{%
2751 cannot patch amsthm's \string\deferred@thm@head.\MessageBreak
2752 This could result in wrong spacing before theorem\MessageBreak
2753 environments defined by package `amsthm'%
2754 }%
2755 }%
2756 }
2757 \l@addto@macro{\@listi}{\@list@extra}%
2758 \let\@listI=\@listi
2759 \l@addto@macro{\@listii}{\@list@extra}%
2760 \l@addto@macro{\@listiii}{\@list@extra}%
2761 \l@addto@macro{\footnotesize}{\protect\add@extra@listi{ftns}}%
2762 \l@addto@macro{\small}{\protect\add@extra@listi{sml}}%
2763 \setlength{\columnsep}{10\p@}
2764 \setlength{\columnseprule}{\z@}
2765 \@lowpenalty = 51
2766 \@medpenalty =151
2767 \@highpenalty =301
2768 %%% From File: $Id: scrkernel-title.dtx 4032 2023-04-17 09:45:11Z kohm $
2769 %%% (run: body)
2770 \newcommand*{\@extratitle}{}%
2771 \newcommand{\extratitle}[1]{\gdef\@extratitle{%
2772 #1%
2773 }}%
2774 \newcommand*{\@frontispiece}{}%
2775 \newcommand{\frontispiece}[1]{\gdef\@frontispiece{%
2776 #1%
2777 }}%
2778 \newcommand*{\@titlehead}{}%
2779 \newcommand{\titlehead}[1]{\gdef\@titlehead{%
2780 #1%
2781 }}%
2782 \newcommand*{\@subject}{}%
2783 \newcommand*{\subject}[1]{\gdef\@subject{%
2784 #1%
2785 }}%
2786 \newcommand*{\subtitle}[1]{\gdef\@subtitle{%
2787 #1%
2788 }}%
2789 \newcommand*{\@subtitle}{}%
2790 \newcommand*{\@publishers}{}%
2791 \newcommand{\publishers}[1]{\gdef\@publishers{%
2792 #1%
2793 }}%
2794 \newcommand*{\@uppertitleback}{}%
2795 \newcommand{\uppertitleback}[1]{\gdef\@uppertitleback{%
2796 #1%
2797 }}%
2798 \newcommand*{\@lowertitleback}{}%
2799 \newcommand{\lowertitleback}[1]{\gdef\@lowertitleback{%
2800 #1%
2801 }}%
2802 \newcommand*{\@dedication}{}%
2803 \newcommand{\dedication}[1]{\gdef\@dedication{%
2804 #1%
2805 }}%
2806 \newcommand*{\next@tpage}{%
2807 \@thanks\global\let\@thanks\@empty
2808 \clearpage
2809 \csname titlepage@restore\endcsname
2810 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
2811 \thispagestyle{empty}%
2812 \let\footnote\thanks
2813 \setcounter{footnote}{0}%
2814 }
2815 \newcommand*{\next@tdpage}{%
2816 \next@tpage\if@twoside \ifodd\value{page}\else\null\next@tpage\fi\fi
2817 }
2818 \newcommand*\maketitle[1][1]{%
2819 \expandafter\ifnum \scr@v@is@ge{3.12}%
2820 \def\and{%
2821 \end{tabular}%
2822 \hskip 1em \@plus.17fil%
2823 \begin{tabular}[t]{c}%
2824 }%
2825 \fi
2826 \if@titlepage
2827 \begin{titlepage}
2828 \setcounter{page}{%
2829 #1%
2830 }%
2831 \if@titlepageiscoverpage
2832 \edef\titlepage@restore{%
2833 \noexpand\endgroup
2834 \noexpand\global\noexpand\@colht\the\@colht
2835 \noexpand\global\noexpand\@colroom\the\@colroom
2836 \noexpand\global\vsize\the\vsize
2837 \noexpand\global\noexpand\@titlepageiscoverpagefalse
2838 \noexpand\let\noexpand\titlepage@restore\noexpand\relax
2839 }%
2840 \begingroup
2841 \topmargin=\dimexpr \coverpagetopmargin-1in\relax
2842 \oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax
2843 \evensidemargin=\dimexpr \coverpageleftmargin-1in\relax
2844 \textwidth=\dimexpr
2845 \paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax
2846 \textheight=\dimexpr
2847 \paperheight-\coverpagetopmargin-\coverpagebottommargin\relax
2848 \headheight=0pt
2849 \headsep=0pt
2850 \footskip=\baselineskip
2851 \@colht=\textheight
2852 \@colroom=\textheight
2853 \vsize=\textheight
2854 \columnwidth=\textwidth
2855 \hsize=\columnwidth
2856 \linewidth=\hsize
2857 \else
2858 \let\titlepage@restore\relax
2859 \fi
2860 \let\footnotesize\small
2861 \let\footnoterule\relax
2862 \let\footnote\thanks
2863 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
2864 \let\@oldmakefnmark\@makefnmark
2865 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
2866 \ifx\@extratitle\@empty
2867 \ifx\@frontispiece\@empty
2868 \else
2869 \if@twoside\mbox{}\next@tpage\fi
2870 \noindent\@frontispiece\next@tdpage
2871 \fi
2872 \else
2873 \noindent\@extratitle
2874 \ifx\@frontispiece\@empty
2875 \else
2876 \next@tpage
2877 \noindent\@frontispiece
2878 \fi
2879 \next@tdpage
2880 \fi
2881 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
2882 \ifx\@titlehead\@empty \else
2883 \begin{minipage}[t]{\textwidth}%
2884 \usekomafont{titlehead}{\@titlehead\par}%
2885 \end{minipage}\par
2886 \fi
2887 \null\vfill
2888 \begin{center}
2889 \ifx\@subject\@empty \else
2890 {\usekomafont{subject}{\@subject\par}}%
2891 \vskip 3em
2892 \fi
2893 {\usekomafont{title}{\huge \@title\par}}%
2894 \vskip 1em
2895 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
2896 \vskip 2em
2897 {%
2898 \usekomafont{author}{%
2899 \lineskip 0.75em
2900 \begin{tabular}[t]{c}
2901 \@author
2902 \end{tabular}\par
2903 }%
2904 }%
2905 \vskip 1.5em
2906 {\usekomafont{date}{\@date \par}}%
2907 \vskip \z@ \@plus3fill
2908 {\usekomafont{publishers}{\@publishers \par}}%
2909 \vskip 3em
2910 \end{center}\par
2911 \@thanks\global\let\@thanks\@empty
2912 \vfill\null
2913 \if@twoside
2914 \@tempswatrue
2915 \expandafter\ifnum \scr@v@is@ge{3.12}%
2916 \ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty
2917 \@tempswafalse
2918 \fi\fi
2919 \fi
2920 \if@tempswa
2921 \next@tpage
2922 \begin{minipage}[t]{\textwidth}
2923 \@uppertitleback
2924 \end{minipage}\par
2925 \vfill
2926 \begin{minipage}[b]{\textwidth}
2927 \@lowertitleback
2928 \end{minipage}\par
2929 \@thanks\global\let\@thanks\@empty
2930 \fi
2931 \else
2932 \ifx\@uppertitleback\@empty\else
2933 \ClassWarning{\KOMAClassName}%
2934 {%
2935 non empty \string\uppertitleback\space ignored
2936 by \string\maketitle\MessageBreak
2937 in `twoside=false' mode%
2938 }%
2939 \fi
2940 \ifx\@lowertitleback\@empty\else
2941 \ClassWarning{\KOMAClassName}%
2942 {%
2943 non empty \string\lowertitleback\space ignored
2944 by \string\maketitle\MessageBreak
2945 in `twoside=false' mode%
2946 }%
2947 \fi
2948 \fi
2949 \ifx\@dedication\@empty
2950 \else
2951 \next@tdpage\null\vfill
2952 {\centering\usekomafont{dedication}{\@dedication \par}}%
2953 \vskip \z@ \@plus3fill
2954 \@thanks\global\let\@thanks\@empty
2955 \cleardoubleemptypage
2956 \fi
2957 \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi
2958 \end{titlepage}
2959 \else
2960 \par
2961 \@tempcnta=%
2962 #1%
2963 \relax\ifnum\@tempcnta=1\else
2964 \ClassWarning{\KOMAClassName}%
2965 {%
2966 Optional argument of \string\maketitle\space ignored\MessageBreak
2967 in `titlepage=false' mode%
2968 }%
2969 \fi
2970 \ifx\@uppertitleback\@empty\else
2971 \ClassWarning{\KOMAClassName}%
2972 {%
2973 non empty \string\uppertitleback\space ignored
2974 by \string\maketitle\MessageBreak
2975 in `titlepage=false' mode%
2976 }%
2977 \fi
2978 \ifx\@lowertitleback\@empty\else
2979 \ClassWarning{\KOMAClassName}%
2980 {%
2981 non empty \string\lowertitleback\space ignored
2982 by \string\maketitle\MessageBreak
2983 in `titlepage=false' mode%
2984 }%
2985 \fi
2986 \begingroup
2987 \let\titlepage@restore\relax
2988 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
2989 \let\@oldmakefnmark\@makefnmark
2990 \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
2991 \next@tdpage
2992 \if@twocolumn
2993 \ifnum \col@number=\@ne
2994 \ifx\@extratitle\@empty
2995 \ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi
2996 \else
2997 \@makeextratitle
2998 \fi
2999 \ifx\@frontispiece\@empty
3000 \ifx\@extratitle\@empty\else\next@tdpage\fi
3001 \else
3002 \next@tpage
3003 \@makefrontispiece
3004 \next@tdpage
3005 \fi
3006 \@maketitle
3007 \else
3008 \ifx\@extratitle\@empty
3009 \ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi
3010 \else
3011 \twocolumn[\@makeextratitle]%
3012 \fi
3013 \ifx\@frontispiece\@empty
3014 \ifx\@extratitle\@empty\else\next@tdpage\fi
3015 \else
3016 \next@tpage
3017 \twocolumn[\@makefrontispiece]%
3018 \next@tdpage
3019 \fi
3020 \twocolumn[\@maketitle]%
3021 \fi
3022 \else
3023 \ifx\@extratitle\@empty
3024 \ifx\@frontispiece\@empty\else \mbox{}\fi
3025 \else
3026 \@makeextratitle
3027 \fi
3028 \ifx\@frontispiece\@empty
3029 \ifx\@extratitle\@empty\else\next@tdpage\fi
3030 \else
3031 \next@tpage
3032 \@makefrontispiece
3033 \next@tdpage
3034 \fi
3035 \@maketitle
3036 \fi
3037 \ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi
3038 \@thanks\global\let\@thanks\@empty
3039 \endgroup
3040 \fi
3041 \setcounter{footnote}{0}%
3042 \expandafter\ifnum \scr@v@is@lt{3.12}%
3043 \let\thanks\relax
3044 \let\maketitle\relax
3045 \let\@maketitle\relax
3046 \global\let\@thanks\@empty
3047 \global\let\@author\@empty
3048 \global\let\@date\@empty
3049 \global\let\@title\@empty
3050 \global\let\@subtitle\@empty
3051 \global\let\@extratitle\@empty
3052 \global\let\@frontispiece\@empty
3053 \global\let\@titlehead\@empty
3054 \global\let\@subject\@empty
3055 \global\let\@publishers\@empty
3056 \global\let\@uppertitleback\@empty
3057 \global\let\@lowertitleback\@empty
3058 \global\let\@dedication\@empty
3059 \global\let\author\relax
3060 \global\let\title\relax
3061 \global\let\extratitle\relax
3062 \global\let\titlehead\relax
3063 \global\let\subject\relax
3064 \global\let\publishers\relax
3065 \global\let\uppertitleback\relax
3066 \global\let\lowertitleback\relax
3067 \global\let\dedication\relax
3068 \global\let\date\relax
3069 \fi
3070 \global\let\and\relax
3071 }%
3072 \newcommand*{\@makeextratitle}{%
3073 \ifx\@extratitle\@empty \else
3074 \noindent\@extratitle\par
3075 \fi
3076 }
3077 \newcommand*{\@makefrontispiece}{%
3078 \ifx\@frontispiece\@empty \else
3079 \noindent\@frontispiece\par
3080 \fi
3081 }
3082 \newcommand*{\@maketitle}{%
3083 \global\@topnum=\z@
3084 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
3085 \ifx\@titlehead\@empty \else
3086 \begin{minipage}[t]{\textwidth}
3087 \usekomafont{titlehead}{\@titlehead\par}%
3088 \end{minipage}\par
3089 \fi
3090 \null
3091 \vskip 2em%
3092 \begin{center}%
3093 \ifx\@subject\@empty \else
3094 {\usekomafont{subject}{\@subject \par}}%
3095 \vskip 1.5em
3096 \fi
3097 {\usekomafont{title}{\huge \@title \par}}%
3098 \vskip .5em
3099 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
3100 \vskip 1em
3101 {%
3102 \usekomafont{author}{%
3103 \lineskip .5em%
3104 \begin{tabular}[t]{c}
3105 \@author
3106 \end{tabular}\par
3107 }%
3108 }%
3109 \vskip 1em%
3110 {\usekomafont{date}{\@date \par}}%
3111 \vskip \z@ \@plus 1em
3112 {\usekomafont{publishers}{\@publishers \par}}%
3113 \ifx\@dedication\@empty \else
3114 \vskip 2em
3115 {\usekomafont{dedication}{\@dedication \par}}%
3116 \fi
3117 \end{center}%
3118 \par
3119 \vskip 2em
3120 }%
3121 \newcommand*{\coverpagetopmargin}{%
3122 \dimexpr \topmargin+1in\relax
3123 }
3124 \newcommand*{\coverpagebottommargin}{%
3125 2\dimexpr\coverpagetopmargin\relax
3126 }
3127 \newcommand*{\coverpageleftmargin}{%
3128 \dimexpr \evensidemargin+1in\relax
3129 }
3130 \newcommand*{\coverpagerightmargin}{\coverpageleftmargin}
3131 \newenvironment{titlepage}{%
3132 \if@twocolumn
3133 \@restonecoltrue\onecolumn
3134 \else
3135 \@restonecolfalse\newpage
3136 \fi
3137 \thispagestyle{empty}%
3138 }{%
3139 \if@restonecol\twocolumn \else \newpage \fi
3140 }%
3141 \newkomafont{subtitle}{\usekomafont{title}\large}%
3142 \newkomafont{titlehead}{}%
3143 \newkomafont{author}{\Large}
3144 \newkomafont{date}{\Large}
3145 \newkomafont{publishers}{\Large}
3146 \newkomafont{dedication}{\Large}
3147 \newcommand*\titlefont{\sectfont}%
3148 \newcommand*{\scr@fnt@title}{\titlefont}%
3149 \newcommand*{\subject@font}{\normalfont\normalcolor\bfseries\Large}%
3150 \newcommand*{\scr@fnt@subject}{\subject@font}%
3151 \newenvironment{abstract}{%
3152 \if@titlepage
3153 \titlepage
3154 \null\vfil
3155 \@beginparpenalty\@lowpenalty
3156 \if@abstrt
3157 \begin{center}
3158 \normalfont\sectfont\nobreak\abstractname
3159 \@endparpenalty\@M
3160 \end{center}
3161 \fi
3162 \else
3163 \if@twocolumn\if@abstrt
3164 \addsec*{\abstractname}
3165 \fi
3166 \else
3167 \if@abstrt
3168 \small
3169 \begin{center}
3170 {\normalfont\sectfont\nobreak\abstractname
3171 \vspace{-.5em}\vspace{\z@}}%
3172 \end{center}
3173 \fi
3174 \quotation
3175 \fi
3176 \fi
3177 }{%
3178 \if@titlepage
3179 \par\vfil\null\endtitlepage
3180 \else
3181 \if@twocolumn\else\endquotation\fi
3182 \fi
3183 }
3184 \newcommand*\abstractname{Abstract}
3185 \providecaptionname{american,australian,british,canadian,english,newzealand,%
3186 UKenglish,ukenglish,USenglish,usenglish}\abstractname{Abstract}
3187 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
3188 %%% (run: body)
3189 \let\numberline\scr@numberline
3190 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
3191 %%% (run: class,style,part)
3192 \CloneTOCEntryStyle{tocline}{part}
3193 \TOCEntryStyleStartInitCode{part}{%
3194 \expandafter\providecommand%
3195 \csname scr@tso@#1@linefill\endcsname{\hfill}%
3196 \expandafter\providecommand%
3197 \csname scr@tso@#1@entryformat\endcsname[1]{\usekomafont{partentry}{##1}}%
3198 \expandafter\providecommand%
3199 \csname scr@tso@#1@pagenumberformat\endcsname[1]{%
3200 \usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}%
3201 \expandafter\providecommand\expandafter*%
3202 \csname scr@tso@#1@beforeskip\endcsname{2.25em \@plus\p@}%
3203 }
3204 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
3205 %%% (run: class,style,section)
3206 \CloneTOCEntryStyle{tocline}{section}
3207 \TOCEntryStyleStartInitCode{section}{%
3208 \expandafter\providecommand%
3209 \csname scr@tso@#1@linefill\endcsname{%
3210 \if@sectionentrywithdots
3211 {\usekomafont{sectionentrydots}{\TOCLineLeaderFill}}\relax
3212 \else
3213 \hfill
3214 \fi
3215 }%
3216 \expandafter\providecommand%
3217 \csname scr@tso@#1@entryformat\endcsname{\usekomafont{sectionentry}}%
3218 \expandafter\providecommand%
3219 \csname scr@tso@#1@pagenumberformat\endcsname[1]{\usekomafont{sectionentry}{\usekomafont{sectionentrypagenumber}{##1}}}%
3220 \expandafter\providecommand\expandafter*%
3221 \csname scr@tso@#1@beforeskip\endcsname{1.0em \@plus\p@}%
3222 }
3223 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
3224 %%% (run: class,style,subsection)
3225 \CloneTOCEntryStyle{tocline}{subsection}
3226 \TOCEntryStyleStartInitCode{subsection}{%
3227 \expandafter\providecommand%
3228 \csname scr@tso@#1@linefill\endcsname{\TOCLineLeaderFill\relax}%
3229 }
3230 %%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $
3231 %%% (run: class,style,default)
3232 \CloneTOCEntryStyle{subsection}{default}
3233 %%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $
3234 %%% (run: body)
3235 \BeforeClosingMainAux{%
3236 \if@autodot\if@filesw\immediate\write\@mainaux{%
3237 \string\global\string\csname\space @altsecnumformattrue\string\endcsname}%
3238 \fi\fi}
3239 \newcommand{\@maybeautodot}[1]{\if@autodot\else\begingroup%
3240 \expandafter\@@maybeautodot #1\@stop\endgroup\fi
3241 }
3242 \newcommand*{\@@maybeautodot}[1]{%
3243 \ifx #1\@stop\let\@@maybeautodot\relax
3244 \else
3245 \ifx #1\Alph \@autodottrue\fi
3246 \ifx #1\alph \@autodottrue\fi
3247 \ifx #1\Roman \@autodottrue\fi
3248 \ifx #1\roman \@autodottrue\fi
3249 \ifx #1\@Alph \@autodottrue\fi
3250 \ifx #1\@alph \@autodottrue\fi
3251 \ifx #1\@Roman \@autodottrue\fi
3252 \ifx #1\@roman \@autodottrue\fi
3253 \ifx #1\romannumeral \@autodottrue\fi
3254 \fi
3255 \@@maybeautodot
3256 }
3257 \newcommand*\autodot{\if@altsecnumformat.\fi}
3258 \setcounter{secnumdepth}{3}
3259 \providecommand*{\ifnumbered}{%
3260 \ClassWarning{\KOMAClassName}{Usage of deprecated command
3261 `\string\ifnumbered'.\MessageBreak
3262 The command has been renamed because of a\MessageBreak
3263 recommendation of The LaTeX Project Team.\MessageBreak
3264 Please replace `\string\ifnumbered' by `\string\Ifnumbered'%
3265 }%
3266 \Ifnumbered
3267 }
3268 \newcommand*{\Ifnumbered}[1]{%
3269 \if@currentusenumber
3270 \scr@ifundefinedorrelax{#1numdepth}{%
3271 \expandafter\@secondoftwo
3272 }{%
3273 \expandafter\ifnum \@nameuse{#1numdepth}>\c@secnumdepth
3274 \expandafter\expandafter\expandafter\@secondoftwo
3275 \else
3276 \expandafter\expandafter\expandafter\@firstoftwo
3277 \fi
3278 }%
3279 \else
3280 \expandafter\@secondoftwo
3281 \fi
3282 }
3283 \providecommand*{\ifunnumbered}{%
3284 \ClassWarning{\KOMAClassName}{Usage of deprecated command
3285 `\string\ifunnumbered'.\MessageBreak
3286 The command has been renamed because of a\MessageBreak
3287 recommendation of The LaTeX Project Team.\MessageBreak
3288 Please replace `\string\ifunnumbered' by `\string\Ifunnumbered'%
3289 }%
3290 \Ifunnumbered
3291 }
3292 \newcommand*{\Ifunnumbered}[1]{%
3293 \Ifnumbered{#1}{\@secondoftwo}{\@firstoftwo}%
3294 }
3295 \ExplSyntaxOn
3296 \msg_new:nnnn { \KOMAClassName } { sectioning-features-not-available }
3297 {
3298 Usage~of~\token_to_str:N #1 detected.\\
3299 Note,~the~sectioning~of~\KOMAClassName\ does~neither~use~nor~
3300 support~the~usage~of~\token_to_str:N #1 command.\\
3301 This~means,~that~none~of~the~KOMA-Script~features~
3302 for~headings~is~available~for~the~heading~\msg_line_context:.\\
3303 If~you~need~additional~sectioning~commands,~
3304 you~should~define~them~using~\token_to_str:N \DeclareNewSectionCommand\
3305 instead.
3306 }
3307 { See~the~KOMA-Script~user~manual~for~more~information. }
3308 \cctab_new:c { c_ \KOMAClassName _cmdhook_cctab }
3309 \cctab_gsave_current:c { c_ \KOMAClassName _cmdhook_cctab }
3310 \hook_gput_code:nnn { begindocument / end } { . }
3311 {
3312 \cctab_begin:c { c_ \KOMAClassName _cmdhook_cctab }
3313 \exp_args:Nne
3314 \hook_gput_code:nnn { cmd / @startsection / before } { \KOMAClassName }
3315 {
3316 \msg_warning:nnn { \KOMAClassName }
3317 { sectioning-features-not-available }
3318 { \@startsection }
3319 }
3320 \cctab_end:
3321 }
3322 \hook_gset_rule:nnnn { begindocument / end } { . } < { babel }
3323 \ExplSyntaxOff
3324 \newcommand*{\scr@startsection}[6]{%
3325 \ExecuteDoHook{heading/preinit/#1}%
3326 \if@noskipsec \leavevmode \fi
3327 \par
3328 \@tempskipa \glueexpr #4\relax
3329 \@ifundefined{scr@#1@afterindent}{%
3330 \def\startsection@afterindent##1##2##3{##3}%
3331 }{%
3332 \expandafter\let\expandafter\startsection@afterindent
3333 \csname scr@#1@afterindent\endcsname
3334 }%
3335 \startsection@afterindent{\@afterindenttrue}{\@afterindentfalse}{%
3336 \@afterindenttrue
3337 \ifdim \@tempskipa <\z@
3338 \@tempskipa -\@tempskipa \@afterindentfalse
3339 \fi
3340 }%
3341 \def\startsection@sectionname{#1}%
3342 \def\startsection@secnumdepth{\numexpr #2\relax}%
3343 \def\startsection@indent{\glueexpr #3\relax}%
3344 \let\startsection@beforeskip\@tempskipa
3345 \@ifundefined{scr@#1@runin}{%
3346 \def\scr@sect@runin##1##2##3{##3}%
3347 }{%
3348 \expandafter\let\expandafter\scr@sect@runin
3349 \csname scr@#1@runin\endcsname
3350 }%
3351 \scr@sect@runin{%
3352 \def\startsection@afterskip{\glueexpr #3\relax}%
3353 \expandafter\let\csname if@startsection@runin\expandafter\endcsname
3354 \csname iftrue\endcsname
3355 }{%
3356 \def\startsection@afterskip{\glueexpr #3\relax}%
3357 \expandafter\let\csname if@startsection@runin\expandafter\endcsname
3358 \csname iffalse\endcsname
3359 }{%
3360 \ifdim \glueexpr #5\relax <\z@
3361 \def\startsection@afterskip{\glueexpr (#3)*\m@ne\relax}%
3362 \expandafter\let\csname if@startsection@runin\expandafter\endcsname
3363 \csname iftrue\endcsname
3364 \else
3365 \def\startsection@afterskip{\glueexpr #3\relax}%
3366 \expandafter\let\csname if@startsection@runin\expandafter\endcsname
3367 \csname iffalse\endcsname
3368 \fi
3369 }%
3370 \ExecuteDoHook{heading/postinit/#1}%
3371 \if@nobreak
3372 \everypar{}%
3373 \else
3374 \addpenalty\@secpenalty\addvspace\@tempskipa
3375 \fi
3376 \kernel@ifstar {%
3377 \ExecuteDoHook{heading/branch/star/#1}%
3378 \def\scr@s@ct@@nn@m@{#1}%
3379 \scr@ssect{\glueexpr #3\relax}{\glueexpr #4\relax}{\glueexpr #5\relax}{#6}%
3380 }{%
3381 \ExecuteDoHook{heading/branch/nostar/#1}%
3382 \scr@section@dblarg{%
3383 \scr@sect{#1}{\numexpr #2\relax}{\glueexpr #3\relax}{\glueexpr #4\relax}%
3384 {\glueexpr #5\relax}{#6}%
3385 }%
3386 }%
3387 }
3388 \newcommand*{\scr@sect@runin}[3]{#3}
3389 \newcommand*{\scr@startsection@ulm@error}[1]{%
3390 \ClassError{\KOMAClassName}{%
3391 \string#1 undefined outside of \string\scr@startsection
3392 }{%
3393 A KOMA-Script macro for package authors have been used outside
3394 the\MessageBreak
3395 specified definition scope.\MessageBreak
3396 See `scrkernel-sections.dtx' for more information.%
3397 }%
3398 }
3399 \newcommand*\startsection@sectionname{%
3400 \scr@startsection@ulm@error\startsection@sectionname}
3401 \newcommand*\startsection@secnumdepth{%
3402 \scr@startsection@ulm@error\startsection@secnumdepth}
3403 \newcommand*\startsection@indent{%
3404 \scr@startsection@ulm@error\startsection@indent}
3405 \newcommand*\startsection@beforeskip{%
3406 \scr@startsection@ulm@error\startsection@beforeskip}
3407 \newcommand*\startsection@afterskip{%
3408 \scr@startsection@ulm@error\startsection@afterskip}
3409 \newcommand*{\if@startsection@runin}{%
3410 \scr@startsection@ulm@error\if@startsection@runin}
3411 \newif\if@startsection@runin
3412 \newcommand*\startsection@afterindent{%
3413 \scr@startsection@ulm@error\startsection@afterindent}
3414 \newcommand*{\At@startsection}[1]{%
3415 \ClassInfo{\KOMAClassName}{%
3416 Usage of deprecated command `\string\At@startsection'
3417 mapped to\MessageBreak
3418 `\string\AddtoDoHook{heading/postinit}
3419 {...\string\@gobble}'%
3420 }%
3421 \AddtoDoHook{heading/postinit}{\scr@doonlyifstyleofargis{#1}{section}}%
3422 }
3423 \newcommand*{\scr@doonlyifstyleofargis}[3]{%
3424 \IfSectionCommandStyleIs{#3}{#2}{#1}{}%
3425 }
3426 \newcommand*{\Before@ssect}[1]{%
3427 \ClassWarning{\KOMAClassName}{%
3428 Usage of deprecated command `\string\Before@ssect'
3429 mapped to\MessageBreak
3430 `\string\AddtoDoHook{heading/branch/star}%
3431 {...\string\@gobble}'%
3432 }%
3433 \AddtoDoHook{heading/branch/star}{\scr@doonlyifstyleofargis{#1}{section}}%
3434 }
3435 \newcommand*{\Before@sect}[1]{%
3436 \ClassWarning{\KOMAClassName}{%
3437 Usage of deprecated command `\string\Before@sect'
3438 mapped to\MessageBreak
3439 `\string\AddtoDoHook{heading/branch/nostar}%
3440 {...\string\@gobble}'%
3441 }%
3442 \AddtoDoHook{heading/branch/nostar}{\scr@doonlyifstyleofargis{#1}{section}}%
3443 }
3444 \newcommand{\scr@section@dblarg}[1]{%
3445 \kernel@ifnextchar[%]
3446 {#1}%
3447 {\scr@section@xdblarg{#1}}%
3448 }
3449 \newcommand{\scr@section@xdblarg}[2]{%
3450 \begingroup
3451 \edef\reserved@a{%
3452 \unexpanded{\endgroup\let\scr@osectarg\z@#1[{#2}]{#2}\def\scr@osectarg}%
3453 {\scr@osectarg}}%
3454 \reserved@a
3455 }
3456 \newcommand*{\UseNumberUsageError}[2]{%
3457 \ClassError{\KOMAClassName}{%
3458 \string\IfUseNumber\space not allowed%
3459 }{%
3460 You cannot use \string\IfUseNumber\space outside a heading.\MessageBreak
3461 If you'd continue, I'll ignore both arguments, because I do not
3462 know\MessageBreak
3463 whether to use the first or the second argument.%
3464 }%
3465 }
3466 \newcommand*{\IfUseNumber}[2]{}%
3467 \let\IfUseNumber\UseNumberUsageError
3468 \newcommand*{\SecDef}[2]{\kernel@ifstar{#2}{\scr@section@dblarg{#1}}}
3469 \CheckCommand*{\secdef}[2]{\@ifstar{#2}{\@dblarg{#1}}}
3470 \let\secdef\SecDef
3471 \def\scr@sect#1#2#3#4#5#6[#7]#8{%
3472 \ifnum \scr@osectarg=\z@
3473 \@scr@tempswafalse
3474 \else
3475 \scr@istest#7=\@nil
3476 \fi
3477 \@currentusenumbertrue
3478 \if@scr@tempswa
3479 \setkeys{KOMAarg.section}{tocentry={#8},head={#8},reference={#8},#7}%
3480 \else
3481 \ifcase \scr@osectarg\relax
3482 \setkeys{KOMAarg.section}{tocentry={#7},head={#7},reference={#7}}%
3483 \or
3484 \setkeys{KOMAarg.section}{tocentry={#8},head={#7},reference={#8}}%
3485 \or
3486 \setkeys{KOMAarg.section}{tocentry={#7},head={#8},reference={#7}}%
3487 \or
3488 \setkeys{KOMAarg.section}{tocentry={#7},head={#7},reference={#7}}%
3489 \fi
3490 \fi
3491 \scr@ifundefinedorrelax{scr@mt@saved@sect}{}{%
3492 \expandafter\ifx\csname #1\endcsname\section
3493 \addcontentsline{\ext@figure}{xsect}{\@currenttocentry}%
3494 \addcontentsline{\ext@table}{xsect}{\@currenttocentry}%
3495 \fi
3496 \expandafter\ifx\csname #1\endcsname\starsection\relax
3497 \addcontentsline{\ext@figure}{xsect}{\@currenttocentry}%
3498 \addcontentsline{\ext@table}{xsect}{\@currenttocentry}%
3499 \fi
3500 }%
3501 \let\IfUsePrefixLine\@secondoftwo
3502 \ifcase
3503 \if@currentusenumber
3504 \ifnum \numexpr #2\relax>\c@secnumdepth \z@\else \@ne\fi
3505 \else
3506 \z@
3507 \fi
3508 \let\@svsec\@empty
3509 \expandafter\ifnum\scr@v@is@ge{3.31}\relax
3510 \begingroup
3511 \let\@elt\@stpelt
3512 \csname cl@#1\endcsname
3513 \endgroup
3514 \fi
3515 \hy@insteadofrefstepcounter{#1}%
3516 \else
3517 \refstepcounter{#1}%
3518 \expandafter\@maybeautodot\csname the#1\endcsname
3519 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
3520 \fi
3521 \ifdim
3522 \scr@sect@runin{\z@}{\p@}{\glueexpr #5\relax}>\z@
3523 \begingroup
3524 \ifx\@svsec\@empty
3525 \let\IfUseNumber\@secondoftwo
3526 \else
3527 \let\IfUseNumber\@firstoftwo
3528 \fi
3529 \ExecuteDoHook{heading/begingroup/#1}%
3530 #6{\nobreak\interlinepenalty \@M
3531 \sectionlinesformat{#1}{\glueexpr #3\relax}\@svsec{#8}\@@par}%
3532 \ExecuteDoHook{heading/endgroup/#1}%
3533 \endgroup
3534 \expandafter\csname #1mark\expandafter\endcsname\expandafter{\@currentheadentry}%
3535 \ifx\@currenttocentry\@empty\else
3536 \scr@ifundefinedorrelax{add#1tocentry}{%
3537 \expandafter\gdef\csname add#1tocentry\endcsname##1##2{%
3538 \addtocentrydefault{#1}{##1}{##2}%
3539 }%
3540 }{}%
3541 \ifcase
3542 \if@currentusenumber
3543 \ifnum \numexpr #2\relax>\c@secnumdepth \z@\else \@ne\fi
3544 \else
3545 \z@
3546 \fi
3547 \csname add#1tocentry\endcsname{}{\@currenttocentry}%
3548 \else
3549 \@ifundefined{#1tocformat}{%
3550 \expandafter\gdef\csname #1tocformat\endcsname
3551 {\csname the#1\endcsname}%
3552 }{}%
3553 \csname add#1tocentry\endcsname{\csname #1tocformat\endcsname}{%
3554 \@currenttocentry}%
3555 \fi
3556 \fi
3557 \else
3558 \def\@svsechd{%
3559 \ifx\@svsec\@empty
3560 \let\IfUseNumber\@secondoftwo
3561 \else
3562 \let\IfUseNumber\@firstoftwo
3563 \fi
3564 \ExecuteDoHook{heading/begingroup/#1}%
3565 #6{\nobreak\sectioncatchphraseformat{#1}{\glueexpr #3\relax}\@svsec{#8}}%
3566 \expandafter\csname #1mark\expandafter\endcsname
3567 \expandafter{\@currentheadentry}%
3568 \ifx\@currenttocentry\@empty\else
3569 \scr@ifundefinedorrelax{add#1tocentry}{%
3570 \expandafter\gdef\csname add#1tocentry\endcsname####1####2{%
3571 \addtocentrydefault{#1}{####1}{####2}%
3572 }%
3573 }{}%
3574 \ifcase
3575 \if@currentusenumber
3576 \ifnum \numexpr #2\relax>\c@secnumdepth \z@\else \@ne\fi
3577 \else
3578 \z@
3579 \fi
3580 \csname add#1tocentry\endcsname{}{\@currenttocentry}%
3581 \else
3582 \@ifundefined{#1tocformat}{%
3583 \expandafter\gdef\csname #1tocformat\endcsname
3584 {\csname the#1\endcsname}%
3585 }{}%
3586 \csname add#1tocentry\endcsname{\csname #1tocformat\endcsname}{%
3587 \@currenttocentry}%
3588 \fi
3589 \fi
3590 \ExecuteDoHook{heading/endgroup/#1}%
3591 }%
3592 \fi
3593 \let\IfUsePrefixLine\scr@IfUsePrefixLineWarning
3594 \scr@xsect{\glueexpr #5\relax}%
3595 }
3596 \DefineFamily{KOMAarg}
3597 \DefineFamilyMember[.section]{KOMAarg}
3598 \providecommand*\@currenttocentry{}
3599 \providecommand*\@currentheadentry{}
3600 \providecommand*\@currentlabelname{}
3601 \FamilyStringKey[.section]{KOMAarg}{tocentry}{\@currenttocentry}
3602 \FamilyStringKey[.section]{KOMAarg}{head}{\@currentheadentry}
3603 \NewHook{\KOMAClassName/option/section/reference/fallback}%
3604 \DefineFamilyKey[.section]{KOMAarg}{reference}{%
3605 \scr@ifundefinedorrelax{NR@gettitle}{%
3606 \scr@ifundefinedorrelax{GetTitleString}{%
3607 \begingroup
3608 \DeclareExpandableDocumentCommand{\label}{som}{}%
3609 \DeclareExpandableDocumentCommand{\index}{som}{}%
3610 \DeclareExpandableDocumentCommand{\glossary}{som}{}%
3611 \DeclareExpandableDocumentCommand{\zlabel}{som}{}%
3612 \scr@ifundefinedorrelax{UseHook}{}{%
3613 \UseHook{\KOMAClassName/option/section/reference/fallback}%
3614 }%
3615 \let\protect\noexpand
3616 \edef\@currentlabelname{\expandafter\detokenize{#1}}%
3617 \expandafter\expandafter\expandafter\endgroup
3618 \expandafter\def\expandafter\@currentlabelname\expandafter{%
3619 \@currentlabelname}%
3620 }{%
3621 \GetTitleString{#1}%
3622 \let\@currentlabelname\GetTitleStringResult
3623 }%
3624 }{%
3625 \NR@gettitle{#1}%
3626 }%
3627 \scr@ifundefinedorrelax{TR@gettitle}{}{%
3628 \expandafter\TR@gettitle\expandafter{\@currentlabelname}%
3629 }%
3630 \scr@ifundefinedorrelax{ztitlerefsetup}{}{%
3631 \ztitlerefsetup{title=\@currentlabelname}%
3632 }%
3633 \FamilyKeyStateProcessed
3634 }
3635 \FamilyInverseBoolKey[.section]{KOMAarg}{nonumber}{@currentusenumber}
3636 \newcommand*{\scr@istest}{}
3637 \def\scr@istest#1=#2\@nil{%
3638 \ifx\relax#2\relax\@scr@tempswafalse\else\@scr@tempswatrue\fi
3639 }
3640 \newif\if@scr@tempswa
3641 \newcommand{\sectionlinesformat}[4]{%
3642 \@hangfrom{\hskip #2#3}{#4}%
3643 }
3644 \newcommand{\sectioncatchphraseformat}[4]{%
3645 \hskip #2#3#4%
3646 }
3647 \def\scr@ssect#1#2#3#4#5{%
3648 \scr@ifundefinedorrelax{scr@s@ct@@nn@m@}{%
3649 \ClassWarning{\KOMAClassName}{Incompatible usage of
3650 \string\scr@ssect\space detected.\MessageBreak
3651 You've used the KOMA-Script implementation of
3652 \string\scr@ssect\MessageBreak
3653 from within a non compatible caller, that does not\MessageBreak
3654 \string\scr@s@ct@@nn@m@\space locally.\MessageBreak
3655 This could result in several error messages}%
3656 \def\scr@s@ct@@nn@m@{\string\scr@s@ct@@nn@m@}%
3657 }{%
3658 \expandafter\ifnum\scr@v@is@ge{3.31}\relax
3659 \begingroup
3660 \let\@elt\@stpelt
3661 \csname cl@\scr@s@ct@@nn@m@\endcsname
3662 \endgroup
3663 \fi
3664 }%
3665 \ifdim
3666 \scr@sect@runin{\z@}{\p@}{\glueexpr #3\relax}>\z@
3667 \begingroup
3668 \let\IfUseNumber\@secondoftwo
3669 \edef\reserved@a{%
3670 \noexpand\ExecuteDoHook{heading/begingroup/\scr@s@ct@@nn@m@}%
3671 }\reserved@a
3672 #4{\nobreak\interlinepenalty \@M
3673 \expandafter\sectionlinesformat\expandafter{\scr@s@ct@@nn@m@}%
3674 {\glueexpr #1\relax}\@empty{#5}\@@par}%
3675 \edef\reserved@a{%
3676 \noexpand\ExecuteDoHook{heading/endgroup/\scr@s@ct@@nn@m@}%
3677 }\reserved@a
3678 \endgroup
3679 \else
3680 \edef\@svsechd{%
3681 \unexpanded{\let\IfUseNumber\@secondoftwo}%
3682 \noexpand\ExecuteDoHook{heading/begingroup/\scr@s@ct@@nn@m@}%
3683 \unexpanded{#4}{%
3684 \noexpand\nobreak
3685 \noexpand\sectioncatchphraseformat{\scr@s@ct@@nn@m@}%
3686 \unexpanded{{\glueexpr #1\relax}\@empty{#5}}%
3687 }%
3688 \noexpand\ExecuteDoHook{heading/endgroup/\scr@s@ct@@nn@m@}%
3689 }%
3690 \fi
3691 \let\scr@s@ct@@nn@m@\relax
3692 \scr@xsect{\glueexpr #3\relax}%
3693 }
3694 \def\scr@xsect#1{%
3695 \@ifundefined{scr@sect@runin}{%
3696 \def\scr@sect@runin##1##2##3{##3}%
3697 }%
3698 \@tempskipa #1\relax
3699 \ifdim \scr@sect@runin{\z@}{\p@}{\@tempskipa}>\z@
3700 \par \nobreak
3701 \vskip \@tempskipa
3702 \@afterheading
3703 \else
3704 \@nobreakfalse
3705 \global\@noskipsectrue
3706 \everypar{%
3707 \if@noskipsec
3708 \global\@noskipsecfalse
3709 {\setbox\z@\lastbox}%
3710 \clubpenalty\@M
3711 \begingroup \@svsechd \endgroup
3712 \unskip
3713 \@tempskipa #1\relax
3714 \ifdim \@tempskipa<\z@
3715 \hskip -\@tempskipa
3716 \else
3717 \hskip \@tempskipa
3718 \fi
3719 \else
3720 \clubpenalty \@clubpenalty
3721 \everypar{}%
3722 \fi}%
3723 \fi
3724 \def\scr@sect@runin##1##2##3{##3}%
3725 \ignorespaces
3726 }
3727 \newcommand*{\scr@IfUsePrefixLineWarning}[2]{%
3728 \ClassWarning{\KOMAClassName}{%
3729 Usage of \string\IfUsePrefixLine\space outside
3730 section command\MessageBreak
3731 style makes no sense, because the behaviour not only\MessageBreak
3732 depends on class options but also on the run-time\MessageBreak
3733 section command style.\MessageBreak
3734 Neither the then-code nor the else-code will be\MessageBreak
3735 executed.\MessageBreak
3736 You may change this and avoid the warning by LOCALLY\MessageBreak
3737 setting \string\IfUsePrefixLine\space to either
3738 \string\@firstoftwo\space or\MessageBreak
3739 \string\@secondoftwo\space before using it%
3740 }%
3741 }
3742 \newcommand*{\IfUsePrefixLine}[2]{}
3743 \let\IfUsePrefixLine\scr@IfUsePrefixLineWarning
3744 \newcommand*{\raggedsection}{}
3745 \let\raggedsection\raggedright
3746 \DefineFamily{KOMAarg}
3747 \DefineFamilyMember[.dsc]{KOMAarg}
3748 \newcommand*{\DeclareSectionCommandStyleOption}[3]{%
3749 \AddToSectionCommandOptionsDoList{#2}%
3750 \expandafter\g@addto@macro\csname scr@dsc@style@#1@options\endcsname{%
3751 \DefineFamilyKey[.dsc]{KOMAarg}{#2}{#3}%
3752 }%
3753 }
3754 \newcommand*{\AddToSectionCommandOptionsDoList}[1]{%
3755 \kernel@ifnextchar [%]
3756 {\@AddToSectionCommandOptionListWithDefault{#1}}%
3757 {\l@addto@macro\scr@dsc@doopts{\do{#1}}}%
3758 }
3759 \newcommand*{\@AddToSectionCommandOptionListWithDefault}{}
3760 \def\@AddToSectionCommandOptionListWithDefault#1[#2]{%
3761 \l@addto@macro\scr@dsc@doopts{\do[{#2}]{#1}}
3762 }%
3763 \newcommand*{\scr@dsc@doopts}{}
3764 \newcommand*{\RelaxSectionCommandOptions}{%
3765 \begingroup
3766 \def\do@endgroup{\endgroup}%
3767 \def\do{%
3768 \kernel@ifnextchar [%]
3769 {\@do}%
3770 {\@do[]}%
3771 }%
3772 \def\@do[##1]##2{%
3773 \l@addto@macro\do@endgroup{\RelaxFamilyKey[.dsc]{KOMAarg}{##2}}%
3774 }%
3775 \scr@dsc@doopts
3776 \do@endgroup
3777 }
3778 \newcommand*{\DeclareSectionCommandStyleLengthOption}[4]{%
3779 \DeclareSectionCommandStyleOption{#1}{#2}{%
3780 \protected@edef\reserved@a{%
3781 \noexpand\FamilySetLength{KOMAarg}{#2}{\noexpand\@tempskipa}{##1}%
3782 }\reserved@a
3783 \ifx\FamilyKeyState\FamilyKeyStateProcessed
3784 \ifscr@dsc@expandtopt
3785 \expandafter\edef\csname #3\scr@dsc@current#4\endcsname{%
3786 \the\@tempskipa}%
3787 \else
3788 \expandafter\edef\csname #3\scr@dsc@current#4\endcsname{##1}%
3789 \fi
3790 \fi
3791 }%
3792 \DeclareSectionCommandStyleOption{#1}{#2:}{%
3793 \scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{%
3794 \ifscr@dsc@expandtopt
3795 \setlength{\@tempskipa}{\@nameuse{#3##1#4}}%
3796 \expandafter\edef\csname #3\scr@dsc@current#4\endcsname{\the\@tempskipa}%
3797 \else
3798 \@namedef{#3\scr@dsc@current#4}{\@nameuse{#3##1#4}}%
3799 \fi
3800 \FamilyKeyStateProcessed
3801 }%
3802 }%
3803 }
3804 \newcommand*{\DeclareSectionCommandStyleNumberOption}[4]{%
3805 \DeclareSectionCommandStyleOption{#1}{#2}{%
3806 \protected@edef\reserved@a{%
3807 \noexpand\FamilySetCounterMacro{KOMAarg}{#2}{\noexpand\reserved@a}{##1}
3808 }\reserved@a
3809 \ifx\FamilyKeyState\FamilyKeyStateProcessed
3810 \expandafter\let\csname #3\scr@dsc@current#4\endcsname\reserved@a
3811 \fi
3812 }%
3813 \DeclareSectionCommandStyleOption{#1}{#2:}{%
3814 \scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{%
3815 \ifscr@dsc@expandtopt
3816 \@tempcnta=\@nameuse{#3##1#4}%
3817 \expandafter\edef\csname #3\scr@dsc@current#4\endcsname{\the\@tempcnta}%
3818 \else
3819 \@namedef{#3\scr@dsc@current#4}{\@nameuse{#3##1#4}}%
3820 \fi
3821 \FamilyKeyStateProcessed
3822 }%
3823 }%
3824 }
3825 \newcommand*{\DeclareSectionCommandStyleFontOption}[4]{%
3826 \DeclareSectionCommandStyleOption{#1}{#2}{%
3827 \IfExistskomafont{#3\scr@dsc@current#4}{%
3828 \setkomafont
3829 }{%
3830 \newkomafont
3831 }{#3\scr@dsc@current#4}{##1}%
3832 \FamilyKeyStateProcessed
3833 }%
3834 \DeclareSectionCommandStyleOption{#1}{#2:}{%
3835 \IfExistskomafont{#3##1#4}{%
3836 \IfExistskomafont{#3\scr@dsc@current#4}{%
3837 \setkomafont
3838 }{%
3839 \newkomafont
3840 }{#3\scr@dsc@current#4}{\usekomafont{#3##1#4}}%
3841 \FamilyKeyStateProcessed
3842 }{\FamilyKeyStateUnknownValue}%
3843 }%
3844 }
3845 \newcommand*{\DeclareSectionCommandStyleFuzzyOption}[5]{%
3846 \DeclareSectionCommandStyleOption{#1}{#2}{%
3847 \FamilySetBool{KOMAarg}{#2}{@tempswa}{##1}%
3848 \ifx\FamilyKeyState\FamilyKeyStateProcessed
3849 \if@tempswa
3850 \expandafter\def\csname #3\scr@dsc@current#4\endcsname
3851 ####1####2####3{####1}%
3852 \else
3853 \expandafter\def\csname #3\scr@dsc@current#4\endcsname
3854 ####1####2####3{####2}%
3855 \fi
3856 \else
3857 \Ifstr{##1}{#5}{%
3858 \expandafter\def\csname #3\scr@dsc@current#4\endcsname
3859 ####1####2####3{####3}%
3860 \FamilyKeyStateProcessed
3861 }{}%
3862 \fi
3863 }%
3864 \DeclareSectionCommandStyleOption{#1}{#2:}{%
3865 \scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{%
3866 \ifscr@dsc@expandtopt
3867 \expandafter\let\csname #3\scr@dsc@current#4\expandafter\endcsname
3868 \csname #3##1#4\endcsname
3869 \else
3870 \expandafter\def\csname #3\scr@dsc@current#4\endcsname{%
3871 \@nameuse{#3##1#4}%
3872 }%
3873 \fi
3874 \FamilyKeyStateProcessed
3875 }%
3876 }%
3877 }
3878 \newcommand*{\scr@dsc@style@section@options}{}
3879 \DeclareSectionCommandStyleLengthOption{section}
3880 {indent}{scr@}{@sectionindent}
3881 \DeclareSectionCommandStyleFuzzyOption{section}
3882 {afterindent}{scr@}{@afterindent}
3883 {bysign}
3884 \DeclareSectionCommandStyleLengthOption{section}
3885 {beforeskip}{scr@}{@beforeskip}
3886 \DeclareSectionCommandStyleFuzzyOption{section}
3887 {runin}{scr@}{@runin}
3888 {bysign}
3889 \DeclareSectionCommandStyleLengthOption{section}
3890 {afterskip}{scr@}{@afterskip}
3891 \DeclareSectionCommandStyleFontOption{section}{font}{}{}
3892 \newcommand*{\scr@dsc@def@style@section@command}[1]{%
3893 \@namedef{#1}{%
3894 \scr@startsection{#1}%
3895 {\csname #1numdepth\endcsname}%
3896 {\csname scr@#1@sectionindent\endcsname}%
3897 {\csname scr@#1@beforeskip\endcsname}%
3898 {\csname scr@#1@afterskip\endcsname}%
3899 {%
3900 \ifdim\glueexpr\csname scr@#1@afterskip\endcsname >\z@
3901 \expandafter\ifnum\scr@v@is@gt{2.96}\relax
3902 \setlength{\parfillskip}{\z@ plus 1fil}%
3903 \fi
3904 \fi
3905 \raggedsection\normalfont\sectfont\nobreak
3906 \usekomafont{#1}%
3907 }%
3908 }%
3909 }
3910 \newcommand*{\scr@dsc@style@chapter@subcommands}[1]{%
3911 @#1,@s#1,@make#1head,@makes#1head,@@make#1head,@@makes#1head,set#1preamble%
3912 }
3913 \newcommand*{\scr@dsc@style@part@options}{}
3914 \DeclareSectionCommandStyleFuzzyOption{part}
3915 {afterindent}{scr@}{@afterindent}
3916 {bysign}
3917 \DeclareSectionCommandStyleLengthOption{part}
3918 {beforeskip}{scr@}{@beforeskip}
3919 \DeclareSectionCommandStyleLengthOption{part}
3920 {afterskip}{scr@}{@afterskip}
3921 \DeclareSectionCommandStyleFontOption{part}{font}{}{}
3922 \DeclareSectionCommandStyleFontOption{part}{prefixfont}{}{prefix}
3923 \newcommand*{\scr@dsc@def@style@part@command}[1]{%
3924 \@namedef{#1}{\scr@startpart{#1}}%
3925 \@namedef{@#1}{\scr@@startpart{#1}}%
3926 \@namedef{@s#1}{\scr@@startspart{#1}}%
3927 }
3928 \newcommand*{\scr@dsc@style@part@subcommands}[1]{%
3929 @#1,@s#1,@end#1,set#1preamble%
3930 }
3931 \newcommand*{\scr@dsc@style@section@neededoptionstest}{%
3932 \scr@ifundefinedorrelax{scr@\scr@dsc@current @sectionindent}{%
3933 \scr@declaresectioncommandwarning{\scr@dsc@current}%
3934 {section indent}{indent}{0pt}%
3935 {\@namedef{scr@\scr@dsc@current @sectionindent}{0pt}}%
3936 }{}%
3937 \scr@ifundefinedorrelax{scr@\scr@dsc@current @beforeskip}{%
3938 \scr@declaresectioncommanderror{\scr@dsc@current}%
3939 {before section skip}{beforeskip}%
3940 }{}%
3941 \scr@ifundefinedorrelax{scr@\scr@dsc@current @afterskip}{%
3942 \scr@declaresectioncommanderror{\scr@dsc@current}%
3943 {after section skip}{afterskip}%
3944 }{}%
3945 \IfExistskomafont{\scr@dsc@current}{}{%
3946 \scr@declaresectioncommandwarning{\scr@dsc@current}%
3947 {font}{font}{\normalsize}%
3948 {\newkomafont{\scr@dsc@current}{\normalsize}}%
3949 }%
3950 \scr@ifundefinedorrelax{scr@\scr@dsc@current @runin}{%
3951 \l@addto@macro\local@endgroup{%
3952 \ClassInfo{\KOMAClassName}
3953 {using compatibility default `runin=bysign'\MessageBreak
3954 for `\expandafter\string\csname \scr@dsc@current\endcsname}%
3955 \expandafter\gdef\csname scr@\scr@dsc@current @runin\endcsname
3956 ##1##2##3{##3}%
3957 }%
3958 }{}%
3959 \scr@ifundefinedorrelax{scr@\scr@dsc@current @afterindent}{%
3960 \l@addto@macro\local@endgroup{%
3961 \ClassInfo{\KOMAClassName}
3962 {using compatibility default `afterindent=bysign'\MessageBreak
3963 for `\expandafter\string\csname \scr@dsc@current\endcsname}%
3964 \expandafter\gdef\csname scr@\scr@dsc@current @afterindent\endcsname
3965 ##1##2##3{##3}%
3966 }%
3967 }{}%
3968 }
3969 \newcommand*{\scr@dsc@style@part@neededoptionstest}{%
3970 \scr@ifundefinedorrelax{scr@\scr@dsc@current @beforeskip}{%
3971 \Ifstr{\scr@dsc@current}{part}{%
3972 \scr@declaresectioncommanderror{\scr@dsc@current}%
3973 {before part skip}{beforeskip}%
3974 }{%
3975 \scr@declaresectioncommandwarning{\scr@dsc@current}%
3976 {before part skip}{beforeskip}%
3977 {\scr@part@beforeskip}%
3978 {\@namedef{scr@\scr@dsc@current @beforeskip}{\scr@part@beforeskip}}%
3979 }%
3980 }{}%
3981 \scr@ifundefinedorrelax{scr@\scr@dsc@current @afterskip}{%
3982 \Ifstr{\scr@dsc@current}{part}{%
3983 \scr@declaresectioncommanderror{\scr@dsc@current}%
3984 {after part skip}{afterskip}%
3985 }{%
3986 \scr@declaresectioncommandwarning{\scr@dsc@current}%
3987 {after part skip}{afterskip}%
3988 {\scr@part@afterskip}%
3989 {\@namedef{scr@\scr@dsc@current @afterskip}{\scr@part@afterskip}}%
3990 }%
3991 }{}%
3992 \IfExistskomafont{\scr@dsc@current}{}{%
3993 \Ifstr{\scr@dsc@current}{part}{%
3994 \scr@declaresectioncommanderror{\scr@dsc@current}{font}{font}%
3995 }{%
3996 \scr@declaresectioncommandwarning{\scr@dsc@current}{font}{font}%
3997 {\usekomafont{part}}%
3998 {\newkomafont{\scr@dsc@current}{\usekomafont{part}}}%
3999 }%
4000 }{}%
4001 \IfExistskomafont{\scr@dsc@current prefix}{}{%
4002 \Ifstr{\scr@dsc@current}{part}{%
4003 \scr@declaresectioncommanderror{\scr@dsc@current}%
4004 {number font}{prefixfont}%
4005 }{%
4006 \scr@declaresectioncommandwarning{\scr@dsc@current}%
4007 {number font}{prefixfont}%
4008 {\usekomafont{partprefix}}%
4009 {\newkomafont{\scr@dsc@current prefix}{\usekomafont{partprefix}}}%
4010 }%
4011 }{}%
4012 \scr@ifundefinedorrelax{scr@\scr@dsc@current @afterindent}{%
4013 \l@addto@macro\local@endgroup{%
4014 \ClassInfo{\KOMAClassName}{%
4015 using compatibility default
4016 `afterindent=false'\MessageBreak
4017 for `\expandafter\string\csname \scr@dsc@current\endcsname}%
4018 \expandafter\gdef\csname scr@\scr@dsc@current @afterindent\endcsname
4019 ##1##2##3%
4020 {##2}%
4021 }%
4022 }{}%
4023 }
4024 \newif\ifscr@dsc@parametersonly
4025 \newcommand*{\DeclareSectionCommand}[2][]{%
4026 \edef\scr@dsc@current{#2}%
4027 \scr@dsc@parametersonlyfalse
4028 \DefineFamilyKey[.dsc]{KOMAarg}{style}{%
4029 \IfArgIsEmpty{##1}{%
4030 \scr@dsc@parametersonlytrue
4031 \FamilyKeyStateProcessed
4032 }{%
4033 \scr@ifundefinedorrelax{scr@dsc@def@style@##1@command}{%
4034 \FamilyKeyStateUnknownValue
4035 }{%
4036 \@namedef{scr@\scr@dsc@current @style}{##1}%
4037 \FamilyKeyStateProcessed
4038 }%
4039 }%
4040 }%
4041 \DefineFamilyKey[.dsc]{KOMAarg}{tocstyle}{%
4042 \IfArgIsEmpty{##1}{%
4043 \@ifundefined{scr@dte@\scr@dsc@current @style}{}{%
4044 \expandafter\let\csname scr@dte@\scr@dsc@current @style\endcsname
4045 \relax
4046 }%
4047 \expandafter\let\csname scr@tso@\scr@dsc@current @style\endcsname
4048 \relax
4049 \FamilyKeyStateProcessed
4050 }{%
4051 \scr@ifundefinedorrelax{scr@dte@def@l@##1}{%
4052 \FamilyKeyStateUnknownValue
4053 }{%
4054 \@namedef{scr@dte@\scr@dsc@current @style}{##1}%
4055 \@namedef{scr@tso@\scr@dsc@current @style}{##1}%
4056 \FamilyKeyStateProcessed
4057 }%
4058 }%
4059 }%
4060 \DefineFamilyKey[.dsc]{KOMAarg}{@else@}{%
4061 \FamilyKeyStateProcessed
4062 }%
4063 \FamilyExecuteOptions[.dsc]{KOMAarg}{#1}%
4064 \RelaxFamilyKey[.dsc]{KOMAarg}{@else@}%
4065 \RelaxFamilyKey[.dsc]{KOMAarg}{tocstyle}%
4066 \RelaxFamilyKey[.dsc]{KOMAarg}{style}%
4067 \begingroup
4068 \scr@ifundefinedorrelax{scr@\scr@dsc@current @style}{%
4069 \scr@declaresectioncommanderror{\scr@dsc@current}
4070 {section command style}{style}%
4071 }{}%
4072 \endgroup
4073 \@firstofone{%
4074 \@nameuse{scr@dsc@style@\@nameuse{scr@\scr@dsc@current @style}@options}%
4075 \scr@ifundefinedorrelax{scr@tso@\scr@dsc@current @style}{%
4076 \scr@ifundefinedorrelax{l@\scr@dsc@current}{%
4077 \@namedef{scr@tso@\scr@dsc@current @style}{default}%
4078 }{}%
4079 }{}%
4080 \let\scr@dsc@tocstyle@options\@empty
4081 \let\scr@dsc@extra@relax@opts\@empty
4082 \scr@ifundefinedorrelax{scr@tso@\scr@dsc@current @style}{%
4083 \expandafter\let
4084 \csname scr@tso@\scr@dsc@current @style\expandafter\endcsname
4085 \csname scr@dte@\scr@dsc@current @style\endcsname
4086 }{}%
4087 \scr@ifundefinedorrelax{scr@tso@\scr@dsc@current @style}{}{%
4088 \begingroup
4089 \def\scr@dte@current{#2}%
4090 \edef\reserved@a{%
4091 \noexpand\@ExecuteTOCEntryStyleInitCode{%
4092 \@nameuse{scr@tso@\scr@dsc@current @style}%
4093 }{\scr@dsc@current}%
4094 }\reserved@a
4095 \def\do@endgroup{\endgroup}%
4096 \def\do##1{%
4097 \l@addto@macro\do@endgroup{%
4098 \l@addto@macro\scr@dsc@extra@relax@opts{%
4099 \RelaxFamilyKey[.dsc]{KOMAarg}{toc##1}%
4100 \RelaxFamilyKey[.dsc]{KOMAarg}{tocentry##1}%
4101 }%
4102 }%
4103 \kernel@ifnextchar[%]
4104 {\@dodefault{##1}}%
4105 {\@donodefault{##1}}%
4106 }%
4107 \def\@donodefault##1{%
4108 \l@addto@macro\do@endgroup{%
4109 \DefineFamilyKey[.dsc]{KOMAarg}{toc##1}{%
4110 \l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}%
4111 \FamilyKeyStateProcessed
4112 }%
4113 \DefineFamilyKey[.dsc]{KOMAarg}{tocentry##1}{%
4114 \l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}%
4115 \FamilyKeyStateProcessed
4116 }%
4117 }%
4118 }%
4119 \def\@dodefault##1[##2]{%
4120 \l@addto@macro\do@endgroup{%
4121 \DefineFamilyKey[.dsc]{KOMAarg}{toc##1}[##2]{%
4122 \l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}%
4123 \FamilyKeyStateProcessed
4124 }%
4125 \DefineFamilyKey[.dsc]{KOMAarg}{tocentry##1}[##2]{%
4126 \l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}%
4127 \FamilyKeyStateProcessed
4128 }%
4129 }%
4130 }%
4131 \scr@dte@doopts
4132 \do@endgroup
4133 }%
4134 \DefineFamilyKey[.dsc]{KOMAarg}{style}{\FamilyKeyStateProcessed}%
4135 \DefineFamilyKey[.dsc]{KOMAarg}{tocstyle}{\FamilyKeyStateProcessed}%
4136 \FamilyBoolKey[.dsc]{KOMAarg}{expandtopt}{scr@dsc@expandtopt}%
4137 \scr@dsc@expandtoptfalse
4138 \scr@ifundefinedorrelax{scr@local@levelincrease}{%
4139 \RelaxFamilyKey[.dsc]{KOMAarg}{increaselevel}%
4140 }{%
4141 \FamilyCounterMacroKey[.dsc]{KOMAarg}{increaselevel}[1]%
4142 {\scr@local@levelincrease}%
4143 }%
4144 \scr@ifundefinedorrelax{scr@local@leveloffset}{%
4145 \edef\reserved@a{%
4146 \noexpand\FamilyCounterMacroKey[.dsc]{KOMAarg}{level}{%
4147 \expandafter\noexpand\csname \scr@dsc@current numdepth\endcsname}%
4148 }\reserved@a
4149 }{%
4150 \edef\reserved@a{%
4151 \noexpand\DefineFamilyKey[.dsc]{KOMAarg}{level}{%
4152 \noexpand\FamilySetCounterMacro{KOMAarg}{level}{%
4153 \expandafter\noexpand\csname \scr@dsc@current numdepth\endcsname
4154 }%
4155 \unexpanded{%
4156 {\numexpr ##1+\scr@local@leveloffset\relax}%
4157 \edef\scr@local@leveloffset{%
4158 \the\numexpr\scr@local@leveloffset+\scr@local@levelincrease\relax
4159 }%
4160 }%
4161 }%
4162 }\reserved@a
4163 }%
4164 \FamilyStringKey[.dsc]{KOMAarg}{counterwithout}{\scr@local@counterwithout}%
4165 \let\scr@local@counterwithout\relax
4166 \FamilyStringKey[.dsc]{KOMAarg}{counterwithin}{\scr@local@counterwithin}%
4167 \let\scr@local@counterwithin\relax
4168 \scr@ifundefinedorrelax{scr@local@tocleveloffset}{}{%
4169 \scr@ifundefinedorrelax{[email protected]@toclevel}{%
4170 }{%
4171 \DefineFamilyKey[.dsc]{KOMAarg}{toclevel}{%
4172 \edef\reserved@a{%
4173 \noexpand\l@addto@macro{\noexpand\scr@dsc@tocstyle@options}{%
4174 level=\the\numexpr ##1+\scr@local@tocleveloffset\relax,%
4175 }%
4176 }\reserved@a
4177 \edef\scr@local@tocleveloffset{%
4178 \the\numexpr\scr@local@tocleveloffset+\scr@local@levelincrease\relax
4179 }%
4180 \FamilyKeyStateProcessed
4181 }%
4182 }%
4183 }%
4184 \FamilyExecuteOptions[.dsc]{KOMAarg}{#1}%
4185 \scr@dsc@extra@relax@opts
4186 \let\scr@dsc@extra@relax@opts\relax
4187 \RelaxSectionCommandOptions
4188 \RelaxFamilyKey[.dsc]{KOMAarg}{style}%
4189 \RelaxFamilyKey[.dsc]{KOMAarg}{tocstyle}%
4190 \RelaxFamilyKey[.dsc]{KOMAarg}{expandtopt}%
4191 \scr@ifundefinedorrelax{scr@local@levelincrease}{}{%
4192 \RelaxFamilyKey[.dsc]{KOMAarg}{increaselevel}%
4193 }%
4194 \RelaxFamilyKey[.dsc]{KOMAarg}{level}%
4195 \RelaxFamilyKey[.dsc]{KOMAarg}{counterwithin}%
4196 \begingroup
4197 \def\local@endgroup{\endgroup}%
4198 \scr@ifundefinedorrelax{\scr@dsc@current numdepth}{%
4199 \scr@declaresectioncommanderror{\scr@dsc@current}{section level}{level}%
4200 }{%
4201 \expandafter\ifnum \csname #2numdepth\endcsname>-\maxdimen
4202 \@nameuse{scr@dsc@style@%
4203 \@nameuse{scr@\scr@dsc@current @style}%
4204 @neededoptionstest}%
4205 \else
4206 \ClassError{\KOMAClassName}{%
4207 `level' must be > -\the\numexpr\maxdimen\relax
4208 }{%
4209 KOMA-Script internally sets `secnumdepth' to
4210 -\the\numexpr\maxdimen\relax\space
4211 to locally switch of\MessageBreak
4212 the numbering, i.e., inside running heads.\MessageBreak
4213 Because of this, you can define section commands with\MessageBreak
4214 `level' greater than -\the\numexpr\maxdimen\relax\space only.%
4215 }%
4216 \let\local@endgroup\endgroup
4217 \aftergroup\@gobbletwo
4218 \fi
4219 }%
4220 \local@endgroup
4221 \@firstofone{%
4222 \@ifundefined{c@#2}{\newcounter{#2}}{}%
4223 \ifx\scr@local@counterwithout\relax
4224 \else\ifx\scr@local@counterwithout\@empty
4225 \else
4226 \@removefromreset{#2}{\scr@local@counterwithout}%
4227 \fi
4228 \@namedef{the#2}{\arabic{#2}}%
4229 \fi
4230 \ifx\scr@local@counterwithin\relax
4231 \else\ifx\scr@local@counterwithin\@empty
4232 \@namedef{the#2}{\arabic{#2}}%
4233 \else
4234 \@removefromreset{#2}{\scr@local@counterwithin}%
4235 \@addtoreset{#2}{\scr@local@counterwithin}%
4236 \expandafter\def\csname the#2\expandafter\endcsname\expandafter{%
4237 \csname the\scr@local@counterwithin\endcsname.\arabic{#2}}%
4238 \fi
4239 \fi
4240 \@ifundefined{#2format}{%
4241 \@namedef{#2format}{\csname the#2\endcsname\autodot\enskip}%
4242 }{}%
4243 \ifscr@dsc@parametersonly
4244 \ClassInfo{\KOMAClassName}{%
4245 not defining `\expandafter\string\csname #2\endcsname' due
4246 to\MessageBreak
4247 empty section style option%
4248 }%
4249 \else
4250 \scr@ifundefinedorrelax{%
4251 scr@dsc@def@style@\@nameuse{scr@#2@style}@command%
4252 }{%
4253 \ClassWarning{\KOMAClassName}{%
4254 not defining `\expandafter\string\csname #2\endcsname'
4255 due\MessageBreak
4256 to not yet defined section style\MessageBreak
4257 `\@nameuse{scr@#2@style}'%
4258 }%
4259 }{%
4260 \@nameuse{scr@dsc@def@style@\@nameuse{scr@#2@style}@command}{#2}%
4261 \UseName{__scrkernel_put_section_command:n}{#2}%
4262 }%
4263 \fi
4264 \@ifundefined{DeclareSectionNumberDepth}{%
4265 \@ifundefined{#2markformat}{%
4266 \@namedef{#2markformat}{\csname the#2\endcsname\autodot\enskip}%
4267 }{}%
4268 \@ifundefined{#2mark}{%
4269 \expandafter\let\csname #2mark\endcsname\@gobble
4270 }{}%
4271 }{%
4272 \DeclareSectionNumberDepth{#2}{\csname #2numdepth\endcsname}%
4273 }%
4274 \expandafter\providecommand\expandafter*%
4275 \csname add#2tocentry\endcsname[2]{%
4276 \addtocentrydefault{#2}{##1}{##2}%
4277 }%
4278 \scr@ifundefinedorrelax{scr@tso@#2@style}{%
4279 \expandafter\let\csname scr@tso@#2@style\expandafter\endcsname
4280 \csname scr@dte@#2@style\endcsname
4281 }{}%
4282 \scr@ifundefinedorrelax{scr@tso@#2@style}{%
4283 }{%
4284 \DeclareTOCStyleEntry[\scr@dsc@tocstyle@options]{%
4285 \@nameuse{scr@tso@#2@style}%
4286 }{#2}%
4287 }%
4288 \scr@ifundefinedorrelax{l@#2}{%
4289 \DeclareTOCStyleEntry[\scr@dsc@tocstyle@options]{default}{#2}%
4290 }{}%
4291 \expandafter\let\csname toclevel@#2\expandafter\endcsname
4292 \csname #2tocdepth\endcsname
4293 }%
4294 }%
4295 \let\scr@dsc@current\relax
4296 }
4297 \ExplSyntaxOn
4298 \cs_new:Nn \__scrkernel_seq_put_unique:Nn
4299 {
4300 \seq_if_in:NnF #1 { #2 }
4301 { \seq_put_left:Nn #1 { #2 } }
4302 }
4303 \seq_new:N \g__scrkernel_section_command_seq
4304
4305 \cs_new:Nn \__scrkernel_put_section_command:n
4306 {
4307 \__scrkernel_seq_put_unique:Nn \g__scrkernel_section_command_seq { #1 }
4308 }
4309
4310 \cs_new:Npn \__scrkernel_sort_section_commands_by_numdepth:
4311 {
4312 \seq_sort:Nn \g__scrkernel_section_command_seq
4313 {
4314 \int_compare:nNnTF
4315 { \use:c { ##2numdepth } } < { \use:c { ##1numdepth } }
4316 { \sort_return_swapped: }
4317 { \sort_return_same: }
4318 }
4319 }
4320
4321 \cs_new:Npn \__scrkernel_sort_section_commands_by_tocdepth:
4322 {
4323 \seq_sort:Nn \g__scrkernel_section_command_seq
4324 {
4325 \int_compare:nNnTF
4326 { \use:c { ##2tocdepth } } < { \use:c { ##1tocdepth } }
4327 { \sort_return_swapped: }
4328 { \sort_return_same: }
4329 }
4330 }
4331
4332 \cs_new:Npn \__scrkernel_sort_section_commands_by_toclevel:
4333 {
4334 \seq_sort:Nn \g__scrkernel_section_command_seq
4335 {
4336 \cs_if_exist:cF { toclevel@##1 }
4337 { \cs_set_eq:cc { toclevel@##1 } { ##1tocdepth } }
4338 \cs_if_exist:cF { toclevel@##2 }
4339 { \cs_set_eq:cc { toclevel@##2 } { ##2tocdepth } }
4340 \int_compare:nNnTF
4341 { \use:c { ##2tocdepth } } < { \use:c { ##1tocdepth } }
4342 { \sort_return_swapped: }
4343 { \sort_return_same: }
4344 }
4345 }
4346 \hook_gput_code:nnn { package / hyperref / after } { . }
4347 {
4348 \clist_map_inline:nn
4349 { part, chapter,
4350 section, subsection, subsubsection,
4351 paragraph, subparagraph }
4352 {
4353 \cs_if_exist:cT { #1tocdepth }
4354 {
4355 \int_compare:nNnF
4356 { \use:c { toclevel@#1 } } = { \use:c { #1tocdepth } }
4357 {
4358 \ClassWarningNoLine{ \KOMAClassName }
4359 {
4360 It~seems~hyperref~or~another~package~before~changed
4361 \MessageBreak
4362 \exp_args:NNc \string\use:c{toclevel@#1}~from~
4363 \use:c{#1tocdepth}~to\use:c{toclevel@#1}.
4364 \MessageBreak
4365 Reverting%
4366 }
4367 \cs_set_eq:cc { toclevel@#1 } { #1tocdepth }
4368 }
4369 }
4370 }
4371 }
4372 \hook_gput_code:nnn { begindocument } { . }
4373 {
4374 \seq_map_inline:Nn \g__scrkernel_section_command_seq
4375 {
4376 \int_compare:nNnF
4377 { \use:c{ toclevel@#1 } } = { \use:c { #1tocdepth } }
4378 {
4379 \ClassWarningNoLine { \KOMAClassName }
4380 {
4381 Unexpected~change~of~hyperref~toclevel~of~#1.\MessageBreak
4382 \exp_args:NNc \string\use:c{toclevel@#1}=\use:c{toclevel@#1}
4383 !=
4384 \use:c{#1tocdepth}=\exp_args:NNc \string\use:c{#1tocdepth}.
4385 \MessageBreak
4386 Cross~your~fingers!
4387 }
4388 }
4389 }
4390 }
4391 \hook_gput_code:nnn { begindocument / end } { . }
4392 {
4393 \IfPackageLoadedT { hyperref }
4394 {
4395 \IfPackageLoadedF { bookmark }
4396 {
4397 \__scrkernel_emergency_toclevel_cleanup:
4398 \BeforeStartingTOC[\ext@toc]{\__scrkernel_emergency_toclevel_cleanup:}
4399 }
4400 }
4401 }
4402
4403 \cs_new:Npn \__scrkernel_emergency_toclevel_cleanup:
4404 {
4405 \ClassInfo{\KOMAClassName}{running~emergency~toclevel~cleanup}
4406 \group_begin:
4407 \tl_clear:N \l_tmpa_tl
4408 \__scrkernel_sort_section_commands_by_toclevel:
4409 \seq_map_inline:Nn \g__scrkernel_section_command_seq
4410 {
4411 \tl_if_empty:NF \l_tmpa_tl
4412 {
4413 \int_compare:nNnT
4414 { \use:c { toclevel@##1 } } > { \l_tmpa_int + 1 }
4415 {
4416 \ClassWarningNoLine { \KOMAClassName }
4417 {
4418 Trying~emergency~fix~for~bookmark~level~gap,
4419 \MessageBreak
4420 because~toclevel~of~##1~(\use:c{toclevel@##1})~
4421 is~more~than~1
4422 \MessageBreak
4423 greater~than~toclevel~of~\l_tmpa_tl\space
4424 (\int_use:N\l_tmpa_int).\MessageBreak
4425 Note:~This~fix~can~fail~and~you~should~load
4426 \MessageBreak
4427 package~bookmark~to~avoid~issues~with~such~gaps%
4428 }
4429 \cs_gset:cpe { toclevel@##1 }
4430 { \int_eval:n { \l_tmpa_int + 1 } }
4431 }
4432 }
4433 \tl_set:Nn \l_tmpa_tl { ##1 }
4434 \int_set:Nn \l_tmpa_int { \use:c { toclevel@##1 } }
4435 }
4436 \group_end:
4437 }
4438 \ExplSyntaxOff
4439 \newcommand*{\scr@declaresectioncommanderror}[3]{%
4440 \ClassError{\KOMAClassName}{%
4441 #2 of \expandafter\string\csname #1\endcsname\space unknown%
4442 }{%
4443 Please use option `#3' to declare the #2.\MessageBreak
4444 If you'll continue, declaration will be ignored%
4445 }%
4446 \let\local@endgroup\endgroup
4447 \aftergroup\@gobbletwo
4448 }
4449 \newcommand*{\scr@declaresectioncommandwarning}[5]{%
4450 \ClassInfo{\KOMAClassName}{%
4451 #2 of \expandafter\string\csname #1\endcsname\space unknown.\MessageBreak
4452 You should use option `#3' if you\MessageBreak
4453 do not want to use the default value\MessageBreak
4454 `\detokenize{#4}'%
4455 }%
4456 \l@addto@macro\local@endgroup{#5}%
4457 }
4458 \newcommand*{\DeclareNewSectionCommand}[2][]{%
4459 \@ifundefined{#2}{%
4460 \@tempswatrue
4461 \let\reserved@b\@empty
4462 \@for \reserved@a:=the#2,#2mark,#2format,#2markformat\do{%
4463 \expandafter\scr@ifundefinedorrelax\expandafter{\reserved@a}{}{%
4464 \@tempswafalse
4465 \edef\reserved@b{\expandafter\string\csname \reserved@a\endcsname}%
4466 }%
4467 }%
4468 \if@tempswa
4469 \expandafter\let\expandafter\scr@dsc@current
4470 \csname scr@tso@##2@style\endcsname
4471 \DefineFamilyKey[.dsc]{KOMAarg}{style}{%
4472 \edef\scr@dsc@current{##1}%
4473 \FamilyKeyStateProcessed
4474 }%
4475 \DefineFamilyKey[.dsc]{KOMAarg}{@else@}{\FamilyKeyStateProcessed}%
4476 \FamilyExecuteOptions[.dsc]{KOMAarg}{#1}%
4477 \RelaxFamilyKey[.dsc]{KOMAarg}{@else@}%
4478 \RelaxFamilyKey[.dsc]{KOMAarg}{style}%
4479 \@tempswatrue
4480 \@ifundefined{scr@dsc@current}{}{%
4481 \scr@ifundefinedorrelax{scr@dsc@style@\scr@dsc@current @subcommands}{%
4482 }{%
4483 \edef\reserved@b{%
4484 \csname scr@dsc@style@\scr@dsc@current @subcommands\endcsname{#2}%
4485 }%
4486 \expandafter\@for\expandafter\reserved@a\expandafter:\expandafter=%
4487 \reserved@b\do{%
4488 \expandafter\scr@ifundefinedorrelax\expandafter{\reserved@a}{}{%
4489 \@tempswafalse
4490 \edef\reserved@b{%
4491 \expandafter\string\csname \reserved@a\endcsname}%
4492 }%
4493 }%
4494 }
4495 }%
4496 \let\scr@dsc@current\relax
4497 \fi
4498 \if@tempswa
4499 \DeclareSectionCommand[{#1}]{#2}%
4500 \else
4501 \ClassError{\KOMAClassName}{%
4502 command `\reserved@b' already defined%
4503 }{%
4504 You've tried to define the section command `\expandafter\string\csname
4505 #2\endcsname' newly.\MessageBreak
4506 Such a section command needs an additional new command
4507 `\reserved@b',\MessageBreak
4508 but this already exists. So you cannot define
4509 `\expandafter\string\csname #2\endcsname' newly.\MessageBreak
4510 Maybe you should use one of \string\DeclareSectionCommand,
4511 \string\RedeclareSectionCommand,\MessageBreak
4512 or \string\ProvideSectionCommand.\MessageBreak
4513 If you'll continue, the command will be ignored.%
4514 }%
4515 \fi
4516 }{%
4517 \ClassError{\KOMAClassName}{%
4518 command `\expandafter\string\csname #2\endcsname' already defined%
4519 }{%
4520 You've tried to define the section command `\expandafter\string\csname
4521 #2\endcsname' newly,\MessageBreak
4522 but a command or something else with this name already
4523 exists.\MessageBreak
4524 Maybe you should use one of \string\DeclareSectionCommand,
4525 \string\RedeclareSectionCommand,\MessageBreak
4526 or \string\ProvideSectionCommand.\MessageBreak
4527 If you'll continue, the command will be ignored.%
4528 }%
4529 }%
4530 }
4531 \newcommand*{\RedeclareSectionCommand}[2][]{%
4532 \@ifundefined{#2}{%
4533 \ClassError{\KOMAClassName}{%
4534 command `\expandafter\string\csname #2\endcsname' not defined%
4535 }{%
4536 You've tried to re-define the section command `\expandafter\string\csname
4537 #2\endcsname',\MessageBreak
4538 but a command with this name does not exists.\MessageBreak
4539 Maybe you should use one of \string\DeclareSectionCommand,
4540 \string\DeclareNewSectionCommand,\MessageBreak
4541 or \string\ProvideSectionCommand.\MessageBreak
4542 If you'll continue, the command will be irgnored.%
4543 }%
4544 }{%
4545 \DeclareSectionCommand[{#1}]{#2}%
4546 }%
4547 }
4548 \newcommand*{\ProvideSectionCommand}[2][]{%
4549 \@ifundefined{#2}{%
4550 \DeclareSectionCommand[{#1}]{#2}%
4551 }{%
4552 \ClassInfo{\KOMAClassName}{%
4553 \string\ProvideSectionCommand{#1} ignored%
4554 }%
4555 }%
4556 }
4557 \newcommand*{\DeclareSectionCommands}[2][]{%
4558 \edef\reserved@a{#2}%
4559 \def\scr@local@levelincrease{\z@}%
4560 \def\scr@local@leveloffset{\z@}%
4561 \def\scr@local@tocleveloffset{\z@}%
4562 \@for\reserved@a:=\reserved@a\do{%
4563 \scr@trim@spaces\reserved@a
4564 \edef\reserved@a{%
4565 \unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}%
4566 }%
4567 \reserved@a
4568 }%
4569 \let\scr@local@levelincrease\relax
4570 \let\scr@local@leveloffset\relax
4571 \let\scr@local@tocleveloffset\relax
4572 }
4573 \newcommand*{\DeclareNewSectionCommands}[2][]{%
4574 \edef\reserved@a{#2}%
4575 \def\scr@local@levelincrease{\z@}%
4576 \def\scr@local@leveloffset{\z@}%
4577 \def\scr@local@tocleveloffset{\z@}%
4578 \@for\reserved@a:=\reserved@a\do{%
4579 \scr@trim@spaces\reserved@a
4580 \@ifundefined{\reserved@a}{}{%
4581 \ClassError{\KOMAClassName}{%
4582 command `\expandafter\string\csname\reserved@a\endcsname' already
4583 defined%
4584 }{%
4585 You've tried to define the section command
4586 `\expandafter\string\csname\reserved@a\endcsname' newly,\MessageBreak
4587 but a command, token, box or length with this name already
4588 exists.\MessageBreak
4589 Maybe you should use one of \string\DeclareSectionCommand,
4590 \string\RedeclareSectionCommand,\MessageBreak
4591 or \string\ProvideSectionCommand.\MessageBreak
4592 Nevertheless, if you'll continue, the command will be defined.%
4593 }%
4594 }%
4595 \edef\reserved@a{%
4596 \unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}%
4597 }%
4598 \reserved@a
4599 }%
4600 \let\scr@local@levelincrease\relax
4601 \let\scr@local@leveloffset\relax
4602 \let\scr@local@tocleveloffset\relax
4603 }
4604 \newcommand*{\RedeclareSectionCommands}[2][]{%
4605 \edef\reserved@a{#2}%
4606 \def\scr@local@levelincrease{\z@}%
4607 \def\scr@local@leveloffset{\z@}%
4608 \def\scr@local@tocleveloffset{\z@}%
4609 \@for\reserved@a:=\reserved@a\do{%
4610 \scr@trim@spaces\reserved@a
4611 \@ifundefined{\reserved@a}{%
4612 \ClassError{\KOMAClassName}{%
4613 command `\expandafter\string\csname\reserved@a\endcsname' not defined%
4614 }{%
4615 You've tried to re-define the section command
4616 `\expandafter\string\csname\reserved@a\endcsname',\MessageBreak
4617 but a command with this name does not exists.\MessageBreak
4618 Maybe you should use one of \string\DeclareSectionCommand,
4619 \string\DeclareNewSectionCommand,\MessageBreak
4620 or \string\ProvideSectionCommand.\MessageBreak
4621 Nevertheless, if you'll continue, the command will be defined.%
4622 }%
4623 }{}%
4624 \edef\reserved@a{%
4625 \unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}%
4626 }%
4627 \reserved@a
4628 }%
4629 \let\scr@local@levelincrease\relax
4630 \let\scr@local@leveloffset\relax
4631 \let\scr@local@tocleveloffset\relax
4632 }
4633 \newcommand*{\ProvideSectionCommands}[2][]{%
4634 \edef\reserved@a{#2}%
4635 \def\scr@local@levelincrease{\z@}%
4636 \def\scr@local@leveloffset{\z@}%
4637 \def\scr@local@tocleveloffset{\z@}%
4638 \@for\reserved@a:=\reserved@a\do{%
4639 \scr@trim@spaces\reserved@a
4640 \@ifundefined{\reserved@a}{%
4641 \edef\reserved@a{%
4642 \unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}%
4643 }%
4644 \reserved@a
4645 }{%
4646 \DefineFamilyKey[.dsc]{KOMAarg}{@else@}{\FamilyKeyStateProcessed}%
4647 \FamilyCounterMacroKey[.dsc]{KOMAarg}{increaselevel}[1]%
4648 {\scr@local@levelincrease}%
4649 \DefineFamilyKey[.dsc]{KOMAarg}{level}{%
4650 \FamilySetCounterMacro{KOMAarg}{level}{\reserved@b}{##1}%
4651 \edef\scr@local@leveloffset{%
4652 \the\numexpr\scr@local@leveloffset+\scr@local@levelincrease\relax
4653 }%
4654 }%
4655 \DefineFamilyKey[.dsc]{KOMAarg}{toclevel}{%
4656 \FamilySetCounterMacro{KOMAarg}{toclevel}{\reserved@b}{##1}%
4657 \edef\scr@local@tocleveloffset{%
4658 \the\numexpr\scr@local@tocleveloffset+\scr@local@levelincrease\relax
4659 }%
4660 }%
4661 \FamilyExecuteOptions[.dsc]{KOMAarg}{#1}%
4662 \RelaxFamilyKey[.dsc]{KOMAarg}{toclevel}%
4663 \RelaxFamilyKey[.dsc]{KOMAarg}{level}%
4664 \RelaxFamilyKey[.dsc]{KOMAarg}{increaselevel}%
4665 \RelaxFamilyKey[.dsc]{KOMAarg}{@else@}%
4666 }%
4667 }%
4668 \let\scr@local@levelincrease\relax
4669 \let\scr@local@leveloffset\relax
4670 \let\scr@local@tocleveloffset\relax
4671 }
4672 \newcommand*{\IfSectionCommandStyleIs}[2]{%
4673 \scr@ifundefinedorrelax{#1}{%
4674 \ClassError{\KOMAClassName}{%
4675 \expandafter\string\csname #1\endcsname\space not defined}{%
4676 You cannot compare the section command style of an undefined command.}%
4677 }{%
4678 \scr@ifundefinedorrelax{scr@#1@style}{%
4679 \ClassError{\KOMAClassName}{%
4680 \expandafter\string\csname #1\endcsname\space not a valid section
4681 command%
4682 }{%
4683 You cannot detect the section command style of a command, that
4684 has\MessageBreak
4685 never been defined as a section command by KOMA-Script.%
4686 }%
4687 }%
4688 }%
4689 \scr@ifundefinedorrelax{scr@dsc@def@style@#2@command}{%
4690 \ClassError{\KOMAClassName}{%
4691 unknown section command style `#2'%
4692 }{}%
4693 }%
4694 \Ifstr{\@nameuse{scr@#1@style}}{#2}%
4695 }
4696 \newcommand*\appendix{%
4697 \Ifstr{\@currenvir}{appendix}{%
4698 \ClassWarning{\KOMAClassName}{%
4699 You are using
4700 `\string\begin{appendix}...\string\end{appendix}'.\MessageBreak
4701 You should note, that `\string\appendix' is a mostly
4702 globally\MessageBreak
4703 working command not an enviroment with only local\MessageBreak
4704 effects. Therefore `\string\end{appendix}' will neither\MessageBreak
4705 switch back to normal section numbering nor finish\MessageBreak
4706 every other effect of `\string\begin{appendix}'.\MessageBreak
4707 Nevertheless, some effects may end with\MessageBreak
4708 `\string\end{appendix}' and the document may become\MessageBreak
4709 inconsistent.\MessageBreak
4710 Because of this, you should remove `\string\end{appendix}'\MessageBreak
4711 and replace `\string\begin{appendix}' by command\MessageBreak
4712 `\string\appendix'%
4713 }%
4714 }{}%
4715 \par
4716 \setcounter{section}{0}%
4717 \setcounter{subsection}{0}%
4718 \gdef\thesection{\@Alph\c@section}%
4719 \UseOneTimeHook{\KOMAClassName/appendix}%
4720 \csname appendixmore\endcsname
4721 }
4722 \newcommand*{\scr@startpart}[1]{%
4723 \ExecuteDoHook{heading/preinit/#1}%
4724 \par
4725 \@tempskipa=\glueexpr\@nameuse{scr@#1@beforeskip}\relax
4726 \@ifundefined{scr@#1@afterindent}{\@afterindentfalse}{%
4727 \csname scr@#1@afterindent\endcsname
4728 {\@afterindenttrue}{\@afterindentfalse}{%
4729 \@afterindenttrue
4730 \ifdim\@tempskipa<\z@
4731 \@tempskipa=-\@tempskipa
4732 \@afterindentfalse
4733 \fi
4734 }%
4735 }%
4736 \ExecuteDoHook{heading/postinit/#1}%
4737 \partheadstartvskip
4738 \expandafter\SecDef\csname @#1\expandafter\endcsname\csname @s#1\endcsname
4739 }
4740 \newcommand{\scr@@startpart}{}
4741 \long\def\scr@@startpart#1[#2]#3{%
4742 \ExecuteDoHook{heading/branch/nostar/#1}%
4743 \ifnum \scr@osectarg=\z@
4744 \@scr@tempswafalse
4745 \else
4746 \scr@istest#2=\@nil
4747 \fi
4748 \@currentusenumbertrue
4749 \if@scr@tempswa
4750 \setkeys{KOMAarg.section}{tocentry={#3},head={#3},reference={#3},#2}%
4751 \else
4752 \ifcase \scr@osectarg\relax
4753 \setkeys{KOMAarg.section}{tocentry={#2},head={#2},reference={#2}}%
4754 \or
4755 \setkeys{KOMAarg.section}{tocentry={#3},head={#2},reference={#3}}%
4756 \or
4757 \setkeys{KOMAarg.section}{tocentry={#2},head={#3},reference={#2}}%
4758 \or
4759 \setkeys{KOMAarg.section}{tocentry={#2},head={#2},reference={#2}}%
4760 \fi
4761 \fi
4762 \Ifnumbered{#1}{%
4763 \refstepcounter{#1}%
4764 \expandafter\@maybeautodot\csname the#1\endcsname
4765 \typeout{#1 \csname the#1\endcsname.}%
4766 \ifx\@currenttocentry\@empty\else
4767 \@ifundefined{#1tocformat}{%
4768 \expandafter\gdef\csname #1tocformat\endcsname
4769 {\csname the#1\endcsname}%
4770 }{}%
4771 \scr@ifundefinedorrelax{add#1tocentry}{%
4772 \addtocentrydefault{#1}%
4773 }{%
4774 \@nameuse{add#1tocentry}%
4775 }{\csname\@ifundefined{#1tocformat}{the#1}{#1tocformat}\endcsname}%
4776 {\@currenttocentry}%
4777 \fi
4778 }{%
4779 \expandafter\ifnum\scr@v@is@ge{3.18}\relax
4780 \begingroup
4781 \let\@elt\@stpelt
4782 \csname cl@#1\endcsname
4783 \endgroup
4784 \fi
4785 \typeout{#1 without number}%
4786 \ifx\@currenttocentry\@empty\else
4787 \hy@insteadofrefstepcounter{#1}%
4788 \scr@ifundefinedorrelax{add#1tocentry}{%
4789 \addtocentrydefault{#1}%
4790 }{%
4791 \@nameuse{add#1tocentry}%
4792 }{}{\@currenttocentry}%
4793 \fi
4794 }%
4795 \begingroup
4796 \def\IfUseNumber{\Ifnumbered{#1}}%
4797 \ExecuteDoHook{heading/begingroup/#1}%
4798 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
4799 \raggedpart
4800 \normalfont\usekomafont{disposition}{\nobreak
4801 \IfUseNumber{%
4802 \partlineswithprefixformat{#1}{%
4803 \usekomafont{#1prefix}{\nobreak\@nameuse{#1format}}%
4804 \partheadmidvskip
4805 }{%
4806 \usekomafont{#1}{\nobreak\interlinepenalty \@M#3\strut\@@par}%
4807 }%
4808 }{%
4809 \partlineswithprefixformat{#1}{}{%
4810 \usekomafont{#1}{\nobreak\interlinepenalty \@M#3\strut\@@par}%
4811 }
4812 }%
4813 \expandafter\ifx\csname #1mark\endcsname\@gobble
4814 \@mkboth{}{}%
4815 \else
4816 \csname #1mark\expandafter\endcsname\expandafter{\@currentheadentry}%
4817 \fi
4818 }%
4819 \ExecuteDoHook{heading/endgroup/#1}%
4820 \endgroup
4821 \nobreak
4822 \@tempskipa=\glueexpr\@nameuse{scr@#1@afterskip}\relax\relax
4823 \ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\fi
4824 \partheadendvskip
4825 \@afterheading
4826 }
4827 \newcommand{\scr@@startspart}[2]{%
4828 \ExecuteDoHook{heading/branch/star/#1}%
4829 \begingroup
4830 \let\@mkboth\@gobbletwo
4831 \hy@insteadofrefstepcounter{#1}%
4832 \endgroup
4833 \begingroup
4834 \let\IfUseNumber\@secondoftwo
4835 \ExecuteDoHook{heading/begingroup/#1}%
4836 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
4837 \raggedpart
4838 \normalfont\usekomafont{disposition}{%
4839 \nobreak
4840 \partlineswithprefixformat{#1}{}{%
4841 \usekomafont{#1}{\nobreak\interlinepenalty \@M#2\strut\@@par}%
4842 }%
4843 \@mkboth{}{}%
4844 }%
4845 \ExecuteDoHook{heading/endgroup/#1}%
4846 \endgroup
4847 \nobreak
4848 \@tempskipa=\glueexpr\csname scr@#1@afterskip\endcsname\relax\relax
4849 \ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\fi
4850 \partheadendvskip
4851 \@afterheading
4852 }
4853 \newcommand{\partlineswithprefixformat}[3]{%
4854 #2#3%
4855 }
4856 \newcommand*{\hy@insteadofrefstepcounter}[1]{}
4857 \let\hy@insteadofrefstepcounter\@gobble
4858 \newcommand*{\scr@chapter@before@hyperref@patch}{%
4859 \let\scr@orig@chapter\@chapter
4860 \let\scr@orig@schapter\@schapter
4861 \let\scr@orig@addchap\@addchap
4862 }
4863 \BeforePackage{hyperref}{\scr@chapter@before@hyperref@patch}
4864 \newcommand*{\scr@chapter@after@hyperref@patch}{%
4865 \let\@chapter\scr@orig@chapter
4866 \let\@schapter\scr@orig@schapter
4867 \let\@addchap\scr@orig@addchap
4868 \ifx\hy@insteadofrefstepcounter\@gobble
4869 \renewcommand*{\hy@insteadofrefstepcounter}[1]{%
4870 \Hy@MakeCurrentHrefAuto{##1*}%
4871 \Hy@raisedlink{%
4872 \hyper@anchorstart{\@currentHref}\hyper@anchorend
4873 }%
4874 }%
4875 \fi
4876 }
4877 \AfterAtEndOfPackage{hyperref}{\scr@chapter@after@hyperref@patch}
4878 \newcommand*{\addparttocentry}[2]{%
4879 \addtocentrydefault{part}{#1}{#2}%
4880 }
4881 \newcommand\addpart{%
4882 \SecDef\@addpart\@saddpart
4883 }
4884 \newcommand*{\@addpart}{}
4885 \long\def\@addpart[#1]#2{%
4886 \edef\reserved@a{%
4887 \unexpanded{%
4888 \part[{#1}]{#2}%
4889 \c@secnumdepth=
4890 }\the\c@secnumdepth\relax
4891 }%
4892 \c@secnumdepth=\numexpr \partnumdepth-1\relax
4893 \reserved@a
4894 }
4895 \newcommand{\@saddpart}[1]{%
4896 \part*{#1}%
4897 \addpartmark{}%
4898 }
4899 \newcounter{part}
4900 \renewcommand*{\thepart}{\@Roman\c@part}
4901 \newcommand*{\partformat}{\partname~\thepart\autodot}
4902 \newcommand*\partname{Part}
4903 \providecaptionname{american,australian,british,canadian,english,newzealand,%
4904 UKenglish,ukenglish,USenglish,usenglish}\partname{Part}
4905 \newcommand*{\partmark}[1]{\@mkboth{}{}}
4906 \newcommand*\addpartmark[1]{%
4907 \begingroup
4908 \expandafter\let\csname if@mainmatter\expandafter\endcsname
4909 \csname iffalse\endcsname
4910 \c@secnumdepth=\numexpr \partnumdepth-1\relax
4911 \partmark{#1}%
4912 \endgroup
4913 }
4914 \newcommand*{\raggedpart}{}
4915 \let\raggedpart\raggedsection
4916 \newkomafont{partentry}{\usekomafont{disposition}\large}
4917 \newkomafont{partentrypagenumber}{}
4918 \newcommand*{\raggedsectionentry}{}
4919 \newcommand\addsec{\SecDef\@addsec\@saddsec}
4920 \newcommand*{\@addsec}{}
4921 \def\@addsec[#1]#2{%
4922 \edef\reserved@a{%
4923 \unexpanded{%
4924 \section[{#1}]{#2}%
4925 \c@secnumdepth=
4926 }\the\c@secnumdepth\relax
4927 }%
4928 \c@secnumdepth=\numexpr \sectionnumdepth-1\relax
4929 \reserved@a
4930 }
4931 \newcommand*{\@saddsec}[1]{%
4932 \section*{#1}\addsecmark{}%
4933 }
4934 \newkomafont{minisec}{}
4935 \newcommand\minisec[1]{%
4936 \expandafter\ifnum\scr@v@is@lt{3.13a}\relax
4937 \@afterindentfalse \vskip 1.5ex
4938 \else
4939 \if@noskipsec \leavevmode \fi
4940 \par
4941 \@afterindentfalse
4942 \if@nobreak
4943 \everypar{}%
4944 \else
4945 \addpenalty\@secpenalty\addvspace{1.5ex}%
4946 \fi
4947 \fi
4948 {\parindent \z@
4949 \expandafter\ifnum\scr@v@is@gt{2.96}\relax
4950 \setlength{\parfillskip}{\z@ plus 1fil}%
4951 \fi
4952 \raggedsection\normalfont\sectfont\nobreak
4953 \usekomafont{minisec}{\nobreak\interlinepenalty \@M #1\par\nobreak}%
4954 }\nobreak
4955 \@afterheading
4956 }
4957 \newcommand*{\addsectiontocentry}[2]{%
4958 \addtocentrydefault{section}{#1}{#2}%
4959 }
4960 \newcommand*{\addsubsectiontocentry}[2]{%
4961 \addtocentrydefault{subsection}{#1}{#2}%
4962 }
4963 \newcommand*{\addparagraphtocentry}[2]{%
4964 \addtocentrydefault{paragraph}{#1}{#2}%
4965 }
4966 \newcommand*{\addsubparagraphtocentry}[2]{%
4967 \addtocentrydefault{subparagraph}{#1}{#2}%
4968 }
4969 \newcounter{section}
4970 \renewcommand*{\thesection}{\@arabic\c@section}
4971 \newcommand*\sectionmarkformat{\thesection\autodot\enskip}
4972 \newcounter{subsection}[section]
4973 \renewcommand*{\thesubsection}{\thesection.\@arabic\c@subsection}
4974 \newcommand*\subsectionmarkformat{\thesubsection\autodot\enskip}
4975 \newcounter{subsubsection}[subsection]
4976 \renewcommand*{\thesubsubsection}{%
4977 \thesubsection.\@arabic\c@subsubsection
4978 }
4979 \newcounter{paragraph}[subsubsection]
4980 \renewcommand*{\theparagraph}{\thesubsubsection.\@arabic\c@paragraph}
4981 \newcounter{subparagraph}[paragraph]
4982 \renewcommand*{\thesubparagraph}{%
4983 \theparagraph.\@arabic\c@subparagraph
4984 }
4985 \newcommand*{\othersectionlevelsformat}[3]{#3\autodot\enskip}
4986 \renewcommand*{\@seccntformat}[1]{%
4987 \expandafter\ifnum\scr@v@is@lt{3.17}\relax
4988 \protect\othersectionlevelsformat{#1}{%
4989 \expandafter\aftergroup\noexpand\@gobble}{\csname the#1\endcsname}%
4990 \else
4991 \scr@ifundefinedorrelax{#1format}{%
4992 \protect\othersectionlevelsformat{#1}{%
4993 \expandafter\aftergroup\noexpand\@gobble}{\csname the#1\endcsname}%
4994 }{\expandafter\protect\csname #1format\endcsname}%
4995 \fi
4996 }
4997 \newcommand*\addsecmark[1]{%
4998 \begingroup
4999 \c@secnumdepth=\numexpr \sectionnumdepth-1\relax
5000 \sectionmark{#1}%
5001 \endgroup
5002 }
5003 \newkomafont{sectionentry}{\usekomafont{disposition}}
5004 \newkomafont{sectionentrypagenumber}{}
5005 \newkomafont{sectionentrydots}{}
5006 \DeclareSectionCommand[%
5007 style=section,%
5008 level=1,%
5009 indent=\z@,%
5010 beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,%
5011 afterskip=2.3ex \@plus.2ex,%
5012 tocstyle=section,%
5013 tocindent=0pt,%
5014 tocnumwidth=1.5em%
5015 ]{section}
5016 \DeclareSectionCommand[%
5017 style=part,%
5018 level=\z@,%
5019 tocstyle=part,%
5020 toclevel=\m@ne,%
5021 tocindent=\z@,%
5022 tocnumwidth=2em%
5023 ]{part}
5024 \DeclareSectionCommand[%
5025 style=section,%
5026 level=2,%
5027 indent=\z@,%
5028 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
5029 afterskip=1.5ex \@plus .2ex,%
5030 tocstyle=subsection,%
5031 tocindent=1.5em,%
5032 tocnumwidth=2.3em%
5033 ]{subsection}
5034 \DeclareSectionCommand[%
5035 style=section,%
5036 level=3,%
5037 indent=\z@,%
5038 beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,%
5039 afterskip=1.5ex \@plus .2ex,%
5040 tocstyle=subsection,%
5041 tocindent=3.8em,%
5042 tocnumwidth=3.2em%
5043 ]{subsubsection}
5044 \DeclareSectionCommand[%
5045 style=section,%
5046 level=4,%
5047 indent=\z@,%
5048 beforeskip=3.25ex \@plus1ex \@minus.2ex,%
5049 afterskip=-1em,%
5050 tocstyle=subsection,%
5051 tocindentfollows=subsubsection,%
5052 tocindent=7.0em,%
5053 tocnumwidth=4.1em%
5054 ]{paragraph}
5055 \DeclareSectionCommand[%
5056 style=section,%
5057 level=5,%
5058 indent=\scr@parindent,%
5059 beforeskip=3.25ex \@plus1ex \@minus .2ex,%
5060 afterskip=-1em,%
5061 tocstyle=subsection,%
5062 tocindent=10em,%
5063 tocnumwidth=5em%
5064 ]{subparagraph}
5065 \expandafter\ifnum\scr@v@is@lt{3.15}\relax
5066 \let\scr@subparagraph@sectionindent\parindent
5067 \else
5068 \def\scr@subparagraph@sectionindent{\scr@parindent}%
5069 \fi
5070 \newcommand*{\scr@fnt@disposition}{\sectfont}
5071 \aliaskomafont{sectioning}{disposition}
5072 %%% From File: $Id: scrkernel-miscellaneous.dtx 4223 2025-09-11 09:09:44Z kohm $
5073 %%% (run: body)
5074 \ExplSyntaxOn
5075 \cs_if_exist:NT \tag_if_active:T
5076 {
5077 \msg_new:nnn { \KOMAClassName } { tagging-not-supported }
5078 {
5079 Activated~tagging~detected~but~not~supported!\\
5080 Note:~This~class~currently~does~not~actively~support~tagging.~
5081 This~means:~Several~elements~will~not~be~tagged~correctly.~
5082 We~therefore~currently~suggest~to~not~use~tagging~and~i.e.~
5083 use\\
5084 \ \ \token_to_str:N\RequirePackage{pdfmetadata}\\
5085 \ \ \token_to_str:N\SetKeys[document/metadata]{...}\\
5086 instead~of\\
5087 \ \ \token_to_str:N\DocumentMetadata{...}\\
5088 to~avoid~automatic~activation~of~tagging.
5089 }
5090 \hook_gput_code:nnn { begindocument } { \KOMAClassName }
5091 {
5092 \tag_if_active:T
5093 { \msg_warning:nn { \KOMAClassName } { tagging-not-supported } }
5094 }
5095 }
5096 \ExplSyntaxOff
5097 \newif\if@restonecol
5098 \newcommand{\dictum}[2][]{\par%
5099 \begingroup
5100 \raggeddictum\parbox{\dictumwidth}{%
5101 {\@dictumfont{\raggeddictumtext #2\strut\par}%
5102 \def\@tempa{#1}\ifx\@tempa\@empty\else%
5103 {\raggeddictumtext\dictumrule}%
5104 \raggeddictumauthor\@dictumauthorfont\dictumauthorformat{#1}%
5105 \strut\par%
5106 \fi%
5107 }%
5108 }\par%
5109 \endgroup
5110 }
5111 \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}%
5112 \newcommand*{\dictumwidth}{.3333\textwidth}
5113 \newcommand*{\raggeddictum}{\raggedleft}
5114 \newcommand*{\dictumauthorformat}[1]{(#1)}
5115 \newcommand*{\raggeddictumtext}{\raggedright}
5116 \newcommand*{\raggeddictumauthor}{\raggedleft}
5117 \newkomafont{dictum}{\normalfont\normalcolor\maybesffamily\small}
5118 \newkomafont{dictumauthor}{\itshape}
5119 \aliaskomafont{dictumtext}{dictum}
5120 \setlength{\skip\@mpfootins}{\skip\footins}
5121 \setlength\fboxsep{3\p@}
5122 \setlength\fboxrule{.4\p@}
5123 \newcommand*{\new@tpo@label}{\@newl@bel{tpo}}
5124 \AtBeginDocument{%
5125 \if@filesw
5126 \immediate\write\@auxout{%
5127 \string\providecommand*\string\new@tpo@label[2]{}%
5128 }%
5129 \fi
5130 }
5131 \newcommand*{\scr@tpo}{0}
5132 \newcommand*{\is@thispageodd}[1][\is@thispageodd@setlabel]{%
5133 \@bsphack
5134 \begingroup
5135 \@tempcnta=\scr@tpo
5136 \advance\@tempcnta by\@ne
5137 \xdef\scr@tpo{\the\@tempcnta}%
5138 \expandafter\ifx\csname tpo@\scr@tpo\endcsname\relax
5139 \protect\G@refundefinedtrue
5140 \ClassWarning{\KOMAClassName}{%
5141 odd/even page label number \scr@tpo\space undefined}%
5142 \edef\@tempa{\the\value{page}}%
5143 \else
5144 \edef\@tempa{\csname tpo@\scr@tpo\endcsname}%
5145 \fi
5146 \ifodd\number\@tempa
5147 \aftergroup\thispagewasoddtrue
5148 \else
5149 \aftergroup\thispagewasoddfalse
5150 \fi
5151 \endgroup
5152 \edef\is@thispageodd@setlabel{%
5153 \if@filesw
5154 \unexpanded{\protected@write\@auxout{\let\number\relax}}{%
5155 \noexpand\string
5156 \noexpand\new@tpo@label{\scr@tpo}{\noexpand\number\c@page}}%
5157 \fi
5158 \noexpand\def\noexpand\is@thispageodd@setlabel
5159 {\unexpanded\expandafter{\is@thispageodd@setlabel}}%
5160 }%
5161 #1%
5162 \@esphack
5163 }
5164 \newcommand*{\is@thispageodd@setlabel}{}
5165 \newif\ifthispagewasodd
5166 \providecommand*{\ifthispageodd}{%
5167 \ClassWarning{\KOMAClassName}{%
5168 Usage of deprecated command
5169 `\string\ifthispageodd'.\MessageBreak
5170 The command has been renamed because of a\MessageBreak
5171 recommendation of The LaTeX Project Team.\MessageBreak
5172 Please replace `\string\ifthispageodd' by `\string\Ifthispageodd'%
5173 }%
5174 \Ifthispageodd
5175 }
5176 \newcommand{\Ifthispageodd}{%
5177 \is@thispageodd
5178 \ifthispagewasodd
5179 \expandafter\@firstoftwo
5180 \else
5181 \expandafter\@secondoftwo
5182 \fi
5183 }
5184 \newcommand\marginline[1]{%
5185 \marginpar[{\raggedleft #1}]{\raggedright #1}%
5186 }
5187 \scr@ifundefinedorrelax{textsubscript}{%
5188 \DeclareRobustCommand*\textsubscript[1]{%
5189 \@textsubscript{\selectfont#1}%
5190 }%
5191 }{%
5192 \scr@ifundefinedorrelax{textsubscript }{%
5193 \DeclareRobustCommand*\textsubscript[1]{%
5194 \@textsubscript{\selectfont#1}%
5195 }%
5196 }{}%
5197 }
5198 \providecommand*{\@textsubscript}[1]{%
5199 {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}%
5200 }
5201 \providecommand*{\scr@endstrut}{\unskip\ifhmode\nobreak\strut\fi}
5202 \newcommand*{\scr@package@not@recommended}[2]{%
5203 \scr@ifundefinedorrelax{class@shoulddisablepackagewarning@list}{%
5204 \@firstofone
5205 }{%
5206 \edef\reserved@a{%
5207 \noexpand\in@{#1}{\class@shoulddisablepackagewarning@list}}%
5208 \reserved@a
5209 \ifin@\expandafter\@gobble\else\expandafter\@firstofone\fi
5210 }{%
5211 \expandafter\providecommand\csname scr@class@#1@warning\endcsname{%
5212 \ClassWarning{\KOMAClassName}{%
5213 Usage of package `#1' together\MessageBreak
5214 with a KOMA-Script class is not recommended.\MessageBreak
5215 \if\relax\detokenize{#2}\relax\else
5216 I'd suggest to use #2.\MessageBreak
5217 \fi
5218 Nevertheless, using requested\MessageBreak
5219 package `#1'%
5220 }%
5221 }%
5222 \BeforePackage{#1}{%
5223 \csname scr@class@#1@warning\endcsname
5224 }%
5225 }%
5226 }%
5227 \scr@package@not@recommended{emptypage}{%
5228 option\MessageBreak
5229 `cleardoublepage' with one of it's\MessageBreak
5230 several values}
5231 \scr@package@not@recommended{fancyhdr}{%
5232 \MessageBreak
5233 package `scrlayer' or `scrlayer-scrpage', because\MessageBreak
5234 they support KOMA-Script classes.\MessageBreak
5235 With `fancyhdr' several features of class `\KOMAClassName'\MessageBreak
5236 like options `headsepline', `footsepline' or command\MessageBreak
5237 `\string\MakeMarkcase' and the commands `\string\setkomafont' and\MessageBreak
5238 `\string\addtokomafont' for the page style elements need\MessageBreak
5239 explicite user intervention to work}
5240 \scr@package@not@recommended{minitoc}{}
5241 \scr@package@not@recommended{multitoc}{%
5242 package `multicol' and, e.g.:\MessageBreak
5243 \space\space
5244 \string\BeforeStartingTOC{\string\begin{multicols}{2}}\MessageBreak
5245 \space\space
5246 \string\AfterStartingTOC{\string\end{multicols}}\MessageBreak
5247 to make all ToCs two-columned.\MessageBreak
5248 \@ifpackagelater{2018/07/18}{}{%
5249 Note, package `multitoc' breaks additional\MessageBreak
5250 ToCs generated by `\string\DeclareNewTOC' or\MessageBreak
5251 packages like `listings' or `newcaption' and\MessageBreak
5252 even the standard table of contents,\MessageBreak
5253 list of figures or list of tables,\MessageBreak
5254 if you omit the corresponding options `toc',\MessageBreak
5255 `lof' or `lot'.%
5256 }%
5257 }
5258 \scr@package@not@recommended{parskip}{%
5259 option\MessageBreak
5260 `parskip' with one of it's several values}
5261 \scr@package@not@recommended{titleps}{%
5262 package `scrlayer-scrpage'}
5263 \scr@package@not@recommended{titlesec}{%
5264 KOMA-Script features\MessageBreak
5265 like \string\setkomafont, \string\RedeclareSectionCommand,
5266 \string\sectionlinesformat\MessageBreak
5267 and several others to re-configure section\MessageBreak
5268 headings}
5269 \AfterPackage*{sectsty}{%
5270 \@ifpackagelater{sectsty}{2002/02/26}{%
5271 \ClassInfo{\KOMAClassName}{Unknown `sectsty' release.\MessageBreak
5272 Cross your fingers, that is compatible%
5273 }%
5274 }{%
5275 \ClassWarning{\KOMAClassName}{%
5276 Incompatible package `sectsty' loaded!\MessageBreak
5277 Package `sectsty' up to version 2.0.2 is incompatible\MessageBreak
5278 with KOMA-Script from version 2.8e released in 2001.\MessageBreak
5279 You should avoid that package and configure the\MessageBreak
5280 section titles of your document using the KOMA-Script\MessageBreak
5281 user interface, e.g., \string\chapterlinesformat,\MessageBreak
5282 \string\RedeclareSectionCommand\space etc. or you should ask\MessageBreak
5283 the `sectsty' maintainer for a more compatible release.\MessageBreak
5284 Ignoring this warning could result in several error\MessageBreak
5285 messages and formatting issues after loading package\MessageBreak
5286 `sectsty'%
5287 }%
5288 }%
5289 }
5290 \scr@package@not@recommended{tocbibind}{%
5291 options like `listof=totoc'\MessageBreak
5292 or `bibliography=totoc', or commands like\MessageBreak
5293 `\string\setuptoc{toc}{totoc}' instead of this package,\MessageBreak
5294 because it breaks several KOMA-Script features of\MessageBreak
5295 the list of figures, list of tables, bibliography,\MessageBreak
5296 index and the running head%
5297 }
5298 \scr@package@not@recommended{tocloft}{%
5299 options like `listof=entryprefix',\MessageBreak
5300 commands like `\string\listoflofentryname' or\MessageBreak
5301 `\string\listoflotentryname',
5302 and `\string\DeclareTOCStyleEntry' or\MessageBreak
5303 `\string\RedeclareSectionCommand'
5304 instead of this package,\MessageBreak
5305 because it breaks several KOMA-Script features of\MessageBreak
5306 the list of figures, list of tables and table of\MessageBreak
5307 contents, i.e., options like `listof=numbered',\MessageBreak
5308 `listof=flat or `toc=flat', commands like\MessageBreak
5309 `\string\BeforeTOCHead{...}' and
5310 `\string\AfterTOCHead{...}',\MessageBreak
5311 `\string\BeforeStartingTOC{...}' and
5312 \string\AfterStartingTOC{...}',\MessageBreak
5313 all features of `\string\DeclareTOCStyleEntry',\MessageBreak
5314 and the ToC entry features of `\string\DeclareSecionCommand'\MessageBreak
5315 and `\string\RedeclareSectionCommand' of levels\MessageBreak
5316 `part',
5317 `chapter',
5318 `section', `subsection',\MessageBreak
5319 `subsubsection', `paragraph' and `subparagraph'%
5320 }
5321 \BeforePackage{minitoc}{%
5322 \let\scr@mt@saved@sect\@sect
5323 }
5324 \AfterPackage{minitoc}{%
5325 \def\@tempa#1#2#3#4#5#6[#7]#8{%
5326 \ifnum #2<1 \relax
5327 \addtocontents{toc}{\protect\sectbegin}
5328 \fi
5329 \stc@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
5330 }%
5331 \ifx\@sect\@tempa
5332 \def\@tempa#1#2#3#4#5#6[#7]#8{
5333 \expandafter
5334 \ifx\csname #1\endcsname\section\relax
5335 \addcontentsline{lof}{xsect}{#7}%
5336 \addcontentsline{lot}{xsect}{#7}%
5337 \fi
5338 \ifx\csname #1\endcsname\starsection\relax
5339 \addcontentsline{lof}{xsect}{#7}%
5340 \addcontentsline{lot}{xsect}{#7}%
5341 \fi
5342 \ifnum #2>\c@secnumdepth\relax
5343 \let\@svsec\@empty
5344 \else
5345 \refstepcounter{#1}%
5346 \edef\@svsec{\csname the#1\endcsname\hskip 1em}%
5347 \fi
5348 \@tempskipa #5\relax
5349 \ifdim \@tempskipa>\z@
5350 \begingroup #6\relax
5351 \@hangfrom{\hskip #3\relax\@svsec}%
5352 {\interlinepenalty \@M #8\par}%
5353 \endgroup
5354 \csname #1mark\endcsname{#7}%
5355 \addcontentsline{toc}{#1}{%
5356 \ifnum #2>\c@secnumdepth\relax
5357 \else
5358 \protect\numberline{\csname the#1\endcsname}%
5359 \fi
5360 #7%
5361 }%
5362 \else
5363 \def\@svsechd{#6\hskip #3\relax
5364 \@svsec #8\csname #1mark\endcsname{#7}%
5365 \addcontentsline{toc}{#1}{%
5366 \ifnum #2>\c@secnumdepth\relax
5367 \else
5368 \protect\numberline{\csname the#1\endcsname}
5369 \fi
5370 #7}%
5371 }%
5372 \fi
5373 \@xsect{#5}%
5374 }%
5375 \ifx\stc@sect\@tempa
5376 \ClassWarning{\KOMAClassName}{%
5377 Redefining minitoc's internal command
5378 `\string\stc@sect'\MessageBreak
5379 to prevent minitoc to destroy several features\MessageBreak
5380 of KOMA-Script%
5381 }%
5382 \let\stc@sect\scr@mt@saved@sect
5383 \else
5384 \ClassInfo{\KOMAClassName}{%
5385 Deactivating the `minitoc' workaround,\MessageBreak
5386 because of unexpected definition of\MessageBreak
5387 `\string\stc@sect'%
5388 }%
5389 \let\scr@mt@saved@sect\relax
5390 \fi
5391 \else
5392 \ifx\@sect\scr@mt@saved@sect
5393 \ClassInfo{\KOMAClassName}{%
5394 Deactivating the `minitoc' workaround for
5395 `\string\@sect',\MessageBreak
5396 because it is not needed%
5397 }%
5398 \else
5399 \ClassInfo{\KOMAClassName}{%
5400 Deactivating the `minitoc' workaround,\MessageBreak
5401 because of unexpected definition of\MessageBreak
5402 `\string\@sect'%
5403 }%
5404 \fi
5405 \let\scr@mt@saved@sect\relax
5406 \fi
5407 }
5408 %%% From File: $Id: scrkernel-pagestyles.dtx 4058 2023-06-16 08:32:27Z kohm $
5409 %%% (run: body)
5410 \newcommand*{\set@tempdima@hw}{%
5411 \setlength{\@tempdima}{\textwidth}%
5412 \if@mincl
5413 \addtolength{\@tempdima}{\marginparsep}%
5414 \addtolength{\@tempdima}{\marginparwidth}%
5415 \fi
5416 }
5417 \newcommand*{\pnumfont}{\normalfont\normalcolor}
5418 \newcommand*{\headfont}{\normalfont\normalcolor\slshape}
5419 \newcommand*{\footfont}{}
5420 \newcommand*{\scr@fnt@pagenumber}{\pnumfont}
5421 \aliaskomafont{pagination}{pagenumber}
5422 \newcommand*{\scr@fnt@pageheadfoot}{\headfont}
5423 \aliaskomafont{pagehead}{pageheadfoot}
5424 \newcommand*{\scr@fnt@pagefoot}{\footfont}
5425 \newcommand*{\scr@fnt@wrn@pagefoot}[1]{%
5426 This class does not use font element `pagefoot'!\MessageBreak
5427 Maybe you should load package `scrlayer-scrpage',\MessageBreak
5428 before using this element%
5429 }
5430 \newcommand*{%
5431 \pagemark
5432 }{%
5433 {\usekomafont{pagenumber}{%
5434 \thepage}}}
5435 \renewcommand*{\ps@plain}{%
5436 \renewcommand*{\@oddhead}{}%
5437 \let\@evenhead\@oddhead
5438 \renewcommand*{\@evenfoot}{%
5439 \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
5440 \if@fsl \hrule \vskip 3\p@ \fi
5441 \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
5442 \renewcommand*{\@oddfoot}{%
5443 \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
5444 \if@fsl \hrule \vskip 3\p@ \fi
5445 \hb@xt@ \@tempdima{{\hfil\pagemark
5446 \if@twoside\else\hfil\fi}}}}\hss}%
5447 }%
5448 \newcommand*{\ps@headings}{\let\@mkboth\markboth
5449 \renewcommand*{\@evenhead}{%
5450 \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
5451 \hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}%
5452 \if@hsl \vskip 1.5\p@ \hrule \fi}}}%
5453 \renewcommand*{\@oddhead}{%
5454 \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
5455 \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark
5456 \if@twoside\else\hfil\fi}}%
5457 \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
5458 \renewcommand*{\@evenfoot}{%
5459 \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
5460 \if@fsl \hrule \vskip 3\p@ \fi
5461 \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
5462 \renewcommand*{\@oddfoot}{%
5463 \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
5464 \if@fsl \hrule \vskip 3\p@ \fi
5465 \hb@xt@ \@tempdima{{\hfil\pagemark
5466 \if@twoside\else\hfil\fi}}}}\hss}%
5467 \renewcommand*{\sectionmark}[1]{%
5468 \if@twoside\expandafter\markboth\else\expandafter\markright\fi
5469 {%
5470 \Ifnumbered{section}{\MakeMarkcase{\sectionmarkformat}}{}%
5471 \MakeMarkcase{##1}%
5472 }{}%
5473 }%
5474 \renewcommand*{\subsectionmark}[1]{%
5475 \if@twoside
5476 \markright{%
5477 \Ifnumbered{subsection}{\MakeMarkcase{\subsectionmarkformat}}{}%
5478 \MakeMarkcase{##1}%
5479 }%
5480 \fi
5481 }%
5482 }%
5483 \newcommand*{\ps@myheadings}{\let\@mkboth\@gobbletwo
5484 \renewcommand*{\@evenhead}{%
5485 \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
5486 \hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}%
5487 \if@hsl \vskip 1.5\p@ \hrule \fi}}}%
5488 \renewcommand*{\@oddhead}{%
5489 \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
5490 \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark
5491 \if@twoside\else\hfil\fi}}%
5492 \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
5493 \renewcommand*{\@evenfoot}{%
5494 \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
5495 \if@fsl \hrule \vskip 3\p@ \fi
5496 \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
5497 \renewcommand*{\@oddfoot}{%
5498 \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
5499 \if@fsl \hrule \vskip 3\p@ \fi
5500 \hb@xt@ \@tempdima{{\hfil\pagemark
5501 \if@twoside\else\hfil\fi}}}}\hss}%
5502 \renewcommand*{\subsectionmark}[1]{}%
5503 \renewcommand*{\sectionmark}[1]{}%
5504 }
5505 \newcommand*{\titlepagestyle}{plain}
5506 \newcommand*{\indexpagestyle}{plain}
5507 \pagestyle{plain}
5508 \pagenumbering{arabic}
5509 %%% From File: $Id: scrlayer.dtx 4145 2025-05-13 16:54:14Z kohm $
5510 %%% (run: body)
5511 \providecommand*{\@mkleft}{%
5512 \IfActiveMkBoth{\markleft}{\@gobble}%
5513 }%
5514 \providecommand*{\@mkright}{%
5515 \IfActiveMkBoth{\markright}{\@gobble}%
5516 }%
5517 \providecommand{\@mkdouble}[1]{%
5518 \@mkboth{#1}{#1}%
5519 }
5520 %%% From File: $Id: scrkernel-floats.dtx 4197 2025-08-15 09:13:30Z kohm $
5521 %%% (run: body)
5522 \newlength{\abovecaptionskip}
5523 \newlength{\belowcaptionskip}
5524 \setlength{\abovecaptionskip}{10\p@}
5525 \setlength{\belowcaptionskip}{0\p@}
5526 \newcommand*{\captionformat}{:\ }
5527 \AddToHook{package/caption3/after}{%
5528 \DeclareCaptionLabelSeparator{koma}{\captionformat}%
5529 \SetCaptionDefault{labelseparator}{koma}%
5530 }
5531 \newcommand*{\scap@caption}{}
5532 \newcommand*{\scap@width}{\linewidth}
5533 \newcommand*{\scap@move}{\z@}
5534 \newif\ifscap@alt
5535 \newcommand*{\scap@currentlabel}{}
5536 \newcommand*{\scap@currentlabelname}{}
5537 \newcommand*{\scap@currentHref}{}
5538 \newcommand*{\@captionbeside}{}
5539 \long\def\@captionbeside[#1]#2{%
5540 \kernel@ifnextchar [%]
5541 {\@@captionbeside[{#1}]{#2}}
5542 {\c@pti@nb@sid@[{#1}]{#2}}%
5543 }
5544 \newcommand*{\@@captionbeside}{}
5545 \long\def\@@captionbeside[#1]#2[#3]{%
5546 \def\scap@pos{#3}%
5547 \kernel@ifnextchar [%]
5548 {\@@@captionbeside[{#1}]{#2}}
5549 {\c@pti@nb@sid@[{#1}]{#2}}%
5550 }
5551 \newcommand*{\@@@captionbeside}{}
5552 \long\def\@@@captionbeside[#1]#2[#3]{%
5553 \def\scap@width{#3}%
5554 \kernel@ifnextchar [%]
5555 {\@@@@captionbeside[{#1}]{#2}}
5556 {\setlength{\@tempdima}{#3}%
5557 \addtolength{\@tempdima}{-\linewidth}%
5558 \setlength{\@tempdima}{-.5\@tempdima}%
5559 \edef\scap@move{\the\@tempdima}%
5560 \c@pti@nb@sid@[{#1}]{#2}}%
5561 }
5562 \newcommand*{\@@@@captionbeside}{}
5563 \long\def\@@@@captionbeside[#1]#2[#3]{%
5564 \def\scap@move{#3}%
5565 \kernel@ifstar
5566 {\scap@alttrue\c@pti@nb@sid@[{#1}]{#2}}
5567 {\scap@altfalse\c@pti@nb@sid@[{#1}]{#2}}%
5568 }
5569 \newbox\c@pti@nb@sid@b@x
5570 \newcommand{\c@pti@nb@sid@}{}
5571 \long\def\c@pti@nb@sid@[#1]#2{%
5572 \def\scap@caption{%
5573 \if c\scap@valign
5574 \setlength{\abovecaptionskip}{\z@}%
5575 \else \if t\scap@valign
5576 \setlength{\abovecaptionskip}{-\ht\strutbox}%
5577 \else \if b\scap@valign
5578 \setlength{\abovecaptionskip}{\z@}%
5579 \fi
5580 \fi
5581 \fi
5582 \setlength{\belowcaptionskip}{-\dp\strutbox}%
5583 \captionbelow[{#1}]{#2}%
5584 }%
5585 \begin{lrbox}{\c@pti@nb@sid@b@x}%
5586 }
5587 \newenvironment*{captionbeside}{%
5588 \@dblarg\@captionbeside
5589 }{%
5590 \end{lrbox}%
5591 \settowidth{\@tempdima}{\usebox\c@pti@nb@sid@b@x}%
5592 \setlength{\@tempdimb}{\scap@width}%
5593 \addtolength{\@tempdimb}{-\@tempdima}%
5594 \addtolength{\@tempdimb}{-\columnsep}%
5595 \ifdim \@tempdimb<2em
5596 \ClassWarning{\KOMAClassName}{%
5597 caption beside will be very, very small.\MessageBreak
5598 In most cases this will result in overfull and\MessageBreak
5599 underfull \string\hbox\space messages%
5600 }%
5601 \fi
5602 \onelinecaptionsfalse
5603 \setcapwidth[r]{\@tempdimb}%
5604 \let\@tempa\scap@pos
5605 \setlength{\@tempdimc}{\scap@move}%
5606 \if i\scap@pos\def\@tempa{l}\fi
5607 \if o\scap@pos\def\@tempa{r}\fi
5608 \if@twoside
5609 \Ifthispageodd{}{%
5610 \if o\scap@pos\def\@tempa{l}\fi
5611 \if i\scap@pos\def\@tempa{r}\fi
5612 \ifscap@alt
5613 \addtolength{\@tempdimc}{\scap@width}%
5614 \addtolength{\@tempdimc}{-\linewidth}%
5615 \setlength{\@tempdimc}{-\@tempdimc}%
5616 \fi
5617 }%
5618 \fi
5619 \hspace*{\@tempdimc}%
5620 \if l\@tempa
5621 \rlap{%
5622 \parbox[\scap@valign]{\@tempdimb}{\scap@caption
5623 \global\let\scap@currentlabel\@currentlabel
5624 \global\let\scap@currentcounter\@currentcounter
5625 \global\let\scap@currentlabelname\@currentlabelname
5626 \global\let\scap@currentHref\@currentHref
5627 }%
5628 \nobreak\hskip\columnsep
5629 \parbox[\scap@valign]{\wd\c@pti@nb@sid@b@x}{\usebox\c@pti@nb@sid@b@x}%
5630 }%
5631 \else
5632 \rlap{%
5633 \parbox[\scap@valign]{\wd\c@pti@nb@sid@b@x}{\usebox\c@pti@nb@sid@b@x}%
5634 \nobreak\hskip\columnsep
5635 \parbox[\scap@valign]{\@tempdimb}{\scap@caption
5636 \global\let\scap@currentlabel\@currentlabel
5637 \global\let\scap@currentcounter\@currentcounter
5638 \global\let\scap@currentlabelname\@currentlabelname
5639 \global\let\scap@currentHref\@currentHref
5640 }%
5641 }%
5642 \fi
5643 \par
5644 \aftergroup\let\aftergroup\@currentlabel\aftergroup\scap@currentlabel
5645 \aftergroup\let\aftergroup\@currentcounter\aftergroup\scap@currentcounter
5646 \aftergroup\let\aftergroup\@currentlabelname\aftergroup\scap@currentlabelname
5647 \aftergroup\let\aftergroup\@currentHref\aftergroup\scap@currentHref
5648 }
5649 \newcommand*\capfont{\normalfont\normalcolor}
5650 \newcommand*\caplabelfont{\normalfont\normalcolor}
5651 \newcommand*{\scr@fnt@caption}{\capfont}
5652 \newcommand*{\scr@fnt@captionlabel}{\caplabelfont}
5653 \AddToHook{package/caption3/after}{%
5654 \DeclareCaptionFont{scr@font}{\scr@fnt@caption}%
5655 \DeclareCaptionFont{scr@labelfont}{\scr@fnt@captionlabel}%
5656 \SetCaptionDefault{font}{scr@font}%
5657 \SetCaptionDefault{labelfont}{scr@labelfont}%
5658 }
5659 \newif\ifdofullc@p
5660 \dofullc@ptrue
5661 \newif\if@capbreak
5662 \@capbreakfalse
5663 \ExplSyntaxOn
5664 \NewDocumentCommand { \setcapindent } { s m }
5665 {
5666 \IfBooleanTF {#1}
5667 {
5668 \cs_set:Npe \cap@indent { \dim_eval:n { #2 } }
5669 \@capbreaktrue
5670 }
5671 {
5672 \cs_set:Npe \cap@indent { \dim_eval:n { #2 } }
5673 \@capbreakfalse
5674 }
5675 \dofullc@pfalse
5676 \__scrkernel_at_caption_package:n
5677 {
5678 \exp_args:No \msg_warning:nnee { \KOMAClassName }
5679 { using-caption }
5680 { \token_to_str:N\setcapindent\IfBooleanT{#1}*{#2} }
5681 {
5682 \token_to_str:N \captionsetup
5683 { indent=\ifdim\cap@indent<\z@\z@\else\cap@indent\fi }
5684 }
5685 \captionsetup { indent=\ifdim\cap@indent<\z@\z@\else\cap@indent\fi }
5686 }
5687 }
5688 \ExplSyntaxOff
5689 \newcommand*{\setcaphanging}{\dofullc@ptrue\@capbreakfalse}
5690 \expandafter\ifnum\scr@v@is@ge{3.41}%
5691 \newcommand*{\captionnopagebreak}{\nopagebreak}
5692 \else
5693 \newcommand*{\captionnopagebreak}{}
5694 \fi
5695 \newcommand*{\@abovecaptionbreak}{}
5696 \newcommand*{\@belowcaptionbreak}{}
5697 \let\@belowcaptionbreak\captionnopagebreak
5698 \IfFormatAtLeastTF{2023/11/01}{%
5699 \NewSocketPlug{tocbasic/swapskip/after}{swapbreak}{%
5700 \let\@abovecaptionbreak\captionnopagebreak
5701 \let\@belowcaptionbreak\relax
5702 }%
5703 \AssignSocketPlug{tocbasic/swapskip/after}{swapbreak}%
5704 }{%
5705 \AddToHook{tocbasic/swapskip/after}{&
5706 \let\@abovecaptionbreak\captionnopagebreak
5707 \let\@belowcaptionbreak\relax
5708 }%
5709 }
5710 \newcommand{\@makecaption}[2]{%
5711 \@abovecaptionbreak\vskip\abovecaptionskip\@abovecaptionbreak
5712 \@@makecaption\@firstofone{#1}{#2}%
5713 \@belowcaptionbreak\vskip\belowcaptionskip\@belowcaptionbreak
5714 }
5715 \newcommand*{\cap@width}{\hsize}
5716 \newcommand*{\cap@left}{\hfill}
5717 \newcommand*{\cap@right}{\hfill}
5718 \ExplSyntaxOn
5719 \prop_put:Non \g_msg_module_type_prop { \KOMAClassName } { Class }
5720 \exp_args:No \msg_new:nnn { \KOMAClassName }
5721 { minimum-value-needed }
5722 {
5723 You've~tried~#2~\msg_line_context:,~
5724 but~values~less~than~#1~are~not~allowed.~
5725 Using~#1~instead.
5726 }
5727 \exp_args:No \msg_new:nnn { \KOMAClassName }
5728 { caption-not-support-setcapwidth-option }
5729 {
5730 Ignoring~command~
5731 \token_to_str:N \setcapwidth [#1]{...}\\
5732 because~the~caption~package~is~being\\
5733 used~\msg_line_context:.
5734 }
5735 \exp_args:No \msg_new:nnn { \KOMAClassName }
5736 { caption-not-support-setcapdynwidth }
5737 {
5738 Ignoring~\token_to_str:N \setcapdynwidth \c_space_token
5739 because~the~caption~package~is~being~used~\msg_line_context:.
5740 }
5741 \exp_args:No \msg_new:nnnn { \KOMAClassName }
5742 { setcaption-unknown-option }
5743 { unknown~optional~position~argument~[#1]~\msg_line_context: }
5744 {
5745 Only~ONE~of~c,~l,~r,~i,~o~is~allowed~as~optional~argument~to~
5746 \token_to_str:N \setcapwidth \c_space_tl and~
5747 \token_to_str:N \setcapdynwidth \c_space_tl \msg_line_context:.
5748 }
5749 \exp_args:No \msg_new:nnn { \KOMAClassName }
5750 { using-caption }
5751 {
5752 Mapping~of\\
5753 \c_space_tl #1\\
5754 to\\
5755 \c_space_tl #2\\
5756 because~the~caption~package~is~being~used.\\
5757 When~using~the~caption~package,~it~is~recommended\\
5758 to~use~the~options~of~this~package~directly~instead\\
5759 of~the~KOMA-Script~setting~\msg_line_context:.
5760 }
5761 \NewDocumentCommand { \setcapwidth } { om }
5762 {
5763 \dim_compare:nNnTF { #2 } < { \c_zero_dim }
5764 {
5765 \exp_args:No \msg_warning:nnne { \KOMAClassName }
5766 { minimum-value-needed } { 0pt } { \dim_eval:n { #2 } }
5767 \def\cap@width{0pt}
5768 }
5769 {
5770 \cs_set:Npe \cap@width { \dim_eval:n { #2 } }
5771 }
5772 \IfPackageLoadedF { caption } { \__scrkernel_set_cap_left_right:n { #1 } }
5773 \__scrkernel_at_caption_package:n
5774 {
5775 \IfValueTF { #1 }
5776 {
5777 \exp_args:No \msg_warning:nne { \KOMAClassName }
5778 { caption-not-support-setcapwidth-option } { #1 }
5779 }
5780 {
5781 \exp_args:No \msg_warning:nnne { \KOMAClassName }
5782 { using-caption }
5783 { \setcapwidth{#2} }
5784 { \token_to_str:N \captionsetup { width=\cap@width } }
5785 \captionsetup { width=\cap@width }
5786 }
5787 }
5788 }
5789 \cs_new:Nn \__scrkernel_at_caption_package:n
5790 {
5791 \IfPackageLoadedTF { caption3 }
5792 {
5793 \cs_if_eq:NNTF \AtCaptionPackage \@notprerr
5794 { #1 }
5795 { \AtCaptionPackage { #1 } }
5796 }
5797 {
5798 \hook_gput_code:nnn { pkg / caption3 / after } { \KOMAClassName }
5799 { \AtCaptionPackage { #1 } }
5800 }
5801 }
5802 \__scrkernel_at_caption_package:n
5803 {
5804 \cs_set:Nn \__scrkernel_at_caption_package:n { ##1 }
5805 }
5806 \cs_new:Nn \__scrkernel_set_cap_left_right:n
5807 {
5808 \str_case:enF { #1 }
5809 {
5810 { c } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \hfill
5811 \cs_set_eq:NN \cap@right \hfill } }
5812 { l } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \relax
5813 \cs_set_eq:NN \cap@right \hfill } }
5814 { r } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \hfill
5815 \cs_set_eq:NN \cap@right \relax } }
5816 { i } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \relax
5817 \cs_set_eq:NN \cap@right \hfill
5818 \if@twoside
5819 \Ifthispageodd {} {
5820 \cs_set_eq:NN \cap@left \hfill
5821 \cs_set_eq:NN \cap@right \relax
5822 }
5823 \fi } }
5824 { o } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \hfill
5825 \cs_set_eq:NN \cap@right \relax
5826 \if@twoside
5827 \Ifthispageodd {
5828 \cs_set_eq:NN \cap@left \relax
5829 \cs_set_eq:NN \cap@right \hfill
5830 } { }
5831 \fi } }
5832 }
5833 {
5834 \IfValueT{ #1 }
5835 {
5836 \exp_args:No \msg_error:nnn { \KOMAClassName }
5837 { setcaption-unknown-option } { #1 }
5838 }
5839 }
5840 }
5841 \NewDocumentCommand { \setcapdynwidth } { om }
5842 {
5843 \IfPackageLoadedTF { caption }
5844 {
5845 \exp_args:No \msg_warning:nn { \KOMAClassName }
5846 { caption-not-support-setcapdynwidth }
5847 }
5848 {
5849 \cs_set:Npn \cap@width { #2 }
5850 \__scrkernel_set_cap_left_right:n { #1 }
5851 }
5852 }
5853 \ExplSyntaxOff
5854 \newcommand*{\cap@margin}{}
5855 \let\cap@margin=\relax%
5856 \ExplSyntaxOn
5857 \NewDocumentCommand {\setcapmargin} { s O{#3} m }
5858 {
5859 \IfBooleanTF {#1}
5860 {
5861 \cs_set:Npn \cap@margin
5862 {
5863 \onelinecaptionsfalse
5864 \cs_set:Npe \cap@width { \dim_eval:n { \hsize - #2 - #3 } }
5865 \if@twoside
5866 \Ifthispageodd
5867 {
5868 \cs_set:Npn \cap@left { \hspace*{#2} }
5869 \cs_set:Npn \cap@right { \hspace*{#3} }
5870 }
5871 {
5872 \cs_set:Npn \cap@left { \hspace*{#3} }
5873 \cs_set:Npn \cap@right { \hspace*{#2} }
5874 }
5875 \else
5876 \cs_set:Npn \cap@left { \hspace*{#2} }
5877 \cs_set:Npn \cap@right { \hspace*{#3} }
5878 \fi
5879 }
5880 \__scrkernel_at_caption_package:n
5881 {
5882 \exp_args:No \msg_warning:nnne { \KOMAClassName }
5883 { using-caption }
5884 { \setcapmargin*[#2]{#3} }
5885 { \token_to_str:N \captionsetup { twoside, slc=0, margin={#2,#3} } }
5886 \captionsetup{ twoside, slc=0, margin={#2,#3} }
5887 }
5888 }
5889 {
5890 \cs_set:Npn \cap@margin
5891 {
5892 \onelinecaptionsfalse
5893 \cs_set:Npe \cap@width { \dim_eval:n { \hsize - #2 - #3 } }
5894 \cs_set:Npn \cap@left { \hspace*{#2} }
5895 \cs_set:Npn \cap@right { \hspace*{#3} }
5896 }
5897 \__scrkernel_at_caption_package:n
5898 {
5899 \exp_args:No \msg_warning:nnne { \KOMAClassName }
5900 { using-caption }
5901 { \setcapmargin[#2]{#3} }
5902 { \token_to_str:N \captionsetup { oneside, slc=0, margin={#2,#3} } }
5903 \captionsetup{oneside,slc=0,margin={#2,#3}}
5904 }
5905 }
5906 }
5907 \ExplSyntaxOff
5908 \NewHook{\KOMAClassName/makecaption/deactivate}
5909 \newcommand{\@@makecaption}[3]{%
5910 \cap@margin
5911 \begingroup
5912 \ifonelinecaptions
5913 \def\stepcounter##1{\advance\value{##1}\@ne}%
5914 \let\refstepcounter\stepcounter
5915 \let\label\@gobble@om
5916 \let\index\@gobble@som
5917 \let\glossary\@gobble@om
5918 \let\@footnotetext=\@gobble
5919 \let\hypertarget\@gobbletwo
5920 \UseHook{\KOMAClassName/makecaption/deactivate}%
5921 \edef\@xnewline{%
5922 \unexpanded{\ClassInfo{\KOMAClassName}{%
5923 Workaround for not recommended usage of \string\\ or\MessageBreak
5924 \string\newline in caption text
5925 }%
5926 \hspace*{\linewidth}\hspace{1sp}%
5927 }%
5928 \unexpanded\expandafter{\@xnewline}%
5929 }%
5930 \edef\@xcentercr{%
5931 \unexpanded{\ClassInfo{\KOMAClassName}{%
5932 Workaround for not recommended usage of \string\\ or\MessageBreak
5933 \string\newline in caption text
5934 }%
5935 \hspace*{\linewidth}\hspace{1sp}%
5936 }%
5937 \unexpanded\expandafter{\@xcentercr}%
5938 }%
5939 \settowidth{\@tempdima}{\scr@@makesinglelinecaption{#1}{#2}{#3}}%
5940 \ifdim\@tempdima>\cap@width
5941 \aftergroup\scr@makemultilinecaption
5942 \else
5943 \aftergroup\scr@makesinglelinecaption
5944 \fi
5945 \else
5946 \aftergroup\scr@makemultilinecaption
5947 \fi
5948 \endgroup
5949 {#1}{#2}{#3}%
5950 }
5951 \newcommand{\scr@makesinglelinecaption}[3]{%
5952 {%
5953 \usefontofkomafont{caption}{%
5954 \hb@xt@\hsize{%
5955 \cap@left
5956 \scr@@makesinglelinecaption{#1}{#2}{#3}%
5957 \cap@right
5958 }\par\kern\dp\strutbox%
5959 }%
5960 }\kern-\dp\strutbox
5961 }
5962 \newcommand{\scr@@makesinglelinecaption}[3]{%
5963 \usekomafont{caption}{\strut\ignorespaces
5964 #1{{\usekomafont{captionlabel}{\MakeCaptionLabelCase{#2}\captionformat}}}%
5965 \MakeCaptionTextCase{#3}\unskip}%
5966 }
5967 \newcommand{\scr@makemultilinecaption}[3]{%
5968 {%
5969 \usefontofkomafont{caption}{%
5970 \hb@xt@\hsize{%
5971 \cap@left
5972 \vbox{\hsize\cap@width\linewidth\hsize
5973 \scr@ifundefinedorrelax{@captype}{%
5974 \ClassWarning{\KOMAClassName}{%
5975 `\string\caption' outside float.\MessageBreak
5976 Seems you are using `\string\caption' outside a
5977 float.\MessageBreak
5978 Maybe you are using a package that uses
5979 `\string\@makecaption'\MessageBreak
5980 without setting `\string\@captype' before.\MessageBreak
5981 Because I cannot detect the caption type, I'm using\MessageBreak
5982 the empty one.%
5983 }%
5984 \let\@captype\@empty
5985 }{}%
5986 \scr@ifundefinedorrelax{ragged\@captype caption}{\raggedcaption}{%
5987 \@nameuse{ragged\@captype caption}%
5988 }%
5989 \ifdofullc@p
5990 \@hangfrom{%
5991 \strut
5992 \scr@smashdp{%
5993 #1{%
5994 \usekomafont{caption}{%
5995 \usekomafont{captionlabel}{%
5996 \MakeCaptionLabelCase{#2}\captionformat
5997 }%
5998 }%
5999 }%
6000 }%
6001 }%
6002 {\usekomafont{caption}{\MakeCaptionTextCase{#3}\scr@endstrut\par}}%
6003 \else
6004 \ifdim\cap@indent<\z@
6005 \strut
6006 #1{%
6007 \usekomafont{caption}{%
6008 \usekomafont{captionlabel}{%
6009 \MakeCaptionLabelCase{#2}\captionformat\par
6010 }%
6011 }%
6012 }%
6013 \noindent{\usekomafont{caption}{%
6014 \hspace*{-\cap@indent}%
6015 \MakeCaptionTextCase{#3}\scr@endstrut\par
6016 }}%
6017 \else
6018 \if@capbreak
6019 \strut
6020 #1{%
6021 \usekomafont{caption}{%
6022 \usekomafont{captionlabel}{%
6023 \MakeCaptionLabelCase{#2}\captionformat\par
6024 }%
6025 }%
6026 }%
6027 \noindent\@hangfrom{\hspace*{\cap@indent}}%
6028 {\usekomafont{caption}{%
6029 \MakeCaptionTextCase{#3}\scr@endstrut\par
6030 }}%
6031 \else
6032 \@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}%
6033 {%
6034 \hspace{-\cap@indent}%
6035 \scr@smashdp{%
6036 #1{\usekomafont{caption}{%
6037 \usekomafont{captionlabel}{%
6038 \MakeCaptionLabelCase{#2}\captionformat
6039 }%
6040 }%
6041 }%
6042 }%
6043 {\usekomafont{caption}{%
6044 \MakeCaptionTextCase{#3}\scr@endstrut}\par
6045 }%
6046 }%
6047 \fi
6048 \fi
6049 \fi
6050 }%
6051 \cap@right
6052 }\par\kern\dp\strutbox
6053 }%
6054 }\kern-\dp\strutbox
6055 }
6056 \newcommand{\MakeCaptionLabelCase}[1]{#1}
6057 \newcommand{\MakeCaptionTextCase}[1]{#1}
6058 \newcommand*\setcaptionalignment{%
6059 \kernel@ifnextchar [%]
6060 {\@setcaptionalignment}
6061 {%
6062 \scr@ifundefinedorrelax{@captype}{\@setcaptionalignment}{%
6063 \edef\reserved@a{\noexpand\@setcaptionalignment[{\@captype}]}\reserved@a
6064 }%
6065 }%
6066 }%
6067 \newcommand*\@setcaptionalignment[2][]{%
6068 \IfArgIsEmpty{#1}{}{%
6069 \expandafter\ifnum
6070 \scr@ifundefinedorrelax{#1}{0}{\scr@ifundefinedorrelax{end#1}{0}{1}}=0
6071 \ClassWarning{\KOMAClassName}{%
6072 float type `#1' defined not yet,\MessageBreak
6073 but setting ragged mode for captions of\MessageBreak
6074 float type `#1'%
6075 }%
6076 \fi
6077 }%
6078 \def\reserved@a{#2}%
6079 \Ifstr{\reserved@a}{j}{%
6080 \expandafter\let\csname ragged#1caption\endcsname\@empty
6081 }{%
6082 \Ifstr{\reserved@a}{l}{%
6083 \scr@ifundefinedorrelax{LaTeXraggedright}{%
6084 \expandafter\let\csname ragged#1caption\endcsname\raggedright
6085 }{%
6086 \expandafter\let\csname ragged#1caption\endcsname\LaTeXraggedright
6087 }%
6088 }{%
6089 \Ifstr{\reserved@a}{r}{%
6090 \scr@ifundefinedorrelax{LaTeXraggedleft}{%
6091 \expandafter\let\csname ragged#1caption\endcsname\raggedleft
6092 }{%
6093 \expandafter\let\csname ragged#1caption\endcsname\LaTeXraggedleft
6094 }%
6095 }{%
6096 \Ifstr{\reserved@a}{c}{%
6097 \scr@ifundefinedorrelax{LaTeXcentering}{%
6098 \expandafter\let\csname ragged#1caption\endcsname\centering
6099 }{%
6100 \expandafter\let\csname ragged#1caption\endcsname\LaTeXcentering
6101 }%
6102 }{%
6103 \Ifstr{\reserved@a}{J}{%
6104 \scr@ifundefinedorrelax{justifying}{%
6105 \scr@caption@raggede@warning{J}{\justifying}%
6106 \expandafter\let\csname ragged#1caption\endcsname\@empty
6107 }{%
6108 \expandafter\let\csname ragged#1caption\endcsname\justifying
6109 }%
6110 }{%
6111 \Ifstr{\reserved@a}{L}{%
6112 \scr@ifundefinedorrelax{RaggedRight}{%
6113 \scr@caption@raggede@warning{L}{\RaggedRight}%
6114 \expandafter\let\csname ragged#1caption\endcsname\raggedright
6115 }{%
6116 \expandafter\let\csname ragged#1caption\endcsname\RaggedRight
6117 }%
6118 }{%
6119 \Ifstr{\reserved@a}{R}{%
6120 \scr@ifundefinedorrelax{RaggedLeft}{%
6121 \scr@caption@raggede@warning{R}{\RaggedLeft}%
6122 \expandafter\let\csname ragged#1caption\endcsname\raggedleft
6123 }{%
6124 \expandafter\let\csname ragged#1caption\endcsname\RaggedLeft
6125 }%
6126 }{%
6127 \Ifstr{\reserved@a}{C}{%
6128 \scr@ifundefinedorrelax{Centering}{%
6129 \scr@caption@raggede@warning{C}{\Centering}%
6130 \expandafter\let\csname ragged#1caption\endcsname\centering
6131 }{%
6132 \expandafter\let\csname ragged#1caption\endcsname\Centering
6133 }%
6134 }{%
6135 \Ifstr{\reserved@a}{}{%
6136 \expandafter\let\csname ragged#1caption\endcsname\relax
6137 }{%
6138 \ClassError{\KOMAClassName}{unknown alignment char `#2'}{%
6139 \string\setcaptionalignment\space supports
6140 only:\MessageBreak
6141 \space\space c - centered captions,\MessageBreak
6142 \space\space j - justified captions,\MessageBreak
6143 \space\space l - left align captions,\MessageBreak
6144 \space\space r - right aligned captions,\MessageBreak
6145 \space\space C - centered captions with
6146 `ragged2e',\MessageBreak
6147 \space\space J - justified captions with
6148 `ragged2e',\MessageBreak
6149 \space\space L - left align captions with
6150 `ragged2e',\MessageBreak
6151 \space\space R - right aligned captions with
6152 `ragged2e',\MessageBreak
6153 or an empty argument to remove special
6154 alignment.\MessageBreak
6155 If you'd continue, I'd not change the alignment.%
6156 }%
6157 }%
6158 }%
6159 }%
6160 }%
6161 }%
6162 }%
6163 }%
6164 }%
6165 }%
6166 }
6167 \newcommand*{\scr@caption@raggede@warning}[2]{%
6168 \begingroup
6169 \lowercase{\def\reserved@a{#1}}%
6170 \ClassWarning{\KOMAClassName}{%
6171 `\string#2' undefined!\MessageBreak
6172 To avoid replacing caption alignment `#1' by `\reserved@a'\MessageBreak
6173 you should load package `ragged2e' before using\MessageBreak
6174 `\string\setcaptionalignment'%
6175 }%
6176 \endgroup
6177 }
6178 \newcommand*\raggedcaption{}
6179 \AddToHook{package/caption3/after}{%
6180 \DeclareCaptionFormat{koma}[#1#2#3\par]{%
6181 \ifdofullc@p
6182 \caption@useformat{hang}{#1}{#2}{#3}%
6183 \else
6184 #1#2%
6185 \ifdim\cap@indent<\z@
6186 \par
6187 \noindent\hspace*{-\cap@indent}%
6188 \else\if@capbreak
6189 \par
6190 \fi\fi
6191 #3\par
6192 \fi}%
6193 \SetCaptionDefault{format}{koma}
6194 \DeclareCaptionLabelFormat{koma}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
6195 \SetCaptionFallback{labelformat}{koma}
6196 }
6197 \newcommand*{\scr@caption@before@longtable@warning}[1]{%
6198 \ClassWarning{\KOMAClassName}{%
6199 you've loaded package `#1' before package\MessageBreak
6200 `longtable'!\MessageBreak
6201 Because of this package `#1' isn't able to\MessageBreak
6202 control `\string\caption' at longtables. \space After loading
6203 \MessageBreak
6204 package `#1' KOMA-Script also doesn't control\MessageBreak
6205 `\string\caption'.\MessageBreak
6206 I think, you should load package `caption' after\MessageBreak
6207 package `longtable'%
6208 }%
6209 }
6210 \AfterPackage{longtable}{%
6211 \if@komalongtable
6212 \renewcommand{\LT@makecaption}[3]{%
6213 \LT@mcol\LT@cols c{%
6214 \hbox to\z@{\hss\parbox[t]\linewidth{%
6215 \if@captionabove\else\vskip\belowcaptionskip\fi
6216 \@@makecaption{#1}{#2}{#3}%
6217 \endgraf
6218 \if@captionabove\vskip\abovecaptionskip\fi
6219 }%
6220 \hss
6221 }%
6222 }%
6223 }%
6224 \newcommand*{\scr@LT@array}{}%
6225 \let\scr@LT@array=\LT@array
6226 \renewcommand*{\LT@array}{%
6227 \def\@captype{table}%
6228 \@ifundefined{LTcaptype}{}{%
6229 \Ifstr{\LTcaptype}{}{}{\let\@captype\LTcaptype}%
6230 }%
6231 \csname tocbasic_if_caption_above:TF\endcsname
6232 {\@captionabovetrue}{\@captionabovefalse}%
6233 \def\captionabove{\noalign{\global\@captionabovetrue}%
6234 \LT@caption}%
6235 \def\captionbelow{\noalign{\global\@captionabovefalse}%
6236 \LT@caption}%
6237 \scr@LT@array
6238 }%
6239 \ClassInfo{\KOMAClassName}{%
6240 longtable captions redefined%
6241 }%
6242 \fi
6243 }
6244 \newcommand*{\fs@komaabove}{%
6245 \let\@fs@capt\floatc@komascript
6246 \let\@fs@pre\@empty
6247 \def\@fs@mid{\vskip\abovecaptionskip}%
6248 \let\@fs@post\@empty
6249 \let\@fs@iftopcapt\iftrue}
6250 \newcommand*{\fs@komabelow}{%
6251 \let\@fs@capt\floatc@komascript
6252 \let\@fs@pre\@empty
6253 \def\@fs@mid{\vskip\abovecaptionskip}%
6254 \let\@fs@post\@empty
6255 \let\@fs@iftopcapt\iffalse}
6256 \newcommand{\floatc@komascript}{\@@makecaption\@firstofone}
6257 \setcounter{topnumber}{2}
6258 \renewcommand*\topfraction{.7}
6259 \setcounter{bottomnumber}{1}
6260 \renewcommand*\bottomfraction{.3}
6261 \setcounter{totalnumber}{3}
6262 \renewcommand*\textfraction{.2}
6263 \renewcommand*\floatpagefraction{.5}
6264 \setcounter{dbltopnumber}{2}
6265 \renewcommand*\dbltopfraction{.7}
6266 \renewcommand*\dblfloatpagefraction{.5}
6267 \newenvironment{captionofbeside}[1]{%
6268 \def\@captype{#1}%
6269 \captionbeside
6270 }{%
6271 \endcaptionbeside
6272 }
6273 \newcommand*\figurename{Figure}
6274 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6275 UKenglish,ukenglish,USenglish,usenglish}\figurename{Figure}
6276 \newcommand*\tablename{Table}
6277 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6278 UKenglish,ukenglish,USenglish,usenglish}\tablename{Table}
6279 \DeclareNewTOC[%
6280 type=figure,
6281 float,
6282 nonfloat,
6283 floatpos=tbp,
6284 floattype=1,
6285 tocentryindent=1.5em,
6286 tocentrynumwidth=2.3em,
6287 ]{lof}
6288 \expandafter\ifnum\scr@v@is@lt{3.35}%
6289 \renewcommand*\thefigure{\@arabic\c@figure}
6290 \fi
6291 \DeclareNewTOC[%
6292 type=table,
6293 float,
6294 nonfloat,
6295 floatpos=tbp,
6296 floattype=2,
6297 tocentryindent=1.5em,
6298 tocentrynumwidth=2.3em,
6299 ]{lot}
6300 \expandafter\ifnum\scr@v@is@lt{3.35}%
6301 \renewcommand*\thetable{\@arabic\c@table}
6302 \fi
6303 %%% From File: $Id: scrkernel-footnotes.dtx 4245 2025-11-26 08:59:26Z kohm $
6304 %%% (run: body)
6305 \renewcommand*\footnoterule{%
6306 \normalsize\ftn@rule@test@values
6307 \kern-\dimexpr 2.6\p@+\ftn@rule@height\relax
6308 \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi
6309 {\usekomafont{footnoterule}{%
6310 \hrule \@height\ftn@rule@height \@width\ftn@rule@width}}%
6311 \kern 2.6\p@}
6312 \newcommand*{\ftn@rule@test@values}{%
6313 \ifdim\ftn@rule@height <\z@
6314 \ClassWarning{\KOMAClassName}{%
6315 You might get into trouble, because the\MessageBreak
6316 height of the footnote rule has a value\MessageBreak
6317 less than 0%
6318 }%
6319 \else
6320 \ifdim\ftn@rule@height >\dimexpr\skip\footins -2.6\p@\relax
6321 \ClassWarning{\KOMAClassName}{%
6322 You might get into trouble, because the\MessageBreak
6323 height of the footnote rule has a value\MessageBreak
6324 greater than \the\dimexpr\skip\footins -2.6\p@\relax
6325 }%
6326 \fi
6327 \fi
6328 \ifdim\ftn@rule@width <\z@
6329 \ClassWarning{\KOMAClassName}{%
6330 You might get into trouble, because the width\MessageBreak
6331 or length of the footnote rule has a value\MessageBreak
6332 less than 0pt%
6333 }%
6334 \else
6335 \ifdim\ftn@rule@width >\columnwidth
6336 \ClassWarning{\KOMAClassName}{%
6337 You might get into trouble, because the width\MessageBreak
6338 or length of the footnote rule has a value\MessageBreak
6339 greater than \string\columnwidth
6340 }%
6341 \fi
6342 \fi
6343 }
6344 \newkomafont{footnoterule}{}
6345 \newcommand*{\ftn@rule@width}{.4\columnwidth}
6346 \newcommand*{\ftn@rule@height}{.4\p@}
6347 \newcommand*{\setfootnoterule}[2][]{%
6348 \IfArgIsEmpty{#1}{}{%
6349 \renewcommand*{\ftn@rule@height}{#1}%
6350 }%
6351 \IfArgIsEmpty{#2}{}{%
6352 \renewcommand*{\ftn@rule@width}{#2}%
6353 }%
6354 \ftn@rule@test@values
6355 }
6356 \newcommand\deffootnote[4][]{%
6357 \expandafter\ifnum\scr@v@is@ge{3.22}\relax
6358 \long\def\@makefntext##1{%
6359 \ExecuteDoHook{footnote/text/begin}%
6360 \raggedfootnote
6361 \leftskip #2
6362 \l@addto@macro\@trivlist{%
6363 \ifnum\@listdepth=\@ne\advance\leftmargin #2\relax\fi
6364 }%
6365 \parindent #3\noindent
6366 \IfArgIsEmpty{#1}{}{%
6367 \hskip \dimexpr #1-#2\relax
6368 }%
6369 \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
6370 \ExecuteDoHook{footnote/text/end}%
6371 }%
6372 \else
6373 \ClassInfo{\KOMAClassName}{%
6374 Using old \string\@makefntext\space due to compatibility
6375 level\MessageBreak
6376 less than 3.22}%
6377 \long\def\@makefntext##1{%
6378 \setlength{\@tempdimc}{#3}%
6379 \def\@tempa{#1}\ifx\@tempa\@empty
6380 \@setpar{\@@par
6381 \@tempdima = \hsize
6382 \addtolength{\@tempdima}{-#2}%
6383 \parshape \@ne #2 \@tempdima}%
6384 \else
6385 \addtolength{\@tempdimc}{#2}%
6386 \addtolength{\@tempdimc}{-#1}%
6387 \@setpar{\@@par
6388 \@tempdima = \hsize
6389 \addtolength{\@tempdima}{-#1}%
6390 \@tempdimb = \hsize
6391 \addtolength{\@tempdimb}{-#2}%
6392 \parshape \tw@ #1 \@tempdima #2 \@tempdimb
6393 }%
6394 \fi
6395 \par
6396 \parindent\@tempdimc\noindent
6397 \ftn@font\hbox to \z@{\hss\@@makefnmark}##1%
6398 }%
6399 \fi
6400 \def\@@makefnmark{\hbox{\ftnm@font{#4}}}%
6401 }
6402 \newcommand*{\raggedfootnote}{}
6403 \newcommand*{\ftn@font}{\normalfont}
6404 \newcommand*{\scr@fnt@footnote}{\ftn@font}
6405 \newcommand*{\ftnm@font}{}
6406 \aliaskomafont{footnotenumber}{footnotelabel}
6407 \newcommand*{\scr@fnt@footnotelabel}{\ftnm@font}
6408 \aliaskomafont{footnotetext}{footnote}
6409 \newcommand*\deffootnotemark[1]{%
6410 \def\@makefnmark{\hbox{\ftntm@font{#1}}}%
6411 }
6412 \newcommand*{\ftntm@font}{}
6413 \newcommand*{\scr@fnt@footnotereference}{\ftntm@font}
6414 \aliaskomafont{footnoteref}{footnotereference}
6415 \aliaskomafont{footnotemark}{footnotereference}
6416 \newcommand*{\FN@mf@check}{%
6417 \ifdim\lastkern=\multiplefootnotemarker\relax
6418 \edef\@x@sf{\the\spacefactor}%
6419 \unkern\multiplefootnoteseparator
6420 \spacefactor\@x@sf\relax
6421 \fi
6422 }
6423 \newcommand*{\scr@mf@prepare}{%
6424 \kern-\multiplefootnotemarker
6425 \kern\multiplefootnotemarker\relax
6426 }
6427 \@ifundefined{FN@mf@prepare}{\let\FN@mf@prepare\relax}{}
6428 \newcommand{\scr@saved@footnotetext}{}
6429 \let\scr@saved@footnotetext\@footnotetext
6430 \renewcommand{\@footnotetext}[1]{%
6431 \scr@saved@footnotetext{#1}%
6432 \csname FN@mf@prepare\endcsname
6433 }
6434 \BeforePackage{footmisc}{%
6435 \ifx\@footnotemark\scr@footnotemark
6436 \let\@footnotemark\scr@saved@footnotemark
6437 \fi
6438 \let\@footnotetext\scr@saved@footnotetext
6439 }
6440 \BeforePackage{setspace}{%
6441 \let\@footnotetext\scr@saved@footnotetext
6442 }
6443 \AfterPackage{setspace}{%
6444 \let\scr@saved@footnotetext\@footnotetext
6445 \renewcommand{\@footnotetext}[1]{%
6446 \scr@saved@footnotetext{#1}%
6447 \csname FN@mf@prepare\endcsname
6448 }%
6449 }
6450 \newcommand*{\multiplefootnoteseparator}{%
6451 \begingroup\let\thefootnotemark\multfootsep\@makefnmark\endgroup
6452 }
6453 \newcommand*{\multfootsep}{,}
6454 \newcommand*{\multiplefootnotemarker}{3sp}
6455 \newcommand*{\thefootnotemark}{\@thefnmark}
6456 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
6457 \deffootnotemark{\textsuperscript{\thefootnotemark}}
6458 \providecommand*{\footref}[1]{%
6459 \begingroup
6460 \unrestored@protected@xdef\@thefnmark{\ref{#1}}%
6461 \endgroup
6462 \@footnotemark
6463 }
6464 %%% From File: $Id: scrkernel-listsof.dtx 4193 2025-08-12 14:24:39Z kohm $
6465 %%% (run: body)
6466 \g@addto@macro{\numberline@numberpostfix}{\autodot}
6467 \usetocbasicnumberline[%
6468 \ClassInfo{\KOMAClassName}{Redefining `\string\numberline'}%
6469 ]
6470 \newcommand*{\scr@dottedtocline}{}
6471 \newcommand*{\last@l@number}{}
6472 \newcommand*{\@l@number}{}
6473 \newcommand*{\set@l@number}[1]{%
6474 \settowidth{\@tempdima}{#1\enskip}%
6475 \ifdim\@tempdima >\@l@number
6476 \xdef\@l@number{\the\@tempdima}%
6477 \fi%
6478 \ifdim\@tempdima >\last@l@number \else
6479 \setlength{\@tempdima}{\last@l@number}%
6480 \fi%
6481 }
6482 \newcommand*{\before@starttoc}[1]{%
6483 \let\scr@dottedtocline=\@dottedtocline
6484 \renewcommand*{\@dottedtocline}[3]{%
6485 \scr@dottedtocline{##1}{\z@}{\last@l@number}}%
6486 \renewcommand*{\numberline@box}[1]{%
6487 \set@l@number{##1}\hb@xt@\@tempdima{##1}}%
6488 \gdef\@l@number{\z@}%
6489 \@ifundefined{#1@l@number}{%
6490 \def\last@l@number{2em}%
6491 }{%
6492 \expandafter\ifx\csname #1@l@number\endcsname\@empty
6493 \let\last@l@number\z@
6494 \else
6495 \expandafter\let\expandafter\last@l@number
6496 \expandafter=\csname#1@l@number\endcsname
6497 \fi
6498 }%
6499 \begingroup
6500 \def\do@endgroup{\endgroup}%
6501 \def\do##1{%
6502 \scr@ifundefinedorrelax{scr@tso@##1@numwidth}{}{%
6503 \l@addto@macro\do@endgroup{%
6504 \@namedef{scr@tso@##1@numwidth}{\last@l@number}%
6505 }%
6506 }%
6507 \scr@ifundefinedorrelax{scr@tso@##1@indent}{}{%
6508 \l@addto@macro\do@endgroup{%
6509 \@namedef{scr@tso@##1@indent}{\z@}%
6510 }%
6511 }%
6512 }%
6513 \@nameuse{scr@dte@donumwidth}%
6514 \do@endgroup
6515 }
6516 \newcommand*{\after@starttoc}[1]{%
6517 \protected@write\@auxout{}{%
6518 \string\gdef\expandafter\string\csname#1@l@number\endcsname{%
6519 \@l@number}}%
6520 }
6521 \g@addto@macro\tocbasic@@before@hook{%
6522 \if@dynlist\expandafter\before@starttoc\expandafter{\@currext}\fi
6523 }
6524 \g@addto@macro\tocbasic@@after@hook{%
6525 \if@dynlist\expandafter\after@starttoc\expandafter{\@currext}\fi
6526 }
6527 \newcommand*\contentsname{Contents}
6528 \newcommand*\listoftocname{\contentsname}
6529 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6530 UKenglish,ukenglish,USenglish,usenglish}\contentsname{Contents}%
6531 \setcounter{tocdepth}{3}
6532 \newcommand*\toc@heading{%
6533 \ClassWarning{\KOMAClassName}{%
6534 usage of deprecated \string\toc@heading!\MessageBreak
6535 You should use the features of package `tocbasic'\MessageBreak
6536 instead of \string\toc@heading.\MessageBreak
6537 Definition of \string\toc@heading\space may be removed from\MessageBreak
6538 KOMA-Script soon, so it should not be used%
6539 }%
6540 \section*{\contentsname}%
6541 \@mkboth{\MakeMarkcase{\contentsname}}{\MakeMarkcase{\contentsname}}%
6542 }
6543 \newcommand*{\toc@l@number}{}
6544 \newcommand*{\tableofcontents}{%
6545 \begingroup
6546 \let\if@dynlist\if@tocleft
6547 \expandafter\listoftoc\expandafter{\ext@toc}%
6548 \endgroup
6549 }
6550 \newcommand{\addtocentrydefault}[3]{%
6551 \expandafter\tocbasic@addxcontentsline\expandafter{\ext@toc}{#1}{#2}{#3}%
6552 }
6553 \newcommand*{\float@listhead}[1]{%
6554 \scr@float@listhead@warning
6555 \float@@listhead{#1}%
6556 \@mkboth{\MakeMarkcase{#1}}{\MakeMarkcase{#1}}%
6557 \if@dynlist%
6558 \newcommand*{\scr@starttoc}{}%
6559 \let\scr@starttoc=\@starttoc
6560 \renewcommand*{\@starttoc}[1]{%
6561 \before@starttoc{##1}\scr@starttoc{##1}\after@starttoc{##1}%
6562 }%
6563 \fi
6564 }
6565 \newcommand*{\scr@float@listhead@warning}{%
6566 \ClassWarning{\KOMAClassName}{%
6567 Usage of \string\float@listhead\space detected!\MessageBreak
6568 This could be, because you are using\MessageBreak
6569 \IfPackageLoadedTF{floatrow}{%
6570 \IfPackageLoadedTF{floatrowbytocbasic}{%
6571 a package that does not support the KOMA-Script\MessageBreak
6572 interface of KOMA-Script package `tocbasic`.\MessageBreak
6573 }{%
6574 package `floatrow` without `floatrowbytocbasic`.\MessageBreak
6575 }%
6576 }{%
6577 \IfPackageLoadedTF{float}{%
6578 \IfPackageLoadedTF{floatbytocbasic}{%
6579 a package that does not support the KOMA-Script\MessageBreak
6580 interface of KOMA-Script package `tocbasic`.\MessageBreak
6581 }{%
6582 package `float` without `floatbytocbasic`.\MessageBreak
6583 }%
6584 }{%
6585 a package that does not support the KOMA-Script\MessageBreak
6586 interface of KOMA-Script package `tocbasic`.\MessageBreak
6587 }%
6588 }%
6589 Implementation of \string\float@listhead\space became\MessageBreak
6590 deprecated in KOMA-Script v3.01 2008/11/14 and\MessageBreak
6591 has been replaced by several more flexible\MessageBreak
6592 features of package `tocbasic`.\MessageBreak
6593 Implementation of \string\float@listhead\space will\MessageBreak
6594 be removed from KOMA-Script soon%
6595 }%
6596 }
6597 \newcommand*{\scr@float@addtolists@warning}{%
6598 \ClassWarningNoLine{\KOMAClassName}{%
6599 \string\float@addtolists\space detected!\MessageBreak
6600 Implementation of \string\float@addtolist\space became\MessageBreak
6601 deprecated in KOMA-Script v3.01 2008/11/14 and\MessageBreak
6602 has been replaced by several more flexible\MessageBreak
6603 features of package `tocbasic`.\MessageBreak
6604 Since Version 3.12 support for deprecated\MessageBreak
6605 \string\float@addtolist\space interface has been\MessageBreak
6606 restricted to only some of the KOMA-Script\MessageBreak
6607 features and been removed from others.\MessageBreak
6608 Since Version 3.43 support for deprecated\MessageBreak
6609 \string\float@addtolist\space interface has been\MessageBreak
6610 removed from all KOMA-Script classes%
6611 }%
6612 \global\let\scr@float@addtolists@warning\relax
6613 }
6614 \renewcommand*\listfigurename{List of Figures}
6615 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6616 UKenglish,ukenglish,USenglish,usenglish}\listfigurename{List of Figures}
6617 \renewcommand*\listoflofname{\listfigurename}
6618 \renewcommand*\listoflofentryname{\figurename}
6619 \renewcommand*\listtablename{List of Tables}
6620 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6621 UKenglish,ukenglish,USenglish,usenglish}\listtablename{List of Tables}
6622 \renewcommand*\listoflotname{\listtablename}
6623 \renewcommand*\listoflotentryname{\tablename}
6624 %%% From File: $Id: scrkernel-bibliography.dtx 4032 2023-04-17 09:45:11Z kohm $
6625 %%% (run: body)
6626 \newcommand*\refname{References}
6627 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6628 UKenglish,ukenglish,USenglish,usenglish}\refname{References}
6629 \newcommand*{\bibpreamble}{\relax}
6630 \let\bibpreamble\relax
6631 \newcommand{\setbibpreamble}[1]{\def\bibpreamble{#1}}
6632 \newdimen\bibindent
6633 \bibindent=1.5em
6634 \newenvironment{thebibliography}[1]{%
6635 \if@bib@break@
6636 \bib@beginhook
6637 \else
6638 \bib@heading
6639 \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else
6640 \noindent\bibpreamble\par\nobreak
6641 \fi\fi
6642 \bib@beginhook
6643 \bib@before@hook
6644 \fi
6645 \renewcommand{\BreakBibliography}[1]{%
6646 \@bib@break
6647 \end{thebibliography}%
6648 \begingroup ##1\endgroup
6649 \begin{thebibliography}{#1}
6650 }%
6651 \list{%
6652 \@biblabel{\@arabic\c@enumiv}%
6653 }{%
6654 \settowidth\labelwidth{\@biblabel{#1}}%
6655 \leftmargin\labelwidth
6656 \advance\leftmargin\labelsep
6657 \@openbib@code
6658 \if@bib@break@
6659 \edef\@tempa{%
6660 \noexpand\usecounter{enumiv}%
6661 \noexpand\setcounter{enumiv}{\the\c@enumiv}%
6662 }\@tempa
6663 \no@bib@break
6664 \else
6665 \usecounter{enumiv}%
6666 \fi
6667 \let\p@enumiv\@empty
6668 \renewcommand*\theenumiv{\@arabic\c@enumiv}%
6669 }%
6670 \sloppy\clubpenalty4000 \widowpenalty4000
6671 \sfcode`\.=\@m
6672 }{%
6673 \if@bib@break@
6674 \def\@noitemerr{%
6675 \@latex@warning{%
6676 \string\BreakBibliography\space at begin of `thebibliography'
6677 environment\MessageBreak
6678 or following \string\BreakBibliography}%
6679 }%
6680 \else
6681 \def\@noitemerr{%
6682 \@latex@warning{%
6683 Empty `thebibliography' environment or
6684 \string\BreakBibliography\MessageBreak
6685 before end of `thebibliography' environment}%
6686 }%
6687 \fi
6688 \endlist
6689 \if@bib@break@
6690 \else
6691 \bib@after@hook
6692 \let\bib@before@hook\@empty
6693 \let\bib@after@hook\@empty
6694 \fi
6695 \bib@endhook
6696 }
6697 \newif\if@bib@break@
6698 \newcommand{\no@bib@break}{\global\let\if@bib@break@\iffalse}
6699 \newcommand*{\@bib@break}{\global\let\if@bib@break@\iftrue}
6700 \newcommand*{\bib@before@hook}{}
6701 \newcommand*{\bib@after@hook}{}
6702 \newcommand{\BreakBibliography}[1]{%
6703 \ClassWarning{\KOMAClassName}{%
6704 You've used \string\BreakBibliography\space either outside of\MessageBreak
6705 the bibliography or `thebibliography' was redefined\MessageBreak
6706 incompatible, e.g., using a bibliography package.\MessageBreak
6707 \string\BreakBibliography\space ignored%
6708 }%
6709 }
6710 \newcommand{\AfterBibliographyPreamble}{\g@addto@macro\bib@before@hook}
6711 \newcommand{\AtEndBibliography}{\g@addto@macro\bib@after@hook}
6712 %%% From File: $Id: scrkernel-index.dtx 4181 2025-06-14 09:11:13Z kohm $
6713 %%% (run: body)
6714 \newcommand*{\index@preamble}{}
6715 \let\index@preamble=\relax
6716 \newcommand{\setindexpreamble}[1]{\def\index@preamble{#1}}
6717 \newcommand*{\idx@heading}{%
6718 \twocolumn[%
6719 \idx@@heading{\indexname}]%
6720 \idx@@mark{\indexname}%
6721 }
6722 \newenvironment{theindex}{%
6723 \if@twocolumn
6724 \@restonecolfalse
6725 \else
6726 \@restonecoltrue
6727 \fi
6728 \columnseprule \z@
6729 \columnsep 35\p@
6730 \idx@heading
6731 \index@preamble\par\nobreak
6732 \ifx\indexpagestyle\@empty\else\thispagestyle{\indexpagestyle}\fi
6733 \parindent\z@
6734 \setlength{\parskip}{\z@ \@plus .3\p@}%
6735 \setlength{\parfillskip}{\z@ \@plus 1fil}%
6736 \let\item\@idxitem
6737 }{%
6738 \if@restonecol\onecolumn\else\clearpage\fi
6739 }
6740 \newcommand*\@idxitem{\par\hangindent 40\p@}
6741 \newcommand*\subitem{\@idxitem \hspace*{20\p@}}
6742 \newcommand*\subsubitem{\@idxitem \hspace*{30\p@}}
6743 \newcommand*\indexspace{%
6744 \par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax
6745 }
6746 \newcommand*\indexname{Index}
6747 \providecaptionname{american,australian,british,canadian,english,newzealand,%
6748 UKenglish,ukenglish,USenglish,usenglish}\indexname{Index}
6749 %%% From File: $Id: scrkernel-listsandtabulars.dtx 4138 2025-02-10 13:55:51Z kohm $
6750 %%% (run: body)
6751 \if@twocolumn
6752 \setlength{\leftmargini}{2em}
6753 \else
6754 \setlength{\leftmargini}{2.5em}
6755 \fi
6756 \setlength{\leftmarginii}{2.2em}
6757 \setlength{\leftmarginiii}{1.87em}
6758 \setlength{\leftmarginiv}{1.7em}
6759 \if@twocolumn
6760 \setlength{\leftmarginv}{.5em}
6761 \setlength{\leftmarginvi}{.5em}
6762 \else
6763 \setlength{\leftmarginv}{1em}
6764 \setlength{\leftmarginvi}{1em}
6765 \fi
6766 \setlength{\leftmargin}{\leftmargini}
6767 \setlength{\labelsep}{.5em}
6768 \setlength{\labelwidth}{\leftmargini}
6769 \addtolength{\labelwidth}{-\labelsep}
6770 \@beginparpenalty=-\@lowpenalty
6771 \@endparpenalty =-\@lowpenalty
6772 \@itempenalty =-\@lowpenalty
6773 \renewcommand*\theenumi{\@arabic\c@enumi}
6774 \renewcommand*\theenumii{\@alph\c@enumii}
6775 \renewcommand*\theenumiii{\@roman\c@enumiii}
6776 \renewcommand*\theenumiv{\@Alph\c@enumiv}
6777 \newcommand*\labelenumi{\usekomafont{labelenumi}{\theenumi.}}
6778 \newcommand*\labelenumii{\usekomafont{labelenumii}{\theenumii)}}
6779 \newcommand*\labelenumiii{\usekomafont{labelenumiii}{\theenumiii.}}
6780 \newcommand*\labelenumiv{\usekomafont{labelenumiv}{\theenumiv.}}
6781 \renewcommand*\p@enumii{\theenumi}
6782 \renewcommand*\p@enumiii{\p@enumii(\theenumii)}
6783 \renewcommand*\p@enumiv{\p@enumiii\theenumiii}
6784 \newcommand*\labelitemi{\usekomafont{labelitemi}{\textbullet}}
6785 \newcommand*\labelitemii{\usekomafont{labelitemii}{\textendash}}
6786 \newcommand*\labelitemiii{\usekomafont{labelitemiii}{\textasteriskcentered}}
6787 \newcommand*\labelitemiv{\usekomafont{labelitemiv}{\textperiodcentered}}
6788 \newenvironment{description}{%
6789 \list{}{\labelwidth\z@ \itemindent-\leftmargin
6790 \let\makelabel\descriptionlabel}%
6791 }{%
6792 \endlist
6793 }
6794 \newcommand*{\descriptionlabel}[1]{%
6795 \hspace{\labelsep}\usekomafont{descriptionlabel}{#1}%
6796 }
6797 \newenvironment{labeling}[2][]{%
6798 \def\sc@septext{#1}%
6799 \list{}{\settowidth{\labelwidth}{{%
6800 \usekomafont{labelinglabel}{#2%
6801 \usekomafont{labelingseparator}{\sc@septext}}%
6802 }}%
6803 \leftmargin\labelwidth \advance\leftmargin by \labelsep
6804 \let\makelabel\labelinglabel
6805 }%
6806 }{%
6807 \endlist
6808 }
6809 \newcommand\labelinglabel[1]{%
6810 \usekomafont{labelinglabel}{#1\hfil
6811 \usekomafont{labelingseparator}{\sc@septext}}%
6812 }
6813 \newenvironment{verse}{%
6814 \let\\=\@centercr
6815 \list{}{\itemsep=\z@
6816 \itemindent=-1.5em
6817 \listparindent=\itemindent
6818 \rightmargin=\leftmargin
6819 \advance\leftmargin by1.5em
6820 }%
6821 \item\relax
6822 }{%
6823 \endlist
6824 }
6825 \newenvironment{quotation}{%
6826 \list{}{\listparindent 1em%
6827 \itemindent \listparindent
6828 \rightmargin \leftmargin
6829 \parsep \z@ \@plus\p@
6830 }%
6831 \item\relax
6832 }{%
6833 \endlist
6834 }
6835 \newenvironment{quote}{%
6836 \list{}{\rightmargin\leftmargin}%
6837 \item\relax
6838 }{%
6839 \endlist
6840 }
6841 \newenvironment{addmargin}{%
6842 \@tempswafalse\@addmargin
6843 }{%
6844 \advance\@listdepth\@ne
6845 \endlist
6846 }
6847 \newenvironment{addmargin*}{%
6848 \@tempswafalse
6849 \if@twoside\is@thispageodd[]\ifthispagewasodd\else\@tempswatrue\fi
6850 \edef\scr@addmargin@startpage{\csname tpo@\scr@tpo\endcsname}\fi
6851 \@addmargin
6852 }{%
6853 \if@twoside
6854 \unskip\nobreak\Ifthispageodd{}{}%
6855 \expandafter\ifx\csname tpo@\scr@tpo\endcsname\scr@addmargin@startpage\else
6856 \ClassWarning{\KOMAClassName}{%
6857 page break inside `addmargin*' environment.\MessageBreak
6858 A `addmargin*' environment starting on page
6859 \scr@addmargin@startpage\MessageBreak
6860 ends on page \csname tpo@\scr@tpo\endcsname.\MessageBreak
6861 This will result in potential wrong margins on\MessageBreak
6862 every other page.\MessageBreak
6863 So maybe you should change the `addmargin*'\MessageBreak
6864 environment, that ends%
6865 }%
6866 \fi
6867 \fi
6868 \advance\@listdepth\@ne
6869 \endlist
6870 }
6871 \newcommand*{\@addmargin}[2][\@tempa]{%
6872 \list{}{%
6873 \if@tempswa
6874 \def\@tempa{\leftmargin}%
6875 \setlength{\leftmargin}{#2}%
6876 \setlength{\rightmargin}{#1}%
6877 \else
6878 \def\@tempa{\rightmargin}%
6879 \setlength{\rightmargin}{#2}%
6880 \setlength{\leftmargin}{#1}%
6881 \fi
6882 \setlength{\listparindent}{\parindent}%
6883 \setlength{\itemsep}{\parskip}%
6884 \setlength{\itemindent}{\z@}%
6885 \setlength{\@tempskipa}{\topsep}%
6886 \setlength{\topsep}{\z@}%
6887 \setlength{\parsep}{\parskip}%
6888 \setlength{\@tempskipb}{\partopsep}%
6889 \setlength{\partopsep}{\z@}%
6890 \let\makelabel\@gobble
6891 \setlength{\labelwidth}{\z@}%
6892 \advance\@listdepth\m@ne
6893 }%
6894 \expandafter\ifnum\scr@v@is@ge{3.22}%
6895 \setlength{\topsep}{\@tempskipa}%
6896 \setlength{\partopsep}{\@tempskipb}%
6897 \fi
6898 \item\is@thispageodd@setlabel\nobreak\ignorespaces
6899 }
6900 \newcommand*\descfont{\maybesffamily\bfseries}
6901 \newcommand*{\scr@fnt@descriptionlabel}{\descfont}
6902 \newcommand*{\labelitemfont}{\normalfont}
6903 \newcommand*\scr@fnt@itemizelabel{\labelitemfont}
6904 \newkomafont{labelitemi}{\usekomafont{itemizelabel}}
6905 \newkomafont{labelitemii}{\usekomafont{itemizelabel}\bfseries}
6906 \newkomafont{labelitemiii}{\usekomafont{itemizelabel}}
6907 \newkomafont{labelitemiv}{\usekomafont{itemizelabel}}
6908 \newkomafont{enumeratelabel}{}
6909 \newkomafont{labelenumi}{\usekomafont{enumeratelabel}}
6910 \newkomafont{labelenumii}{\usekomafont{enumeratelabel}}
6911 \newkomafont{labelenumiii}{\usekomafont{enumeratelabel}}
6912 \newkomafont{labelenumiv}{\usekomafont{enumeratelabel}}
6913 \newkomafont{labelinglabel}{}
6914 \newkomafont{labelingseparator}{}
6915 \setlength\arraycolsep{5\p@}
6916 \setlength\tabcolsep{6\p@}
6917 \setlength\arrayrulewidth{.4\p@}
6918 \setlength\doublerulesep{2\p@}
6919 \setlength\tabbingsep{\labelsep}
6920 %%% From File: $Id: scrlogo.dtx 4032 2023-04-17 09:45:11Z kohm $
6921 \RequirePackage{scrlogo}
6922 \endinput
6923 %%
6924 %% End of file `scrartcl.cls'.