| 1 |
%% |
| 2 |
%% This is file `scrbook.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,book') |
| 8 |
%% scrkernel-basics.dtx (with options: `class,load') |
| 9 |
%% tocbasic.dtx (with options: `class,load') |
| 10 |
%% scrkernel-listsof.dtx (with options: `class,book,prepare') |
| 11 |
%% scrkernel-tocstyle.dtx (with options: `class,book,prepare') |
| 12 |
%% scrkernel-sections.dtx (with options: `class,book,prepare') |
| 13 |
%% scrkernel-compatibility.dtx (with options: `class,book,init') |
| 14 |
%% scrkernel-typearea.dtx (with options: `class,book,init') |
| 15 |
%% scrkernel-compatibility.dtx (with options: `class,book,option') |
| 16 |
%% scrkernel-miscellaneous.dtx (with options: `class,book,option') |
| 17 |
%% scrkernel-language.dtx (with options: `class,book,option') |
| 18 |
%% scrkernel-fonts.dtx (with options: `class,book,option') |
| 19 |
%% scrkernel-typearea.dtx (with options: `class,book,options') |
| 20 |
%% scrkernel-paragraphs.dtx (with options: `class,book,option') |
| 21 |
%% scrkernel-title.dtx (with options: `class,book,option') |
| 22 |
%% scrkernel-tocstyle.dtx (with options: `class,book,option') |
| 23 |
%% scrkernel-sections.dtx (with options: `class,book,option') |
| 24 |
%% scrkernel-pagestyles.dtx (with options: `class,book,option') |
| 25 |
%% scrkernel-floats.dtx (with options: `class,book,option') |
| 26 |
%% scrkernel-footnotes.dtx (with options: `class,book,option') |
| 27 |
%% scrkernel-listsof.dtx (with options: `class,book,option') |
| 28 |
%% scrkernel-bibliography.dtx (with options: `class,book,option') |
| 29 |
%% scrkernel-index.dtx (with options: `class,book,option') |
| 30 |
%% scrkernel-listsandtabulars.dtx (with options: `class,book,option') |
| 31 |
%% scrkernel-sections.dtx (with options: `class,book,execoption') |
| 32 |
%% scrkernel-miscellaneous.dtx (with options: `class,book,execoption') |
| 33 |
%% scrkernel-compatibility.dtx (with options: `class,book,body') |
| 34 |
%% scrkernel-fonts.dtx (with options: `class,book,body') |
| 35 |
%% scrkernel-language.dtx (with options: `class,book,body') |
| 36 |
%% scrkernel-typearea.dtx (with options: `class,book,body') |
| 37 |
%% scrkernel-paragraphs.dtx (with options: `class,book,body') |
| 38 |
%% scrkernel-title.dtx (with options: `class,book,body') |
| 39 |
%% scrkernel-tocstyle.dtx (with options: `class,book,body') |
| 40 |
%% scrkernel-tocstyle.dtx (with options: `class,book,style,part') |
| 41 |
%% scrkernel-tocstyle.dtx (with options: `class,book,style,chapter') |
| 42 |
%% scrkernel-tocstyle.dtx (with options: `class,book,style,section') |
| 43 |
%% scrkernel-tocstyle.dtx (with options: `class,book,style,default') |
| 44 |
%% scrkernel-sections.dtx (with options: `class,book,body') |
| 45 |
%% scrkernel-miscellaneous.dtx (with options: `class,book,body') |
| 46 |
%% scrkernel-pagestyles.dtx (with options: `class,book,body') |
| 47 |
%% scrlayer.dtx (with options: `class,book,body') |
| 48 |
%% scrkernel-floats.dtx (with options: `class,book,body') |
| 49 |
%% scrkernel-footnotes.dtx (with options: `class,book,body') |
| 50 |
%% scrkernel-listsof.dtx (with options: `class,book,body') |
| 51 |
%% scrkernel-bibliography.dtx (with options: `class,book,body') |
| 52 |
%% scrkernel-index.dtx (with options: `class,book,body') |
| 53 |
%% scrkernel-listsandtabulars.dtx (with options: `class,book,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}{scrbook} |
| 119 |
\newcommand*{\KOMAClassFileName}{\KOMAClassName.\@clsextension} |
| 120 |
\edef\KOMAClassFileName{\KOMAClassFileName} |
| 121 |
\newcommand*{\ClassName}{% |
| 122 |
book% |
| 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 |
\AtAddToTocList[\@currname.\@currext]{\setuptoc{\@currext}{onecolumn}}% |
| 142 |
\AtAddToTocList[ToC]{\setuptoc{\@currext}{onecolumn}}% |
| 143 |
\addtotoclist[ToC]{toc} |
| 144 |
\Ifstr{\ext@toc}{toc}{}{% |
| 145 |
\expandafter\addtotoclist |
| 146 |
\expandafter[\expandafter T\expandafter o\expandafter C\expandafter ]% |
| 147 |
\expandafter{\ext@toc}% |
| 148 |
} |
| 149 |
\AtAddToTocList[float]{\setuptoc{\@currext}{onecolumn}}% |
| 150 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 151 |
%%% (run: prepare) |
| 152 |
%%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $ |
| 153 |
%%% (run: prepare) |
| 154 |
\newif\if@openright |
| 155 |
\@openrighttrue |
| 156 |
\newcommand*{\scr@dotchangeatdocument}[1]{% |
| 157 |
\ClassError{\KOMAClassName}{% |
| 158 |
change of end dot feature after \string\begin{document}% |
| 159 |
}{% |
| 160 |
You've tried to set `numbers=#1' after \string\begin{document},\MessageBreak |
| 161 |
but this option is only allowed at the document preamble.\MessageBreak |
| 162 |
See KOMA-Script manual for more information about.% |
| 163 |
}% |
| 164 |
} |
| 165 |
\newif\if@altsecnumformat\@altsecnumformatfalse |
| 166 |
\newif\if@autodot |
| 167 |
\renewcommand*{\@autodottrue}{\global\let\if@autodot\iftrue} |
| 168 |
\renewcommand*{\@autodotfalse}{\global\let\if@autodot\iffalse} |
| 169 |
\@autodotfalse |
| 170 |
\newcommand*{\scr@altsecnumhook}{} |
| 171 |
\AtBeginDocument{\scr@altsecnumhook} |
| 172 |
\newcommand*{\scr@altsecnumhooktrue}{% |
| 173 |
\@altsecnumformattrue\global\let\@altsecnumformatfalse\@altsecnumformattrue |
| 174 |
} |
| 175 |
\newcommand*{\scr@altsecnumhookfalse}{% |
| 176 |
\@altsecnumformatfalse\global\let\@altsecnumformattrue\@altsecnumformatfalse |
| 177 |
} |
| 178 |
\newcommand*{\scr@osectarg}{0} |
| 179 |
\newcommand*{\scr@activate@xsection}[1]{% |
| 180 |
\renewcommand*{\scr@osectarg}{#1}% |
| 181 |
} |
| 182 |
\NewHook{\KOMAClassName/appendix} |
| 183 |
\newcommand*{\size@part}{} |
| 184 |
\newcommand*{\scr@fnt@part}{\size@part} |
| 185 |
\newcommand*{\size@partnumber}{} |
| 186 |
\newcommand*{\scr@fnt@partnumber}{\size@partnumber} |
| 187 |
\aliaskomafont{partprefix}{partnumber} |
| 188 |
\newcommand*{\scr@part@beforeskip}{% |
| 189 |
\z@ \@plus 1fil + \baselineskip |
| 190 |
} |
| 191 |
\newcommand*{\scr@part@innerskip}{20\p@} |
| 192 |
\newcommand*{\scr@part@afterskip}{% |
| 193 |
\z@ \@plus 1fil |
| 194 |
} |
| 195 |
\newcommand*{\scr@part@style}{part} |
| 196 |
\newcommand*{\partheadstartvskip}{% |
| 197 |
\null\vskip-\baselineskip\vskip\@tempskipa |
| 198 |
} |
| 199 |
\newcommand*{\partheadmidvskip}{% |
| 200 |
\par\nobreak |
| 201 |
\vskip\@tempskipa |
| 202 |
} |
| 203 |
\newcommand*{\partheadendvskip}{% |
| 204 |
\vskip\@tempskipa\newpage |
| 205 |
} |
| 206 |
\newcommand*{\partheademptypage}{% |
| 207 |
\if@twoside\if@openright |
| 208 |
\null% |
| 209 |
\thispagestyle{empty}% |
| 210 |
\newpage |
| 211 |
\fi\fi |
| 212 |
} |
| 213 |
\newif\if@chapterprefix |
| 214 |
\newcommand*{\size@chapter}{} |
| 215 |
\newcommand*{\scr@fnt@chapter}{\size@chapter} |
| 216 |
\newcommand*{\size@chapterprefix}{\size@chapter} |
| 217 |
\newcommand*{\scr@fnt@chapterprefix}{\size@chapterprefix} |
| 218 |
\newcommand*{\scr@chapter@beforeskip}{\z@} |
| 219 |
\let\scr@chapter@beforeskip\z@ |
| 220 |
\newcommand*{\scr@chapter@afterskip}{\z@} |
| 221 |
\let\scr@chapter@afterskip\z@ |
| 222 |
\newcommand*{\scr@chapter@innerskip}{\z@} |
| 223 |
\let\scr@chapter@innerskip\z@ |
| 224 |
\newcommand*{\scr@chapter@style}{chapter} |
| 225 |
\newcommand*{\chapterheadstartvskip}{\vspace{\@tempskipa}} |
| 226 |
\newcommand*{\chapterheadendvskip}{\vskip\@tempskipa} |
| 227 |
\newcommand*{\chapterheadmidvskip}{\par\nobreak\vskip\@tempskipa} |
| 228 |
\newcommand*{\size@section}{} |
| 229 |
\newcommand*{\scr@fnt@section}{\size@section} |
| 230 |
\newcommand*{\size@subsection}{} |
| 231 |
\newcommand*{\scr@fnt@subsection}{\size@subsection} |
| 232 |
\newcommand*{\size@subsubsection}{} |
| 233 |
\newcommand*{\scr@fnt@subsubsection}{\size@subsubsection} |
| 234 |
\newcommand*{\size@paragraph}{} |
| 235 |
\newcommand*{\scr@fnt@paragraph}{\size@paragraph} |
| 236 |
\newcommand*{\size@subparagraph}{} |
| 237 |
\newcommand*{\scr@fnt@subparagraph}{\size@subparagraph} |
| 238 |
\newcommand*{\sectfont}{\normalcolor\maybesffamily\bfseries} |
| 239 |
%%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $ |
| 240 |
%%% (run: init) |
| 241 |
\newcommand* |
| 242 |
{\scr@compatibility}{\scr@v@last} |
| 243 |
\@namedef{scr@v@first}{29000} |
| 244 |
\@namedef{scr@[email protected]}{29000} |
| 245 |
\@namedef{scr@[email protected]}{29019} |
| 246 |
\@namedef{scr@[email protected]}{29020} |
| 247 |
\@namedef{scr@[email protected]}{29500} |
| 248 |
\@namedef{scr@[email protected]}{29501} |
| 249 |
\@namedef{scr@[email protected]}{29502} |
| 250 |
\@namedef{scr@[email protected]}{29600} |
| 251 |
\@namedef{scr@[email protected]}{29601} |
| 252 |
\@namedef{scr@[email protected]}{29700} |
| 253 |
\@namedef{scr@[email protected]}{29701} |
| 254 |
\@namedef{scr@[email protected]}{29702} |
| 255 |
\@namedef{scr@[email protected]}{29703} |
| 256 |
\@namedef{scr@[email protected]}{29704} |
| 257 |
\@namedef{scr@[email protected]}{29705} |
| 258 |
\@namedef{scr@[email protected]}{29800} |
| 259 |
\@namedef{scr@[email protected]}{29801} |
| 260 |
\@namedef{scr@[email protected]}{29802} |
| 261 |
\@namedef{scr@[email protected]}{29803} |
| 262 |
\@namedef{scr@[email protected]}{30000} |
| 263 |
\@namedef{scr@[email protected]}{30100} |
| 264 |
\@namedef{scr@[email protected]}{30101} |
| 265 |
\@namedef{scr@[email protected]}{30102} |
| 266 |
\@namedef{scr@[email protected]}{30103} |
| 267 |
\@namedef{scr@[email protected]}{30200} |
| 268 |
\@namedef{scr@[email protected]}{30202} |
| 269 |
\@namedef{scr@[email protected]}{30203} |
| 270 |
\@namedef{scr@[email protected]}{30300} |
| 271 |
\@namedef{scr@[email protected]}{30301} |
| 272 |
\@namedef{scr@[email protected]}{30302} |
| 273 |
\@namedef{scr@[email protected]}{30400} |
| 274 |
\@namedef{scr@[email protected]}{30401} |
| 275 |
\@namedef{scr@[email protected]}{30500} |
| 276 |
\@namedef{scr@[email protected]}{30501} |
| 277 |
\@namedef{scr@[email protected]}{30600} |
| 278 |
\@namedef{scr@[email protected]}{30700} |
| 279 |
\@namedef{scr@[email protected]}{30800} |
| 280 |
\@namedef{scr@[email protected]}{30801} |
| 281 |
\@namedef{scr@[email protected]}{30802} |
| 282 |
\@namedef{scr@[email protected]}{30900} |
| 283 |
\@namedef{scr@[email protected]}{30901} |
| 284 |
\@namedef{scr@[email protected]}{31000} |
| 285 |
\@namedef{scr@[email protected]}{31001} |
| 286 |
\@namedef{scr@[email protected]}{31002} |
| 287 |
\@namedef{scr@[email protected]}{31100} |
| 288 |
\@namedef{scr@[email protected]}{31101} |
| 289 |
\@namedef{scr@[email protected]}{31102} |
| 290 |
\@namedef{scr@[email protected]}{31200} |
| 291 |
\@namedef{scr@[email protected]}{31300} |
| 292 |
\@namedef{scr@[email protected]}{31301} |
| 293 |
\@namedef{scr@[email protected]}{31400} |
| 294 |
\@namedef{scr@[email protected]}{31500} |
| 295 |
\@namedef{scr@[email protected]}{31600} |
| 296 |
\@namedef{scr@[email protected]}{31700} |
| 297 |
\@namedef{scr@[email protected]}{31701} |
| 298 |
\@namedef{scr@[email protected]}{31703} |
| 299 |
\@namedef{scr@[email protected]}{31800} |
| 300 |
\@namedef{scr@[email protected]}{31801} |
| 301 |
\@namedef{scr@[email protected]}{31900} |
| 302 |
\@namedef{scr@[email protected]}{31901} |
| 303 |
\@namedef{scr@[email protected]}{32000} |
| 304 |
\@namedef{scr@[email protected]}{32100} |
| 305 |
\@namedef{scr@[email protected]}{32200} |
| 306 |
\@namedef{scr@[email protected]}{32300} |
| 307 |
\@namedef{scr@[email protected]}{32400} |
| 308 |
\@namedef{scr@[email protected]}{32500} |
| 309 |
\@namedef{scr@[email protected]}{32600} |
| 310 |
\@namedef{scr@[email protected]}{32601} |
| 311 |
\@namedef{scr@[email protected]}{32602} |
| 312 |
\@namedef{scr@[email protected]}{32700} |
| 313 |
\@namedef{scr@[email protected]}{32701} |
| 314 |
\@namedef{scr@[email protected]}{32800} |
| 315 |
\@namedef{scr@[email protected]}{32900} |
| 316 |
\@namedef{scr@[email protected]}{33300} |
| 317 |
\@namedef{scr@[email protected]}{33100} |
| 318 |
\@namedef{scr@[email protected]}{33200} |
| 319 |
\@namedef{scr@[email protected]}{33300} |
| 320 |
\@namedef{scr@[email protected]}{33400} |
| 321 |
\@namedef{scr@[email protected]}{33500} |
| 322 |
\@namedef{scr@[email protected]}{33600} |
| 323 |
\@namedef{scr@[email protected]}{33700} |
| 324 |
\@namedef{scr@[email protected]}{33800} |
| 325 |
\@namedef{scr@[email protected]}{33900} |
| 326 |
\@namedef{scr@[email protected]}{34000} |
| 327 |
\@namedef{scr@[email protected]}{34100} |
| 328 |
\@namedef{scr@[email protected]}{34200} |
| 329 |
\@namedef{scr@[email protected]}{34300} |
| 330 |
\@namedef{scr@[email protected]}{34400} |
| 331 |
\@namedef{scr@[email protected]}{34500} |
| 332 |
\@namedef{scr@[email protected]}{34600} |
| 333 |
\@namedef{scr@[email protected]}{34700} |
| 334 |
\@namedef{scr@[email protected]}{34800} |
| 335 |
\@namedef{scr@[email protected]}{34900} |
| 336 |
\@namedef{scr@[email protected]}{34901} |
| 337 |
\@namedef{scr@[email protected]}{34902} |
| 338 |
\@namedef{scr@v@last}{34902} |
| 339 |
%%% From File: $Id: scrkernel-typearea.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 340 |
%%% (run: init) |
| 341 |
%%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $ |
| 342 |
%%% (run: option) |
| 343 |
\newif\if@scr@emulatestandardclasses |
| 344 |
\let\scr@emulatestandardclassestrue\relax |
| 345 |
\let\scr@emulatestandardclassesfalse\relax |
| 346 |
\DeclareOption{emulatestandardclasses}{% |
| 347 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 348 |
The use of the undocumented and therefore unofficial\MessageBreak |
| 349 |
and highly experimental option `emulatestandardclasses'\MessageBreak |
| 350 |
leads to restrictions in support. In particular, it is\MessageBreak |
| 351 |
to be expected that the function of the option will\MessageBreak |
| 352 |
change at any time or that the option will be removed\MessageBreak |
| 353 |
from the \KOMAClassName\space class.% |
| 354 |
}% |
| 355 |
\let\if@scr@emulatestandardclasses\iftrue |
| 356 |
\KOMAExecuteOptions{% |
| 357 |
fontsize=10pt,% |
| 358 |
headings=standardclasses,% |
| 359 |
cleardoublepage=current |
| 360 |
}% |
| 361 |
\newcommand*{\defaultpapersize}{letter}% |
| 362 |
\AtEndOfClass{% |
| 363 |
\setkomafont{descriptionlabel}{\bfseries}% |
| 364 |
\setkomafont{dictum}{\normalfont\small}% |
| 365 |
\setkomafont{caption}{}% |
| 366 |
\setkomafont{captionlabel}{}% |
| 367 |
\setcapindent{0pt}% |
| 368 |
\RequirePackage[pagestyleset=standard,markcase=upper]{scrlayer-scrpage}% |
| 369 |
\PreventPackageFromLoading{scrpage2}% |
| 370 |
\setkomafont{pagenumber}{\normalfont}% |
| 371 |
\setkomafont{pageheadfoot}{\normalfont}% |
| 372 |
\cfoot[\pagemark]{}% |
| 373 |
}% |
| 374 |
} |
| 375 |
\KOMA@key{version}[last]{% |
| 376 |
\scr@ifundefinedorrelax{scr@v@#1}{% |
| 377 |
\def\scr@compatibility{0}% |
| 378 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 379 |
You have set option `version' to value `#1', but\MessageBreak |
| 380 |
this value of version is not supported.\MessageBreak |
| 381 |
Because of this, version was set to `first'% |
| 382 |
}% |
| 383 |
\FamilyKeyStateProcessed |
| 384 |
\KOMA@kav@replacevalue{% |
| 385 |
\KOMAClassFileName |
| 386 |
}{version}{first}% |
| 387 |
}{% |
| 388 |
\ClassInfoNoLine{\KOMAClassName}{% |
| 389 |
Switching compatibility level to `#1'% |
| 390 |
}% |
| 391 |
\edef\scr@compatibility{\@nameuse{scr@v@#1}}% |
| 392 |
\FamilyKeyStateProcessed |
| 393 |
\KOMA@kav@xreplacevalue{% |
| 394 |
\KOMAClassFileName |
| 395 |
}{version}{#1}% |
| 396 |
\ifnum\scr@compatibility<\scr@v@last |
| 397 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 398 |
Switching back to an old KOMA-Script release does\MessageBreak |
| 399 |
not mean, that KOMA-Script is fully compatible with\MessageBreak |
| 400 |
the old release. If you need full compatibility\MessageBreak |
| 401 |
to an old KOMA-Script release, you should use that\MessageBreak |
| 402 |
old KOMA-Script release. However, in that case you\MessageBreak |
| 403 |
could also need old releases of other packages and\MessageBreak |
| 404 |
even of the LaTeX kernel.\MessageBreak |
| 405 |
Please also note, that the KOMA-Script developers\MessageBreak |
| 406 |
refuse support for documents using `version=#1'.\MessageBreak |
| 407 |
We recommend to eliminate all deprecated options\MessageBreak |
| 408 |
and commands. We also recommend to not use option\MessageBreak |
| 409 |
`version', i.e., with other values than `last'% |
| 410 |
}% |
| 411 |
\fi |
| 412 |
}% |
| 413 |
} |
| 414 |
\KOMA@kav@add{\KOMAClassFileName}{version}{last} |
| 415 |
\AtEndOfClass{% |
| 416 |
\KOMA@key{version}[]{% |
| 417 |
\ClassError{\KOMAClassName}{% |
| 418 |
Option `version' too late% |
| 419 |
}{% |
| 420 |
Option `version' may be set only while loading the |
| 421 |
class.\MessageBreak |
| 422 |
But you've tried to set it up later.% |
| 423 |
}% |
| 424 |
\FamilyKeyStateProcessed |
| 425 |
}% |
| 426 |
} |
| 427 |
\newcommand*{\scr@v@is@lt}[1]{% |
| 428 |
\scr@compatibility<\@nameuse{scr@v@#1} |
| 429 |
} |
| 430 |
\newcommand*{\scr@v@is@gt}[1]{% |
| 431 |
\scr@compatibility>\@nameuse{scr@v@#1} |
| 432 |
} |
| 433 |
\newcommand*{\scr@v@is@le}[1]{% |
| 434 |
\numexpr\scr@compatibility-\@ne\relax<\@nameuse{scr@v@#1} |
| 435 |
} |
| 436 |
\newcommand*{\scr@v@is@ge}[1]{% |
| 437 |
\numexpr\scr@compatibility+\@ne\relax>\@nameuse{scr@v@#1} |
| 438 |
} |
| 439 |
\newcommand*{\scr@v@is@eq}[1]{% |
| 440 |
\scr@compatibility=\@nameuse{scr@v@#1} |
| 441 |
} |
| 442 |
%%% From File: $Id: scrkernel-miscellaneous.dtx 4223 2025-09-11 09:09:44Z kohm $ |
| 443 |
%%% (run: option) |
| 444 |
\KOMA@key{draft}[true]{% |
| 445 |
\KOMA@set@ifkey{draft}{@tempswa}{#1}% |
| 446 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 447 |
\if@tempswa |
| 448 |
\KOMA@kav@replacebool{% |
| 449 |
\KOMAClassFileName |
| 450 |
}{draft}{@tempswa}% |
| 451 |
\KOMA@kav@replacebool{% |
| 452 |
\KOMAClassFileName |
| 453 |
}{overfullrule}{@tempswa}% |
| 454 |
\setlength{\overfullrule}{5pt}% |
| 455 |
\else |
| 456 |
\KOMA@kav@replacebool{% |
| 457 |
\KOMAClassFileName |
| 458 |
}{draft}{@tempswa}% |
| 459 |
\KOMA@kav@replacebool{% |
| 460 |
\KOMAClassFileName |
| 461 |
}{overfullrule}{@tempswa}% |
| 462 |
\setlength{\overfullrule}{\z@}% |
| 463 |
\fi |
| 464 |
\fi |
| 465 |
} |
| 466 |
\KOMA@kav@add{\KOMAClassFileName}{draft}{false} |
| 467 |
\KOMA@DeclareStandardOption |
| 468 |
{final}{draft=false} |
| 469 |
\KOMA@key{overfullrule}[true]{% |
| 470 |
\KOMA@set@ifkey{overfullrule}{@tempswa}{#1}% |
| 471 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 472 |
\if@tempswa |
| 473 |
\KOMA@kav@replacebool{% |
| 474 |
\KOMAClassFileName |
| 475 |
}{draft}{@tempswa}% |
| 476 |
\KOMA@kav@replacebool{% |
| 477 |
\KOMAClassFileName |
| 478 |
}{overfullrule}{@tempswa}% |
| 479 |
\setlength{\overfullrule}{5pt}% |
| 480 |
\else |
| 481 |
\KOMA@kav@replacebool{% |
| 482 |
\KOMAClassFileName |
| 483 |
}{draft}{@tempswa}% |
| 484 |
\KOMA@kav@replacebool{% |
| 485 |
\KOMAClassFileName |
| 486 |
}{overfullrule}{@tempswa}% |
| 487 |
\setlength{\overfullrule}{\z@}% |
| 488 |
\fi |
| 489 |
\fi |
| 490 |
} |
| 491 |
\KOMA@kav@add{\KOMAClassFileName}{overfullrule}{false} |
| 492 |
\DeclareOption{leqno}{\input{leqno.clo}} |
| 493 |
\DeclareOption{fleqn}{\input{fleqn.clo}} |
| 494 |
%%% From File: $Id: scrkernel-language.dtx 4140 2025-02-22 12:39:23Z kohm $ |
| 495 |
%%% (run: option) |
| 496 |
%%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 497 |
%%% (run: option) |
| 498 |
\providecommand*\@ptsize{% |
| 499 |
11% |
| 500 |
} |
| 501 |
\newcommand*{\@pt@scan}{% |
| 502 |
\expandafter\@pt@@scan\CurrentOption pt\@pt@@scan% |
| 503 |
} |
| 504 |
\newcommand*{\@pt@@scan}{} |
| 505 |
\def\@pt@@scan #1pt#2\@pt@@scan{% |
| 506 |
\Ifstr{#2}{pt}{% |
| 507 |
\Ifnumber{#1}{% |
| 508 |
\Ifstr{#1}{10}{% |
| 509 |
\KOMA@UseStandardOption{\PackageInfoNoLine{\KOMAClassName}}% |
| 510 |
{#1#2}{fontsize=#1#2}% |
| 511 |
}{% |
| 512 |
\Ifstr{#1}{11}{% |
| 513 |
\KOMA@UseStandardOption{\PackageInfoNoLine{\KOMAClassName}}% |
| 514 |
{#1#2}{fontsize=#1#2}% |
| 515 |
}{% |
| 516 |
\Ifstr{#1}{12}{% |
| 517 |
\KOMA@UseStandardOption{\PackageInfoNoLine{\KOMAClassName}}% |
| 518 |
{#1#2}{fontsize=#1#2}% |
| 519 |
}{% |
| 520 |
\KOMA@UseDeprecatedOption{\PackageWarningNoLine{\KOMAClassName}}% |
| 521 |
{#1#2}{fontsize=#1#2}% |
| 522 |
}% |
| 523 |
}% |
| 524 |
} |
| 525 |
}{\@headlines}% |
| 526 |
}{\@headlines}% |
| 527 |
} |
| 528 |
\providecommand*{\@fontsizefilebase}{scrsize} |
| 529 |
\KOMA@key{fontsize}{% |
| 530 |
\scr@ifundefinedorrelax{changefontsizes}{% |
| 531 |
\@defaultunits\@tempdima#1pt\relax\@nnil |
| 532 |
\edef\@ptsize{#1}% |
| 533 |
}{% |
| 534 |
\ifvmode\else |
| 535 |
\par |
| 536 |
\ClassError{\KOMAClassName}{% |
| 537 |
Option `fontsize' inside paragraph not allowed% |
| 538 |
}{% |
| 539 |
Option `fontsize' has been designed to change the base font size of |
| 540 |
a\MessageBreak |
| 541 |
document. It has not been made to change the current font |
| 542 |
size. Moreover\MessageBreak |
| 543 |
using it inside a paragraph mostly will not have the intended result, |
| 544 |
because\MessageBreak |
| 545 |
TeX always uses the setting of `\string\baselineskip' and other |
| 546 |
parameters from the\MessageBreak |
| 547 |
end of a paragraph for the whole paragraph. Therefore using option |
| 548 |
`fontsize'\MessageBreak |
| 549 |
in TeX's horizontal mode does not make sense and is not |
| 550 |
permitted.\MessageBreak |
| 551 |
You should use font size commands like `\string\Huge'…`\string\tiny' |
| 552 |
or `\string\fontsize' here.\MessageBreak |
| 553 |
See a LaTeX introduction for more information.\MessageBreak |
| 554 |
But maybe you've just forgotten to make a paragraph. So if you'd |
| 555 |
continue,\MessageBreak |
| 556 |
I'll add `\expandafter\string\csname par\endcsname'.% |
| 557 |
}% |
| 558 |
\fi |
| 559 |
\expandafter\@defaultunits\expandafter\@tempdima#1 pt\relax\@nnil |
| 560 |
\edef\@tempa{#1}% |
| 561 |
\setlength{\@tempdimb}{\@tempdima}% |
| 562 |
\edef\@tempb{\strip@pt\@tempdimb}% |
| 563 |
\addtolength{\@tempdimb}{-10\p@}% |
| 564 |
\edef\@ptsize{\strip@pt\@tempdimb}% |
| 565 |
\edef\@tempa{% |
| 566 |
\noexpand\makeatletter |
| 567 |
\noexpand\InputIfFileExists{\@fontsizefilebase\@tempa.clo}{% |
| 568 |
\noexpand\ClassInfo{\KOMAClassName}{% |
| 569 |
File `\@fontsizefilebase\@tempa.clo' used to setup font sizes}% |
| 570 |
}{% |
| 571 |
\noexpand\InputIfFileExists{\@fontsizefilebase\@tempb pt.clo}{% |
| 572 |
\noexpand\ClassInfo{\KOMAClassName}{% |
| 573 |
File `\@fontsizefilebase\@tempb pt.clo' used instead of% |
| 574 |
\noexpand\MessageBreak |
| 575 |
file `\@fontsizefilebase\@tempa.clo' to setup font sizes}% |
| 576 |
}{% |
| 577 |
\noexpand\changefontsizes{#1}% |
| 578 |
}% |
| 579 |
}% |
| 580 |
\noexpand\catcode`\noexpand\@=\the\catcode`\@ |
| 581 |
}% |
| 582 |
\@tempa |
| 583 |
}% |
| 584 |
\FamilyKeyStateProcessed |
| 585 |
\KOMA@kav@xreplacevalue{% |
| 586 |
\KOMAClassFileName |
| 587 |
}{fontsize}{#1}% |
| 588 |
} |
| 589 |
\DeclareOption{enabledeprecatedfontcommands}{% |
| 590 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 591 |
deprecated option `enabledeprecatedfontcommands'.\MessageBreak |
| 592 |
Note, that this option was already depreacted when\MessageBreak |
| 593 |
it has been defined. Support for old font commands\MessageBreak |
| 594 |
has been removed from KOMA-Script more than one\MessageBreak |
| 595 |
decade ago. It is not recommended to use them any\MessageBreak |
| 596 |
longer. Therefore usage of this class option also\MessageBreak |
| 597 |
is not recommended% |
| 598 |
}% |
| 599 |
\let\scr@defineobsoletefonts\@ne |
| 600 |
} |
| 601 |
\scr@ifundefinedorrelax{scr@defineobsoletefonts}{% |
| 602 |
\let\scr@defineobsoletefonts\z@ |
| 603 |
}{} |
| 604 |
\BeforePackage{tex4ht}{% |
| 605 |
\let\scr@defineobsoletefonts\thr@@ |
| 606 |
} |
| 607 |
\newif\if@sfdefaults\@sfdefaultstrue |
| 608 |
\KOMA@ifkey{sfdefaults}{@sfdefaults} |
| 609 |
\newcommand*{\maybesffamily}{\if@sfdefaults \sffamily \fi} |
| 610 |
\newcommand*{\textmaybesf}{% |
| 611 |
\if@sfdefaults \expandafter\textsf \else \expandafter\@firstofone \fi |
| 612 |
} |
| 613 |
%% \begin{option}{egegdoesnotlikesansseriftitles} |
| 614 |
\KOMA@key{egregdoesnotlikesansseriftitles}[true]{% |
| 615 |
\ClassWarningNoLine{\KOMAClassName}% |
| 616 |
{% |
| 617 |
You've used deprecated option `egregdoesnotlikesansseriftitles'.\MessageBreak |
| 618 |
In 2016 this option has been implemented as a joke\MessageBreak |
| 619 |
answer to egreg's comment:\MessageBreak |
| 620 |
\space\space ``In my opinion there should be a document class\MessageBreak |
| 621 |
\space\space option for it, instead of the |
| 622 |
\string\setkomafont\MessageBreak |
| 623 |
\space\space statement. And yes, I find imposing sans serif |
| 624 |
for\MessageBreak |
| 625 |
\space\space titles is not the best choice (one of the |
| 626 |
reasons\MessageBreak |
| 627 |
\space\space why I don't use Koma-script classes).''\MessageBreak |
| 628 |
to question https://tex.stackexchange.com/q/289853\MessageBreak |
| 629 |
at TeX.SX.\MessageBreak |
| 630 |
The option has never been documented in the official\MessageBreak |
| 631 |
user manuals and therefore should never have been\MessageBreak |
| 632 |
used in real live documents. It was intended to be\MessageBreak |
| 633 |
removed after some month.\MessageBreak |
| 634 |
However, it has been used and also almost forgotten\MessageBreak |
| 635 |
by the author.\MessageBreak |
| 636 |
For this the author apologizes both to users but\MessageBreak |
| 637 |
especially to egreg.\MessageBreak |
| 638 |
Rightly, egreg has criticized the permanent retention\MessageBreak |
| 639 |
of the option as unfunny to inappropriate and has\MessageBreak |
| 640 |
asked that it be removed or replaced.\MessageBreak |
| 641 |
It will be removed soon!\MessageBreak |
| 642 |
You should use `sfdefaults=false` instead% |
| 643 |
}% |
| 644 |
\KOMA@set@ifkey{egregdoesnotlikesansseriftitles}% |
| 645 |
{@sfdefaults}% |
| 646 |
{#1}% |
| 647 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 648 |
\if@sfdefault \@sfdefaultsfalse \else \@sfdefaulttrue \fi |
| 649 |
\KOMA@kav@xreplacevalue{\KOMAClassFileName}% |
| 650 |
{sfdefaults}{\if@sfdefaults true\else false\fi}% |
| 651 |
\fi |
| 652 |
} |
| 653 |
%%% From File: $Id: scrkernel-typearea.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 654 |
%%% (run: options) |
| 655 |
\KOMA@key{twoside}[true]{% |
| 656 |
\if@atdocument\else\PassOptionsToPackage{twoside=#1}{typearea}\fi% |
| 657 |
\Ifstr{#1}{semi}{% |
| 658 |
\@twosidetrue |
| 659 |
\FamilyKeyStateProcessed |
| 660 |
}{% |
| 661 |
\def\FamilyElseValue{, `semi'}% |
| 662 |
\KOMA@set@ifkey{twoside}{% |
| 663 |
@twoside% |
| 664 |
}{#1}% |
| 665 |
}% |
| 666 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 667 |
\expandafter\ifnum\scr@v@is@ge{3.17}% |
| 668 |
\if@twoside\flushbottom |
| 669 |
\else |
| 670 |
\if@twocolumn\sloppy\flushbottom\else\raggedbottom\fi |
| 671 |
\fi |
| 672 |
\fi |
| 673 |
\KOMA@kav@xreplacevalue |
| 674 |
{\KOMAClassFileName}% |
| 675 |
{twoside}{#1}% |
| 676 |
\fi |
| 677 |
} |
| 678 |
\KOMAExecuteOptions{twoside=true} |
| 679 |
\KOMA@DeclareStandardOption% |
| 680 |
{oneside}{twoside=false} |
| 681 |
\KOMA@key{twocolumn}[true]{% |
| 682 |
\if@atdocument\else\PassOptionsToPackage{twocolumn=#1}{typearea}\fi% |
| 683 |
\KOMA@set@ifkey{twocolumn}{@twocolumn}{#1}% |
| 684 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 685 |
\KOMA@kav@replacebool |
| 686 |
{\KOMAClassFileName}% |
| 687 |
{twocolumn}{@twocolumn}% |
| 688 |
\if@atdocument\expandafter\@firstofone |
| 689 |
\else\IfPackageLoadedTF{typearea}{\expandafter\@firstofone} |
| 690 |
{\expandafter\AtEndOfClass}\fi |
| 691 |
{% |
| 692 |
\expandafter\ifnum\scr@v@is@ge{3.17}% |
| 693 |
\if@twocolumn\twocolumn\sloppy\flushbottom |
| 694 |
\else |
| 695 |
\onecolumn |
| 696 |
\if@twoside\flushbottom\else |
| 697 |
\raggedbottom |
| 698 |
\fi |
| 699 |
\fi |
| 700 |
\fi |
| 701 |
}% |
| 702 |
\fi |
| 703 |
} |
| 704 |
\AtEndOfClass{% |
| 705 |
\expandafter\ifnum\scr@v@is@lt{3.17}% |
| 706 |
\if@twocolumn\twocolumn\sloppy\flushbottom |
| 707 |
\else\onecolumn\if@twoside\flushbottom\else\raggedbottom\fi\fi |
| 708 |
\fi |
| 709 |
} |
| 710 |
\KOMAExecuteOptions{twocolumn=false} |
| 711 |
\KOMA@DeclareStandardOption% |
| 712 |
{onecolumn}{twocolumn=false} |
| 713 |
\newcommand*{\@BCOR}{\expandafter\@@BCOR\CurrentOption BCORBCOR\@@BCOR} |
| 714 |
\newcommand*{\@@BCOR}{} |
| 715 |
\def\@@BCOR #1BCOR#2BCOR#3\@@BCOR{% |
| 716 |
\Ifstr{#1}{}{% |
| 717 |
\Ifstr{#3}{BCOR}{% |
| 718 |
\Ifstrstart{#2}{=}{% |
| 719 |
\edef\reserved@a{\noexpand\Ifdimen{\@gobble#2}}% |
| 720 |
\reserved@a{\PassOptionsToPackage{BCOR#2}{typearea}}{\OptionNotUsed}% |
| 721 |
}{% |
| 722 |
\Ifdimen{#2}{\PassOptionsToPackage{BCOR#2}{typearea}}{\OptionNotUsed}% |
| 723 |
}% |
| 724 |
}{\scr@pti@nerr@r}% |
| 725 |
}{\scr@pti@nerr@r}% |
| 726 |
} |
| 727 |
\newcommand*{\@DIV}{\expandafter\@@DIV\CurrentOption DIVDIV\@@DIV} |
| 728 |
\newcommand*{\@@DIV}{} |
| 729 |
\def\@@DIV #1DIV#2DIV#3\@@DIV{% |
| 730 |
\edef\@tempa{#1}\ifx\@tempa\@empty |
| 731 |
\edef\@tempa{#3}\def\@tempb{DIV}\ifx\@tempa\@tempb |
| 732 |
\Ifstrstart{#2}{=}{% |
| 733 |
\edef\reserved@a{\noexpand\Ifnumber{\@gobble#2}}% |
| 734 |
\reserved@a{\PassOptionsToPackage{DIV#2}{typearea}}{\OptionNotUsed}% |
| 735 |
}{% |
| 736 |
\Ifnumber{#2}{\PassOptionsToPackage{DIV#2}{typearea}}{\OptionNotUsed}% |
| 737 |
}% |
| 738 |
\else\scr@pti@nerr@r\fi |
| 739 |
\else\@BCOR\fi |
| 740 |
} |
| 741 |
\newcommand{\@headlines}{% |
| 742 |
\expandafter\@@headlines\CurrentOption headlines\@@headlines% |
| 743 |
} |
| 744 |
\newcommand*{\@@headlines}{} |
| 745 |
\def\@@headlines #1headlines#2\@@headlines{ |
| 746 |
\edef\@tempa{#2}\edef\@tempb{headlines}\ifx\@tempa\@tempb |
| 747 |
\PassOptionsToPackage{#1headlines}{typearea} |
| 748 |
\else\@DIV\fi |
| 749 |
} |
| 750 |
\newcommand*{\x@paper}{% |
| 751 |
\expandafter\x@@paper\CurrentOption paper\x@@paper% |
| 752 |
} |
| 753 |
\newcommand*{\x@@paper}{} |
| 754 |
\def\x@@paper #1#2paper#3\x@@paper{% |
| 755 |
\Ifstr{#3}{paper}{% |
| 756 |
\Ifnumber{#2}{% |
| 757 |
\Ifstr{#1}{a}{% |
| 758 |
\PassOptionsToPackage{#3=#1#2}{typearea}% |
| 759 |
}{% |
| 760 |
\Ifstr{#1}{b}{% |
| 761 |
\PassOptionsToPackage{#3=#1#2}{typearea}% |
| 762 |
}{% |
| 763 |
\Ifstr{#1}{c}{% |
| 764 |
\PassOptionsToPackage{#3=#1#2}{typearea}% |
| 765 |
}{% |
| 766 |
\Ifstr{#1}{d}{% |
| 767 |
\PassOptionsToPackage{#3=#1#2}{typearea}% |
| 768 |
}{\scr@pti@nerr@r}% |
| 769 |
}% |
| 770 |
}% |
| 771 |
}% |
| 772 |
}{\scr@pti@nerr@r}% |
| 773 |
}{% |
| 774 |
\@pt@scan |
| 775 |
}% |
| 776 |
} |
| 777 |
\newcommand*{\scr@pti@nerr@r}{ |
| 778 |
\OptionNotUsed |
| 779 |
} |
| 780 |
\DeclareOption*{% |
| 781 |
\x@paper} |
| 782 |
%%% From File: $Id: scrkernel-paragraphs.dtx 4145 2025-05-13 16:54:14Z kohm $ |
| 783 |
%%% (run: option) |
| 784 |
\newcommand*{\setparsizes}[3]{% |
| 785 |
\edef\f@parindent{\the\parindent}% |
| 786 |
\edef\f@parskip{\the\parskip}% |
| 787 |
\edef\f@parfillskip{\the\parfillskip}% |
| 788 |
\def\scr@parindent{#1}% |
| 789 |
\def\scr@parskip{#2}% |
| 790 |
\def\scr@parfillskip{#3}% |
| 791 |
\def\par@update{% |
| 792 |
\if@atdocument\let\par@update\default@par@update\fi |
| 793 |
\par@updaterelative |
| 794 |
}% |
| 795 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{false}% |
| 796 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{never}% |
| 797 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{full}% |
| 798 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{full-}% |
| 799 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{full+}% |
| 800 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{full*}% |
| 801 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{half}% |
| 802 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{half-}% |
| 803 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{half+}% |
| 804 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{half*}% |
| 805 |
} |
| 806 |
\newcommand*{\f@parindent}{\the\parindent} |
| 807 |
\newcommand*{\f@parskip}{\the\parskip} |
| 808 |
\newcommand*{\f@parfillskip}{\the\parfillskip} |
| 809 |
\newcommand*{\scr@parindent}{1em} |
| 810 |
\newcommand*{\scr@parskip}{\z@} |
| 811 |
\newcommand*{\scr@parfillskip}{\z@ \@plus 1fil} |
| 812 |
\AtEndOfClass{% |
| 813 |
\edef\f@parindent{\the\parindent}% |
| 814 |
\edef\f@parskip{\the\parskip}% |
| 815 |
\edef\f@parfillskip{\the\parfillskip}% |
| 816 |
} |
| 817 |
\newcommand*{\par@update}{} |
| 818 |
\let\par@update\relax |
| 819 |
\newcommand*{\default@par@update}{} |
| 820 |
\let\default@par@update\relax |
| 821 |
\AtBeginDocument{\par@update} |
| 822 |
\KOMA@key{parskip}[true]{% |
| 823 |
\begingroup |
| 824 |
\KOMA@set@ncmdkey{parskip}{@tempa}{% |
| 825 |
{never}{0},% |
| 826 |
{false}{1},{off}{1},{no}{1},% |
| 827 |
{full-}{2},% |
| 828 |
{half-}{3},% |
| 829 |
{full}{4},{true}{4},{on}{4},{yes}{4},% |
| 830 |
{half}{5},% |
| 831 |
{full+}{6},% |
| 832 |
{half+}{7},% |
| 833 |
{full*}{8},% |
| 834 |
{half*}{9},% |
| 835 |
{relative}{10},% |
| 836 |
{absolute}{11}% |
| 837 |
}{#1}% |
| 838 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 839 |
\aftergroup\FamilyKeyStateProcessed |
| 840 |
\ifcase\number\@tempa% 0 |
| 841 |
\endgroup |
| 842 |
\setparsizes{1em}{\z@}{\z@ \@plus 1fil}% |
| 843 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{never}% |
| 844 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 845 |
\or% 1 |
| 846 |
\endgroup |
| 847 |
\setparsizes{1em}{\z@ \@plus \p@}{\z@ \@plus 1fil}% |
| 848 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{false}% |
| 849 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 850 |
\or% 2 |
| 851 |
\endgroup |
| 852 |
\setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{% |
| 853 |
\z@ \@plus 1fil}% |
| 854 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{full-}% |
| 855 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 856 |
\or% 3 |
| 857 |
\endgroup |
| 858 |
\setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{% |
| 859 |
\z@ \@plus 1fil}% |
| 860 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{half-}% |
| 861 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 862 |
\or% 4 |
| 863 |
\endgroup |
| 864 |
\setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{% |
| 865 |
1em \@plus 1fil}% |
| 866 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{full}% |
| 867 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 868 |
\or% 5 |
| 869 |
\endgroup |
| 870 |
\setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{% |
| 871 |
1em \@plus 1fil}% |
| 872 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{half}% |
| 873 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 874 |
\or% 6 |
| 875 |
\endgroup |
| 876 |
\setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{% |
| 877 |
.3333\linewidth\@plus 1fil}% |
| 878 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{full+}% |
| 879 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 880 |
\or% 7 |
| 881 |
\endgroup |
| 882 |
\setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{% |
| 883 |
.3333\linewidth \@plus 1fil}% |
| 884 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{half+}% |
| 885 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 886 |
\or% 8 |
| 887 |
\endgroup |
| 888 |
\setparsizes{\z@}{1\baselineskip \@plus .1\baselineskip}{% |
| 889 |
.25\linewidth \@plus 1fil}% |
| 890 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{full*}% |
| 891 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 892 |
\or% 9 |
| 893 |
\endgroup |
| 894 |
\setparsizes{\z@}{.5\baselineskip \@plus .5\baselineskip}{% |
| 895 |
.25\linewidth \@plus 1fil}% |
| 896 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{half*}% |
| 897 |
\if@atdocument\AfterKOMAoptions{\selectfont}\fi |
| 898 |
\or% 10 |
| 899 |
\endgroup |
| 900 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{absolute}% |
| 901 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{relative}% |
| 902 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{relative}% |
| 903 |
\ifx\par@updaterelative\undefined |
| 904 |
\expandafter\AtEndOfClass |
| 905 |
\else |
| 906 |
\expandafter\@firstofone |
| 907 |
\fi |
| 908 |
{% |
| 909 |
\ifx\par@update\default@par@update |
| 910 |
\let\par@update\par@updaterelative |
| 911 |
\fi |
| 912 |
\let\default@par@update=\par@updaterelative |
| 913 |
}% |
| 914 |
\or%11 |
| 915 |
\endgroup |
| 916 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{absolute}% |
| 917 |
\KOMA@kav@remove{\KOMAClassFileName}{parskip}{relative}% |
| 918 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{absolute}% |
| 919 |
\ifx\par@updaterelative\undefined |
| 920 |
\expandafter\AtEndOfClass |
| 921 |
\else |
| 922 |
\expandafter\@firstofone |
| 923 |
\fi |
| 924 |
{% |
| 925 |
\ifx\par@update\default@par@update |
| 926 |
\let\par@update\relax |
| 927 |
\fi |
| 928 |
\let\default@par@update=\relax |
| 929 |
}% |
| 930 |
\else% should never be |
| 931 |
\endgroup |
| 932 |
\fi |
| 933 |
\else |
| 934 |
\endgroup |
| 935 |
\FamilyKeyStateUnknownValue |
| 936 |
\fi |
| 937 |
} |
| 938 |
\KOMA@DeclareDeprecatedOption{parskip-}{parskip=full-} |
| 939 |
\KOMA@DeclareDeprecatedOption{parskip+}{parskip=full+} |
| 940 |
\KOMA@DeclareDeprecatedOption{parskip*}{parskip=full*} |
| 941 |
\KOMA@DeclareDeprecatedOption{halfparskip}{parskip=half} |
| 942 |
\KOMA@DeclareDeprecatedOption{halfparskip-}{parskip=half-} |
| 943 |
\KOMA@DeclareDeprecatedOption{halfparskip+}{parskip=half+} |
| 944 |
\KOMA@DeclareDeprecatedOption{halfparskip*}{parskip=half*} |
| 945 |
\KOMA@DeclareDeprecatedOption{parindent}{parskip=false} |
| 946 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{false} |
| 947 |
\KOMA@kav@add{\KOMAClassFileName}{parskip}{absolute} |
| 948 |
%%% From File: $Id: scrkernel-title.dtx 4032 2023-04-17 09:45:11Z kohm $ |
| 949 |
%%% (run: option) |
| 950 |
\newif\if@titlepage |
| 951 |
\@titlepagetrue |
| 952 |
\newif\if@titlepageiscoverpage |
| 953 |
\KOMA@key{titlepage}[true]{% |
| 954 |
\Ifstr{#1}{firstiscover}{% |
| 955 |
\@titlepagetrue |
| 956 |
\@titlepageiscoverpagetrue |
| 957 |
\FamilyKeyStateProcessed |
| 958 |
\KOMA@kav@replacevalue{% |
| 959 |
\KOMAClassFileName |
| 960 |
}{titlepage}{firstiscover}% |
| 961 |
}{% |
| 962 |
\def\FamilyElseValue{, `firstiscover'}% |
| 963 |
\KOMA@set@ifkey{titlepage}{@titlepage}{#1}% |
| 964 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 965 |
\KOMA@kav@remove{% |
| 966 |
\KOMAClassFileName |
| 967 |
}{titlepage}{firstiscover}% |
| 968 |
\KOMA@kav@replacebool{% |
| 969 |
\KOMAClassFileName |
| 970 |
}{titlepage}{@titlepage}% |
| 971 |
\@titlepageiscoverpagefalse |
| 972 |
\fi |
| 973 |
}% |
| 974 |
} |
| 975 |
\KOMA@kav@xadd{% |
| 976 |
\KOMAClassFileName |
| 977 |
}{titlepage}{\if@titlepage true\else false\fi} |
| 978 |
\KOMA@DeclareStandardOption% |
| 979 |
{notitlepage}{titlepage=false} |
| 980 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 981 |
%%% (run: option) |
| 982 |
%%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $ |
| 983 |
%%% (run: option) |
| 984 |
\KOMA@key{open}{% |
| 985 |
\KOMA@set@ncmdkey{open}{@tempa}{% |
| 986 |
{any}{0},% |
| 987 |
{right}{1},% |
| 988 |
{left}{2}% |
| 989 |
}{#1}% |
| 990 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 991 |
\KOMA@kav@xreplacevalue{\KOMAClassFileName}{open}{#1}% |
| 992 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{openany}% |
| 993 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{openright}% |
| 994 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{openleft}% |
| 995 |
\ifcase \@tempa\relax |
| 996 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{openany}% |
| 997 |
\@openrightfalse |
| 998 |
\renewcommand*{\cleardoublestandardpage}{\cleardoubleoddstandardpage}% |
| 999 |
\or |
| 1000 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{openright}% |
| 1001 |
\@openrighttrue |
| 1002 |
\renewcommand*{\cleardoublestandardpage}{\cleardoubleoddstandardpage}% |
| 1003 |
\or |
| 1004 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{openleft}% |
| 1005 |
\@openrighttrue |
| 1006 |
\renewcommand*{\cleardoublestandardpage}{\cleardoubleevenstandardpage}% |
| 1007 |
\fi |
| 1008 |
\fi |
| 1009 |
} |
| 1010 |
\KOMA@DeclareStandardOption{openright}{open=right} |
| 1011 |
\KOMA@DeclareStandardOption{openany}{open=any} |
| 1012 |
\KOMA@key{numbers}{% |
| 1013 |
\KOMA@set@ncmdkey{numbers}{@tempa}{% |
| 1014 |
{autoendperiod}{0},{autoenddot}{0},{auto}{0},% |
| 1015 |
{endperiod}{1},{withendperiod}{1},{periodatend}{1},% |
| 1016 |
{enddot}{1},{withenddot}{1},{dotatend}{1},% |
| 1017 |
{noendperiod}{2},{noperiodatend}{2},% |
| 1018 |
{noenddot}{2},{nodotatend}{2}% |
| 1019 |
}{#1}% |
| 1020 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1021 |
\KOMA@kav@xreplacevalue{\KOMAClassFileName}{numbers}{#1}% |
| 1022 |
\ifcase \@tempa\relax |
| 1023 |
\if@atdocument\scr@dotchangeatdocument{#1}\else |
| 1024 |
\let\scr@altsecnumhook\@empty |
| 1025 |
\fi |
| 1026 |
\or |
| 1027 |
\if@atdocument\scr@dotchangeatdocument{#1}\else |
| 1028 |
\let\scr@altsecnumhook\scr@altsecnumhooktrue |
| 1029 |
\fi |
| 1030 |
\or |
| 1031 |
\if@atdocument\scr@dotchangeatdocument{#1}\else |
| 1032 |
\let\scr@altsecnumhook\scr@altsecnumhookfalse |
| 1033 |
\fi |
| 1034 |
\fi |
| 1035 |
\fi |
| 1036 |
} |
| 1037 |
\KOMA@DeclareDeprecatedOption{pointednumbers}{numbers=enddot} |
| 1038 |
\KOMA@DeclareDeprecatedOption{pointlessnumbers}{numbers=noenddot} |
| 1039 |
\KOMA@ifkey{bookmarkpackage}{@scr@autoloadbookmarkpackage} |
| 1040 |
\@scr@autoloadbookmarkpackagetrue |
| 1041 |
\KOMA@kav@add{\KOMAClassFileName}{bookmarkpackage}{true} |
| 1042 |
\AddToHook{package/hyperref/after}{% |
| 1043 |
\AddToHook{begindocument/before}[\KOMAClassName]{% |
| 1044 |
\IfPackageLoadedF{bookmark}{% |
| 1045 |
\if@scr@autoloadbookmarkpackage |
| 1046 |
\IfFileExists{bookmark.sty}{}{% |
| 1047 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 1048 |
Using `bookmark' together with `hyperref' is |
| 1049 |
recommended,\MessageBreak |
| 1050 |
because of handling of possible bookmark level gaps.\MessageBreak |
| 1051 |
However, the package seems not to be installed and\MessageBreak |
| 1052 |
therefore cannot be loaded automatically.\MessageBreak |
| 1053 |
It is recommended to install package `bookmark'!\MessageBreak |
| 1054 |
However, you can avoid this warning without\MessageBreak |
| 1055 |
installation of package `bookmark', if you'd |
| 1056 |
deactivate\MessageBreak |
| 1057 |
automatically loading of `bookmark' using KOMA-Script\MessageBreak |
| 1058 |
option `bookmarkpackage=false' before |
| 1059 |
\string\begin{document}% |
| 1060 |
}% |
| 1061 |
\@scr@autoloadbookmarkpackagefalse |
| 1062 |
\KOMA@kav@replacevalue{\KOMAClassFileName}{bookmarkpackage}{false}% |
| 1063 |
}% |
| 1064 |
\fi |
| 1065 |
\if@scr@autoloadbookmarkpackage |
| 1066 |
\scr@ifundefinedorrelax{Hy@driver}{% |
| 1067 |
\ClassWarning{\KOMAClassName}{% |
| 1068 |
`hyperref' loaded but `\string\Hy@driver' undefined.\MessageBreak |
| 1069 |
This should not happen!\MessageBreak |
| 1070 |
Maybe `hyperref' not loaded or unknown version?% |
| 1071 |
}% |
| 1072 |
}{% |
| 1073 |
\Ifstr{\Hy@driver}{hdvips}{% |
| 1074 |
\providecommand*{\BookmarkDriverDefault}{dvips}% |
| 1075 |
}{% |
| 1076 |
\Ifstr{\Hy@driver}{hdvipdfm}{% |
| 1077 |
\providecommand*{\BookmarkDriverDefault}{dvipdfm}% |
| 1078 |
}{% |
| 1079 |
\Ifstr{\Hy@driver}{hdvipson}{% |
| 1080 |
\providecommand*{\BookmarkDriverDefault}{dvipsone}% |
| 1081 |
}{% |
| 1082 |
\Ifstr{\Hy@driver}{htexture}{% |
| 1083 |
\providecommand*{\BookmarkDriverDefault}{textures}% |
| 1084 |
}{% |
| 1085 |
}% |
| 1086 |
}% |
| 1087 |
}% |
| 1088 |
}% |
| 1089 |
}% |
| 1090 |
\ClassInfo{\KOMAClassName}{% |
| 1091 |
loading recommended package `bookmark'.\MessageBreak |
| 1092 |
Using `bookmark' together with `hyperref' is |
| 1093 |
recommended,\MessageBreak |
| 1094 |
because of handling of possible bookmark level gaps.\MessageBreak |
| 1095 |
You can avoid loading `bookmark' with KOMA-Script |
| 1096 |
option\MessageBreak |
| 1097 |
`bookmarkpackage=false' before \string\begin{document} |
| 1098 |
and\MessageBreak |
| 1099 |
you can avoid this message adding:\MessageBreak |
| 1100 |
\space\space\string\usepackage |
| 1101 |
\scr@ifundefinedorrelax{BookmarkDriverDefault}{}{% |
| 1102 |
[\BookmarkDriverDefault]% |
| 1103 |
}{bookmark}\MessageBreak |
| 1104 |
before \string\begin{document}% |
| 1105 |
}% |
| 1106 |
\@ifundefined{es@quoting}{% |
| 1107 |
\RequirePackage{bookmark}% |
| 1108 |
}{% |
| 1109 |
\ifx\es@quoting\activatequoting |
| 1110 |
\ClassInfo{\KOMAClassName}{% |
| 1111 |
temporary deactivation of babel-spanish quoting |
| 1112 |
}% |
| 1113 |
\deactivatequoting |
| 1114 |
\RequirePackage{bookmark}% |
| 1115 |
\ClassInfo{\KOMAClassName}{% |
| 1116 |
reactivation of babel-spanish quoting |
| 1117 |
}% |
| 1118 |
\activatequoting |
| 1119 |
\else |
| 1120 |
\RequirePackage{bookmark}% |
| 1121 |
\fi |
| 1122 |
}% |
| 1123 |
\@ifpackagelater{hyperref}{2022/09/22}{}{% |
| 1124 |
\ifx\@beginmainauxhook\relax |
| 1125 |
\else |
| 1126 |
\if@filesw |
| 1127 |
\ClassWarning{\KOMAClassName}{% |
| 1128 |
seems someone has broken package `auxhook'.\MessageBreak |
| 1129 |
Usually this happens, if `auxhook' is loaded or |
| 1130 |
used\MessageBreak |
| 1131 |
implicitly or explicitly by patching |
| 1132 |
\string\document% |
| 1133 |
\scr@ifundefinedorrelax{AtEndPreamble}{}{% |
| 1134 |
\MessageBreak |
| 1135 |
or via etoolbox command \string\AtEndPreamble% |
| 1136 |
}.\MessageBreak |
| 1137 |
Trying an emergency workaround.\MessageBreak |
| 1138 |
You can avoid this warning adding:\MessageBreak |
| 1139 |
\space\space\string\usepackage{auxhook}\MessageBreak |
| 1140 |
before \string\begin{document}% |
| 1141 |
}% |
| 1142 |
\@beginmainauxhook |
| 1143 |
\fi |
| 1144 |
\fi |
| 1145 |
}% |
| 1146 |
\fi |
| 1147 |
}% |
| 1148 |
}% |
| 1149 |
} |
| 1150 |
\KOMA@key{chapterprefix}[true]{% |
| 1151 |
\KOMA@set@ifkey{chapterprefix}{@chapterprefix}{#1}% |
| 1152 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1153 |
\KOMA@kav@replacebool{\KOMAClassFileName}% |
| 1154 |
{chapterprefix}{@chapterprefix}% |
| 1155 |
\KOMA@kav@remove{\KOMAClassFileName}% |
| 1156 |
{headings}{twolinechapter}% |
| 1157 |
\KOMA@kav@remove{\KOMAClassFileName}% |
| 1158 |
{headings}{onelinechapter}% |
| 1159 |
\KOMA@kav@xadd{\KOMAClassFileName}% |
| 1160 |
{headings}{% |
| 1161 |
\if@chapterprefix twolinechapter\else onelinechapter\fi |
| 1162 |
}% |
| 1163 |
\fi |
| 1164 |
} |
| 1165 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{onelinechapter}% |
| 1166 |
\KOMA@DeclareDeprecatedOption{nochapterprefix}{chapterprefix=false} |
| 1167 |
\KOMA@key{appendixprefix}[true]{% |
| 1168 |
\Ifstr{#1}{default}{% |
| 1169 |
\KOMA@kav@removekey{\KOMAClassFileName}{appendixprefix}% |
| 1170 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{twolineappendix}% |
| 1171 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{onelineappendix}% |
| 1172 |
\IfHookEmptyTF{\KOMAClassName/appendix}{}{% |
| 1173 |
\RemoveFromHook{\KOMAClassName/appendix}[appendixprefix]% |
| 1174 |
}% |
| 1175 |
\FamilyKeyStateProcessed |
| 1176 |
}{% |
| 1177 |
\KOMA@set@ifkey{appendixprefix}{@tempswa}{#1}% |
| 1178 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1179 |
\KOMA@kav@xreplacevalue{\KOMAClassFileName}{appendixprefix}{#1}% |
| 1180 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{twolineappendix}% |
| 1181 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{onelineappendix}% |
| 1182 |
\IfHookEmptyTF{\KOMAClassName/appendix}{}{% |
| 1183 |
\RemoveFromHook{\KOMAClassName/appendix}[appendixprefix]% |
| 1184 |
}% |
| 1185 |
\if@tempswa |
| 1186 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{twolineappendix}% |
| 1187 |
\AddToHook{\KOMAClassName/appendix}[appendixprefix]% |
| 1188 |
{\@chapterprefixtrue}% |
| 1189 |
\else |
| 1190 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{onelineappendix}% |
| 1191 |
\AddToHook{\KOMAClassName/appendix}[appendixprefix]% |
| 1192 |
{\@chapterprefixfalse}% |
| 1193 |
\fi |
| 1194 |
\fi |
| 1195 |
}% |
| 1196 |
}% |
| 1197 |
\KOMA@DeclareDeprecatedOption{noappendixprefix}{appendixprefix=false} |
| 1198 |
\KOMA@ifkey{chapterentrydots}{@chapterentrywithdots} |
| 1199 |
\KOMA@key{headings}{% |
| 1200 |
\KOMA@set@ncmdkey{headings}{@tempa}{% |
| 1201 |
{big}{0},% |
| 1202 |
{normal}{1},% |
| 1203 |
{small}{2},% |
| 1204 |
{openany}{3},% |
| 1205 |
{openright}{4},% |
| 1206 |
{openleft}{5},% |
| 1207 |
{twolinechapter}{6},{chapterprefix}{6},{chapterwithprefix}{6},% |
| 1208 |
{chapterwithprefixline}{6},% |
| 1209 |
{onelinechapter}{7},{nochapterprefix}{7},{chapterwithoutprefix}{7},% |
| 1210 |
{chapterwithoutprefixline}{7},% |
| 1211 |
{twolineappendix}{8},{appendixprefix}{8},{appendixwithprefix}{8},% |
| 1212 |
{appendixwithprefixline}{8},% |
| 1213 |
{onelineappendix}{9},{noappendixprefix}{9},{appendixwithoutprefix}{9},% |
| 1214 |
{appendixwithoutprefixline}{9},% |
| 1215 |
{optiontotocandhead}{10},{optiontoheadandtoc}{10},% |
| 1216 |
{optiontotoc}{11},% |
| 1217 |
{optiontohead}{12},% |
| 1218 |
{standardclasses}{13}% |
| 1219 |
}{#1}% |
| 1220 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1221 |
\ifcase \@tempa\relax% big |
| 1222 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{big}% |
| 1223 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}% |
| 1224 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{small}% |
| 1225 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}% |
| 1226 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{big}% |
| 1227 |
\renewcommand*{\scr@chapter@beforeskip}{-3.3\baselineskip-\parskip}% |
| 1228 |
\renewcommand*{\scr@chapter@afterskip}{% |
| 1229 |
1.725\baselineskip \@plus .115\baselineskip \@minus .192\baselineskip |
| 1230 |
}% |
| 1231 |
\renewcommand*{\scr@chapter@innerskip}{.5\baselineskip}% |
| 1232 |
\renewcommand*{\chapterheadstartvskip}{\vspace{\@tempskipa}}% |
| 1233 |
\renewcommand*{\chapterheadendvskip}{% |
| 1234 |
\expandafter\ifnum\scr@v@is@lt{3.15}\vspace\@tempskipa\else |
| 1235 |
\vskip\@tempskipa |
| 1236 |
\fi |
| 1237 |
}% |
| 1238 |
\renewcommand*{\chapterheadmidvskip}{\par\nobreak\vskip\@tempskipa}% |
| 1239 |
\setkomafont{part}{\Huge}% |
| 1240 |
\setkomafont{partnumber}{\huge}% |
| 1241 |
\setkomafont{chapter}{\huge}% |
| 1242 |
\setkomafont{chapterprefix}{\size@chapter}% |
| 1243 |
\setkomafont{section}{\Large}% |
| 1244 |
\setkomafont{subsection}{\large}% |
| 1245 |
\setkomafont{subsubsection}{\normalsize}% |
| 1246 |
\setkomafont{paragraph}{\normalsize}% |
| 1247 |
\setkomafont{subparagraph}{\normalsize}% |
| 1248 |
\or % normal |
| 1249 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{big}% |
| 1250 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}% |
| 1251 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{small}% |
| 1252 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}% |
| 1253 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{normal}% |
| 1254 |
\renewcommand*{\scr@chapter@beforeskip}{-3\baselineskip-\parskip}% |
| 1255 |
\renewcommand*{\scr@chapter@afterskip}{% |
| 1256 |
1.5\baselineskip \@plus .1\baselineskip \@minus .167\baselineskip |
| 1257 |
}% |
| 1258 |
\renewcommand*{\scr@chapter@innerskip}{.5\baselineskip}% |
| 1259 |
\renewcommand*{\chapterheadstartvskip}{\vspace{\@tempskipa}}% |
| 1260 |
\renewcommand*{\chapterheadendvskip}{% |
| 1261 |
\expandafter\ifnum\scr@v@is@lt{3.15}\vspace\@tempskipa\else |
| 1262 |
\vskip\@tempskipa |
| 1263 |
\fi |
| 1264 |
}% |
| 1265 |
\renewcommand*{\chapterheadmidvskip}{\par\nobreak\vskip\@tempskipa}% |
| 1266 |
\setkomafont{part}{\huge}% |
| 1267 |
\setkomafont{partnumber}{\huge}% |
| 1268 |
\setkomafont{chapter}{\LARGE}% |
| 1269 |
\setkomafont{chapterprefix}{\size@chapter}% |
| 1270 |
\setkomafont{section}{\Large}% |
| 1271 |
\setkomafont{subsection}{\large}% |
| 1272 |
\setkomafont{subsubsection}{\normalsize}% |
| 1273 |
\setkomafont{paragraph}{\normalsize}% |
| 1274 |
\setkomafont{subparagraph}{\normalsize}% |
| 1275 |
\or % small |
| 1276 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{big}% |
| 1277 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}% |
| 1278 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{small}% |
| 1279 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}% |
| 1280 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{small}% |
| 1281 |
\renewcommand*{\scr@chapter@beforeskip}{-2.8\baselineskip-\parskip}% |
| 1282 |
\renewcommand*{\scr@chapter@afterskip}{% |
| 1283 |
1.35\baselineskip \@plus 0.09\baselineskip \@minus .15\baselineskip |
| 1284 |
}% |
| 1285 |
\renewcommand*{\scr@chapter@innerskip}{.5\baselineskip}% |
| 1286 |
\renewcommand*{\chapterheadstartvskip}{\vspace{\@tempskipa}}% |
| 1287 |
\renewcommand*{\chapterheadendvskip}{% |
| 1288 |
\expandafter\ifnum\scr@v@is@lt{3.15}\vspace\@tempskipa\else |
| 1289 |
\vskip\@tempskipa |
| 1290 |
\fi |
| 1291 |
}% |
| 1292 |
\renewcommand*{\chapterheadmidvskip}{\par\nobreak\vskip\@tempskipa}% |
| 1293 |
\setkomafont{part}{\LARGE}% |
| 1294 |
\setkomafont{partnumber}{\LARGE}% |
| 1295 |
\setkomafont{chapter}{\Large}% |
| 1296 |
\setkomafont{chapterprefix}{\size@chapter}% |
| 1297 |
\setkomafont{section}{\large}% |
| 1298 |
\setkomafont{subsection}{\normalsize}% |
| 1299 |
\setkomafont{subsubsection}{\normalsize}% |
| 1300 |
\setkomafont{paragraph}{\normalsize}% |
| 1301 |
\setkomafont{subparagraph}{\normalsize}% |
| 1302 |
\or % openany |
| 1303 |
\KOMAoptions{open=any}% |
| 1304 |
\or % openright |
| 1305 |
\KOMAoptions{open=right}% |
| 1306 |
\or % openleft |
| 1307 |
\KOMAoptions{open=left}% |
| 1308 |
\or % twolinechapter |
| 1309 |
\KOMAoptions{chapterprefix=true}% |
| 1310 |
\or % onelinechapter |
| 1311 |
\KOMAoptions{chapterprefix=false}% |
| 1312 |
\or % twolineappendix |
| 1313 |
\KOMAoptions{appendixprefix=true}% |
| 1314 |
\or % onelineappendix |
| 1315 |
\KOMAoptions{appendixprefix=false}% |
| 1316 |
\or % optiontotocandhead |
| 1317 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotocandhead}% |
| 1318 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotoc}% |
| 1319 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontohead}% |
| 1320 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{optiontotocandhead}% |
| 1321 |
\scr@activate@xsection{3}% |
| 1322 |
\or % optiontotoc |
| 1323 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotocandhead}% |
| 1324 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotoc}% |
| 1325 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontohead}% |
| 1326 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{optiontotoc}% |
| 1327 |
\scr@activate@xsection{2}% |
| 1328 |
\or % optiontohead |
| 1329 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotocandhead}% |
| 1330 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontotoc}% |
| 1331 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{optiontohead}% |
| 1332 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{optiontohead}% |
| 1333 |
\scr@activate@xsection{1}% |
| 1334 |
\or % standardclasses |
| 1335 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{big}% |
| 1336 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{normal}% |
| 1337 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{small}% |
| 1338 |
\KOMA@kav@remove{\KOMAClassFileName}{headings}{standardclasses}% |
| 1339 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{standardclasses}% |
| 1340 |
\renewcommand*{\scr@chapter@beforeskip}{-50\p@}% |
| 1341 |
\renewcommand*{\scr@chapter@afterskip}{40\p@}% |
| 1342 |
\renewcommand*{\scr@chapter@innerskip}{20\p@}% |
| 1343 |
\renewcommand*{\chapterheadstartvskip}{\vspace{\@tempskipa}}% |
| 1344 |
\renewcommand*{\chapterheadendvskip}{\vskip\@tempskipa}% |
| 1345 |
\renewcommand*{\chapterheadmidvskip}{\par\nobreak\vskip\@tempskipa}% |
| 1346 |
\setkomafont{part}{\Huge}% |
| 1347 |
\setkomafont{partnumber}{\huge}% |
| 1348 |
\setkomafont{chapter}{\Huge}% |
| 1349 |
\setkomafont{chapterprefix}{\huge}% |
| 1350 |
\setkomafont{section}{\Large}% |
| 1351 |
\setkomafont{subsection}{\large}% |
| 1352 |
\setkomafont{subsubsection}{\normalsize}% |
| 1353 |
\setkomafont{paragraph}{\normalsize}% |
| 1354 |
\setkomafont{subparagraph}{\normalsize}% |
| 1355 |
\renewcommand*{\sectfont}{\bfseries}% |
| 1356 |
\KOMAoptions{open=right,chapterprefix=true}% |
| 1357 |
\fi |
| 1358 |
\fi |
| 1359 |
} |
| 1360 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{big} |
| 1361 |
\KOMA@kav@add{\KOMAClassFileName}{headings}{onelinechapter} |
| 1362 |
\KOMA@DeclareDeprecatedOption{bigheadings}{headings=big} |
| 1363 |
\KOMA@DeclareDeprecatedOption{normalheadings}{headings=normal} |
| 1364 |
\KOMA@DeclareDeprecatedOption{smallheadings}{headings=small} |
| 1365 |
%%% From File: $Id: scrkernel-pagestyles.dtx 4058 2023-06-16 08:32:27Z kohm $ |
| 1366 |
%%% (run: option) |
| 1367 |
\KOMA@ifkey{headsepline}{@hsl}% |
| 1368 |
\KOMA@kav@add{\KOMAClassFileName}{headsepline}{false} |
| 1369 |
\KOMA@DeclareDeprecatedOption{headnosepline}{headsepline=false} |
| 1370 |
\KOMA@ifkey{footsepline}{@fsl}% |
| 1371 |
\KOMA@kav@add{\KOMAClassFileName}{footsepline}{false} |
| 1372 |
\KOMA@DeclareDeprecatedOption{footnosepline}{footsepline=false} |
| 1373 |
\KOMA@key{cleardoublepage}{% |
| 1374 |
\begingroup |
| 1375 |
\def\@tempc{% |
| 1376 |
\endgroup |
| 1377 |
\KOMA@unknown@keyval{cleardoublepage}{#1}{% |
| 1378 |
'current' or any defined pagestyle e.g. 'empty','plain', 'headings'}% |
| 1379 |
}% |
| 1380 |
\Ifstr{#1}{current}{% |
| 1381 |
\def\@tempc{\endgroup |
| 1382 |
\def\cleardoublepage{\cleardoublestandardpage}% |
| 1383 |
\def\cleardoubleoddpage{\cleardoubleoddstandardpage}% |
| 1384 |
\def\cleardoubleevenpage{\cleardoubleevenstandardpage}% |
| 1385 |
\FamilyKeyStateProcessed |
| 1386 |
\KOMA@kav@replacevalue{% |
| 1387 |
\KOMAClassFileName |
| 1388 |
}{cleardoublepage}{current}% |
| 1389 |
}% |
| 1390 |
}{% |
| 1391 |
\Ifnotundefined{ps@#1}{% |
| 1392 |
\def\@tempc{\endgroup |
| 1393 |
\def\cleardoublepage{\cleardoublepageusingstyle{#1}}% |
| 1394 |
\def\cleardoubleoddpage{\cleardoubleoddpageusingstyle{#1}}% |
| 1395 |
\def\cleardoubleevenpage{\cleardoubleevenpageusingstyle{#1}}% |
| 1396 |
\FamilyKeyStateProcessed |
| 1397 |
\KOMA@kav@xreplacevalue{% |
| 1398 |
\KOMAClassFileName |
| 1399 |
}{cleardoublepage}{#1}% |
| 1400 |
}% |
| 1401 |
}{% |
| 1402 |
\ifx\@currname\KOMAClassName |
| 1403 |
\ifx\@currext\@clsextension |
| 1404 |
\Ifstr{#1}{headings}{% |
| 1405 |
\def\@tempc{\endgroup |
| 1406 |
\def\cleardoublepage{\cleardoublepageusingstyle{#1}}% |
| 1407 |
\def\cleardoubleoddpage{\cleardoubleoddpageusingstyle{#1}}% |
| 1408 |
\def\cleardoubleevenpage{\cleardoubleevenpageusingstyle{#1}}% |
| 1409 |
\FamilyKeyStateProcessed |
| 1410 |
\KOMA@kav@xreplacevalue{\KOMAClassFileName}% |
| 1411 |
{cleardoublepage}{#1}% |
| 1412 |
}% |
| 1413 |
}{}% |
| 1414 |
\fi |
| 1415 |
\fi |
| 1416 |
}% |
| 1417 |
}% |
| 1418 |
\@tempc |
| 1419 |
} |
| 1420 |
\newcommand*{\cleardoubleoddstandardpage}{} |
| 1421 |
\let\cleardoubleoddstandardpage=\cleardoublepage |
| 1422 |
\newcommand*{\cleardoubleoddpageusingstyle}[1]{\clearpage |
| 1423 |
{\pagestyle{#1}\cleardoubleoddstandardpage}} |
| 1424 |
\newcommand*{\cleardoubleoddemptypage}{\cleardoubleoddpageusingstyle{empty}} |
| 1425 |
\newcommand*{\cleardoubleoddplainpage}{\cleardoubleoddpageusingstyle{plain}} |
| 1426 |
\newcommand*{\cleardoubleevenstandardpage}{% |
| 1427 |
\clearpage |
| 1428 |
\if@twoside\ifodd\c@page |
| 1429 |
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi |
| 1430 |
\fi\fi |
| 1431 |
} |
| 1432 |
\newcommand*{\cleardoubleevenpageusingstyle}[1]{\clearpage |
| 1433 |
{\pagestyle{#1}\cleardoubleevenstandardpage}} |
| 1434 |
\newcommand*{\cleardoubleevenemptypage}{\cleardoubleevenpageusingstyle{empty}} |
| 1435 |
\newcommand*{\cleardoubleevenplainpage}{\cleardoubleevenpageusingstyle{plain}} |
| 1436 |
\newcommand*{\cleardoublestandardpage}{\cleardoubleoddstandardpage} |
| 1437 |
\renewcommand*{\cleardoublepage}{% |
| 1438 |
\expandafter\ifnum \scr@v@is@gt{2.98c}% |
| 1439 |
\cleardoubleemptypage |
| 1440 |
\else |
| 1441 |
\cleardoublestandardpage |
| 1442 |
\fi |
| 1443 |
} |
| 1444 |
\KOMA@kav@add{% |
| 1445 |
\KOMAClassFileName |
| 1446 |
}{cleardoublepage}{% |
| 1447 |
\expandafter\ifnum \scr@v@is@gt{2.98c} |
| 1448 |
empty% |
| 1449 |
\else current\fi |
| 1450 |
} |
| 1451 |
\AtEndOfClass{% |
| 1452 |
\KOMAoptionOf[\expandafter\edef\expandafter\@tempa\@firstofone]% |
| 1453 |
{% |
| 1454 |
\KOMAClassFileName |
| 1455 |
}{cleardoublepage}% |
| 1456 |
\KOMA@kav@removekey{% |
| 1457 |
\KOMAClassFileName |
| 1458 |
}{cleardoublepage}% |
| 1459 |
\KOMA@kav@xadd{% |
| 1460 |
\KOMAClassFileName |
| 1461 |
}{cleardoublepage}{\@tempa}% |
| 1462 |
} |
| 1463 |
\newcommand*{\cleardoubleoddpage}{\cleardoubleoddemptypage} |
| 1464 |
\newcommand*{\cleardoubleevenpage}{\cleardoubleevenemptypage} |
| 1465 |
\newcommand*{\cleardoublepageusingstyle}[1]{\clearpage |
| 1466 |
{\pagestyle{#1}\cleardoublestandardpage}} |
| 1467 |
\newcommand*{\cleardoubleemptypage}{\cleardoublepageusingstyle{empty}} |
| 1468 |
\newcommand*{\cleardoubleplainpage}{\cleardoublepageusingstyle{plain}} |
| 1469 |
\KOMA@DeclareDeprecatedOption{cleardoubleempty}{cleardoublepage=empty} |
| 1470 |
\KOMA@DeclareDeprecatedOption{cleardoubleplain}{cleardoublepage=plain} |
| 1471 |
\KOMA@DeclareDeprecatedOption{cleardoublestandard}{cleardoublepage=current} |
| 1472 |
%%% From File: $Id: scrkernel-floats.dtx 4197 2025-08-15 09:13:30Z kohm $ |
| 1473 |
%%% (run: option) |
| 1474 |
\newif\if@captionabove\@captionabovefalse |
| 1475 |
\newif\ifonelinecaptions\onelinecaptionstrue |
| 1476 |
\AddToHook{package/caption3/after}{% |
| 1477 |
\DeclareCaptionSinglelinecheck{koma}{% |
| 1478 |
\ifonelinecaptions |
| 1479 |
\expandafter\@firstoftwo |
| 1480 |
\else |
| 1481 |
\expandafter\@secondoftwo |
| 1482 |
\fi}% |
| 1483 |
\SetCaptionDefault{singlelinecheck}{koma}% |
| 1484 |
} |
| 1485 |
\newcommand*{\scap@pos}{r} |
| 1486 |
\newcommand*{\scap@valign}{b} |
| 1487 |
\KOMA@key{captions}{% |
| 1488 |
\KOMA@set@ncmdkey{captions}{@tempa}{% |
| 1489 |
{heading}{0},{above}{0},{top}{0},% |
| 1490 |
{signature}{1},{below}{1},{bot}{1},{bottom}{1},% |
| 1491 |
{tableheading}{2},% |
| 1492 |
{tableabove}{2},{abovetable}{2},{abovetabular}{2},{topattable}{2},% |
| 1493 |
{tablesignature}{3},% |
| 1494 |
{tablebelow}{3},{belowtable}{3},{belowtabular}{3},{bottomattable}{3},% |
| 1495 |
{figureheading}{4},{figureabove}{4},{abovefigure}{4},{topatfigure}{4},% |
| 1496 |
{figuresignature}{5},{figurebelow}{5},{belowfigure}{5},{bottomatfigure}{5},% |
| 1497 |
{oneline}{6},% |
| 1498 |
{nooneline}{7},% |
| 1499 |
{rightbeside}{8},{besideright}{8},% |
| 1500 |
{leftbeside}{9},{besideleft}{9},% |
| 1501 |
{innerbeside}{10},{besideinner}{10},% |
| 1502 |
{outerbeside}{11},{besideouter}{11},% |
| 1503 |
{topbeside}{12},{besidetop}{12},% |
| 1504 |
{centeredbeside}{13},{besidecentered}{13},% |
| 1505 |
{middlebeside}{13},{besidemiddle}{13},% |
| 1506 |
{bottombeside}{14},{besidebottom}{14}% |
| 1507 |
}{#1}% |
| 1508 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1509 |
\ifcase \@tempa\relax % heading |
| 1510 |
\SetKeys[tocbasic]{captionabove}% |
| 1511 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{heading}% |
| 1512 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{signature}% |
| 1513 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{heading}% |
| 1514 |
\or % signature |
| 1515 |
\SetKeys[tocbasic]{captionbelow}% |
| 1516 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{heading}% |
| 1517 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{signature}% |
| 1518 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{signature}% |
| 1519 |
\or % tableheading |
| 1520 |
\SetKeys[tocbasic]{tablecaptionabove} |
| 1521 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{tableheading}% |
| 1522 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{tablesignature}% |
| 1523 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{tableheading}% |
| 1524 |
\or % tablesignature |
| 1525 |
\SetKeys[tocbasic]{tablecaptionbelow} |
| 1526 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{tableheading}% |
| 1527 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{tablesignature}% |
| 1528 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{tablesignature}% |
| 1529 |
\or % figureheading |
| 1530 |
\SetKeys[tocbasic]{figurecaptionabove} |
| 1531 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{figureheading}% |
| 1532 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{figuresignature}% |
| 1533 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{figureheading}% |
| 1534 |
\or % figuresignature |
| 1535 |
\SetKeys[tocbasic]{figurecaptionbelow} |
| 1536 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{figureheading}% |
| 1537 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{figuresignature}% |
| 1538 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{figuresignature}% |
| 1539 |
\or % oneline |
| 1540 |
\onelinecaptionstrue |
| 1541 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{oneline}% |
| 1542 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{nooneline}% |
| 1543 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{oneline}% |
| 1544 |
\or % nooneline |
| 1545 |
\onelinecaptionsfalse |
| 1546 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{oneline}% |
| 1547 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{nooneline}% |
| 1548 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{nooneline}% |
| 1549 |
\or % rightbeside |
| 1550 |
\renewcommand*{\scap@pos}{r}% |
| 1551 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}% |
| 1552 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}% |
| 1553 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}% |
| 1554 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}% |
| 1555 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{rightbeside}% |
| 1556 |
\or % leftbeside |
| 1557 |
\renewcommand*{\scap@pos}{l}% |
| 1558 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}% |
| 1559 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}% |
| 1560 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}% |
| 1561 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}% |
| 1562 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{leftbeside}% |
| 1563 |
\or % innerbeside |
| 1564 |
\renewcommand*{\scap@pos}{i}% |
| 1565 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}% |
| 1566 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}% |
| 1567 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}% |
| 1568 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}% |
| 1569 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{innerbeside}% |
| 1570 |
\or % outerbeside |
| 1571 |
\renewcommand*{\scap@pos}{o}% |
| 1572 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{rightbeside}% |
| 1573 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{leftbeside}% |
| 1574 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{innerbeside}% |
| 1575 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{outerbeside}% |
| 1576 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{outerbeside}% |
| 1577 |
\or % topbeside |
| 1578 |
\renewcommand*{\scap@valign}{t}% |
| 1579 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{topbeside}% |
| 1580 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{centeredbeside}% |
| 1581 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{bottombeside}% |
| 1582 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{topbeside}% |
| 1583 |
\or % centeredbeside |
| 1584 |
\renewcommand*{\scap@valign}{c}% |
| 1585 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{topbeside}% |
| 1586 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{centeredbeside}% |
| 1587 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{bottombeside}% |
| 1588 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{centeredbeside}% |
| 1589 |
\or % bottombeside |
| 1590 |
\renewcommand*{\scap@valign}{b}% |
| 1591 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{topbeside}% |
| 1592 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{centeredbeside}% |
| 1593 |
\KOMA@kav@remove{\KOMAClassFileName}{captions}{bottombeside}% |
| 1594 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{bottombeside}% |
| 1595 |
\fi |
| 1596 |
\fi |
| 1597 |
} |
| 1598 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{signature} |
| 1599 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{oneline} |
| 1600 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{rightbeside} |
| 1601 |
\KOMA@kav@add{\KOMAClassFileName}{captions}{bottombeside} |
| 1602 |
\KOMA@DeclareDeprecatedOption{tablecaptionabove}{captions=tableheading} |
| 1603 |
\KOMA@DeclareDeprecatedOption{tablecaptionbelow}{captions=tablesignature} |
| 1604 |
\newif\if@komalongtable\@komalongtabletrue |
| 1605 |
\DeclareOption{origlongtable}{\@komalongtablefalse} |
| 1606 |
\KOMA@DeclareDeprecatedOption{onelinecaption}{captions=oneline} |
| 1607 |
\KOMA@DeclareDeprecatedOption{noonelinecaption}{captions=nooneline} |
| 1608 |
%%% From File: $Id: scrkernel-footnotes.dtx 4245 2025-11-26 08:59:26Z kohm $ |
| 1609 |
%%% (run: option) |
| 1610 |
\KOMA@key{footnotes}{% |
| 1611 |
\ifx\@footnotemark\scr@saved@footnotemark |
| 1612 |
\else |
| 1613 |
\ifx\@footnotemark\scr@footnotemark |
| 1614 |
\else |
| 1615 |
\ClassWarning{\KOMAClassName}{% |
| 1616 |
Change of `\string\@footnotemark' detected!\MessageBreak |
| 1617 |
Use of `footnotes=#1' may break\MessageBreak |
| 1618 |
another package!\MessageBreak |
| 1619 |
Maybe you should remove the usage of\MessageBreak |
| 1620 |
option `footnotes=#1'}% |
| 1621 |
\fi |
| 1622 |
\fi |
| 1623 |
\Ifstr{#1}{multiple}{% |
| 1624 |
\let\@footnotemark\scr@footnotemark |
| 1625 |
\def\FN@mf@prepare{\scr@mf@prepare}% |
| 1626 |
\def\scr@footmisc@options{multiple}% |
| 1627 |
\FamilyKeyStateProcessed |
| 1628 |
\KOMA@kav@replacevalue{% |
| 1629 |
\KOMAClassFileName |
| 1630 |
}{footnotes}{multiple}% |
| 1631 |
}{% |
| 1632 |
\Ifstr{#1}{nomultiple}{% |
| 1633 |
\let\@footnotemark\scr@saved@footnotemark |
| 1634 |
\let\FN@mf@prepare\relax |
| 1635 |
\let\scr@footmisc@options\@empty |
| 1636 |
\FamilyKeyStateProcessed |
| 1637 |
\KOMA@kav@replacevalue{% |
| 1638 |
\KOMAClassFileName |
| 1639 |
}{footnotes}{nomultiple}% |
| 1640 |
}{% |
| 1641 |
\KOMA@unknown@keyval{footnotes}{#1}{`multiple' and `nomultiple'}% |
| 1642 |
}% |
| 1643 |
}% |
| 1644 |
} |
| 1645 |
\AtBeginDocument{% |
| 1646 |
\ifx\@footnotemark\scr@saved@footnotemark |
| 1647 |
\KOMA@kav@removekey{% |
| 1648 |
\KOMAClassFileName |
| 1649 |
}{footnotes}% |
| 1650 |
\KOMA@kav@add{% |
| 1651 |
\KOMAClassFileName |
| 1652 |
}{footnotes}{nomultiple}% |
| 1653 |
\else\ifx\@footnotemark\scr@footnotemark |
| 1654 |
\KOMA@kav@removekey{% |
| 1655 |
\KOMAClassFileName |
| 1656 |
}{footnotes}% |
| 1657 |
\KOMA@kav@add{% |
| 1658 |
\KOMAClassFileName |
| 1659 |
}{footnotes}{multiple}% |
| 1660 |
\fi\fi |
| 1661 |
} |
| 1662 |
\newcommand*{\scr@footmisc@options}{} |
| 1663 |
\PassOptionsToPackage{\noexpand\scr@footmisc@options}{footmisc} |
| 1664 |
\newcommand*{\scr@saved@footnotemark}{% |
| 1665 |
\leavevmode |
| 1666 |
\ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi |
| 1667 |
\@makefnmark |
| 1668 |
\ifhmode\spacefactor\@x@sf\fi |
| 1669 |
\relax} |
| 1670 |
\expandafter\CheckCommand\expandafter*\expandafter\@footnotemark |
| 1671 |
\expandafter{\scr@saved@footnotemark} |
| 1672 |
\newcommand*{\scr@footnotemark}{% |
| 1673 |
\leavevmode |
| 1674 |
\ifhmode\edef\@x@sf{\the\spacefactor}\FN@mf@check\nobreak\fi |
| 1675 |
\@makefnmark |
| 1676 |
\csname FN@mf@prepare\endcsname |
| 1677 |
\ifhmode\spacefactor\@x@sf\fi |
| 1678 |
\relax} |
| 1679 |
%%% From File: $Id: scrkernel-listsof.dtx 4193 2025-08-12 14:24:39Z kohm $ |
| 1680 |
%%% (run: option) |
| 1681 |
\newif\if@tocleft |
| 1682 |
\KOMA@key{toc}{% |
| 1683 |
\KOMA@set@ncmdkey{toc}{@tempa}{% |
| 1684 |
{noindex}{0},{noidx}{0},% |
| 1685 |
{index}{1},{idx}{1},% |
| 1686 |
{indexnumbered}{2},{idxnumbered}{2},{numberedindex}{2},{numberedidx}{2},% |
| 1687 |
{nolistof}{3},{nolistsof}{3},% |
| 1688 |
{listof}{4},{listsof}{4},% |
| 1689 |
{listofnumbered}{5},{numberedlistof}{5},% |
| 1690 |
{listsofnumbered}{5},{numberedlistsof}{5},% |
| 1691 |
{nobibliography}{6},{nobib}{6},% |
| 1692 |
{bibliography}{7},{bib}{7},% |
| 1693 |
{bibliographynumbered}{8},{bibnumbered}{8},{numberedbibliography}{8},% |
| 1694 |
{numberedbib}{8},% |
| 1695 |
{flat}{9},{left}{9},% |
| 1696 |
{graduated}{10},{indent}{10},{indented}{10},% |
| 1697 |
{indenttextentries}{11},{indentunnumbered}{11},{numberline}{11},% |
| 1698 |
{leftaligntextentries}{12},{leftalignunnumbered}{12},{nonumberline}{12},% |
| 1699 |
{chapterentrywithdots}{13},{chapterentrydotfill}{13}, |
| 1700 |
{chapterentrywithoutdots}{14},{chapterentryfill}{14}% |
| 1701 |
}{#1}% |
| 1702 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1703 |
\ifcase \@tempa\relax % noindex |
| 1704 |
\KOMAoptions{index=notoc}% |
| 1705 |
\or % index |
| 1706 |
\KOMAoptions{index=totoc}% |
| 1707 |
\or % indexnumbered |
| 1708 |
\KOMAoptions{index=numbered}% |
| 1709 |
\or % listof |
| 1710 |
\KOMAoptions{listof=notoc}% |
| 1711 |
\or % nolistof |
| 1712 |
\KOMAoptions{listof=totoc}% |
| 1713 |
\or % listofnumbered |
| 1714 |
\KOMAoptions{listof=numbered}% |
| 1715 |
\or % nobibliography |
| 1716 |
\KOMAoptions{bibliography=nottotoc}% |
| 1717 |
\or % bibliography |
| 1718 |
\KOMAoptions{bibliography=totoc}% |
| 1719 |
\or % bibliographynumbered |
| 1720 |
\KOMAoptions{bibliography=totocnumbered}% |
| 1721 |
\or % flat |
| 1722 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{flat}% |
| 1723 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{graduated}% |
| 1724 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{flat}% |
| 1725 |
\@toclefttrue |
| 1726 |
\or % graduated |
| 1727 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{flat}% |
| 1728 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{graduated}% |
| 1729 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{graduated}% |
| 1730 |
\@tocleftfalse |
| 1731 |
\or % indenttextentries |
| 1732 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{indenttextentries}% |
| 1733 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{leftaligntextentries}% |
| 1734 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{indenttextentries}% |
| 1735 |
\expandafter\setuptoc\expandafter{\ext@toc}{numberline}% |
| 1736 |
\or % leftaligntextentries |
| 1737 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{indenttextentries}% |
| 1738 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{leftaligntextentries}% |
| 1739 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{leftaligntextentries}% |
| 1740 |
\expandafter\unsettoc\expandafter{\ext@toc}{numberline}% |
| 1741 |
\or % chapterentrywithdots/sectionentrywithdots |
| 1742 |
\KOMAoptions{chapterentrydots=true}% |
| 1743 |
\or % chapterentrywithoutdots/sectionentrywithoutdots |
| 1744 |
\KOMAoptions{chapterentrydots=false}% |
| 1745 |
\fi |
| 1746 |
\fi |
| 1747 |
} |
| 1748 |
\KOMA@DeclareDeprecatedOption{tocleft}{toc=flat} |
| 1749 |
\KOMA@DeclareDeprecatedOption{tocindent}{toc=graduated} |
| 1750 |
\newcommand*{\float@@listhead}{% |
| 1751 |
\chapter* |
| 1752 |
} |
| 1753 |
\newif\if@dynlist |
| 1754 |
\KOMA@key{listof}{% |
| 1755 |
\KOMA@set@ncmdkey{listof}{@tempa}{% |
| 1756 |
{notoc}{0},{nottotoc}{0},{plainheading}{0},% |
| 1757 |
{totoc}{1},{toc}{1},{notnumbered}{1},% |
| 1758 |
{numbered}{2},{totocnumbered}{2},{tocnumbered}{2},{numberedtotoc}{2},% |
| 1759 |
{numberedtoc}{2},% |
| 1760 |
{flat}{3},{left}{3},% |
| 1761 |
{graduated}{4},{indent}{4},{indented}{4},% |
| 1762 |
{leveldown}{5}, |
| 1763 |
{standardlevel}{6}, |
| 1764 |
{entryprefix}{7}, |
| 1765 |
{indenttextentries}{8},{indentunnumbered}{8},{numberline}{8},% |
| 1766 |
{leftaligntextentries}{9},{leftalignunnumbered}{9},{nonumberline}{9}% |
| 1767 |
,{chapterentry}{10},{withchapterentry}{10},% |
| 1768 |
{nochaptergap}{11},{ignorechapter}{11},% |
| 1769 |
{chaptergapsmall}{12},{smallchaptergap}{12},% |
| 1770 |
{chaptergapline}{13},{onelinechaptergap}{13}% |
| 1771 |
}{#1}% |
| 1772 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 1773 |
\ifcase \@tempa\relax % notoc |
| 1774 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{nolistof}% |
| 1775 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{listof}% |
| 1776 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{listofnumbered}% |
| 1777 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{nolistof}% |
| 1778 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{notoc}% |
| 1779 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{totoc}% |
| 1780 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{numbered}% |
| 1781 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{notoc}% |
| 1782 |
\renewcommand*{\float@@listhead}{% |
| 1783 |
\chapter* |
| 1784 |
}% |
| 1785 |
\doforeachtocfile[float]{% |
| 1786 |
\unsettoc{\@currext}{numbered}% |
| 1787 |
\unsettoc{\@currext}{totoc}% |
| 1788 |
}% |
| 1789 |
\AtAddToTocList[float]{% |
| 1790 |
\unsettoc{\@currext}{numbered}% |
| 1791 |
\unsettoc{\@currext}{totoc}% |
| 1792 |
}% |
| 1793 |
\or% totoc |
| 1794 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{nolistof}% |
| 1795 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{listof}% |
| 1796 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{listofnumbered}% |
| 1797 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{listof}% |
| 1798 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{notoc}% |
| 1799 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{totoc}% |
| 1800 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{numbered}% |
| 1801 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{totoc}% |
| 1802 |
\renewcommand*{\float@@listhead}{% |
| 1803 |
\addchap |
| 1804 |
}% |
| 1805 |
\doforeachtocfile[float]{% |
| 1806 |
\unsettoc{\@currext}{numbered}% |
| 1807 |
\setuptoc{\@currext}{totoc}% |
| 1808 |
}% |
| 1809 |
\AtAddToTocList[float]{% |
| 1810 |
\unsettoc{\@currext}{numbered}% |
| 1811 |
\setuptoc{\@currext}{totoc}% |
| 1812 |
}% |
| 1813 |
\or% numbered |
| 1814 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{nolistof}% |
| 1815 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{listof}% |
| 1816 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{listofnumbered}% |
| 1817 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{listofnumbered}% |
| 1818 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{notoc}% |
| 1819 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{totoc}% |
| 1820 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{numbered}% |
| 1821 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{numbered}% |
| 1822 |
\renewcommand*{\float@@listhead}{% |
| 1823 |
\chapter |
| 1824 |
}% |
| 1825 |
\doforeachtocfile[float]{% |
| 1826 |
\setuptoc{\@currext}{numbered}% |
| 1827 |
\setuptoc{\@currext}{totoc}% |
| 1828 |
}% |
| 1829 |
\AtAddToTocList[float]{% |
| 1830 |
\setuptoc{\@currext}{numbered}% |
| 1831 |
\setuptoc{\@currext}{totoc}% |
| 1832 |
}% |
| 1833 |
\or% flat |
| 1834 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{flat}% |
| 1835 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{graduated}% |
| 1836 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{flat}% |
| 1837 |
\@dynlisttrue |
| 1838 |
\or% graduated |
| 1839 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{flat}% |
| 1840 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{graduated}% |
| 1841 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{graduated}% |
| 1842 |
\@dynlistfalse |
| 1843 |
\or% leveldown |
| 1844 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{standardlevel}% |
| 1845 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{leveldown}% |
| 1846 |
\doforeachtocfile[float]{% |
| 1847 |
\setuptoc{\@currext}{leveldown}% |
| 1848 |
}% |
| 1849 |
\AtAddToTocList[float]{% |
| 1850 |
\setuptoc{\@currext}{leveldown}% |
| 1851 |
}% |
| 1852 |
\or% standardlevel |
| 1853 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{leveldown}% |
| 1854 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{standardlevel}% |
| 1855 |
\doforeachtocfile[float]{% |
| 1856 |
\unsettoc{\@currext}{leveldown}% |
| 1857 |
}% |
| 1858 |
\AtAddToTocList[float]{% |
| 1859 |
\unsettoc{\@currext}{leveldown}% |
| 1860 |
}% |
| 1861 |
\or% entryprefix |
| 1862 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{entryprefix}% |
| 1863 |
\@dynlisttrue |
| 1864 |
\doforeachtocfile[float]{% |
| 1865 |
\BeforeStartingTOC[\@currext]{% |
| 1866 |
\scr@ifundefinedorrelax{listof\@currext entryname}{}{% |
| 1867 |
\expandafter\def\expandafter\numberline@prefix |
| 1868 |
\expandafter{\csname listof\@currext entryname\endcsname |
| 1869 |
\nobreakspace}% |
| 1870 |
}% |
| 1871 |
}% |
| 1872 |
}% |
| 1873 |
\AtAddToTocList[float]{% |
| 1874 |
\BeforeStartingTOC[\@currext]{% |
| 1875 |
\scr@ifundefinedorrelax{listof\@currext entryname}{}{% |
| 1876 |
\expandafter\def\expandafter\numberline@prefix |
| 1877 |
\expandafter{\csname listof\@currext entryname\endcsname |
| 1878 |
\nobreakspace}% |
| 1879 |
}% |
| 1880 |
}% |
| 1881 |
}% |
| 1882 |
\or% indenttextentries |
| 1883 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{indenttextentries}% |
| 1884 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{leftaligntextentries}% |
| 1885 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{indenttextentries}% |
| 1886 |
\doforeachtocfile[float]{% |
| 1887 |
\setuptoc{\@currext}{numberline}% |
| 1888 |
}% |
| 1889 |
\AtAddToTocList[float]{% |
| 1890 |
\setuptoc{\@currext}{numberline}% |
| 1891 |
} |
| 1892 |
\or% leftaligntextentries |
| 1893 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{indenttextentries}% |
| 1894 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{leftaligntextentries}% |
| 1895 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{leftaligntextentries}% |
| 1896 |
\doforeachtocfile[float]{% |
| 1897 |
\unsettoc{\@currext}{numberline}% |
| 1898 |
}% |
| 1899 |
\AtAddToTocList[float]{% |
| 1900 |
\unsettoc{\@currext}{numberline}% |
| 1901 |
} |
| 1902 |
\or% chapterentry |
| 1903 |
\KOMAoptions{chapteratlists=entry}% |
| 1904 |
\or% chaptergap |
| 1905 |
\KOMAoptions{chapteratlists=\z@}% |
| 1906 |
\or% chaptergapsmall |
| 1907 |
\KOMAoptions{chapteratlists=10\p@}% |
| 1908 |
\or% chaptergapline |
| 1909 |
\KOMAoptions{chapteratlists=\baselineskip}% |
| 1910 |
\fi |
| 1911 |
\fi |
| 1912 |
} |
| 1913 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{nolistof} |
| 1914 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{notoc} |
| 1915 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{graduated} |
| 1916 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{leftaligntextentries} |
| 1917 |
\KOMA@DeclareDeprecatedOption{liststotoc}{listof=totoc} |
| 1918 |
\KOMA@DeclareDeprecatedOption{liststotocnumbered}{listof=numbered} |
| 1919 |
\KOMA@DeclareDeprecatedOption{listsleft}{listof=flat} |
| 1920 |
\KOMA@DeclareDeprecatedOption{listsindent}{listof=graduated} |
| 1921 |
\newcommand*{\@chapterlistsgap}{10\p@} |
| 1922 |
\newif\if@chaptertolists\@chaptertolistsfalse |
| 1923 |
\KOMA@key{chapteratlists}[entry]{% |
| 1924 |
\FamilyKeyStateProcessed |
| 1925 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{chapterentry}% |
| 1926 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{chaptergap}% |
| 1927 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{chaptergapsmall}% |
| 1928 |
\KOMA@kav@remove{\KOMAClassFileName}{listof}{chaptergapline}% |
| 1929 |
\Ifstr{#1}{entry}{% |
| 1930 |
\@chaptertoliststrue\renewcommand*{\@chapterlistsgap}{\z@}% |
| 1931 |
\KOMA@kav@replacevalue{\KOMAClassFileName}{chapteratlists}{entry}% |
| 1932 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{chapterentry}% |
| 1933 |
}{% |
| 1934 |
\@chaptertolistsfalse\renewcommand*{\@chapterlistsgap}{#1}% |
| 1935 |
\KOMA@kav@replacevalue{\KOMAClassFileName}{chapteratlists}% |
| 1936 |
{\@chapterlistsgap}% |
| 1937 |
\def\reserved@a{\z@}% |
| 1938 |
\ifx\@chapterlistsgap\reserved@a |
| 1939 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{chaptergap}% |
| 1940 |
\else |
| 1941 |
\def\reserved@a{10\p@}% |
| 1942 |
\ifx\@chapterlistsgap\reserved@a |
| 1943 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{chaptergapsmall}% |
| 1944 |
\else |
| 1945 |
\def\reserved@a{\baselineskip}% |
| 1946 |
\ifx\@chapterlistsgap\reserved@a |
| 1947 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{chaptergapline}% |
| 1948 |
\fi |
| 1949 |
\fi |
| 1950 |
\fi |
| 1951 |
}% |
| 1952 |
} |
| 1953 |
\BeforeTOCHead{\@chaptertolistsfalse} |
| 1954 |
\KOMA@kav@add{\KOMAClassFileName}{chapteratlists}{10\p@}% |
| 1955 |
\KOMA@kav@add{\KOMAClassFileName}{listof}{chaptergapsmall}% |
| 1956 |
%%% From File: $Id: scrkernel-bibliography.dtx 4032 2023-04-17 09:45:11Z kohm $ |
| 1957 |
%%% (run: option) |
| 1958 |
\newcommand{\newbibstyle}[3][]{% |
| 1959 |
\scr@ifundefinedorrelax{scr@bibstyle@#2}{% |
| 1960 |
\scr@ifundefinedorrelax{scr@bibstyle@#1}{% |
| 1961 |
\ClassError{\KOMAClassName}{% |
| 1962 |
parent bibliography style `#1' does not exist}{% |
| 1963 |
You've told me to define the new bibliography style `#2'\MessageBreak |
| 1964 |
to be a child of bibliography style `#1', but bibliography |
| 1965 |
style\MessageBreak |
| 1966 |
`#1' does not exist.\MessageBreak |
| 1967 |
You have to remove the parent declaration or use an existing parent! |
| 1968 |
See the KOMA-Script manual for more information.% |
| 1969 |
}% |
| 1970 |
}{% |
| 1971 |
\@namedef{scr@bibstyle@#2}{% |
| 1972 |
\let\@openbib@code\@empty |
| 1973 |
\let\newblock\@empty |
| 1974 |
\let\bib@beginhook\@empty |
| 1975 |
\let\bib@endhook\@empty |
| 1976 |
\@ifundefined{scr@current@bibstyle}{}{% |
| 1977 |
\Ifstr{\scr@current@bibstyle}{}{}{% |
| 1978 |
\edef\reserved@a{% |
| 1979 |
\noexpand\KOMA@kav@remove{\KOMAClassFileName}{bibliography}% |
| 1980 |
{\scr@current@bibstyle}% |
| 1981 |
}\reserved@a |
| 1982 |
}% |
| 1983 |
}% |
| 1984 |
\def\scr@current@bibstyle{#2}% |
| 1985 |
\KOMA@kav@xadd{\KOMAClassFileName}{bibliography}{#2}% |
| 1986 |
\csname scr@bibstyle@#1\endcsname |
| 1987 |
#3% |
| 1988 |
}% |
| 1989 |
\ifx\scr@bibstylelist\@empty |
| 1990 |
\edef\scr@bibstylelist{`#2'}% |
| 1991 |
\else |
| 1992 |
\edef\scr@bibstylelist{\scr@bibstylelist, `#2'}% |
| 1993 |
\fi |
| 1994 |
}% |
| 1995 |
}{% |
| 1996 |
\ClassError{\KOMAClassName}{bibliography style `#2' already exists}{% |
| 1997 |
You've told me to define the new bibliography style `#2',\MessageBreak |
| 1998 |
but this style already exists.\MessageBreak |
| 1999 |
You have to use another bibliography style name.\MessageBreak |
| 2000 |
See the KOMA-Script manual for more information.% |
| 2001 |
}% |
| 2002 |
}% |
| 2003 |
} |
| 2004 |
\newcommand*{\scr@bibstyle@}{} |
| 2005 |
\newcommand*{\bib@beginhook}{} |
| 2006 |
\newcommand*{\bib@endhook}{} |
| 2007 |
\newcommand*{\scr@bibstylelist}{} |
| 2008 |
\newcommand*{\@openbib@code}{} |
| 2009 |
\newcommand*{\newblock}{} |
| 2010 |
\newbibstyle{openstyle}{% |
| 2011 |
\renewcommand*{\@openbib@code}{% |
| 2012 |
\advance\leftmargin\bibindent |
| 2013 |
\itemindent -\bibindent |
| 2014 |
\listparindent \itemindent |
| 2015 |
\parsep \z@ |
| 2016 |
}% |
| 2017 |
\renewcommand*{\newblock}{\par}% |
| 2018 |
} |
| 2019 |
\newbibstyle{oldstyle}{% |
| 2020 |
\renewcommand*{\newblock}{\hskip .11em\@plus.33em\@minus.07em}% |
| 2021 |
} |
| 2022 |
\scr@bibstyle@oldstyle |
| 2023 |
\newcommand*{\bib@heading}{% |
| 2024 |
\bibliography@heading{\bibname}% |
| 2025 |
} |
| 2026 |
\newcommand*{\bibliography@heading}[1]{% |
| 2027 |
\ifbib@leveldown |
| 2028 |
\section*{#1}% |
| 2029 |
\addsecmark{#1}% |
| 2030 |
\else |
| 2031 |
\chapter*{#1}% |
| 2032 |
\@mkdouble{\MakeMarkcase{#1}}% |
| 2033 |
\fi |
| 2034 |
}% |
| 2035 |
\newif\ifbib@leveldown |
| 2036 |
\KOMA@key{bibliography}{% |
| 2037 |
\scr@ifundefinedorrelax{scr@bibstyle@#1}{% |
| 2038 |
\KOMA@set@ncmdkey{bibliography}{@tempa}{% |
| 2039 |
{notoc}{0},{nottotoc}{0},{plainheading}{0},% |
| 2040 |
{totoc}{1},{toc}{1},{notnumbered}{1},% |
| 2041 |
{numbered}{2},{totocnumbered}{2},{tocnumbered}{2},{numberedtotoc}{2},% |
| 2042 |
{numberedtoc}{2},% |
| 2043 |
{leveldown}{3},% |
| 2044 |
{standardlevel}{4}% |
| 2045 |
}{#1}% |
| 2046 |
\ifcase \@tempa\relax % notoc |
| 2047 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{nobibliography}% |
| 2048 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliography}% |
| 2049 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliographynumbered}% |
| 2050 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{nobibliography}% |
| 2051 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{notoc}% |
| 2052 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{totoc}% |
| 2053 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{numbered}% |
| 2054 |
\KOMA@kav@add{\KOMAClassFileName}{bibliography}{notoc}% |
| 2055 |
\renewcommand*{\bibliography@heading}[1]{% |
| 2056 |
\ifbib@leveldown |
| 2057 |
\section*{##1}% |
| 2058 |
\@mkright{\MakeMarkcase{##1}}% |
| 2059 |
\else |
| 2060 |
\chapter*{##1}% |
| 2061 |
\@mkdouble{\MakeMarkcase{##1}}% |
| 2062 |
\fi |
| 2063 |
}% |
| 2064 |
\or% totoc |
| 2065 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{nobibliography}% |
| 2066 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliography}% |
| 2067 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliographynumbered}% |
| 2068 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{bibliography}% |
| 2069 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{notoc}% |
| 2070 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{totoc}% |
| 2071 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{numbered}% |
| 2072 |
\KOMA@kav@add{\KOMAClassFileName}{bibliography}{totoc}% |
| 2073 |
\renewcommand*{\bibliography@heading}[1]{% |
| 2074 |
\ifbib@leveldown |
| 2075 |
\addsec{##1}% |
| 2076 |
\else |
| 2077 |
\if@chaptertolists |
| 2078 |
\@chaptertolistsfalse\addchap{##1}\@chaptertoliststrue |
| 2079 |
\else |
| 2080 |
\addchap{##1}% |
| 2081 |
\fi |
| 2082 |
\@mkdouble{\MakeMarkcase{##1}}% |
| 2083 |
\fi |
| 2084 |
}% |
| 2085 |
\or% numbered |
| 2086 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{nobibliography}% |
| 2087 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliography}% |
| 2088 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{bibliographynumbered}% |
| 2089 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{bibliographynumbered}% |
| 2090 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{notoc}% |
| 2091 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{totoc}% |
| 2092 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{numbered}% |
| 2093 |
\KOMA@kav@add{\KOMAClassFileName}{bibliography}{numbered}% |
| 2094 |
\renewcommand*{\bibliography@heading}[1]{% |
| 2095 |
\ifbib@leveldown |
| 2096 |
\section{##1}% |
| 2097 |
\else |
| 2098 |
\if@chaptertolists |
| 2099 |
\@chaptertolistsfalse\chapter{##1}\@chaptertoliststrue |
| 2100 |
\else |
| 2101 |
\chapter{##1} |
| 2102 |
\fi |
| 2103 |
\@mkdouble{\MakeMarkcase{\chaptermarkformat ##1}}% |
| 2104 |
\fi |
| 2105 |
} |
| 2106 |
\or% leveldown |
| 2107 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{leveldown}% |
| 2108 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{standardlevel}% |
| 2109 |
\KOMA@kav@add{\KOMAClassFileName}{bibliography}{leveldown}% |
| 2110 |
\bib@leveldowntrue |
| 2111 |
\or% standardlevel |
| 2112 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{leveldown}% |
| 2113 |
\KOMA@kav@remove{\KOMAClassFileName}{bibliography}{standardlevel}% |
| 2114 |
\KOMA@kav@add{\KOMAClassFileName}{bibliography}{standardlevel}% |
| 2115 |
\bib@leveldownfalse |
| 2116 |
\fi |
| 2117 |
}{% |
| 2118 |
\FamilyKeyStateProcessed |
| 2119 |
\edef\reserved@a{% |
| 2120 |
\noexpand\KOMA@kav@remove{\KOMAClassFileName}{bibliography}% |
| 2121 |
{\scr@current@bibstyle}% |
| 2122 |
}\reserved@a |
| 2123 |
\csname scr@bibstyle@#1\endcsname |
| 2124 |
}% |
| 2125 |
} |
| 2126 |
\KOMA@DeclareStandardOption{openbib}{bibliography=openstyle} |
| 2127 |
\KOMA@DeclareDeprecatedOption{bibtotoc}{bibliography=totoc} |
| 2128 |
\KOMA@DeclareDeprecatedOption{bibtotocnumbered}{bibliography=totocnumbered} |
| 2129 |
%%% From File: $Id: scrkernel-index.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 2130 |
%%% (run: option) |
| 2131 |
\newcommand*{\idx@@heading}{% |
| 2132 |
\ifidx@leveldown |
| 2133 |
\expandafter\section |
| 2134 |
\else |
| 2135 |
\expandafter\chapter |
| 2136 |
\fi*% |
| 2137 |
} |
| 2138 |
\newcommand*{\idx@@forcemark}[1]{% |
| 2139 |
\ifidx@leveldown |
| 2140 |
\addsecmark{#1}% |
| 2141 |
\else |
| 2142 |
\@mkdouble{\MakeMarkcase{#1}}% |
| 2143 |
\fi |
| 2144 |
} |
| 2145 |
\newcommand*{\idx@@forcemarknumbered}[1]{% |
| 2146 |
\ifidx@leveldown |
| 2147 |
\sectionmark{#1}% |
| 2148 |
\else |
| 2149 |
\chaptermark{#1}% |
| 2150 |
\fi |
| 2151 |
} |
| 2152 |
\newcommand*{\idx@@mark}{} |
| 2153 |
\let\idx@@mark\idx@@forcemark |
| 2154 |
\newif\ifidx@leveldown |
| 2155 |
\KOMA@key{index}{% |
| 2156 |
\KOMA@set@ncmdkey{index}{@tempa}{% |
| 2157 |
{notoc}{0},{nottotoc}{0},{default}{0},{plainheading}{0},% |
| 2158 |
{totoc}{1},{toc}{1},{notnumbered}{1},% |
| 2159 |
{numbered}{2},{totocnumbered}{2},{numberedtotoc}{2},{tocnumbered}{2},% |
| 2160 |
{numberedtoc}{2},% |
| 2161 |
{leveldown}{3},% |
| 2162 |
{standardlevel}{4}% |
| 2163 |
}{#1}% |
| 2164 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 2165 |
\ifcase \@tempa\relax |
| 2166 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{noindex}% |
| 2167 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{indexnumbered}% |
| 2168 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{index}% |
| 2169 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{notoc}% |
| 2170 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{numbered}% |
| 2171 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{toc}% |
| 2172 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{noindex}% |
| 2173 |
\KOMA@kav@add{\KOMAClassFileName}{index}{notoc}% |
| 2174 |
\renewcommand*{\idx@@heading}{% |
| 2175 |
\ifidx@leveldown |
| 2176 |
\expandafter\section |
| 2177 |
\else |
| 2178 |
\expandafter\chapter |
| 2179 |
\fi*% |
| 2180 |
}% |
| 2181 |
\let\idx@@mark\idx@@forcemark |
| 2182 |
\or |
| 2183 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{noindex}% |
| 2184 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{indexnumbered}% |
| 2185 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{index}% |
| 2186 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{notoc}% |
| 2187 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{numbered}% |
| 2188 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{toc}% |
| 2189 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{index}% |
| 2190 |
\KOMA@kav@add{\KOMAClassFileName}{index}{toc}% |
| 2191 |
\renewcommand*{\idx@@heading}{% |
| 2192 |
\ifidx@leveldown |
| 2193 |
\expandafter\addsec |
| 2194 |
\else |
| 2195 |
\expandafter\addchap |
| 2196 |
\fi |
| 2197 |
}% |
| 2198 |
\let\idx@@mark\idx@@forcemark |
| 2199 |
\or |
| 2200 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{noindex}% |
| 2201 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{indexnumbered}% |
| 2202 |
\KOMA@kav@remove{\KOMAClassFileName}{toc}{index}% |
| 2203 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{notoc}% |
| 2204 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{numbered}% |
| 2205 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{toc}% |
| 2206 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{indexnumbered}% |
| 2207 |
\KOMA@kav@add{\KOMAClassFileName}{index}{numbered}% |
| 2208 |
\renewcommand*{\idx@@heading}{% |
| 2209 |
\ifidx@leveldown |
| 2210 |
\expandafter\section |
| 2211 |
\else |
| 2212 |
\expandafter\chapter |
| 2213 |
\fi |
| 2214 |
}% |
| 2215 |
\let\idx@@mark\idx@@forcemarknumbered |
| 2216 |
\or |
| 2217 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{leveldown}% |
| 2218 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{standardlevel}% |
| 2219 |
\KOMA@kav@add{\KOMAClassFileName}{index}{leveldown}% |
| 2220 |
\idx@leveldowntrue |
| 2221 |
\or |
| 2222 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{leveldown}% |
| 2223 |
\KOMA@kav@remove{\KOMAClassFileName}{index}{standardlevel}% |
| 2224 |
\KOMA@kav@add{\KOMAClassFileName}{index}{standardlevel}% |
| 2225 |
\idx@leveldownfalse |
| 2226 |
\fi |
| 2227 |
\fi |
| 2228 |
} |
| 2229 |
\KOMA@kav@add{\KOMAClassFileName}{toc}{noindex} |
| 2230 |
\KOMA@kav@add{\KOMAClassFileName}{index}{notoc} |
| 2231 |
\KOMA@kav@add{\KOMAClassFileName}{index}{standardlevel} |
| 2232 |
\KOMA@DeclareDeprecatedOption{idxtotoc}{index=totoc} |
| 2233 |
%%% From File: $Id: scrkernel-listsandtabulars.dtx 4138 2025-02-10 13:55:51Z kohm $ |
| 2234 |
%%% (run: option) |
| 2235 |
%%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $ |
| 2236 |
%%% (run: execoption) |
| 2237 |
\KOMAExecuteOptions{headings=openright} |
| 2238 |
\KOMAExecuteOptions{numbers=autoendperiod} |
| 2239 |
%%% From File: $Id: scrkernel-miscellaneous.dtx 4223 2025-09-11 09:09:44Z kohm $ |
| 2240 |
%%% (run: execoption) |
| 2241 |
\KOMAExecuteOptions{% |
| 2242 |
parskip=false,% |
| 2243 |
headings=big% |
| 2244 |
} |
| 2245 |
\KOMAProcessOptions\relax |
| 2246 |
%%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $ |
| 2247 |
%%% (run: body) |
| 2248 |
\AtBeginDocument{% |
| 2249 |
\begingroup |
| 2250 |
\def\reserved@a#1/#2/#3 #4\@nil{\@tempcnta=#1\relax\@tempcntb=#2\relax}% |
| 2251 |
\expandafter\reserved@a\KOMAScriptVersion\@nil |
| 2252 |
\edef\reserved@a{\the\numexpr\@tempcnta+2\relax/% |
| 2253 |
\ifnum\@tempcntb<10 0\fi\the\@tempcntb/01}% |
| 2254 |
\expandafter\IfLTXAtLeastTF\expandafter{\reserved@a}{% |
| 2255 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 2256 |
Your are using a KOMA-Script version, that has not\MessageBreak |
| 2257 |
been tested with your more than one year newer\MessageBreak |
| 2258 |
LaTeX release `\fmtversion'.\MessageBreak |
| 2259 |
Because of the high speed of LaTeX kernel development,\MessageBreak |
| 2260 |
this could result in a lot of issues.\MessageBreak |
| 2261 |
Please have a look at\MessageBreak |
| 2262 |
<http://www.ctan.org/pkg/koma-script> and if this\MessageBreak |
| 2263 |
shows a newer KOMA-Script version than\MessageBreak |
| 2264 |
`\KOMAScriptVersion', we suggest to do\MessageBreak |
| 2265 |
an update of KOMA-Script or maybe even the whole\MessageBreak |
| 2266 |
TeX distribution% |
| 2267 |
}% |
| 2268 |
}{% |
| 2269 |
\edef\reserved@a{\the\numexpr\@tempcnta-4\relax/% |
| 2270 |
\ifnum\@tempcntb<10 0\fi\the\@tempcntb/01}% |
| 2271 |
\expandafter\IfLTXAtLeastTF\expandafter{\reserved@a}{}{% |
| 2272 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 2273 |
You are using a KOMA-Script version, that has not been\MessageBreak |
| 2274 |
tested with your more than four years older LaTeX\MessageBreak |
| 2275 |
release `\fmtversion'.\MessageBreak |
| 2276 |
Because of the high speed of LaTeX kernel development,\MessageBreak |
| 2277 |
KOMA-Script releases cannot be tested with all past\MessageBreak |
| 2278 |
LaTeX releases.\MessageBreak |
| 2279 |
\ifnum\scr@compatibility<\scr@v@last |
| 2280 |
So even if you are using option `version' implicitly\MessageBreak |
| 2281 |
or explicitly, this |
| 2282 |
\else |
| 2283 |
So this |
| 2284 |
\fi |
| 2285 |
could result in a lot of issues.\MessageBreak |
| 2286 |
We recommend, to update the whole TeX distribution.\MessageBreak |
| 2287 |
If this could not be done, we suggest to use at\MessageBreak |
| 2288 |
least an older KOMA-Script release, e.g., from\MessageBreak |
| 2289 |
<https://sf.net/projects/koma-script/files/KOMA-Script/>% |
| 2290 |
}% |
| 2291 |
}% |
| 2292 |
}% |
| 2293 |
\endgroup |
| 2294 |
} |
| 2295 |
%%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 2296 |
%%% (run: body) |
| 2297 |
\newcommand*\scr@setlength[4]{% |
| 2298 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2299 |
\setlength{#1}{#2 \@plus#3 \@minus#4}% |
| 2300 |
\else |
| 2301 |
\ifdim #2<\ifdim #2=\z@ \z@ \else \p@\fi |
| 2302 |
\ifdim #3<\ifdim #3=\z@ \z@ \else \p@\fi |
| 2303 |
\ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi |
| 2304 |
\setlength{#1}{\p@ \@plus\p@ \@minus\p@}% |
| 2305 |
\else |
| 2306 |
\setlength{#1}{\p@ \@plus\p@ \@minus#4}% |
| 2307 |
\fi |
| 2308 |
\else |
| 2309 |
\ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi |
| 2310 |
\setlength{#1}{\p@ \@plus#3 \@minus\p@}% |
| 2311 |
\else |
| 2312 |
\setlength{#1}{\p@ \@plus#3 \@minus#4}% |
| 2313 |
\fi |
| 2314 |
\fi |
| 2315 |
\else |
| 2316 |
\ifdim #3<\ifdim #3=\z@ \z@ \else \p@\fi |
| 2317 |
\ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi |
| 2318 |
\setlength{#1}{#2 \@plus\p@ \@minus\p@}% |
| 2319 |
\else |
| 2320 |
\setlength{#1}{#2 \@plus\p@ \@minus#4}% |
| 2321 |
\fi |
| 2322 |
\else |
| 2323 |
\ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi |
| 2324 |
\setlength{#1}{#2 \@plus#3 \@minus\p@}% |
| 2325 |
\else |
| 2326 |
\setlength{#1}{#2 \@plus#3 \@minus#4}% |
| 2327 |
\fi |
| 2328 |
\fi |
| 2329 |
\fi |
| 2330 |
\fi |
| 2331 |
} |
| 2332 |
\providecommand*{\simple@changefontsizes}[2][1.2\@tempdima]{% |
| 2333 |
\KOMA@kav@removekey{% |
| 2334 |
\KOMAClassFileName |
| 2335 |
}{fontsize}% |
| 2336 |
\@defaultunits\@tempdima#2pt\relax\@nnil |
| 2337 |
\setlength{\@tempdimc}{\@tempdima}% |
| 2338 |
\addtolength{\@tempdimc}{-10\p@}% |
| 2339 |
\edef\@ptsize{\strip@pt\@tempdimc}% |
| 2340 |
\@defaultunits\@tempdimb#1pt\relax\@nnil |
| 2341 |
\setlength{\@tempdimc}{\dimexpr (100\@tempdimb / \@tempdima * \p@)}% |
| 2342 |
\edef\@tempb{\the\@tempdimc}% |
| 2343 |
\setlength{\@tempdimc}{\@tempdima}% |
| 2344 |
\def\@tempa##1##2##3##4##5\@nnil{\def##1{##2.##3##4}}% |
| 2345 |
\expandafter\@tempa\expandafter\@tempb\@tempb\@nnil% |
| 2346 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2347 |
\setlength{\abovedisplayskip}{% |
| 2348 |
\@tempdima \@plus .25\@tempdima \@minus .58\@tempdima}% |
| 2349 |
\setlength{\abovedisplayshortskip}{\z@ \@plus .25\@tempdima}% |
| 2350 |
\setlength{\belowdisplayshortskip}{% |
| 2351 |
.55\@tempdima \@plus .3\@tempdima \@minus .25\@tempdima}% |
| 2352 |
\else |
| 2353 |
\scr@setlength{\abovedisplayskip}% |
| 2354 |
{.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}% |
| 2355 |
\scr@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}% |
| 2356 |
\scr@setlength{\belowdisplayshortskip}% |
| 2357 |
{.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}% |
| 2358 |
\fi |
| 2359 |
\setlength{\belowdisplayskip}{\abovedisplayskip}% |
| 2360 |
\edef\reserved@a{% |
| 2361 |
\noexpand\@setfontsize\noexpand\normalsize |
| 2362 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2363 |
\abovedisplayskip \the\abovedisplayskip |
| 2364 |
\abovedisplayshortskip \the\abovedisplayshortskip |
| 2365 |
\belowdisplayskip \the\belowdisplayskip |
| 2366 |
\belowdisplayshortskip \the\belowdisplayshortskip |
| 2367 |
\let\noexpand\@listi\noexpand\@listI |
| 2368 |
}% |
| 2369 |
\let\normalsize\@undefined |
| 2370 |
\expandafter\DeclareRobustCommand\expandafter\normalsize\expandafter{\reserved@a}% |
| 2371 |
\setlength{\@tempdima}{0.9125\@tempdimc}% |
| 2372 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2373 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2374 |
\setlength{\abovedisplayskip}{% |
| 2375 |
\@tempdima \@plus .25\@tempdima \@minus .58\@tempdima}% |
| 2376 |
\setlength{\abovedisplayshortskip}{\z@ \@plus .25\@tempdima}% |
| 2377 |
\setlength{\belowdisplayshortskip}{% |
| 2378 |
.55\@tempdima \@plus .3\@tempdima \@minus .25\@tempdima}% |
| 2379 |
\else |
| 2380 |
\scr@setlength{\abovedisplayskip}% |
| 2381 |
{.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}% |
| 2382 |
\scr@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}% |
| 2383 |
\scr@setlength{\belowdisplayshortskip}% |
| 2384 |
{.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}% |
| 2385 |
\fi |
| 2386 |
\setlength{\belowdisplayskip}{\abovedisplayskip}% |
| 2387 |
\edef\reserved@a{% |
| 2388 |
\noexpand\@setfontsize\noexpand\small |
| 2389 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2390 |
\abovedisplayskip \the\abovedisplayskip |
| 2391 |
\abovedisplayshortskip \the\abovedisplayshortskip |
| 2392 |
\belowdisplayskip \the\belowdisplayskip |
| 2393 |
\belowdisplayshortskip \the\belowdisplayshortskip |
| 2394 |
\let\noexpand\@listi\noexpand\@listi@small |
| 2395 |
}% |
| 2396 |
\let\small\@undefined |
| 2397 |
\expandafter\DeclareRobustCommand\expandafter\small\expandafter{\reserved@a}% |
| 2398 |
\setlength{\@tempdima}{.83334\@tempdimc}% |
| 2399 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2400 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2401 |
\setlength{\abovedisplayskip}{% |
| 2402 |
\@tempdima \@plus .25\@tempdima \@minus .58\@tempdima}% |
| 2403 |
\setlength{\abovedisplayshortskip}{\z@ \@plus .25\@tempdima}% |
| 2404 |
\setlength{\belowdisplayshortskip}{% |
| 2405 |
.55\@tempdima \@plus .3\@tempdima \@minus .25\@tempdima}% |
| 2406 |
\else |
| 2407 |
\scr@setlength{\abovedisplayskip}% |
| 2408 |
{.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}% |
| 2409 |
\scr@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}% |
| 2410 |
\scr@setlength{\belowdisplayshortskip}% |
| 2411 |
{.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}% |
| 2412 |
\fi |
| 2413 |
\setlength{\belowdisplayskip}{\abovedisplayskip}% |
| 2414 |
\edef\reserved@a{% |
| 2415 |
\noexpand\@setfontsize\noexpand\footnotesize |
| 2416 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2417 |
\abovedisplayskip \the\abovedisplayskip |
| 2418 |
\abovedisplayshortskip \the\abovedisplayshortskip |
| 2419 |
\belowdisplayskip \the\belowdisplayskip |
| 2420 |
\belowdisplayshortskip \the\belowdisplayshortskip |
| 2421 |
\let\noexpand\@listi\noexpand\@listi@footnotesize |
| 2422 |
}% |
| 2423 |
\let\footnotesize\@undefined |
| 2424 |
\expandafter\DeclareRobustCommand\expandafter\footnotesize\expandafter{\reserved@a}% |
| 2425 |
\setlength{\@tempdima}{.66667\@tempdimc}% |
| 2426 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2427 |
\edef\reserved@a{% |
| 2428 |
\noexpand\@setfontsize\noexpand\scriptsize |
| 2429 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2430 |
}% |
| 2431 |
\let\scriptsize\@undefined |
| 2432 |
\expandafter\DeclareRobustCommand\expandafter\scriptsize\expandafter{\reserved@a}% |
| 2433 |
\setlength{\@tempdima}{.5\@tempdimc}% |
| 2434 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2435 |
\edef\reserved@a{% |
| 2436 |
\noexpand\@setfontsize\noexpand\tiny |
| 2437 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2438 |
}% |
| 2439 |
\let\tiny\@undefined |
| 2440 |
\expandafter\DeclareRobustCommand\expandafter\tiny\expandafter{\reserved@a}% |
| 2441 |
\setlength{\@tempdima}{1.2\@tempdimc}% |
| 2442 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2443 |
\edef\reserved@a{% |
| 2444 |
\noexpand\@setfontsize\noexpand\large |
| 2445 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2446 |
}% |
| 2447 |
\let\large\@undefined |
| 2448 |
\expandafter\DeclareRobustCommand\expandafter\large\expandafter{\reserved@a}% |
| 2449 |
\setlength{\@tempdima}{1.44\@tempdimc}% |
| 2450 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2451 |
\edef\reserved@a{% |
| 2452 |
\noexpand\@setfontsize\noexpand\Large |
| 2453 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2454 |
}% |
| 2455 |
\let\Large\@undefined |
| 2456 |
\expandafter\DeclareRobustCommand\expandafter\Large\expandafter{\reserved@a}% |
| 2457 |
\setlength{\@tempdima}{1.728\@tempdimc}% |
| 2458 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2459 |
\edef\reserved@a{% |
| 2460 |
\noexpand\@setfontsize\noexpand\LARGE |
| 2461 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2462 |
}% |
| 2463 |
\let\LARGE\@undefined |
| 2464 |
\expandafter\DeclareRobustCommand\expandafter\LARGE\expandafter{\reserved@a}% |
| 2465 |
\setlength{\@tempdima}{2.074\@tempdimc}% |
| 2466 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2467 |
\edef\reserved@a{% |
| 2468 |
\noexpand\@setfontsize\noexpand\huge |
| 2469 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2470 |
}% |
| 2471 |
\let\huge\@undefined |
| 2472 |
\expandafter\DeclareRobustCommand\expandafter\huge\expandafter{\reserved@a}% |
| 2473 |
\setlength{\@tempdima}{2.488\@tempdimc}% |
| 2474 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2475 |
\edef\reserved@a{% |
| 2476 |
\noexpand\@setfontsize\noexpand\Huge |
| 2477 |
{\the\@tempdima}{\the\@tempdimb}% |
| 2478 |
}% |
| 2479 |
\let\Huge\@undefined |
| 2480 |
\expandafter\DeclareRobustCommand\expandafter\Huge\expandafter{\reserved@a}% |
| 2481 |
\normalsize |
| 2482 |
\expandafter\ifnum\scr@v@is@ge{3.17} |
| 2483 |
\@nameuse{par@updaterelative}% |
| 2484 |
\fi |
| 2485 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2486 |
\setlength{\footnotesep}{.7\@tempdimc}% |
| 2487 |
\setlength{\skip\footins}{.9\@tempdimc \@plus .3333\@tempdimc \@minus |
| 2488 |
.6\@tempdimc}% |
| 2489 |
\setlength{\floatsep}{\@tempdimc \@plus .1667\@tempdimc \@minus |
| 2490 |
.3333\@tempdimc}% |
| 2491 |
\setlength{\textfloatsep}{1.6667\@tempdimc \@plus .1667\@tempdimc \@minus |
| 2492 |
.3333\@tempdimc}% |
| 2493 |
\setlength{\intextsep}{\@tempb\@tempdimc \@plus .3333\@tempdimc \@minus |
| 2494 |
.3333\@tempdimc}% |
| 2495 |
\setlength{\dblfloatsep}{\@tempb\@tempdimc \@plus .1667\@tempdimc \@minus |
| 2496 |
.3333\@tempdimc}% |
| 2497 |
\setlength{\dbltextfloatsep}{\textfloatsep}% |
| 2498 |
\setlength{\@fptop}{0\p@ \@plus 1fil}% |
| 2499 |
\setlength{\@fpsep}{.8333\@tempdimc \@plus 2fil}% |
| 2500 |
\setlength{\@fpbot}{\@fptop}% |
| 2501 |
\setlength{\@dblfptop}{0\p@ \@plus 1fil}% |
| 2502 |
\setlength{\@dblfpsep}{.8333\@tempdimc \@plus 2fil}% |
| 2503 |
\setlength{\@dblfpbot}{\@fptop}% |
| 2504 |
\fi |
| 2505 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2506 |
\setlength{\topsep}{.8333\@tempdimc \@plus .3333\@tempdimc \@minus |
| 2507 |
.5\@tempdimc}% |
| 2508 |
\setlength{\parsep}{.4167\@tempdimc \@plus .2083\@tempdimc \@minus \p@}% |
| 2509 |
\else |
| 2510 |
\setlength{\@tempdimb}{\f@baselineskip}% |
| 2511 |
\scr@setlength{\parsep}% |
| 2512 |
{.3333\@tempdimb}{.1667\@tempdimb}{.0833\@tempdimb}% |
| 2513 |
\scr@setlength{\topsep}% |
| 2514 |
{.6667\@tempdimb}{.1667\@tempdimb}{.3333\@tempdimb}% |
| 2515 |
\fi |
| 2516 |
\@tempswafalse |
| 2517 |
\begingroup |
| 2518 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2519 |
\csname @listi\endcsname |
| 2520 |
\endgroup |
| 2521 |
\edef\@listi{\leftmargin\leftmargini |
| 2522 |
\topsep \the\topsep |
| 2523 |
\parsep \the\parsep |
| 2524 |
\itemsep \parsep |
| 2525 |
\if@tempswa\noexpand\@list@extra\fi |
| 2526 |
}% |
| 2527 |
\let\@listI\@listi |
| 2528 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2529 |
\setlength{\topsep}{.75\@tempdimc \@plus .25\@tempdimc \@minus |
| 2530 |
.41667\@tempdimc}% |
| 2531 |
\setlength{\parsep}{.375\@tempdimc \@plus .16667\@tempdimc \@minus \p@}% |
| 2532 |
\else |
| 2533 |
\scr@setlength{\parsep}% |
| 2534 |
{.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}% |
| 2535 |
\scr@setlength{\topsep}% |
| 2536 |
{.3333\@tempdimb}{.1667\@tempdimb}{.1667\@tempdimb}% |
| 2537 |
\fi |
| 2538 |
\@tempswafalse |
| 2539 |
\begingroup |
| 2540 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2541 |
\csname @listi\endcsname |
| 2542 |
\endgroup |
| 2543 |
\edef\@listi@small{\leftmargin\leftmargini |
| 2544 |
\topsep \the\topsep |
| 2545 |
\parsep \the\parsep |
| 2546 |
\itemsep \parsep |
| 2547 |
\if@tempswa\noexpand\@list@extra\fi |
| 2548 |
}% |
| 2549 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2550 |
\setlength{\topsep}{.5\@tempdimc \@plus .16667\@tempdimc \@minus |
| 2551 |
.16667\@tempdimc}% |
| 2552 |
\setlength{\parsep}{.25\@tempdimc \@plus .16667\@tempdimc \@minus \p@}% |
| 2553 |
\else |
| 2554 |
\scr@setlength{\parsep}% |
| 2555 |
{.125\@tempdimb}{.0625\@tempdimb}{.0625\@tempdimb}% |
| 2556 |
\scr@setlength{\topsep}% |
| 2557 |
{.25\@tempdimb}{.125\@tempdimb}{.125\@tempdimb}% |
| 2558 |
\fi |
| 2559 |
\@tempswafalse |
| 2560 |
\begingroup |
| 2561 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2562 |
\csname @listi\endcsname |
| 2563 |
\endgroup |
| 2564 |
\edef\@listi@footnotesize{\leftmargin\leftmargini |
| 2565 |
\topsep \the\topsep |
| 2566 |
\parsep \the\parsep |
| 2567 |
\itemsep \parsep |
| 2568 |
\if@tempswa\noexpand\@list@extra\fi |
| 2569 |
}% |
| 2570 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2571 |
\setlength{\topsep}{.4167\@tempdimc \@plus .2083\@tempdimc \@minus \p@}% |
| 2572 |
\setlength{\parsep}{.2083\@tempdimc \@plus \p@ \@minus \p@}% |
| 2573 |
\else |
| 2574 |
\scr@setlength{\parsep}% |
| 2575 |
{.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}% |
| 2576 |
\scr@setlength{\topsep}% |
| 2577 |
{.3333\@tempdimb}{.1667\@tempdimb}{.0833\@tempdimb}% |
| 2578 |
\fi |
| 2579 |
\@tempswafalse |
| 2580 |
\begingroup |
| 2581 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2582 |
\csname @listii\endcsname |
| 2583 |
\endgroup |
| 2584 |
\edef\@listii{\leftmargin\leftmarginii |
| 2585 |
\labelwidth=\dimexpr \leftmargin-\labelsep |
| 2586 |
\topsep \the\topsep |
| 2587 |
\parsep \the\parsep |
| 2588 |
\itemsep \parsep |
| 2589 |
\if@tempswa\noexpand\@list@extra\fi |
| 2590 |
}% |
| 2591 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2592 |
\setlength{\topsep}{.2083\@tempdimc \@plus \p@ \@minus \p@}% |
| 2593 |
\else |
| 2594 |
\scr@setlength{\topsep}% |
| 2595 |
{.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}% |
| 2596 |
\fi |
| 2597 |
\setlength{\partopsep}{\z@ \@plus\z@ \@minus\p@}% |
| 2598 |
\@tempswafalse |
| 2599 |
\begingroup |
| 2600 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2601 |
\csname @listiii\endcsname |
| 2602 |
\endgroup |
| 2603 |
\edef\@listiii{\leftmargin\leftmarginiii |
| 2604 |
\labelwidth=\dimexpr \leftmargin-\labelsep |
| 2605 |
\topsep \the\topsep |
| 2606 |
\parsep \z@ |
| 2607 |
\partopsep \the\partopsep |
| 2608 |
\itemsep \topsep |
| 2609 |
\if@tempswa\noexpand\@list@extra\fi |
| 2610 |
}% |
| 2611 |
\@tempswafalse |
| 2612 |
\begingroup |
| 2613 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2614 |
\csname @listiv\endcsname |
| 2615 |
\endgroup |
| 2616 |
\edef\@listiv{\leftmargin\leftmarginiv |
| 2617 |
\labelwidth=\dimexpr \leftmargin-\labelsep\relax |
| 2618 |
\if@tempswa\noexpand\@list@extra\fi |
| 2619 |
}% |
| 2620 |
\@tempswafalse |
| 2621 |
\begingroup |
| 2622 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2623 |
\csname @listv\endcsname |
| 2624 |
\endgroup |
| 2625 |
\edef\@listv{\leftmargin\leftmarginv |
| 2626 |
\labelwidth=\dimexpr \leftmargin-\labelsep\relax |
| 2627 |
\if@tempswa\noexpand\@list@extra\fi |
| 2628 |
}% |
| 2629 |
\@tempswafalse |
| 2630 |
\begingroup |
| 2631 |
\def\@list@extra{\aftergroup\@tempswatrue}% |
| 2632 |
\csname @listvi\endcsname |
| 2633 |
\endgroup |
| 2634 |
\edef\@listvi{\leftmargin\leftmarginvi |
| 2635 |
\labelwidth=\dimexpr \leftmargin-\labelsep\relax |
| 2636 |
\if@tempswa\noexpand\@list@extra\fi |
| 2637 |
}% |
| 2638 |
\@listi |
| 2639 |
\expandafter\ifnum\scr@v@is@lt{3.12}\relax |
| 2640 |
\setlength{\@tempdimb}{\@tempb\@tempdima}% |
| 2641 |
\setlength{\@tempdima}{\dimexpr \@tempdimb-\@tempdimc}% |
| 2642 |
\setlength\intextsep{\@tempdimb \@plus.2\@tempdima \@minus.2\@tempdima}% |
| 2643 |
\setlength\dblfloatsep\intextsep |
| 2644 |
\setlength\partopsep{.2\@tempdimc \@plus.1\@tempdimc \@minus.1\@tempdimc}% |
| 2645 |
\else |
| 2646 |
\setlength{\@tempdimb}{\f@baselineskip}% |
| 2647 |
\setlength{\footnotesep}{.555\@tempdimb}% |
| 2648 |
\scr@setlength{\skip\footins}% |
| 2649 |
{.75\@tempdimb}{.3333\@tempdimb}{.1667\@tempdimb}% |
| 2650 |
\scr@setlength{\floatsep}% |
| 2651 |
{\@tempdimb}{.1667\@tempdimb}{.1667\@tempdimb}% |
| 2652 |
\scr@setlength{\textfloatsep}% |
| 2653 |
{1.6667\@tempdimb}{.1667\@tempdimb}{.3333\@tempdimb}% |
| 2654 |
\setlength{\intextsep}{\floatsep}% |
| 2655 |
\setlength{\dblfloatsep}{\floatsep}% |
| 2656 |
\setlength{\dbltextfloatsep}{\textfloatsep}% |
| 2657 |
\setlength{\@fptop}{\z@ \@plus 1fil}% |
| 2658 |
\setlength{\@fpsep}{.6667\@tempdimb \@plus 2fil}% |
| 2659 |
\setlength{\@fpbot}{\@fptop}% |
| 2660 |
\setlength{\@dblfptop}{\@fptop}% |
| 2661 |
\setlength{\@dblfpsep}{\@fpsep}% |
| 2662 |
\setlength{\@dblfpbot}{\@fptop}% |
| 2663 |
\scr@setlength{\partopsep}{.2\@tempdimb}{.1\@tempdimb}{.1\@tempdimb}% |
| 2664 |
\fi |
| 2665 |
} |
| 2666 |
\scr@ifundefinedorrelax{changefontsizes}{% |
| 2667 |
\let\changefontsizes\simple@changefontsizes |
| 2668 |
}{% |
| 2669 |
\ClassWarning{\KOMAClassName}{% |
| 2670 |
\string\changefontsizes\space already defined.\MessageBreak |
| 2671 |
I hope, the definition is compatible,\MessageBreak |
| 2672 |
because I do not change it% |
| 2673 |
}% |
| 2674 |
} |
| 2675 |
\expandafter\@defaultunits\expandafter\@tempdima\@ptsize pt\relax\@nnil |
| 2676 |
\edef\@tempa{\@ptsize}% |
| 2677 |
\setlength{\@tempdimb}{\@tempdima}% |
| 2678 |
\edef\@tempb{\strip@pt\@tempdimb}% |
| 2679 |
\addtolength{\@tempdimb}{-10\p@}% |
| 2680 |
\edef\@ptsize{\strip@pt\@tempdimb}% |
| 2681 |
\InputIfFileExists{\@fontsizefilebase\@tempa.clo}{% |
| 2682 |
\ClassInfo{\KOMAClassName}{% |
| 2683 |
File `\@fontsizefilebase\@tempa.clo' used to setup font sizes}% |
| 2684 |
\KOMA@kav@removekey{\KOMAClassFileName}{fontsize}% |
| 2685 |
\KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempa}% |
| 2686 |
}{% |
| 2687 |
\InputIfFileExists{\@fontsizefilebase\@tempb pt.clo}{% |
| 2688 |
\ClassInfo{\KOMAClassName}{% |
| 2689 |
File `\@fontsizefilebase\@tempb pt.clo' used instead of\MessageBreak |
| 2690 |
file `\@fontsizefilebase\@tempa.clo' to setup font sizes}% |
| 2691 |
\KOMA@kav@removekey{\KOMAClassFileName}{fontsize}% |
| 2692 |
\KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempb pt}% |
| 2693 |
}{% |
| 2694 |
\InputIfFileExists{bk\@tempb.clo}{% |
| 2695 |
\ClassInfo{\KOMAClassName}{% |
| 2696 |
File `bk\@tempb.clo' used to setup font sizes}% |
| 2697 |
\KOMA@kav@removekey{\KOMAClassFileName}{fontsize}% |
| 2698 |
\KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempb}% |
| 2699 |
}{% |
| 2700 |
\InputIfFileExists{size\@tempb.clo}{% |
| 2701 |
\ClassInfo{\KOMAClassName}{% |
| 2702 |
File `size\@tempb.clo' used to setup font sizes}% |
| 2703 |
\KOMA@kav@removekey{\KOMAClassFileName}{fontsize}% |
| 2704 |
\KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempb}% |
| 2705 |
}{% |
| 2706 |
\edef\@tempa{% |
| 2707 |
\noexpand\changefontsizes{\@tempa}% |
| 2708 |
\noexpand\KOMA@kav@xadd{\KOMAClassFileName}{fontsize}{\@tempa}% |
| 2709 |
}\@tempa |
| 2710 |
}% |
| 2711 |
}% |
| 2712 |
}% |
| 2713 |
} |
| 2714 |
\newcommand*{\scr@DeclareOldFontCommand}[3]{% |
| 2715 |
\ifnum\scr@defineobsoletefonts<\z@\else |
| 2716 |
\ifnum\scr@defineobsoletefonts>\tw@ |
| 2717 |
\DeclareOldFontCommand{#1}{#2}{#3}% |
| 2718 |
\else |
| 2719 |
\AtBeginDocument{% |
| 2720 |
\ifdefined#1\else |
| 2721 |
\DeclareOldFontCommand{#1}{% |
| 2722 |
\scr@ErrorWarningInfo{#1}{#2}#2% |
| 2723 |
}{% |
| 2724 |
\scr@ErrorWarningInfo{#1}{#3}#3% |
| 2725 |
}% |
| 2726 |
\fi |
| 2727 |
}% |
| 2728 |
\fi |
| 2729 |
\fi |
| 2730 |
} |
| 2731 |
\DeclareRobustCommand*{\scr@ErrorWarningInfo}[2]{% |
| 2732 |
\ifnum \scr@defineobsoletefonts=\z@ |
| 2733 |
\ClassError{\KOMAClassName}{undefined old font command `\string#1'}{% |
| 2734 |
You should note that since 1994 LaTeX2e provides a new font selection |
| 2735 |
scheme\MessageBreak |
| 2736 |
called NFSS2 with several new, combinable font commands. |
| 2737 |
KOMA-Script\MessageBreak |
| 2738 |
classes had defined the old font commands like `\string#1' |
| 2739 |
only for compatibility\MessageBreak |
| 2740 |
with old LaTeX 2.09 document styles of Script 2.0. Nevertheless, |
| 2741 |
these\MessageBreak |
| 2742 |
commands are deprecated and undocumented at least since 2003. Since |
| 2743 |
2013\MessageBreak |
| 2744 |
KOMA-Script classes warned about soon removement of these deprecated |
| 2745 |
commands.\MessageBreak |
| 2746 |
Now, after two decades of LaTeX2e and NFSS2, these commands will not |
| 2747 |
work any\MessageBreak |
| 2748 |
more. If loading a package results in this error message, you should |
| 2749 |
contact\MessageBreak |
| 2750 |
the author of that package and ask him to replace the deprecated font |
| 2751 |
command\MessageBreak |
| 2752 |
`\string#1', e.g., by `\detokenize{#2}`. Otherwise you should |
| 2753 |
reconfigure\MessageBreak |
| 2754 |
or replace the package. If you have used the old font command |
| 2755 |
`\string#1' yourself,\MessageBreak |
| 2756 |
you should replace it, e.g., by `\detokenize{#2}'.\MessageBreak |
| 2757 |
To make it work for now, you can use the already also deprecated class |
| 2758 |
option\MessageBreak |
| 2759 |
`enabledeprecatedfontcommands'.% |
| 2760 |
}% |
| 2761 |
\else |
| 2762 |
\ifcase \scr@defineobsoletefonts |
| 2763 |
\or |
| 2764 |
\expandafter\ClassWarning |
| 2765 |
\or |
| 2766 |
\expandafter\ClassInfo |
| 2767 |
\else |
| 2768 |
\expandafter\@gobbletwo |
| 2769 |
\fi |
| 2770 |
{\KOMAClassName}{deprecated old font command `\string#1' used.\MessageBreak |
| 2771 |
You should note, that since 1994 LaTeX2e provides a\MessageBreak |
| 2772 |
new font selection scheme called NFSS2 with several\MessageBreak |
| 2773 |
new, combinable font commands. New KOMA-Script classes\MessageBreak |
| 2774 |
defined the old font commands like `\string#1' only for\MessageBreak |
| 2775 |
compatibility with LaTeX 2.09 document styles of\MessageBreak |
| 2776 |
Script 2.0. These commands are deprecated and\MessageBreak |
| 2777 |
undocumented at least since 2003. Since 2013,\MessageBreak |
| 2778 |
KOMA-Script classes warned about soon removement of\MessageBreak |
| 2779 |
these deprecated commands. Now, after two decades of\MessageBreak |
| 2780 |
LaTeX2e, NFSS2, and KOMA-Script these commands will\MessageBreak |
| 2781 |
not work any longer. If loading a package results in\MessageBreak |
| 2782 |
this message you should contact the author of that\MessageBreak |
| 2783 |
package and ask him to replace the depracted font\MessageBreak |
| 2784 |
command `\string#1', e.g., by `\detokenize{#2}'.\MessageBreak |
| 2785 |
Otherwise you should reconfigure or replace the\MessageBreak |
| 2786 |
package. If you have used the old font command\MessageBreak |
| 2787 |
`\string #1' yourself you should replace it, e.g., by\MessageBreak |
| 2788 |
`\detokenize{#2}'% |
| 2789 |
}% |
| 2790 |
\fi |
| 2791 |
} |
| 2792 |
\scr@DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} |
| 2793 |
\scr@DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} |
| 2794 |
\scr@DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt} |
| 2795 |
\scr@DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} |
| 2796 |
\scr@DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit} |
| 2797 |
\scr@DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl} |
| 2798 |
\scr@DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} |
| 2799 |
\scr@DeclareOldFontCommand{\sfb}{\normalfont\sffamily\bfseries}{% |
| 2800 |
\@nomath\sfb} |
| 2801 |
\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal} |
| 2802 |
\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal} |
| 2803 |
%%% From File: $Id: scrkernel-language.dtx 4140 2025-02-22 12:39:23Z kohm $ |
| 2804 |
%%% (run: body) |
| 2805 |
\def\today{\ifcase\month\or |
| 2806 |
January\or February\or March\or April\or May\or June\or |
| 2807 |
July\or August\or September\or October\or November\or December\fi |
| 2808 |
\space\number\day, \number\year}% |
| 2809 |
%%% From File: $Id: scrkernel-typearea.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 2810 |
%%% (run: body) |
| 2811 |
\let\@BCOR =\relax |
| 2812 |
\let\@@BCOR =\relax |
| 2813 |
\let\@DIV =\relax |
| 2814 |
\let\@@DIV =\relax |
| 2815 |
\let\@headlines =\relax |
| 2816 |
\let\@@headlines =\relax |
| 2817 |
\let\x@paper =\relax |
| 2818 |
\let\x@@paper =\relax |
| 2819 |
\let\scr@pti@nerr@r =\relax |
| 2820 |
\RequirePackage{typearea}[\KOMAScriptVersion] |
| 2821 |
\if@scr@emulatestandardclasses |
| 2822 |
\Ifstr{\@lastdiv}{areaset}{}{% |
| 2823 |
\ifnum\@lastdiv=\z@ |
| 2824 |
\setlength{\textwidth}{\dimexpr \paperwidth-2in\relax} |
| 2825 |
\ifdim \f@size\p@<10.5\p@ |
| 2826 |
\setlength{\@tempdimb}{345\p@} |
| 2827 |
\else\ifdim \f@size\p@<11.5\p@ |
| 2828 |
\setlength{\@tempdimb}{360\p@} |
| 2829 |
\else |
| 2830 |
\setlength{\@tempdimb}{390\p@} |
| 2831 |
\fi |
| 2832 |
\fi |
| 2833 |
\if@twocolumn |
| 2834 |
\ifdim\@textwidth>2\@tempdimb\relax |
| 2835 |
\setlength{\textwidth}{2\@tempdimb} |
| 2836 |
\fi |
| 2837 |
\else |
| 2838 |
\ifdim\textwidth>\@tempdimb |
| 2839 |
\setlength{\textwidth}{\@tempdimb} |
| 2840 |
\fi |
| 2841 |
\fi |
| 2842 |
\@settopoint\textwidth |
| 2843 |
\setlength{\@tempdima}{\dimexpr \paperheight-3.5in\relax} |
| 2844 |
\divide\@tempdima\baselineskip |
| 2845 |
\@tempcnta=\@tempdima |
| 2846 |
\setlength{\textheight}{\@tempcnta\baselineskip} |
| 2847 |
\addtolength{\textheight}{\topskip} |
| 2848 |
\edef\reserved@a{% |
| 2849 |
\noexpand\@areasetadvancedtrue |
| 2850 |
\noexpand\areaset[current]{\noexpand\textwidth}{\noexpand\textheight}% |
| 2851 |
\if@areasetadvanced\else\noexpand\@areasetadvancedfalse\fi |
| 2852 |
}\reserved@a |
| 2853 |
\fi |
| 2854 |
}% |
| 2855 |
\fi |
| 2856 |
%%% From File: $Id: scrkernel-paragraphs.dtx 4145 2025-05-13 16:54:14Z kohm $ |
| 2857 |
%%% (run: body) |
| 2858 |
\newcommand*{\par@updaterelative}{% |
| 2859 |
\begingroup |
| 2860 |
\edef\reserved@a{\the\parindent}\ifx\reserved@a\f@parindent |
| 2861 |
\aftergroup\parindent@update |
| 2862 |
\fi |
| 2863 |
\edef\reserved@a{\the\parskip}\ifx\reserved@a\f@parskip |
| 2864 |
\aftergroup\parskip@update |
| 2865 |
\fi |
| 2866 |
\edef\reserved@a{\the\parfillskip}\ifx\reserved@a\f@parfillskip |
| 2867 |
\aftergroup\parfillskip@update |
| 2868 |
\fi |
| 2869 |
\endgroup |
| 2870 |
} |
| 2871 |
\newcommand*{\parindent@update}{% |
| 2872 |
\scr@defaultunits\parindent\scr@parindent |
| 2873 |
\begingroup |
| 2874 |
\let\reserved@b\endgroup |
| 2875 |
\edef\reserved@a{\the\parindent}\ifx\reserved@a\f@parindent\else |
| 2876 |
\def\reserved@b{\endgroup\edef\f@parindent{\the\parindent}}% |
| 2877 |
\fi |
| 2878 |
\reserved@b |
| 2879 |
} |
| 2880 |
\newcommand*{\parskip@update}{% |
| 2881 |
\scr@defaultunits\parskip\scr@parskip |
| 2882 |
\begingroup |
| 2883 |
\let\reserved@b\endgroup |
| 2884 |
\edef\reserved@a{\the\parskip}\ifx\reserved@a\f@parskip\else |
| 2885 |
\def\reserved@b{\endgroup\edef\f@parskip{\the\parskip}}% |
| 2886 |
\fi |
| 2887 |
\reserved@b |
| 2888 |
} |
| 2889 |
\newcommand*{\parfillskip@update}{% |
| 2890 |
\scr@defaultunits\parfillskip\scr@parfillskip |
| 2891 |
\begingroup |
| 2892 |
\let\reserved@b\endgroup |
| 2893 |
\edef\reserved@a{\the\parfillskip}\ifx\reserved@a\f@parfillskip\else |
| 2894 |
\def\reserved@b{\endgroup\edef\f@parfillskip{\the\parfillskip}}% |
| 2895 |
\fi |
| 2896 |
\reserved@b |
| 2897 |
} |
| 2898 |
\setlength{\lineskip}{\p@} |
| 2899 |
\setlength{\normallineskip}{\p@} |
| 2900 |
\AddToHook{selectfont}{\par@update}% |
| 2901 |
\AfterPackage{everysel}{% |
| 2902 |
\IfPackageAtLeastTF{everysel}{2021/01/18}{}{% |
| 2903 |
\ClassError{\KOMAClassName}{% |
| 2904 |
incompatible `everysel' detected |
| 2905 |
}{% |
| 2906 |
You are using an old version of `everysel' in combination with a |
| 2907 |
LaTeX\MessageBreak |
| 2908 |
version >= 2021/06/01 and KOMA-Script >= 3.33. This combination |
| 2909 |
is\MessageBreak |
| 2910 |
not supported.\MessageBreak |
| 2911 |
You could switch back to an older LaTeX using package |
| 2912 |
`latexrelease'.\MessageBreak |
| 2913 |
But I recommend to update `everysel'% |
| 2914 |
}% |
| 2915 |
}% |
| 2916 |
}% |
| 2917 |
\AfterPackage{tracefnt}{% |
| 2918 |
\IfPackageAtLeastTF{tracefnt}{2020/12/22}{}{% |
| 2919 |
\ClassError{\KOMAClassName}{% |
| 2920 |
incompatible `tracefnt' detected |
| 2921 |
}{% |
| 2922 |
`tracefnt' is a LaTeX base package and therefore should be updated |
| 2923 |
together\MessageBreak |
| 2924 |
with LaTeX kernel. So this should never happen! Please check |
| 2925 |
your\MessageBreak |
| 2926 |
LaTeX installation% |
| 2927 |
}% |
| 2928 |
}% |
| 2929 |
}% |
| 2930 |
\newcommand*{\scr@defaultunits}[2]{% |
| 2931 |
\begingroup |
| 2932 |
\edef\@tempa{#2}% |
| 2933 |
\expandafter\scr@@defaultunits\expandafter#1\@tempa plusplus\@nnil |
| 2934 |
\edef\@tempa{\noexpand\endgroup\noexpand#1\the\glueexpr #1\relax}% |
| 2935 |
\@tempa |
| 2936 |
} |
| 2937 |
\newcommand*{\scr@@defaultunits}{} |
| 2938 |
\def\scr@@defaultunits#1#2plus#3plus#4\@nnil{% |
| 2939 |
\ifx\relax#3\relax |
| 2940 |
\scr@@@defaultunits#1{}#2minusminus\@nnil |
| 2941 |
\else |
| 2942 |
\scr@@@defaultunits#1{#2}#3minusminus\@nnil |
| 2943 |
\fi |
| 2944 |
} |
| 2945 |
\newcommand*{\scr@@@defaultunits}{} |
| 2946 |
\def\scr@@@defaultunits#1#2#3minus#4minus#5\@nnil{% |
| 2947 |
\ifx\relax#2\relax |
| 2948 |
\@defaultunits\@tempskipa#3pt\relax\@nnil |
| 2949 |
#1\@tempskipa |
| 2950 |
\else |
| 2951 |
\@defaultunits\@tempskipa\z@\@plus#3pt\relax\@nnil |
| 2952 |
#1\@tempskipa |
| 2953 |
\@defaultunits\@tempskipa#2pt\relax\@nnil |
| 2954 |
\advance#1\@tempskipa |
| 2955 |
\fi |
| 2956 |
\ifx\relax#4\relax\else |
| 2957 |
\@defaultunits\@tempskipa\z@\@minus #4pt\relax\@nnil |
| 2958 |
\advance#1\@tempskipa |
| 2959 |
\fi |
| 2960 |
} |
| 2961 |
\newcommand*{\@list@extra}{% |
| 2962 |
\ifdim\parskip>\z@\topsep\z@\parsep\parskip\itemsep\z@\fi |
| 2963 |
} |
| 2964 |
\newcommand*{\add@extra@listi}[1]{% |
| 2965 |
\expandafter\let\csname #1@listi\endcsname=\@listi |
| 2966 |
\def\@listi{\csname #1@listi\endcsname\@list@extra}% |
| 2967 |
} |
| 2968 |
\AfterPackage{amsthm}{% |
| 2969 |
\RequirePackage{xpatch}% |
| 2970 |
\xpatchcmd{\deferred@thm@head}{\addvspace{-\parskip}}{}{% |
| 2971 |
\ClassInfoNoLine{\KOMAClassName}{% |
| 2972 |
amsthm's \string\deferred@thm@head\space patched}% |
| 2973 |
}{% |
| 2974 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 2975 |
cannot patch amsthm's \string\deferred@thm@head.\MessageBreak |
| 2976 |
This could result in wrong spacing before theorem\MessageBreak |
| 2977 |
environments defined by package `amsthm'% |
| 2978 |
}% |
| 2979 |
}% |
| 2980 |
} |
| 2981 |
\l@addto@macro{\@listi}{\@list@extra}% |
| 2982 |
\let\@listI=\@listi |
| 2983 |
\l@addto@macro{\@listii}{\@list@extra}% |
| 2984 |
\l@addto@macro{\@listiii}{\@list@extra}% |
| 2985 |
\l@addto@macro{\footnotesize}{\protect\add@extra@listi{ftns}}% |
| 2986 |
\l@addto@macro{\small}{\protect\add@extra@listi{sml}}% |
| 2987 |
\setlength{\columnsep}{10\p@} |
| 2988 |
\setlength{\columnseprule}{\z@} |
| 2989 |
\@lowpenalty = 51 |
| 2990 |
\@medpenalty =151 |
| 2991 |
\@highpenalty =301 |
| 2992 |
%%% From File: $Id: scrkernel-title.dtx 4032 2023-04-17 09:45:11Z kohm $ |
| 2993 |
%%% (run: body) |
| 2994 |
\newcommand*{\@extratitle}{}% |
| 2995 |
\newcommand{\extratitle}[1]{\gdef\@extratitle{% |
| 2996 |
#1% |
| 2997 |
}}% |
| 2998 |
\newcommand*{\@frontispiece}{}% |
| 2999 |
\newcommand{\frontispiece}[1]{\gdef\@frontispiece{% |
| 3000 |
#1% |
| 3001 |
}}% |
| 3002 |
\newcommand*{\@titlehead}{}% |
| 3003 |
\newcommand{\titlehead}[1]{\gdef\@titlehead{% |
| 3004 |
#1% |
| 3005 |
}}% |
| 3006 |
\newcommand*{\@subject}{}% |
| 3007 |
\newcommand*{\subject}[1]{\gdef\@subject{% |
| 3008 |
#1% |
| 3009 |
}}% |
| 3010 |
\newcommand*{\subtitle}[1]{\gdef\@subtitle{% |
| 3011 |
#1% |
| 3012 |
}}% |
| 3013 |
\newcommand*{\@subtitle}{}% |
| 3014 |
\newcommand*{\@publishers}{}% |
| 3015 |
\newcommand{\publishers}[1]{\gdef\@publishers{% |
| 3016 |
#1% |
| 3017 |
}}% |
| 3018 |
\newcommand*{\@uppertitleback}{}% |
| 3019 |
\newcommand{\uppertitleback}[1]{\gdef\@uppertitleback{% |
| 3020 |
#1% |
| 3021 |
}}% |
| 3022 |
\newcommand*{\@lowertitleback}{}% |
| 3023 |
\newcommand{\lowertitleback}[1]{\gdef\@lowertitleback{% |
| 3024 |
#1% |
| 3025 |
}}% |
| 3026 |
\newcommand*{\@dedication}{}% |
| 3027 |
\newcommand{\dedication}[1]{\gdef\@dedication{% |
| 3028 |
#1% |
| 3029 |
}}% |
| 3030 |
\newcommand*{\next@tpage}{% |
| 3031 |
\@thanks\global\let\@thanks\@empty |
| 3032 |
\clearpage |
| 3033 |
\csname titlepage@restore\endcsname |
| 3034 |
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative |
| 3035 |
\thispagestyle{empty}% |
| 3036 |
\let\footnote\thanks |
| 3037 |
\setcounter{footnote}{0}% |
| 3038 |
} |
| 3039 |
\newcommand*{\next@tdpage}{% |
| 3040 |
\next@tpage\if@twoside \ifodd\value{page}\else\null\next@tpage\fi\fi |
| 3041 |
} |
| 3042 |
\newcommand*\maketitle[1][1]{% |
| 3043 |
\expandafter\ifnum \scr@v@is@ge{3.12}% |
| 3044 |
\def\and{% |
| 3045 |
\end{tabular}% |
| 3046 |
\hskip 1em \@plus.17fil% |
| 3047 |
\begin{tabular}[t]{c}% |
| 3048 |
}% |
| 3049 |
\fi |
| 3050 |
\if@titlepage |
| 3051 |
\begin{titlepage} |
| 3052 |
\setcounter{page}{% |
| 3053 |
#1% |
| 3054 |
}% |
| 3055 |
\if@titlepageiscoverpage |
| 3056 |
\edef\titlepage@restore{% |
| 3057 |
\noexpand\endgroup |
| 3058 |
\noexpand\global\noexpand\@colht\the\@colht |
| 3059 |
\noexpand\global\noexpand\@colroom\the\@colroom |
| 3060 |
\noexpand\global\vsize\the\vsize |
| 3061 |
\noexpand\global\noexpand\@titlepageiscoverpagefalse |
| 3062 |
\noexpand\let\noexpand\titlepage@restore\noexpand\relax |
| 3063 |
}% |
| 3064 |
\begingroup |
| 3065 |
\topmargin=\dimexpr \coverpagetopmargin-1in\relax |
| 3066 |
\oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax |
| 3067 |
\evensidemargin=\dimexpr \coverpageleftmargin-1in\relax |
| 3068 |
\textwidth=\dimexpr |
| 3069 |
\paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax |
| 3070 |
\textheight=\dimexpr |
| 3071 |
\paperheight-\coverpagetopmargin-\coverpagebottommargin\relax |
| 3072 |
\headheight=0pt |
| 3073 |
\headsep=0pt |
| 3074 |
\footskip=\baselineskip |
| 3075 |
\@colht=\textheight |
| 3076 |
\@colroom=\textheight |
| 3077 |
\vsize=\textheight |
| 3078 |
\columnwidth=\textwidth |
| 3079 |
\hsize=\columnwidth |
| 3080 |
\linewidth=\hsize |
| 3081 |
\else |
| 3082 |
\let\titlepage@restore\relax |
| 3083 |
\fi |
| 3084 |
\let\footnotesize\small |
| 3085 |
\let\footnoterule\relax |
| 3086 |
\let\footnote\thanks |
| 3087 |
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}% |
| 3088 |
\let\@oldmakefnmark\@makefnmark |
| 3089 |
\renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% |
| 3090 |
\ifx\@extratitle\@empty |
| 3091 |
\ifx\@frontispiece\@empty |
| 3092 |
\else |
| 3093 |
\if@twoside\mbox{}\next@tpage\fi |
| 3094 |
\noindent\@frontispiece\next@tdpage |
| 3095 |
\fi |
| 3096 |
\else |
| 3097 |
\noindent\@extratitle |
| 3098 |
\ifx\@frontispiece\@empty |
| 3099 |
\else |
| 3100 |
\next@tpage |
| 3101 |
\noindent\@frontispiece |
| 3102 |
\fi |
| 3103 |
\next@tdpage |
| 3104 |
\fi |
| 3105 |
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative |
| 3106 |
\ifx\@titlehead\@empty \else |
| 3107 |
\begin{minipage}[t]{\textwidth}% |
| 3108 |
\usekomafont{titlehead}{\@titlehead\par}% |
| 3109 |
\end{minipage}\par |
| 3110 |
\fi |
| 3111 |
\null\vfill |
| 3112 |
\begin{center} |
| 3113 |
\ifx\@subject\@empty \else |
| 3114 |
{\usekomafont{subject}{\@subject\par}}% |
| 3115 |
\vskip 3em |
| 3116 |
\fi |
| 3117 |
{\usekomafont{title}{\huge \@title\par}}% |
| 3118 |
\vskip 1em |
| 3119 |
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% |
| 3120 |
\vskip 2em |
| 3121 |
{% |
| 3122 |
\usekomafont{author}{% |
| 3123 |
\lineskip 0.75em |
| 3124 |
\begin{tabular}[t]{c} |
| 3125 |
\@author |
| 3126 |
\end{tabular}\par |
| 3127 |
}% |
| 3128 |
}% |
| 3129 |
\vskip 1.5em |
| 3130 |
{\usekomafont{date}{\@date \par}}% |
| 3131 |
\vskip \z@ \@plus3fill |
| 3132 |
{\usekomafont{publishers}{\@publishers \par}}% |
| 3133 |
\vskip 3em |
| 3134 |
\end{center}\par |
| 3135 |
\@thanks\global\let\@thanks\@empty |
| 3136 |
\vfill\null |
| 3137 |
\if@twoside |
| 3138 |
\@tempswatrue |
| 3139 |
\expandafter\ifnum \scr@v@is@ge{3.12}% |
| 3140 |
\ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty |
| 3141 |
\@tempswafalse |
| 3142 |
\fi\fi |
| 3143 |
\fi |
| 3144 |
\if@tempswa |
| 3145 |
\next@tpage |
| 3146 |
\begin{minipage}[t]{\textwidth} |
| 3147 |
\@uppertitleback |
| 3148 |
\end{minipage}\par |
| 3149 |
\vfill |
| 3150 |
\begin{minipage}[b]{\textwidth} |
| 3151 |
\@lowertitleback |
| 3152 |
\end{minipage}\par |
| 3153 |
\@thanks\global\let\@thanks\@empty |
| 3154 |
\fi |
| 3155 |
\else |
| 3156 |
\ifx\@uppertitleback\@empty\else |
| 3157 |
\ClassWarning{\KOMAClassName}% |
| 3158 |
{% |
| 3159 |
non empty \string\uppertitleback\space ignored |
| 3160 |
by \string\maketitle\MessageBreak |
| 3161 |
in `twoside=false' mode% |
| 3162 |
}% |
| 3163 |
\fi |
| 3164 |
\ifx\@lowertitleback\@empty\else |
| 3165 |
\ClassWarning{\KOMAClassName}% |
| 3166 |
{% |
| 3167 |
non empty \string\lowertitleback\space ignored |
| 3168 |
by \string\maketitle\MessageBreak |
| 3169 |
in `twoside=false' mode% |
| 3170 |
}% |
| 3171 |
\fi |
| 3172 |
\fi |
| 3173 |
\ifx\@dedication\@empty |
| 3174 |
\else |
| 3175 |
\next@tdpage\null\vfill |
| 3176 |
{\centering\usekomafont{dedication}{\@dedication \par}}% |
| 3177 |
\vskip \z@ \@plus3fill |
| 3178 |
\@thanks\global\let\@thanks\@empty |
| 3179 |
\cleardoubleemptypage |
| 3180 |
\fi |
| 3181 |
\ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi |
| 3182 |
\end{titlepage} |
| 3183 |
\else |
| 3184 |
\par |
| 3185 |
\@tempcnta=% |
| 3186 |
#1% |
| 3187 |
\relax\ifnum\@tempcnta=1\else |
| 3188 |
\ClassWarning{\KOMAClassName}% |
| 3189 |
{% |
| 3190 |
Optional argument of \string\maketitle\space ignored\MessageBreak |
| 3191 |
in `titlepage=false' mode% |
| 3192 |
}% |
| 3193 |
\fi |
| 3194 |
\ifx\@uppertitleback\@empty\else |
| 3195 |
\ClassWarning{\KOMAClassName}% |
| 3196 |
{% |
| 3197 |
non empty \string\uppertitleback\space ignored |
| 3198 |
by \string\maketitle\MessageBreak |
| 3199 |
in `titlepage=false' mode% |
| 3200 |
}% |
| 3201 |
\fi |
| 3202 |
\ifx\@lowertitleback\@empty\else |
| 3203 |
\ClassWarning{\KOMAClassName}% |
| 3204 |
{% |
| 3205 |
non empty \string\lowertitleback\space ignored |
| 3206 |
by \string\maketitle\MessageBreak |
| 3207 |
in `titlepage=false' mode% |
| 3208 |
}% |
| 3209 |
\fi |
| 3210 |
\begingroup |
| 3211 |
\let\titlepage@restore\relax |
| 3212 |
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}% |
| 3213 |
\let\@oldmakefnmark\@makefnmark |
| 3214 |
\renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% |
| 3215 |
\next@tdpage |
| 3216 |
\if@twocolumn |
| 3217 |
\ifnum \col@number=\@ne |
| 3218 |
\ifx\@extratitle\@empty |
| 3219 |
\ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi |
| 3220 |
\else |
| 3221 |
\@makeextratitle |
| 3222 |
\fi |
| 3223 |
\ifx\@frontispiece\@empty |
| 3224 |
\ifx\@extratitle\@empty\else\next@tdpage\fi |
| 3225 |
\else |
| 3226 |
\next@tpage |
| 3227 |
\@makefrontispiece |
| 3228 |
\next@tdpage |
| 3229 |
\fi |
| 3230 |
\@maketitle |
| 3231 |
\else |
| 3232 |
\ifx\@extratitle\@empty |
| 3233 |
\ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi |
| 3234 |
\else |
| 3235 |
\twocolumn[\@makeextratitle]% |
| 3236 |
\fi |
| 3237 |
\ifx\@frontispiece\@empty |
| 3238 |
\ifx\@extratitle\@empty\else\next@tdpage\fi |
| 3239 |
\else |
| 3240 |
\next@tpage |
| 3241 |
\twocolumn[\@makefrontispiece]% |
| 3242 |
\next@tdpage |
| 3243 |
\fi |
| 3244 |
\twocolumn[\@maketitle]% |
| 3245 |
\fi |
| 3246 |
\else |
| 3247 |
\ifx\@extratitle\@empty |
| 3248 |
\ifx\@frontispiece\@empty\else \mbox{}\fi |
| 3249 |
\else |
| 3250 |
\@makeextratitle |
| 3251 |
\fi |
| 3252 |
\ifx\@frontispiece\@empty |
| 3253 |
\ifx\@extratitle\@empty\else\next@tdpage\fi |
| 3254 |
\else |
| 3255 |
\next@tpage |
| 3256 |
\@makefrontispiece |
| 3257 |
\next@tdpage |
| 3258 |
\fi |
| 3259 |
\@maketitle |
| 3260 |
\fi |
| 3261 |
\ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi |
| 3262 |
\@thanks\global\let\@thanks\@empty |
| 3263 |
\endgroup |
| 3264 |
\fi |
| 3265 |
\setcounter{footnote}{0}% |
| 3266 |
\expandafter\ifnum \scr@v@is@lt{3.12}% |
| 3267 |
\let\thanks\relax |
| 3268 |
\let\maketitle\relax |
| 3269 |
\let\@maketitle\relax |
| 3270 |
\global\let\@thanks\@empty |
| 3271 |
\global\let\@author\@empty |
| 3272 |
\global\let\@date\@empty |
| 3273 |
\global\let\@title\@empty |
| 3274 |
\global\let\@subtitle\@empty |
| 3275 |
\global\let\@extratitle\@empty |
| 3276 |
\global\let\@frontispiece\@empty |
| 3277 |
\global\let\@titlehead\@empty |
| 3278 |
\global\let\@subject\@empty |
| 3279 |
\global\let\@publishers\@empty |
| 3280 |
\global\let\@uppertitleback\@empty |
| 3281 |
\global\let\@lowertitleback\@empty |
| 3282 |
\global\let\@dedication\@empty |
| 3283 |
\global\let\author\relax |
| 3284 |
\global\let\title\relax |
| 3285 |
\global\let\extratitle\relax |
| 3286 |
\global\let\titlehead\relax |
| 3287 |
\global\let\subject\relax |
| 3288 |
\global\let\publishers\relax |
| 3289 |
\global\let\uppertitleback\relax |
| 3290 |
\global\let\lowertitleback\relax |
| 3291 |
\global\let\dedication\relax |
| 3292 |
\global\let\date\relax |
| 3293 |
\fi |
| 3294 |
\global\let\and\relax |
| 3295 |
}% |
| 3296 |
\newcommand*{\@makeextratitle}{% |
| 3297 |
\ifx\@extratitle\@empty \else |
| 3298 |
\noindent\@extratitle\par |
| 3299 |
\fi |
| 3300 |
} |
| 3301 |
\newcommand*{\@makefrontispiece}{% |
| 3302 |
\ifx\@frontispiece\@empty \else |
| 3303 |
\noindent\@frontispiece\par |
| 3304 |
\fi |
| 3305 |
} |
| 3306 |
\newcommand*{\@maketitle}{% |
| 3307 |
\global\@topnum=\z@ |
| 3308 |
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative |
| 3309 |
\ifx\@titlehead\@empty \else |
| 3310 |
\begin{minipage}[t]{\textwidth} |
| 3311 |
\usekomafont{titlehead}{\@titlehead\par}% |
| 3312 |
\end{minipage}\par |
| 3313 |
\fi |
| 3314 |
\null |
| 3315 |
\vskip 2em% |
| 3316 |
\begin{center}% |
| 3317 |
\ifx\@subject\@empty \else |
| 3318 |
{\usekomafont{subject}{\@subject \par}}% |
| 3319 |
\vskip 1.5em |
| 3320 |
\fi |
| 3321 |
{\usekomafont{title}{\huge \@title \par}}% |
| 3322 |
\vskip .5em |
| 3323 |
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}% |
| 3324 |
\vskip 1em |
| 3325 |
{% |
| 3326 |
\usekomafont{author}{% |
| 3327 |
\lineskip .5em% |
| 3328 |
\begin{tabular}[t]{c} |
| 3329 |
\@author |
| 3330 |
\end{tabular}\par |
| 3331 |
}% |
| 3332 |
}% |
| 3333 |
\vskip 1em% |
| 3334 |
{\usekomafont{date}{\@date \par}}% |
| 3335 |
\vskip \z@ \@plus 1em |
| 3336 |
{\usekomafont{publishers}{\@publishers \par}}% |
| 3337 |
\ifx\@dedication\@empty \else |
| 3338 |
\vskip 2em |
| 3339 |
{\usekomafont{dedication}{\@dedication \par}}% |
| 3340 |
\fi |
| 3341 |
\end{center}% |
| 3342 |
\par |
| 3343 |
\vskip 2em |
| 3344 |
}% |
| 3345 |
\newcommand*{\coverpagetopmargin}{% |
| 3346 |
\dimexpr \topmargin+1in\relax |
| 3347 |
} |
| 3348 |
\newcommand*{\coverpagebottommargin}{% |
| 3349 |
2\dimexpr\coverpagetopmargin\relax |
| 3350 |
} |
| 3351 |
\newcommand*{\coverpageleftmargin}{% |
| 3352 |
\dimexpr \evensidemargin+1in\relax |
| 3353 |
} |
| 3354 |
\newcommand*{\coverpagerightmargin}{\coverpageleftmargin} |
| 3355 |
\newenvironment{titlepage}{% |
| 3356 |
\cleardoublepage |
| 3357 |
\if@twocolumn |
| 3358 |
\@restonecoltrue\onecolumn |
| 3359 |
\else |
| 3360 |
\@restonecolfalse\newpage |
| 3361 |
\fi |
| 3362 |
\thispagestyle{empty}% |
| 3363 |
}{% |
| 3364 |
\if@restonecol\twocolumn \else \newpage \fi |
| 3365 |
}% |
| 3366 |
\newkomafont{subtitle}{\usekomafont{title}\large}% |
| 3367 |
\newkomafont{titlehead}{}% |
| 3368 |
\newkomafont{author}{\Large} |
| 3369 |
\newkomafont{date}{\Large} |
| 3370 |
\newkomafont{publishers}{\Large} |
| 3371 |
\newkomafont{dedication}{\Large} |
| 3372 |
\newcommand*\titlefont{\sectfont}% |
| 3373 |
\newcommand*{\scr@fnt@title}{\titlefont}% |
| 3374 |
\newcommand*{\subject@font}{\normalfont\normalcolor\bfseries\Large}% |
| 3375 |
\newcommand*{\scr@fnt@subject}{\subject@font}% |
| 3376 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 3377 |
%%% (run: body) |
| 3378 |
\let\numberline\scr@numberline |
| 3379 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 3380 |
%%% (run: class,style,part) |
| 3381 |
\CloneTOCEntryStyle{tocline}{part} |
| 3382 |
\TOCEntryStyleStartInitCode{part}{% |
| 3383 |
\expandafter\providecommand% |
| 3384 |
\csname scr@tso@#1@linefill\endcsname{\hfill}% |
| 3385 |
\expandafter\providecommand% |
| 3386 |
\csname scr@tso@#1@entryformat\endcsname[1]{\usekomafont{partentry}{##1}}% |
| 3387 |
\expandafter\providecommand% |
| 3388 |
\csname scr@tso@#1@pagenumberformat\endcsname[1]{% |
| 3389 |
\usekomafont{partentry}{\usekomafont{partentrypagenumber}{##1}}}% |
| 3390 |
\expandafter\providecommand\expandafter*% |
| 3391 |
\csname scr@tso@#1@beforeskip\endcsname{2.25em \@plus\p@}% |
| 3392 |
} |
| 3393 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 3394 |
%%% (run: class,style,chapter) |
| 3395 |
\CloneTOCEntryStyle{tocline}{chapter} |
| 3396 |
\TOCEntryStyleStartInitCode{chapter}{% |
| 3397 |
\expandafter\providecommand% |
| 3398 |
\csname scr@tso@#1@linefill\endcsname{% |
| 3399 |
\if@chapterentrywithdots |
| 3400 |
{\usekomafont{chapterentrydots}{\TOCLineLeaderFill}}\relax |
| 3401 |
\else |
| 3402 |
\hfill |
| 3403 |
\fi |
| 3404 |
}% |
| 3405 |
\expandafter\providecommand% |
| 3406 |
\csname scr@tso@#1@entryformat\endcsname{\usekomafont{chapterentry}}% |
| 3407 |
\expandafter\providecommand% |
| 3408 |
\csname scr@tso@#1@pagenumberformat\endcsname[1]{% |
| 3409 |
\usekomafont{chapterentry}{\usekomafont{chapterentrypagenumber}{##1}}}% |
| 3410 |
\expandafter\providecommand\expandafter*% |
| 3411 |
\csname scr@tso@#1@beforeskip\endcsname{1.0em \@plus\p@}% |
| 3412 |
} |
| 3413 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 3414 |
%%% (run: class,style,section) |
| 3415 |
\CloneTOCEntryStyle{tocline}{section} |
| 3416 |
\TOCEntryStyleStartInitCode{section}{% |
| 3417 |
\expandafter\providecommand% |
| 3418 |
\csname scr@tso@#1@linefill\endcsname{\TOCLineLeaderFill\relax}% |
| 3419 |
} |
| 3420 |
%%% From File: $Id: scrkernel-tocstyle.dtx 4228 2025-10-08 14:10:51Z kohm $ |
| 3421 |
%%% (run: class,style,default) |
| 3422 |
\CloneTOCEntryStyle{section}{default} |
| 3423 |
%%% From File: $Id: scrkernel-sections.dtx 4253 2025-12-31 12:09:32Z kohm $ |
| 3424 |
%%% (run: body) |
| 3425 |
\BeforeClosingMainAux{% |
| 3426 |
\if@autodot\if@filesw\immediate\write\@mainaux{% |
| 3427 |
\string\global\string\csname\space @altsecnumformattrue\string\endcsname}% |
| 3428 |
\fi\fi} |
| 3429 |
\newcommand{\@maybeautodot}[1]{\if@autodot\else\begingroup% |
| 3430 |
\expandafter\@@maybeautodot #1\@stop\endgroup\fi |
| 3431 |
} |
| 3432 |
\newcommand*{\@@maybeautodot}[1]{% |
| 3433 |
\ifx #1\@stop\let\@@maybeautodot\relax |
| 3434 |
\else |
| 3435 |
\ifx #1\Alph \@autodottrue\fi |
| 3436 |
\ifx #1\alph \@autodottrue\fi |
| 3437 |
\ifx #1\Roman \@autodottrue\fi |
| 3438 |
\ifx #1\roman \@autodottrue\fi |
| 3439 |
\ifx #1\@Alph \@autodottrue\fi |
| 3440 |
\ifx #1\@alph \@autodottrue\fi |
| 3441 |
\ifx #1\@Roman \@autodottrue\fi |
| 3442 |
\ifx #1\@roman \@autodottrue\fi |
| 3443 |
\ifx #1\romannumeral \@autodottrue\fi |
| 3444 |
\fi |
| 3445 |
\@@maybeautodot |
| 3446 |
} |
| 3447 |
\newcommand*\autodot{\if@altsecnumformat.\fi} |
| 3448 |
\setcounter{secnumdepth}{2} |
| 3449 |
\providecommand*{\ifnumbered}{% |
| 3450 |
\ClassWarning{\KOMAClassName}{Usage of deprecated command |
| 3451 |
`\string\ifnumbered'.\MessageBreak |
| 3452 |
The command has been renamed because of a\MessageBreak |
| 3453 |
recommendation of The LaTeX Project Team.\MessageBreak |
| 3454 |
Please replace `\string\ifnumbered' by `\string\Ifnumbered'% |
| 3455 |
}% |
| 3456 |
\Ifnumbered |
| 3457 |
} |
| 3458 |
\newcommand*{\Ifnumbered}[1]{% |
| 3459 |
\if@currentusenumber |
| 3460 |
\scr@ifundefinedorrelax{#1numdepth}{% |
| 3461 |
\expandafter\@secondoftwo |
| 3462 |
}{% |
| 3463 |
\expandafter\ifnum \@nameuse{#1numdepth}>\c@secnumdepth |
| 3464 |
\expandafter\expandafter\expandafter\@secondoftwo |
| 3465 |
\else |
| 3466 |
\expandafter\expandafter\expandafter\@firstoftwo |
| 3467 |
\fi |
| 3468 |
}% |
| 3469 |
\else |
| 3470 |
\expandafter\@secondoftwo |
| 3471 |
\fi |
| 3472 |
} |
| 3473 |
\providecommand*{\ifunnumbered}{% |
| 3474 |
\ClassWarning{\KOMAClassName}{Usage of deprecated command |
| 3475 |
`\string\ifunnumbered'.\MessageBreak |
| 3476 |
The command has been renamed because of a\MessageBreak |
| 3477 |
recommendation of The LaTeX Project Team.\MessageBreak |
| 3478 |
Please replace `\string\ifunnumbered' by `\string\Ifunnumbered'% |
| 3479 |
}% |
| 3480 |
\Ifunnumbered |
| 3481 |
} |
| 3482 |
\newcommand*{\Ifunnumbered}[1]{% |
| 3483 |
\Ifnumbered{#1}{\@secondoftwo}{\@firstoftwo}% |
| 3484 |
} |
| 3485 |
\ExplSyntaxOn |
| 3486 |
\msg_new:nnnn { \KOMAClassName } { sectioning-features-not-available } |
| 3487 |
{ |
| 3488 |
Usage~of~\token_to_str:N #1 detected.\\ |
| 3489 |
Note,~the~sectioning~of~\KOMAClassName\ does~neither~use~nor~ |
| 3490 |
support~the~usage~of~\token_to_str:N #1 command.\\ |
| 3491 |
This~means,~that~none~of~the~KOMA-Script~features~ |
| 3492 |
for~headings~is~available~for~the~heading~\msg_line_context:.\\ |
| 3493 |
If~you~need~additional~sectioning~commands,~ |
| 3494 |
you~should~define~them~using~\token_to_str:N \DeclareNewSectionCommand\ |
| 3495 |
instead. |
| 3496 |
} |
| 3497 |
{ See~the~KOMA-Script~user~manual~for~more~information. } |
| 3498 |
\cctab_new:c { c_ \KOMAClassName _cmdhook_cctab } |
| 3499 |
\cctab_gsave_current:c { c_ \KOMAClassName _cmdhook_cctab } |
| 3500 |
\hook_gput_code:nnn { begindocument / end } { . } |
| 3501 |
{ |
| 3502 |
\cctab_begin:c { c_ \KOMAClassName _cmdhook_cctab } |
| 3503 |
\exp_args:Nne |
| 3504 |
\hook_gput_code:nnn { cmd / @startsection / before } { \KOMAClassName } |
| 3505 |
{ |
| 3506 |
\msg_warning:nnn { \KOMAClassName } |
| 3507 |
{ sectioning-features-not-available } |
| 3508 |
{ \@startsection } |
| 3509 |
} |
| 3510 |
\cctab_end: |
| 3511 |
} |
| 3512 |
\hook_gset_rule:nnnn { begindocument / end } { . } < { babel } |
| 3513 |
\ExplSyntaxOff |
| 3514 |
\newcommand*{\scr@startsection}[6]{% |
| 3515 |
\ExecuteDoHook{heading/preinit/#1}% |
| 3516 |
\if@noskipsec \leavevmode \fi |
| 3517 |
\par |
| 3518 |
\@tempskipa \glueexpr #4\relax |
| 3519 |
\@ifundefined{scr@#1@afterindent}{% |
| 3520 |
\def\startsection@afterindent##1##2##3{##3}% |
| 3521 |
}{% |
| 3522 |
\expandafter\let\expandafter\startsection@afterindent |
| 3523 |
\csname scr@#1@afterindent\endcsname |
| 3524 |
}% |
| 3525 |
\startsection@afterindent{\@afterindenttrue}{\@afterindentfalse}{% |
| 3526 |
\@afterindenttrue |
| 3527 |
\ifdim \@tempskipa <\z@ |
| 3528 |
\@tempskipa -\@tempskipa \@afterindentfalse |
| 3529 |
\fi |
| 3530 |
}% |
| 3531 |
\def\startsection@sectionname{#1}% |
| 3532 |
\def\startsection@secnumdepth{\numexpr #2\relax}% |
| 3533 |
\def\startsection@indent{\glueexpr #3\relax}% |
| 3534 |
\let\startsection@beforeskip\@tempskipa |
| 3535 |
\@ifundefined{scr@#1@runin}{% |
| 3536 |
\def\scr@sect@runin##1##2##3{##3}% |
| 3537 |
}{% |
| 3538 |
\expandafter\let\expandafter\scr@sect@runin |
| 3539 |
\csname scr@#1@runin\endcsname |
| 3540 |
}% |
| 3541 |
\scr@sect@runin{% |
| 3542 |
\def\startsection@afterskip{\glueexpr #3\relax}% |
| 3543 |
\expandafter\let\csname if@startsection@runin\expandafter\endcsname |
| 3544 |
\csname iftrue\endcsname |
| 3545 |
}{% |
| 3546 |
\def\startsection@afterskip{\glueexpr #3\relax}% |
| 3547 |
\expandafter\let\csname if@startsection@runin\expandafter\endcsname |
| 3548 |
\csname iffalse\endcsname |
| 3549 |
}{% |
| 3550 |
\ifdim \glueexpr #5\relax <\z@ |
| 3551 |
\def\startsection@afterskip{\glueexpr (#3)*\m@ne\relax}% |
| 3552 |
\expandafter\let\csname if@startsection@runin\expandafter\endcsname |
| 3553 |
\csname iftrue\endcsname |
| 3554 |
\else |
| 3555 |
\def\startsection@afterskip{\glueexpr #3\relax}% |
| 3556 |
\expandafter\let\csname if@startsection@runin\expandafter\endcsname |
| 3557 |
\csname iffalse\endcsname |
| 3558 |
\fi |
| 3559 |
}% |
| 3560 |
\ExecuteDoHook{heading/postinit/#1}% |
| 3561 |
\if@nobreak |
| 3562 |
\everypar{}% |
| 3563 |
\else |
| 3564 |
\addpenalty\@secpenalty\addvspace\@tempskipa |
| 3565 |
\fi |
| 3566 |
\kernel@ifstar {% |
| 3567 |
\ExecuteDoHook{heading/branch/star/#1}% |
| 3568 |
\def\scr@s@ct@@nn@m@{#1}% |
| 3569 |
\scr@ssect{\glueexpr #3\relax}{\glueexpr #4\relax}{\glueexpr #5\relax}{#6}% |
| 3570 |
}{% |
| 3571 |
\ExecuteDoHook{heading/branch/nostar/#1}% |
| 3572 |
\scr@section@dblarg{% |
| 3573 |
\scr@sect{#1}{\numexpr #2\relax}{\glueexpr #3\relax}{\glueexpr #4\relax}% |
| 3574 |
{\glueexpr #5\relax}{#6}% |
| 3575 |
}% |
| 3576 |
}% |
| 3577 |
} |
| 3578 |
\newcommand*{\scr@sect@runin}[3]{#3} |
| 3579 |
\newcommand*{\scr@startsection@ulm@error}[1]{% |
| 3580 |
\ClassError{\KOMAClassName}{% |
| 3581 |
\string#1 undefined outside of \string\scr@startsection |
| 3582 |
}{% |
| 3583 |
A KOMA-Script macro for package authors have been used outside |
| 3584 |
the\MessageBreak |
| 3585 |
specified definition scope.\MessageBreak |
| 3586 |
See `scrkernel-sections.dtx' for more information.% |
| 3587 |
}% |
| 3588 |
} |
| 3589 |
\newcommand*\startsection@sectionname{% |
| 3590 |
\scr@startsection@ulm@error\startsection@sectionname} |
| 3591 |
\newcommand*\startsection@secnumdepth{% |
| 3592 |
\scr@startsection@ulm@error\startsection@secnumdepth} |
| 3593 |
\newcommand*\startsection@indent{% |
| 3594 |
\scr@startsection@ulm@error\startsection@indent} |
| 3595 |
\newcommand*\startsection@beforeskip{% |
| 3596 |
\scr@startsection@ulm@error\startsection@beforeskip} |
| 3597 |
\newcommand*\startsection@afterskip{% |
| 3598 |
\scr@startsection@ulm@error\startsection@afterskip} |
| 3599 |
\newcommand*{\if@startsection@runin}{% |
| 3600 |
\scr@startsection@ulm@error\if@startsection@runin} |
| 3601 |
\newif\if@startsection@runin |
| 3602 |
\newcommand*\startsection@afterindent{% |
| 3603 |
\scr@startsection@ulm@error\startsection@afterindent} |
| 3604 |
\newcommand*{\At@startsection}[1]{% |
| 3605 |
\ClassInfo{\KOMAClassName}{% |
| 3606 |
Usage of deprecated command `\string\At@startsection' |
| 3607 |
mapped to\MessageBreak |
| 3608 |
`\string\AddtoDoHook{heading/postinit} |
| 3609 |
{...\string\@gobble}'% |
| 3610 |
}% |
| 3611 |
\AddtoDoHook{heading/postinit}{\scr@doonlyifstyleofargis{#1}{section}}% |
| 3612 |
} |
| 3613 |
\newcommand*{\scr@doonlyifstyleofargis}[3]{% |
| 3614 |
\IfSectionCommandStyleIs{#3}{#2}{#1}{}% |
| 3615 |
} |
| 3616 |
\newcommand*{\Before@ssect}[1]{% |
| 3617 |
\ClassWarning{\KOMAClassName}{% |
| 3618 |
Usage of deprecated command `\string\Before@ssect' |
| 3619 |
mapped to\MessageBreak |
| 3620 |
`\string\AddtoDoHook{heading/branch/star}% |
| 3621 |
{...\string\@gobble}'% |
| 3622 |
}% |
| 3623 |
\AddtoDoHook{heading/branch/star}{\scr@doonlyifstyleofargis{#1}{section}}% |
| 3624 |
} |
| 3625 |
\newcommand*{\Before@sect}[1]{% |
| 3626 |
\ClassWarning{\KOMAClassName}{% |
| 3627 |
Usage of deprecated command `\string\Before@sect' |
| 3628 |
mapped to\MessageBreak |
| 3629 |
`\string\AddtoDoHook{heading/branch/nostar}% |
| 3630 |
{...\string\@gobble}'% |
| 3631 |
}% |
| 3632 |
\AddtoDoHook{heading/branch/nostar}{\scr@doonlyifstyleofargis{#1}{section}}% |
| 3633 |
} |
| 3634 |
\newcommand{\scr@section@dblarg}[1]{% |
| 3635 |
\kernel@ifnextchar[%] |
| 3636 |
{#1}% |
| 3637 |
{\scr@section@xdblarg{#1}}% |
| 3638 |
} |
| 3639 |
\newcommand{\scr@section@xdblarg}[2]{% |
| 3640 |
\begingroup |
| 3641 |
\edef\reserved@a{% |
| 3642 |
\unexpanded{\endgroup\let\scr@osectarg\z@#1[{#2}]{#2}\def\scr@osectarg}% |
| 3643 |
{\scr@osectarg}}% |
| 3644 |
\reserved@a |
| 3645 |
} |
| 3646 |
\newcommand*{\UseNumberUsageError}[2]{% |
| 3647 |
\ClassError{\KOMAClassName}{% |
| 3648 |
\string\IfUseNumber\space not allowed% |
| 3649 |
}{% |
| 3650 |
You cannot use \string\IfUseNumber\space outside a heading.\MessageBreak |
| 3651 |
If you'd continue, I'll ignore both arguments, because I do not |
| 3652 |
know\MessageBreak |
| 3653 |
whether to use the first or the second argument.% |
| 3654 |
}% |
| 3655 |
} |
| 3656 |
\newcommand*{\IfUseNumber}[2]{}% |
| 3657 |
\let\IfUseNumber\UseNumberUsageError |
| 3658 |
\newcommand*{\SecDef}[2]{\kernel@ifstar{#2}{\scr@section@dblarg{#1}}} |
| 3659 |
\CheckCommand*{\secdef}[2]{\@ifstar{#2}{\@dblarg{#1}}} |
| 3660 |
\let\secdef\SecDef |
| 3661 |
\def\scr@sect#1#2#3#4#5#6[#7]#8{% |
| 3662 |
\ifnum \scr@osectarg=\z@ |
| 3663 |
\@scr@tempswafalse |
| 3664 |
\else |
| 3665 |
\scr@istest#7=\@nil |
| 3666 |
\fi |
| 3667 |
\@currentusenumbertrue |
| 3668 |
\if@scr@tempswa |
| 3669 |
\setkeys{KOMAarg.section}{tocentry={#8},head={#8},reference={#8},#7}% |
| 3670 |
\else |
| 3671 |
\ifcase \scr@osectarg\relax |
| 3672 |
\setkeys{KOMAarg.section}{tocentry={#7},head={#7},reference={#7}}% |
| 3673 |
\or |
| 3674 |
\setkeys{KOMAarg.section}{tocentry={#8},head={#7},reference={#8}}% |
| 3675 |
\or |
| 3676 |
\setkeys{KOMAarg.section}{tocentry={#7},head={#8},reference={#7}}% |
| 3677 |
\or |
| 3678 |
\setkeys{KOMAarg.section}{tocentry={#7},head={#7},reference={#7}}% |
| 3679 |
\fi |
| 3680 |
\fi |
| 3681 |
\scr@ifundefinedorrelax{scr@mt@saved@sect}{}{% |
| 3682 |
\expandafter\ifx\csname #1\endcsname\section |
| 3683 |
\addcontentsline{\ext@figure}{xsect}{\@currenttocentry}% |
| 3684 |
\addcontentsline{\ext@table}{xsect}{\@currenttocentry}% |
| 3685 |
\fi |
| 3686 |
\expandafter\ifx\csname #1\endcsname\starsection\relax |
| 3687 |
\addcontentsline{\ext@figure}{xsect}{\@currenttocentry}% |
| 3688 |
\addcontentsline{\ext@table}{xsect}{\@currenttocentry}% |
| 3689 |
\fi |
| 3690 |
}% |
| 3691 |
\let\IfUsePrefixLine\@secondoftwo |
| 3692 |
\ifcase |
| 3693 |
\if@currentusenumber |
| 3694 |
\ifnum \numexpr #2\relax>\c@secnumdepth \z@\else \@ne\fi |
| 3695 |
\else |
| 3696 |
\z@ |
| 3697 |
\fi |
| 3698 |
\let\@svsec\@empty |
| 3699 |
\expandafter\ifnum\scr@v@is@ge{3.31}\relax |
| 3700 |
\begingroup |
| 3701 |
\let\@elt\@stpelt |
| 3702 |
\csname cl@#1\endcsname |
| 3703 |
\endgroup |
| 3704 |
\fi |
| 3705 |
\hy@insteadofrefstepcounter{#1}% |
| 3706 |
\else |
| 3707 |
\refstepcounter{#1}% |
| 3708 |
\expandafter\@maybeautodot\csname the#1\endcsname |
| 3709 |
\protected@edef\@svsec{\@seccntformat{#1}\relax}% |
| 3710 |
\fi |
| 3711 |
\ifdim |
| 3712 |
\scr@sect@runin{\z@}{\p@}{\glueexpr #5\relax}>\z@ |
| 3713 |
\begingroup |
| 3714 |
\ifx\@svsec\@empty |
| 3715 |
\let\IfUseNumber\@secondoftwo |
| 3716 |
\else |
| 3717 |
\let\IfUseNumber\@firstoftwo |
| 3718 |
\fi |
| 3719 |
\ExecuteDoHook{heading/begingroup/#1}% |
| 3720 |
#6{\nobreak\interlinepenalty \@M |
| 3721 |
\sectionlinesformat{#1}{\glueexpr #3\relax}\@svsec{#8}\@@par}% |
| 3722 |
\ExecuteDoHook{heading/endgroup/#1}% |
| 3723 |
\endgroup |
| 3724 |
\expandafter\csname #1mark\expandafter\endcsname\expandafter{\@currentheadentry}% |
| 3725 |
\ifx\@currenttocentry\@empty\else |
| 3726 |
\scr@ifundefinedorrelax{add#1tocentry}{% |
| 3727 |
\expandafter\gdef\csname add#1tocentry\endcsname##1##2{% |
| 3728 |
\addtocentrydefault{#1}{##1}{##2}% |
| 3729 |
}% |
| 3730 |
}{}% |
| 3731 |
\ifcase |
| 3732 |
\if@currentusenumber |
| 3733 |
\ifnum \numexpr #2\relax>\c@secnumdepth \z@\else \@ne\fi |
| 3734 |
\else |
| 3735 |
\z@ |
| 3736 |
\fi |
| 3737 |
\csname add#1tocentry\endcsname{}{\@currenttocentry}% |
| 3738 |
\else |
| 3739 |
\@ifundefined{#1tocformat}{% |
| 3740 |
\expandafter\gdef\csname #1tocformat\endcsname |
| 3741 |
{\csname the#1\endcsname}% |
| 3742 |
}{}% |
| 3743 |
\csname add#1tocentry\endcsname{\csname #1tocformat\endcsname}{% |
| 3744 |
\@currenttocentry}% |
| 3745 |
\fi |
| 3746 |
\fi |
| 3747 |
\else |
| 3748 |
\def\@svsechd{% |
| 3749 |
\ifx\@svsec\@empty |
| 3750 |
\let\IfUseNumber\@secondoftwo |
| 3751 |
\else |
| 3752 |
\let\IfUseNumber\@firstoftwo |
| 3753 |
\fi |
| 3754 |
\ExecuteDoHook{heading/begingroup/#1}% |
| 3755 |
#6{\nobreak\sectioncatchphraseformat{#1}{\glueexpr #3\relax}\@svsec{#8}}% |
| 3756 |
\expandafter\csname #1mark\expandafter\endcsname |
| 3757 |
\expandafter{\@currentheadentry}% |
| 3758 |
\ifx\@currenttocentry\@empty\else |
| 3759 |
\scr@ifundefinedorrelax{add#1tocentry}{% |
| 3760 |
\expandafter\gdef\csname add#1tocentry\endcsname####1####2{% |
| 3761 |
\addtocentrydefault{#1}{####1}{####2}% |
| 3762 |
}% |
| 3763 |
}{}% |
| 3764 |
\ifcase |
| 3765 |
\if@currentusenumber |
| 3766 |
\ifnum \numexpr #2\relax>\c@secnumdepth \z@\else \@ne\fi |
| 3767 |
\else |
| 3768 |
\z@ |
| 3769 |
\fi |
| 3770 |
\csname add#1tocentry\endcsname{}{\@currenttocentry}% |
| 3771 |
\else |
| 3772 |
\@ifundefined{#1tocformat}{% |
| 3773 |
\expandafter\gdef\csname #1tocformat\endcsname |
| 3774 |
{\csname the#1\endcsname}% |
| 3775 |
}{}% |
| 3776 |
\csname add#1tocentry\endcsname{\csname #1tocformat\endcsname}{% |
| 3777 |
\@currenttocentry}% |
| 3778 |
\fi |
| 3779 |
\fi |
| 3780 |
\ExecuteDoHook{heading/endgroup/#1}% |
| 3781 |
}% |
| 3782 |
\fi |
| 3783 |
\let\IfUsePrefixLine\scr@IfUsePrefixLineWarning |
| 3784 |
\scr@xsect{\glueexpr #5\relax}% |
| 3785 |
} |
| 3786 |
\DefineFamily{KOMAarg} |
| 3787 |
\DefineFamilyMember[.section]{KOMAarg} |
| 3788 |
\providecommand*\@currenttocentry{} |
| 3789 |
\providecommand*\@currentheadentry{} |
| 3790 |
\providecommand*\@currentlabelname{} |
| 3791 |
\FamilyStringKey[.section]{KOMAarg}{tocentry}{\@currenttocentry} |
| 3792 |
\FamilyStringKey[.section]{KOMAarg}{head}{\@currentheadentry} |
| 3793 |
\NewHook{\KOMAClassName/option/section/reference/fallback}% |
| 3794 |
\DefineFamilyKey[.section]{KOMAarg}{reference}{% |
| 3795 |
\scr@ifundefinedorrelax{NR@gettitle}{% |
| 3796 |
\scr@ifundefinedorrelax{GetTitleString}{% |
| 3797 |
\begingroup |
| 3798 |
\DeclareExpandableDocumentCommand{\label}{som}{}% |
| 3799 |
\DeclareExpandableDocumentCommand{\index}{som}{}% |
| 3800 |
\DeclareExpandableDocumentCommand{\glossary}{som}{}% |
| 3801 |
\DeclareExpandableDocumentCommand{\zlabel}{som}{}% |
| 3802 |
\scr@ifundefinedorrelax{UseHook}{}{% |
| 3803 |
\UseHook{\KOMAClassName/option/section/reference/fallback}% |
| 3804 |
}% |
| 3805 |
\let\protect\noexpand |
| 3806 |
\edef\@currentlabelname{\expandafter\detokenize{#1}}% |
| 3807 |
\expandafter\expandafter\expandafter\endgroup |
| 3808 |
\expandafter\def\expandafter\@currentlabelname\expandafter{% |
| 3809 |
\@currentlabelname}% |
| 3810 |
}{% |
| 3811 |
\GetTitleString{#1}% |
| 3812 |
\let\@currentlabelname\GetTitleStringResult |
| 3813 |
}% |
| 3814 |
}{% |
| 3815 |
\NR@gettitle{#1}% |
| 3816 |
}% |
| 3817 |
\scr@ifundefinedorrelax{TR@gettitle}{}{% |
| 3818 |
\expandafter\TR@gettitle\expandafter{\@currentlabelname}% |
| 3819 |
}% |
| 3820 |
\scr@ifundefinedorrelax{ztitlerefsetup}{}{% |
| 3821 |
\ztitlerefsetup{title=\@currentlabelname}% |
| 3822 |
}% |
| 3823 |
\FamilyKeyStateProcessed |
| 3824 |
} |
| 3825 |
\FamilyInverseBoolKey[.section]{KOMAarg}{nonumber}{@currentusenumber} |
| 3826 |
\newcommand*{\scr@istest}{} |
| 3827 |
\def\scr@istest#1=#2\@nil{% |
| 3828 |
\ifx\relax#2\relax\@scr@tempswafalse\else\@scr@tempswatrue\fi |
| 3829 |
} |
| 3830 |
\newif\if@scr@tempswa |
| 3831 |
\newcommand{\sectionlinesformat}[4]{% |
| 3832 |
\@hangfrom{\hskip #2#3}{#4}% |
| 3833 |
} |
| 3834 |
\newcommand{\sectioncatchphraseformat}[4]{% |
| 3835 |
\hskip #2#3#4% |
| 3836 |
} |
| 3837 |
\def\scr@ssect#1#2#3#4#5{% |
| 3838 |
\scr@ifundefinedorrelax{scr@s@ct@@nn@m@}{% |
| 3839 |
\ClassWarning{\KOMAClassName}{Incompatible usage of |
| 3840 |
\string\scr@ssect\space detected.\MessageBreak |
| 3841 |
You've used the KOMA-Script implementation of |
| 3842 |
\string\scr@ssect\MessageBreak |
| 3843 |
from within a non compatible caller, that does not\MessageBreak |
| 3844 |
\string\scr@s@ct@@nn@m@\space locally.\MessageBreak |
| 3845 |
This could result in several error messages}% |
| 3846 |
\def\scr@s@ct@@nn@m@{\string\scr@s@ct@@nn@m@}% |
| 3847 |
}{% |
| 3848 |
\expandafter\ifnum\scr@v@is@ge{3.31}\relax |
| 3849 |
\begingroup |
| 3850 |
\let\@elt\@stpelt |
| 3851 |
\csname cl@\scr@s@ct@@nn@m@\endcsname |
| 3852 |
\endgroup |
| 3853 |
\fi |
| 3854 |
}% |
| 3855 |
\ifdim |
| 3856 |
\scr@sect@runin{\z@}{\p@}{\glueexpr #3\relax}>\z@ |
| 3857 |
\begingroup |
| 3858 |
\let\IfUseNumber\@secondoftwo |
| 3859 |
\edef\reserved@a{% |
| 3860 |
\noexpand\ExecuteDoHook{heading/begingroup/\scr@s@ct@@nn@m@}% |
| 3861 |
}\reserved@a |
| 3862 |
#4{\nobreak\interlinepenalty \@M |
| 3863 |
\expandafter\sectionlinesformat\expandafter{\scr@s@ct@@nn@m@}% |
| 3864 |
{\glueexpr #1\relax}\@empty{#5}\@@par}% |
| 3865 |
\edef\reserved@a{% |
| 3866 |
\noexpand\ExecuteDoHook{heading/endgroup/\scr@s@ct@@nn@m@}% |
| 3867 |
}\reserved@a |
| 3868 |
\endgroup |
| 3869 |
\else |
| 3870 |
\edef\@svsechd{% |
| 3871 |
\unexpanded{\let\IfUseNumber\@secondoftwo}% |
| 3872 |
\noexpand\ExecuteDoHook{heading/begingroup/\scr@s@ct@@nn@m@}% |
| 3873 |
\unexpanded{#4}{% |
| 3874 |
\noexpand\nobreak |
| 3875 |
\noexpand\sectioncatchphraseformat{\scr@s@ct@@nn@m@}% |
| 3876 |
\unexpanded{{\glueexpr #1\relax}\@empty{#5}}% |
| 3877 |
}% |
| 3878 |
\noexpand\ExecuteDoHook{heading/endgroup/\scr@s@ct@@nn@m@}% |
| 3879 |
}% |
| 3880 |
\fi |
| 3881 |
\let\scr@s@ct@@nn@m@\relax |
| 3882 |
\scr@xsect{\glueexpr #3\relax}% |
| 3883 |
} |
| 3884 |
\def\scr@xsect#1{% |
| 3885 |
\@ifundefined{scr@sect@runin}{% |
| 3886 |
\def\scr@sect@runin##1##2##3{##3}% |
| 3887 |
}% |
| 3888 |
\@tempskipa #1\relax |
| 3889 |
\ifdim \scr@sect@runin{\z@}{\p@}{\@tempskipa}>\z@ |
| 3890 |
\par \nobreak |
| 3891 |
\vskip \@tempskipa |
| 3892 |
\@afterheading |
| 3893 |
\else |
| 3894 |
\@nobreakfalse |
| 3895 |
\global\@noskipsectrue |
| 3896 |
\everypar{% |
| 3897 |
\if@noskipsec |
| 3898 |
\global\@noskipsecfalse |
| 3899 |
{\setbox\z@\lastbox}% |
| 3900 |
\clubpenalty\@M |
| 3901 |
\begingroup \@svsechd \endgroup |
| 3902 |
\unskip |
| 3903 |
\@tempskipa #1\relax |
| 3904 |
\ifdim \@tempskipa<\z@ |
| 3905 |
\hskip -\@tempskipa |
| 3906 |
\else |
| 3907 |
\hskip \@tempskipa |
| 3908 |
\fi |
| 3909 |
\else |
| 3910 |
\clubpenalty \@clubpenalty |
| 3911 |
\everypar{}% |
| 3912 |
\fi}% |
| 3913 |
\fi |
| 3914 |
\def\scr@sect@runin##1##2##3{##3}% |
| 3915 |
\ignorespaces |
| 3916 |
} |
| 3917 |
\newcommand*{\scr@IfUsePrefixLineWarning}[2]{% |
| 3918 |
\ClassWarning{\KOMAClassName}{% |
| 3919 |
Usage of \string\IfUsePrefixLine\space outside |
| 3920 |
section command\MessageBreak |
| 3921 |
style makes no sense, because the behaviour not only\MessageBreak |
| 3922 |
depends on class options but also on the run-time\MessageBreak |
| 3923 |
section command style.\MessageBreak |
| 3924 |
Neither the then-code nor the else-code will be\MessageBreak |
| 3925 |
executed.\MessageBreak |
| 3926 |
You may change this and avoid the warning by LOCALLY\MessageBreak |
| 3927 |
setting \string\IfUsePrefixLine\space to either |
| 3928 |
\string\@firstoftwo\space or\MessageBreak |
| 3929 |
\string\@secondoftwo\space before using it% |
| 3930 |
}% |
| 3931 |
} |
| 3932 |
\newcommand*{\IfUsePrefixLine}[2]{} |
| 3933 |
\let\IfUsePrefixLine\scr@IfUsePrefixLineWarning |
| 3934 |
\newcommand*{\raggedsection}{} |
| 3935 |
\let\raggedsection\raggedright |
| 3936 |
\DefineFamily{KOMAarg} |
| 3937 |
\DefineFamilyMember[.dsc]{KOMAarg} |
| 3938 |
\newcommand*{\DeclareSectionCommandStyleOption}[3]{% |
| 3939 |
\AddToSectionCommandOptionsDoList{#2}% |
| 3940 |
\expandafter\g@addto@macro\csname scr@dsc@style@#1@options\endcsname{% |
| 3941 |
\DefineFamilyKey[.dsc]{KOMAarg}{#2}{#3}% |
| 3942 |
}% |
| 3943 |
} |
| 3944 |
\newcommand*{\AddToSectionCommandOptionsDoList}[1]{% |
| 3945 |
\kernel@ifnextchar [%] |
| 3946 |
{\@AddToSectionCommandOptionListWithDefault{#1}}% |
| 3947 |
{\l@addto@macro\scr@dsc@doopts{\do{#1}}}% |
| 3948 |
} |
| 3949 |
\newcommand*{\@AddToSectionCommandOptionListWithDefault}{} |
| 3950 |
\def\@AddToSectionCommandOptionListWithDefault#1[#2]{% |
| 3951 |
\l@addto@macro\scr@dsc@doopts{\do[{#2}]{#1}} |
| 3952 |
}% |
| 3953 |
\newcommand*{\scr@dsc@doopts}{} |
| 3954 |
\newcommand*{\RelaxSectionCommandOptions}{% |
| 3955 |
\begingroup |
| 3956 |
\def\do@endgroup{\endgroup}% |
| 3957 |
\def\do{% |
| 3958 |
\kernel@ifnextchar [%] |
| 3959 |
{\@do}% |
| 3960 |
{\@do[]}% |
| 3961 |
}% |
| 3962 |
\def\@do[##1]##2{% |
| 3963 |
\l@addto@macro\do@endgroup{\RelaxFamilyKey[.dsc]{KOMAarg}{##2}}% |
| 3964 |
}% |
| 3965 |
\scr@dsc@doopts |
| 3966 |
\do@endgroup |
| 3967 |
} |
| 3968 |
\newcommand*{\DeclareSectionCommandStyleLengthOption}[4]{% |
| 3969 |
\DeclareSectionCommandStyleOption{#1}{#2}{% |
| 3970 |
\protected@edef\reserved@a{% |
| 3971 |
\noexpand\FamilySetLength{KOMAarg}{#2}{\noexpand\@tempskipa}{##1}% |
| 3972 |
}\reserved@a |
| 3973 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 3974 |
\ifscr@dsc@expandtopt |
| 3975 |
\expandafter\edef\csname #3\scr@dsc@current#4\endcsname{% |
| 3976 |
\the\@tempskipa}% |
| 3977 |
\else |
| 3978 |
\expandafter\edef\csname #3\scr@dsc@current#4\endcsname{##1}% |
| 3979 |
\fi |
| 3980 |
\fi |
| 3981 |
}% |
| 3982 |
\DeclareSectionCommandStyleOption{#1}{#2:}{% |
| 3983 |
\scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{% |
| 3984 |
\ifscr@dsc@expandtopt |
| 3985 |
\setlength{\@tempskipa}{\@nameuse{#3##1#4}}% |
| 3986 |
\expandafter\edef\csname #3\scr@dsc@current#4\endcsname{\the\@tempskipa}% |
| 3987 |
\else |
| 3988 |
\@namedef{#3\scr@dsc@current#4}{\@nameuse{#3##1#4}}% |
| 3989 |
\fi |
| 3990 |
\FamilyKeyStateProcessed |
| 3991 |
}% |
| 3992 |
}% |
| 3993 |
} |
| 3994 |
\newcommand*{\DeclareSectionCommandStyleNumberOption}[4]{% |
| 3995 |
\DeclareSectionCommandStyleOption{#1}{#2}{% |
| 3996 |
\protected@edef\reserved@a{% |
| 3997 |
\noexpand\FamilySetCounterMacro{KOMAarg}{#2}{\noexpand\reserved@a}{##1} |
| 3998 |
}\reserved@a |
| 3999 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 4000 |
\expandafter\let\csname #3\scr@dsc@current#4\endcsname\reserved@a |
| 4001 |
\fi |
| 4002 |
}% |
| 4003 |
\DeclareSectionCommandStyleOption{#1}{#2:}{% |
| 4004 |
\scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{% |
| 4005 |
\ifscr@dsc@expandtopt |
| 4006 |
\@tempcnta=\@nameuse{#3##1#4}% |
| 4007 |
\expandafter\edef\csname #3\scr@dsc@current#4\endcsname{\the\@tempcnta}% |
| 4008 |
\else |
| 4009 |
\@namedef{#3\scr@dsc@current#4}{\@nameuse{#3##1#4}}% |
| 4010 |
\fi |
| 4011 |
\FamilyKeyStateProcessed |
| 4012 |
}% |
| 4013 |
}% |
| 4014 |
} |
| 4015 |
\newcommand*{\DeclareSectionCommandStyleFontOption}[4]{% |
| 4016 |
\DeclareSectionCommandStyleOption{#1}{#2}{% |
| 4017 |
\IfExistskomafont{#3\scr@dsc@current#4}{% |
| 4018 |
\setkomafont |
| 4019 |
}{% |
| 4020 |
\newkomafont |
| 4021 |
}{#3\scr@dsc@current#4}{##1}% |
| 4022 |
\FamilyKeyStateProcessed |
| 4023 |
}% |
| 4024 |
\DeclareSectionCommandStyleOption{#1}{#2:}{% |
| 4025 |
\IfExistskomafont{#3##1#4}{% |
| 4026 |
\IfExistskomafont{#3\scr@dsc@current#4}{% |
| 4027 |
\setkomafont |
| 4028 |
}{% |
| 4029 |
\newkomafont |
| 4030 |
}{#3\scr@dsc@current#4}{\usekomafont{#3##1#4}}% |
| 4031 |
\FamilyKeyStateProcessed |
| 4032 |
}{\FamilyKeyStateUnknownValue}% |
| 4033 |
}% |
| 4034 |
} |
| 4035 |
\newcommand*{\DeclareSectionCommandStyleFuzzyOption}[5]{% |
| 4036 |
\DeclareSectionCommandStyleOption{#1}{#2}{% |
| 4037 |
\FamilySetBool{KOMAarg}{#2}{@tempswa}{##1}% |
| 4038 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 4039 |
\if@tempswa |
| 4040 |
\expandafter\def\csname #3\scr@dsc@current#4\endcsname |
| 4041 |
####1####2####3{####1}% |
| 4042 |
\else |
| 4043 |
\expandafter\def\csname #3\scr@dsc@current#4\endcsname |
| 4044 |
####1####2####3{####2}% |
| 4045 |
\fi |
| 4046 |
\else |
| 4047 |
\Ifstr{##1}{#5}{% |
| 4048 |
\expandafter\def\csname #3\scr@dsc@current#4\endcsname |
| 4049 |
####1####2####3{####3}% |
| 4050 |
\FamilyKeyStateProcessed |
| 4051 |
}{}% |
| 4052 |
\fi |
| 4053 |
}% |
| 4054 |
\DeclareSectionCommandStyleOption{#1}{#2:}{% |
| 4055 |
\scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{% |
| 4056 |
\ifscr@dsc@expandtopt |
| 4057 |
\expandafter\let\csname #3\scr@dsc@current#4\expandafter\endcsname |
| 4058 |
\csname #3##1#4\endcsname |
| 4059 |
\else |
| 4060 |
\expandafter\def\csname #3\scr@dsc@current#4\endcsname{% |
| 4061 |
\@nameuse{#3##1#4}% |
| 4062 |
}% |
| 4063 |
\fi |
| 4064 |
\FamilyKeyStateProcessed |
| 4065 |
}% |
| 4066 |
}% |
| 4067 |
} |
| 4068 |
\newcommand*{\scr@dsc@style@section@options}{} |
| 4069 |
\DeclareSectionCommandStyleLengthOption{section} |
| 4070 |
{indent}{scr@}{@sectionindent} |
| 4071 |
\DeclareSectionCommandStyleFuzzyOption{section} |
| 4072 |
{afterindent}{scr@}{@afterindent} |
| 4073 |
{bysign} |
| 4074 |
\DeclareSectionCommandStyleLengthOption{section} |
| 4075 |
{beforeskip}{scr@}{@beforeskip} |
| 4076 |
\DeclareSectionCommandStyleFuzzyOption{section} |
| 4077 |
{runin}{scr@}{@runin} |
| 4078 |
{bysign} |
| 4079 |
\DeclareSectionCommandStyleLengthOption{section} |
| 4080 |
{afterskip}{scr@}{@afterskip} |
| 4081 |
\DeclareSectionCommandStyleFontOption{section}{font}{}{} |
| 4082 |
\newcommand*{\scr@dsc@def@style@section@command}[1]{% |
| 4083 |
\@namedef{#1}{% |
| 4084 |
\scr@startsection{#1}% |
| 4085 |
{\csname #1numdepth\endcsname}% |
| 4086 |
{\csname scr@#1@sectionindent\endcsname}% |
| 4087 |
{\csname scr@#1@beforeskip\endcsname}% |
| 4088 |
{\csname scr@#1@afterskip\endcsname}% |
| 4089 |
{% |
| 4090 |
\ifdim\glueexpr\csname scr@#1@afterskip\endcsname >\z@ |
| 4091 |
\expandafter\ifnum\scr@v@is@gt{2.96}\relax |
| 4092 |
\setlength{\parfillskip}{\z@ plus 1fil}% |
| 4093 |
\fi |
| 4094 |
\fi |
| 4095 |
\raggedsection\normalfont\sectfont\nobreak |
| 4096 |
\usekomafont{#1}% |
| 4097 |
}% |
| 4098 |
}% |
| 4099 |
} |
| 4100 |
\newcommand*{\scr@dsc@style@chapter@options}{} |
| 4101 |
\DeclareSectionCommandStyleOption{chapter}{pagestyle}{% |
| 4102 |
\@namedef{\scr@dsc@current pagestyle}{#1}% |
| 4103 |
\FamilyKeyStateProcessed |
| 4104 |
}% |
| 4105 |
\DeclareSectionCommandStyleFuzzyOption{chapter} |
| 4106 |
{afterindent}{scr@}{@afterindent} |
| 4107 |
{bysign} |
| 4108 |
\DeclareSectionCommandStyleLengthOption{chapter} |
| 4109 |
{beforeskip}{scr@}{@beforeskip} |
| 4110 |
\DeclareSectionCommandStyleLengthOption{chapter} |
| 4111 |
{innerskip}{scr@}{@innerskip} |
| 4112 |
\DeclareSectionCommandStyleLengthOption{chapter} |
| 4113 |
{afterskip}{scr@}{@afterskip} |
| 4114 |
\DeclareSectionCommandStyleFontOption{chapter}{font}{}{} |
| 4115 |
\DeclareSectionCommandStyleFontOption{chapter}{prefixfont}{}{prefix} |
| 4116 |
\newcommand*{\scr@dsc@def@style@chapter@command}[1]{% |
| 4117 |
\@namedef{#1}{\scr@startchapter{#1}}% |
| 4118 |
\@namedef{@#1}{\scr@@startchapter{#1}}% |
| 4119 |
\@namedef{@s#1}{\scr@@startschapter{#1}}% |
| 4120 |
\@namedef{@make#1head}{\scr@makechapterhead{#1}}% |
| 4121 |
\@namedef{@makes#1head}{\scr@makeschapterhead{#1}}% |
| 4122 |
\@namedef{@@make#1head}{\scr@@makechapterhead{#1}}% |
| 4123 |
\@namedef{@@makes#1head}{\scr@@makeschapterhead{#1}}% |
| 4124 |
\@namedef{set#1preamble}{\set@preamble{#1}}% |
| 4125 |
} |
| 4126 |
\newcommand*{\scr@dsc@style@chapter@subcommands}[1]{% |
| 4127 |
@#1,@s#1,@make#1head,@makes#1head,@@make#1head,@@makes#1head,set#1preamble% |
| 4128 |
} |
| 4129 |
\newcommand*{\scr@dsc@style@part@options}{} |
| 4130 |
\DeclareSectionCommandStyleOption{part}{pagestyle}{% |
| 4131 |
\@namedef{\scr@dsc@current pagestyle}{#1}% |
| 4132 |
\FamilyKeyStateProcessed |
| 4133 |
}% |
| 4134 |
\DeclareSectionCommandStyleFuzzyOption{part} |
| 4135 |
{afterindent}{scr@}{@afterindent} |
| 4136 |
{bysign} |
| 4137 |
\DeclareSectionCommandStyleLengthOption{part} |
| 4138 |
{beforeskip}{scr@}{@beforeskip} |
| 4139 |
\DeclareSectionCommandStyleLengthOption{part} |
| 4140 |
{innerskip}{scr@}{@innerskip} |
| 4141 |
\DeclareSectionCommandStyleLengthOption{part} |
| 4142 |
{afterskip}{scr@}{@afterskip} |
| 4143 |
\DeclareSectionCommandStyleFontOption{part}{font}{}{} |
| 4144 |
\DeclareSectionCommandStyleFontOption{part}{prefixfont}{}{prefix} |
| 4145 |
\newcommand*{\scr@dsc@def@style@part@command}[1]{% |
| 4146 |
\@namedef{#1}{\scr@startpart{#1}}% |
| 4147 |
\@namedef{@#1}{\scr@@startpart{#1}}% |
| 4148 |
\@namedef{@s#1}{\scr@@startspart{#1}}% |
| 4149 |
\@namedef{@end#1}{\scr@@endpart{#1}}% |
| 4150 |
\@namedef{set#1preamble}{\set@preamble{#1}}% |
| 4151 |
} |
| 4152 |
\newcommand*{\scr@dsc@style@part@subcommands}[1]{% |
| 4153 |
@#1,@s#1,@end#1,set#1preamble% |
| 4154 |
} |
| 4155 |
\newcommand*{\scr@dsc@style@section@neededoptionstest}{% |
| 4156 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @sectionindent}{% |
| 4157 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4158 |
{section indent}{indent}{0pt}% |
| 4159 |
{\@namedef{scr@\scr@dsc@current @sectionindent}{0pt}}% |
| 4160 |
}{}% |
| 4161 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @beforeskip}{% |
| 4162 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4163 |
{before section skip}{beforeskip}% |
| 4164 |
}{}% |
| 4165 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @afterskip}{% |
| 4166 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4167 |
{after section skip}{afterskip}% |
| 4168 |
}{}% |
| 4169 |
\IfExistskomafont{\scr@dsc@current}{}{% |
| 4170 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4171 |
{font}{font}{\normalsize}% |
| 4172 |
{\newkomafont{\scr@dsc@current}{\normalsize}}% |
| 4173 |
}% |
| 4174 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @runin}{% |
| 4175 |
\l@addto@macro\local@endgroup{% |
| 4176 |
\ClassInfo{\KOMAClassName} |
| 4177 |
{using compatibility default `runin=bysign'\MessageBreak |
| 4178 |
for `\expandafter\string\csname \scr@dsc@current\endcsname}% |
| 4179 |
\expandafter\gdef\csname scr@\scr@dsc@current @runin\endcsname |
| 4180 |
##1##2##3{##3}% |
| 4181 |
}% |
| 4182 |
}{}% |
| 4183 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @afterindent}{% |
| 4184 |
\l@addto@macro\local@endgroup{% |
| 4185 |
\ClassInfo{\KOMAClassName} |
| 4186 |
{using compatibility default `afterindent=bysign'\MessageBreak |
| 4187 |
for `\expandafter\string\csname \scr@dsc@current\endcsname}% |
| 4188 |
\expandafter\gdef\csname scr@\scr@dsc@current @afterindent\endcsname |
| 4189 |
##1##2##3{##3}% |
| 4190 |
}% |
| 4191 |
}{}% |
| 4192 |
} |
| 4193 |
\newcommand*{\scr@dsc@style@chapter@neededoptionstest}{% |
| 4194 |
\scr@ifundefinedorrelax{\scr@dsc@current pagestyle}{% |
| 4195 |
\Ifstr{\scr@dsc@current}{chapter}{% |
| 4196 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4197 |
{initial page style}{pagestyle}% |
| 4198 |
}{% |
| 4199 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4200 |
{initial page style}{pagestyle}% |
| 4201 |
{\chapterpagestyle}% |
| 4202 |
{\@namedef{\scr@dsc@current pagestyle}{\chapterpagestyle}}% |
| 4203 |
}% |
| 4204 |
}{}% |
| 4205 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @innerskip}{% |
| 4206 |
\Ifstr{\scr@dsc@current}{chapter}{% |
| 4207 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4208 |
{inner chapter skip}{innerskip}% |
| 4209 |
}{% |
| 4210 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4211 |
{inner chapter skip}{innerskip}% |
| 4212 |
{\scr@chapter@innerskip}% |
| 4213 |
{\@namedef{scr@\scr@dsc@current @innerskip}{\scr@chapter@innerskip}}% |
| 4214 |
}% |
| 4215 |
}{}% |
| 4216 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @beforeskip}{% |
| 4217 |
\Ifstr{\scr@dsc@current}{chapter}{% |
| 4218 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4219 |
{before chapter skip}{beforeskip}% |
| 4220 |
}{% |
| 4221 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4222 |
{before chapter skip}{beforeskip}% |
| 4223 |
{\scr@chapter@beforeskip}% |
| 4224 |
{\@namedef{scr@\scr@dsc@current @beforeskip}{\scr@chapter@beforeskip}}% |
| 4225 |
}% |
| 4226 |
}{}% |
| 4227 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @afterskip}{% |
| 4228 |
\Ifstr{\scr@dsc@current}{chapter}{% |
| 4229 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4230 |
{after chaper skip}{afterskip}% |
| 4231 |
}{% |
| 4232 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4233 |
{after chaper skip}{afterskip}% |
| 4234 |
{\scr@chapter@afterskip}% |
| 4235 |
{\@namedef{scr@\scr@dsc@current @afterskip}{\scr@chapter@afterskip}}% |
| 4236 |
}% |
| 4237 |
}{}% |
| 4238 |
\IfExistskomafont{\scr@dsc@current}{}{% |
| 4239 |
\Ifstr{\scr@dsc@current}{chapter}{% |
| 4240 |
\scr@declaresectioncommanderror{\scr@dsc@current}{font}{font}% |
| 4241 |
}{% |
| 4242 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4243 |
{font}{font}% |
| 4244 |
{\usekomafont{chapter}}% |
| 4245 |
{\newkomafont{\scr@dsc@current}{\usekomafont{chapter}}}% |
| 4246 |
}% |
| 4247 |
}% |
| 4248 |
\IfExistskomafont{\scr@dsc@current prefix}{}{% |
| 4249 |
\Ifstr{\scr@dsc@current}{chapter}{% |
| 4250 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4251 |
{prefix line font}{prefixfont}% |
| 4252 |
}{% |
| 4253 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4254 |
{prefix line font}{prefixfont}% |
| 4255 |
{\usekomafont{chapterprefix}}% |
| 4256 |
{\newkomafont{\scr@dsc@current prefix}{\usekomafont{chapterprefix}}}% |
| 4257 |
}% |
| 4258 |
}{}% |
| 4259 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @afterindent}{% |
| 4260 |
\l@addto@macro\local@endgroup{% |
| 4261 |
\ClassInfo{\KOMAClassName} |
| 4262 |
{using compatibility default `afterindent=bysign'\MessageBreak |
| 4263 |
for `\expandafter\string\csname \scr@dsc@current\endcsname}% |
| 4264 |
\expandafter\gdef\csname scr@\scr@dsc@current @afterindent\endcsname |
| 4265 |
##1##2##3{##3}% |
| 4266 |
}% |
| 4267 |
}{}% |
| 4268 |
} |
| 4269 |
\newcommand*{\scr@dsc@style@part@neededoptionstest}{% |
| 4270 |
\scr@ifundefinedorrelax{\scr@dsc@current pagestyle}{% |
| 4271 |
\Ifstr{\scr@dsc@current}{part}{% |
| 4272 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4273 |
{initial page style}{pagestyle}% |
| 4274 |
}{% |
| 4275 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4276 |
{initial page style}{pagestyle}% |
| 4277 |
{\partpagestyle}% |
| 4278 |
{\@namedef{\scr@dsc@current pagestyle}{\partpagestyle}}% |
| 4279 |
}% |
| 4280 |
}{}% |
| 4281 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @innerskip}{% |
| 4282 |
\Ifstr{\scr@dsc@current}{part}{% |
| 4283 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4284 |
{inner part skip}{innerskip}% |
| 4285 |
}{% |
| 4286 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4287 |
{inner part skip}{innerskip}% |
| 4288 |
{\scr@part@innerskip}% |
| 4289 |
{\@namedef{scr@\scr@dsc@current @innerskip}{\scr@part@innerskip}}% |
| 4290 |
}% |
| 4291 |
}{}% |
| 4292 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @beforeskip}{% |
| 4293 |
\Ifstr{\scr@dsc@current}{part}{% |
| 4294 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4295 |
{before part skip}{beforeskip}% |
| 4296 |
}{% |
| 4297 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4298 |
{before part skip}{beforeskip}% |
| 4299 |
{\scr@part@beforeskip}% |
| 4300 |
{\@namedef{scr@\scr@dsc@current @beforeskip}{\scr@part@beforeskip}}% |
| 4301 |
}% |
| 4302 |
}{}% |
| 4303 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @afterskip}{% |
| 4304 |
\Ifstr{\scr@dsc@current}{part}{% |
| 4305 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4306 |
{after part skip}{afterskip}% |
| 4307 |
}{% |
| 4308 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4309 |
{after part skip}{afterskip}% |
| 4310 |
{\scr@part@afterskip}% |
| 4311 |
{\@namedef{scr@\scr@dsc@current @afterskip}{\scr@part@afterskip}}% |
| 4312 |
}% |
| 4313 |
}{}% |
| 4314 |
\IfExistskomafont{\scr@dsc@current}{}{% |
| 4315 |
\Ifstr{\scr@dsc@current}{part}{% |
| 4316 |
\scr@declaresectioncommanderror{\scr@dsc@current}{font}{font}% |
| 4317 |
}{% |
| 4318 |
\scr@declaresectioncommandwarning{\scr@dsc@current}{font}{font}% |
| 4319 |
{\usekomafont{part}}% |
| 4320 |
{\newkomafont{\scr@dsc@current}{\usekomafont{part}}}% |
| 4321 |
}% |
| 4322 |
}{}% |
| 4323 |
\IfExistskomafont{\scr@dsc@current prefix}{}{% |
| 4324 |
\Ifstr{\scr@dsc@current}{part}{% |
| 4325 |
\scr@declaresectioncommanderror{\scr@dsc@current}% |
| 4326 |
{number font}{prefixfont}% |
| 4327 |
}{% |
| 4328 |
\scr@declaresectioncommandwarning{\scr@dsc@current}% |
| 4329 |
{number font}{prefixfont}% |
| 4330 |
{\usekomafont{partprefix}}% |
| 4331 |
{\newkomafont{\scr@dsc@current prefix}{\usekomafont{partprefix}}}% |
| 4332 |
}% |
| 4333 |
}{}% |
| 4334 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @afterindent}{% |
| 4335 |
\l@addto@macro\local@endgroup{% |
| 4336 |
\ClassInfo{\KOMAClassName}{% |
| 4337 |
using compatibility default |
| 4338 |
`afterindent=true'\MessageBreak |
| 4339 |
for `\expandafter\string\csname \scr@dsc@current\endcsname}% |
| 4340 |
\expandafter\gdef\csname scr@\scr@dsc@current @afterindent\endcsname |
| 4341 |
##1##2##3% |
| 4342 |
{##1}% |
| 4343 |
}% |
| 4344 |
}{}% |
| 4345 |
} |
| 4346 |
\newif\ifscr@dsc@parametersonly |
| 4347 |
\newcommand*{\DeclareSectionCommand}[2][]{% |
| 4348 |
\edef\scr@dsc@current{#2}% |
| 4349 |
\scr@dsc@parametersonlyfalse |
| 4350 |
\DefineFamilyKey[.dsc]{KOMAarg}{style}{% |
| 4351 |
\IfArgIsEmpty{##1}{% |
| 4352 |
\scr@dsc@parametersonlytrue |
| 4353 |
\FamilyKeyStateProcessed |
| 4354 |
}{% |
| 4355 |
\scr@ifundefinedorrelax{scr@dsc@def@style@##1@command}{% |
| 4356 |
\FamilyKeyStateUnknownValue |
| 4357 |
}{% |
| 4358 |
\@namedef{scr@\scr@dsc@current @style}{##1}% |
| 4359 |
\FamilyKeyStateProcessed |
| 4360 |
}% |
| 4361 |
}% |
| 4362 |
}% |
| 4363 |
\DefineFamilyKey[.dsc]{KOMAarg}{tocstyle}{% |
| 4364 |
\IfArgIsEmpty{##1}{% |
| 4365 |
\@ifundefined{scr@dte@\scr@dsc@current @style}{}{% |
| 4366 |
\expandafter\let\csname scr@dte@\scr@dsc@current @style\endcsname |
| 4367 |
\relax |
| 4368 |
}% |
| 4369 |
\expandafter\let\csname scr@tso@\scr@dsc@current @style\endcsname |
| 4370 |
\relax |
| 4371 |
\FamilyKeyStateProcessed |
| 4372 |
}{% |
| 4373 |
\scr@ifundefinedorrelax{scr@dte@def@l@##1}{% |
| 4374 |
\FamilyKeyStateUnknownValue |
| 4375 |
}{% |
| 4376 |
\@namedef{scr@dte@\scr@dsc@current @style}{##1}% |
| 4377 |
\@namedef{scr@tso@\scr@dsc@current @style}{##1}% |
| 4378 |
\FamilyKeyStateProcessed |
| 4379 |
}% |
| 4380 |
}% |
| 4381 |
}% |
| 4382 |
\DefineFamilyKey[.dsc]{KOMAarg}{@else@}{% |
| 4383 |
\FamilyKeyStateProcessed |
| 4384 |
}% |
| 4385 |
\FamilyExecuteOptions[.dsc]{KOMAarg}{#1}% |
| 4386 |
\RelaxFamilyKey[.dsc]{KOMAarg}{@else@}% |
| 4387 |
\RelaxFamilyKey[.dsc]{KOMAarg}{tocstyle}% |
| 4388 |
\RelaxFamilyKey[.dsc]{KOMAarg}{style}% |
| 4389 |
\begingroup |
| 4390 |
\scr@ifundefinedorrelax{scr@\scr@dsc@current @style}{% |
| 4391 |
\scr@declaresectioncommanderror{\scr@dsc@current} |
| 4392 |
{section command style}{style}% |
| 4393 |
}{}% |
| 4394 |
\endgroup |
| 4395 |
\@firstofone{% |
| 4396 |
\@nameuse{scr@dsc@style@\@nameuse{scr@\scr@dsc@current @style}@options}% |
| 4397 |
\scr@ifundefinedorrelax{scr@tso@\scr@dsc@current @style}{% |
| 4398 |
\scr@ifundefinedorrelax{l@\scr@dsc@current}{% |
| 4399 |
\@namedef{scr@tso@\scr@dsc@current @style}{default}% |
| 4400 |
}{}% |
| 4401 |
}{}% |
| 4402 |
\let\scr@dsc@tocstyle@options\@empty |
| 4403 |
\let\scr@dsc@extra@relax@opts\@empty |
| 4404 |
\scr@ifundefinedorrelax{scr@tso@\scr@dsc@current @style}{% |
| 4405 |
\expandafter\let |
| 4406 |
\csname scr@tso@\scr@dsc@current @style\expandafter\endcsname |
| 4407 |
\csname scr@dte@\scr@dsc@current @style\endcsname |
| 4408 |
}{}% |
| 4409 |
\scr@ifundefinedorrelax{scr@tso@\scr@dsc@current @style}{}{% |
| 4410 |
\begingroup |
| 4411 |
\def\scr@dte@current{#2}% |
| 4412 |
\edef\reserved@a{% |
| 4413 |
\noexpand\@ExecuteTOCEntryStyleInitCode{% |
| 4414 |
\@nameuse{scr@tso@\scr@dsc@current @style}% |
| 4415 |
}{\scr@dsc@current}% |
| 4416 |
}\reserved@a |
| 4417 |
\def\do@endgroup{\endgroup}% |
| 4418 |
\def\do##1{% |
| 4419 |
\l@addto@macro\do@endgroup{% |
| 4420 |
\l@addto@macro\scr@dsc@extra@relax@opts{% |
| 4421 |
\RelaxFamilyKey[.dsc]{KOMAarg}{toc##1}% |
| 4422 |
\RelaxFamilyKey[.dsc]{KOMAarg}{tocentry##1}% |
| 4423 |
}% |
| 4424 |
}% |
| 4425 |
\kernel@ifnextchar[%] |
| 4426 |
{\@dodefault{##1}}% |
| 4427 |
{\@donodefault{##1}}% |
| 4428 |
}% |
| 4429 |
\def\@donodefault##1{% |
| 4430 |
\l@addto@macro\do@endgroup{% |
| 4431 |
\DefineFamilyKey[.dsc]{KOMAarg}{toc##1}{% |
| 4432 |
\l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}% |
| 4433 |
\FamilyKeyStateProcessed |
| 4434 |
}% |
| 4435 |
\DefineFamilyKey[.dsc]{KOMAarg}{tocentry##1}{% |
| 4436 |
\l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}% |
| 4437 |
\FamilyKeyStateProcessed |
| 4438 |
}% |
| 4439 |
}% |
| 4440 |
}% |
| 4441 |
\def\@dodefault##1[##2]{% |
| 4442 |
\l@addto@macro\do@endgroup{% |
| 4443 |
\DefineFamilyKey[.dsc]{KOMAarg}{toc##1}[##2]{% |
| 4444 |
\l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}% |
| 4445 |
\FamilyKeyStateProcessed |
| 4446 |
}% |
| 4447 |
\DefineFamilyKey[.dsc]{KOMAarg}{tocentry##1}[##2]{% |
| 4448 |
\l@addto@macro{\scr@dsc@tocstyle@options}{##1={####1},}% |
| 4449 |
\FamilyKeyStateProcessed |
| 4450 |
}% |
| 4451 |
}% |
| 4452 |
}% |
| 4453 |
\scr@dte@doopts |
| 4454 |
\do@endgroup |
| 4455 |
}% |
| 4456 |
\DefineFamilyKey[.dsc]{KOMAarg}{style}{\FamilyKeyStateProcessed}% |
| 4457 |
\DefineFamilyKey[.dsc]{KOMAarg}{tocstyle}{\FamilyKeyStateProcessed}% |
| 4458 |
\FamilyBoolKey[.dsc]{KOMAarg}{expandtopt}{scr@dsc@expandtopt}% |
| 4459 |
\scr@dsc@expandtoptfalse |
| 4460 |
\scr@ifundefinedorrelax{scr@local@levelincrease}{% |
| 4461 |
\RelaxFamilyKey[.dsc]{KOMAarg}{increaselevel}% |
| 4462 |
}{% |
| 4463 |
\FamilyCounterMacroKey[.dsc]{KOMAarg}{increaselevel}[1]% |
| 4464 |
{\scr@local@levelincrease}% |
| 4465 |
}% |
| 4466 |
\scr@ifundefinedorrelax{scr@local@leveloffset}{% |
| 4467 |
\edef\reserved@a{% |
| 4468 |
\noexpand\FamilyCounterMacroKey[.dsc]{KOMAarg}{level}{% |
| 4469 |
\expandafter\noexpand\csname \scr@dsc@current numdepth\endcsname}% |
| 4470 |
}\reserved@a |
| 4471 |
}{% |
| 4472 |
\edef\reserved@a{% |
| 4473 |
\noexpand\DefineFamilyKey[.dsc]{KOMAarg}{level}{% |
| 4474 |
\noexpand\FamilySetCounterMacro{KOMAarg}{level}{% |
| 4475 |
\expandafter\noexpand\csname \scr@dsc@current numdepth\endcsname |
| 4476 |
}% |
| 4477 |
\unexpanded{% |
| 4478 |
{\numexpr ##1+\scr@local@leveloffset\relax}% |
| 4479 |
\edef\scr@local@leveloffset{% |
| 4480 |
\the\numexpr\scr@local@leveloffset+\scr@local@levelincrease\relax |
| 4481 |
}% |
| 4482 |
}% |
| 4483 |
}% |
| 4484 |
}\reserved@a |
| 4485 |
}% |
| 4486 |
\FamilyStringKey[.dsc]{KOMAarg}{counterwithout}{\scr@local@counterwithout}% |
| 4487 |
\let\scr@local@counterwithout\relax |
| 4488 |
\FamilyStringKey[.dsc]{KOMAarg}{counterwithin}{\scr@local@counterwithin}% |
| 4489 |
\let\scr@local@counterwithin\relax |
| 4490 |
\scr@ifundefinedorrelax{scr@local@tocleveloffset}{}{% |
| 4491 |
\scr@ifundefinedorrelax{[email protected]@toclevel}{% |
| 4492 |
}{% |
| 4493 |
\DefineFamilyKey[.dsc]{KOMAarg}{toclevel}{% |
| 4494 |
\edef\reserved@a{% |
| 4495 |
\noexpand\l@addto@macro{\noexpand\scr@dsc@tocstyle@options}{% |
| 4496 |
level=\the\numexpr ##1+\scr@local@tocleveloffset\relax,% |
| 4497 |
}% |
| 4498 |
}\reserved@a |
| 4499 |
\edef\scr@local@tocleveloffset{% |
| 4500 |
\the\numexpr\scr@local@tocleveloffset+\scr@local@levelincrease\relax |
| 4501 |
}% |
| 4502 |
\FamilyKeyStateProcessed |
| 4503 |
}% |
| 4504 |
}% |
| 4505 |
}% |
| 4506 |
\FamilyExecuteOptions[.dsc]{KOMAarg}{#1}% |
| 4507 |
\scr@dsc@extra@relax@opts |
| 4508 |
\let\scr@dsc@extra@relax@opts\relax |
| 4509 |
\RelaxSectionCommandOptions |
| 4510 |
\RelaxFamilyKey[.dsc]{KOMAarg}{style}% |
| 4511 |
\RelaxFamilyKey[.dsc]{KOMAarg}{tocstyle}% |
| 4512 |
\RelaxFamilyKey[.dsc]{KOMAarg}{expandtopt}% |
| 4513 |
\scr@ifundefinedorrelax{scr@local@levelincrease}{}{% |
| 4514 |
\RelaxFamilyKey[.dsc]{KOMAarg}{increaselevel}% |
| 4515 |
}% |
| 4516 |
\RelaxFamilyKey[.dsc]{KOMAarg}{level}% |
| 4517 |
\RelaxFamilyKey[.dsc]{KOMAarg}{counterwithin}% |
| 4518 |
\begingroup |
| 4519 |
\def\local@endgroup{\endgroup}% |
| 4520 |
\scr@ifundefinedorrelax{\scr@dsc@current numdepth}{% |
| 4521 |
\scr@declaresectioncommanderror{\scr@dsc@current}{section level}{level}% |
| 4522 |
}{% |
| 4523 |
\expandafter\ifnum \csname #2numdepth\endcsname>-\maxdimen |
| 4524 |
\@nameuse{scr@dsc@style@% |
| 4525 |
\@nameuse{scr@\scr@dsc@current @style}% |
| 4526 |
@neededoptionstest}% |
| 4527 |
\else |
| 4528 |
\ClassError{\KOMAClassName}{% |
| 4529 |
`level' must be > -\the\numexpr\maxdimen\relax |
| 4530 |
}{% |
| 4531 |
KOMA-Script internally sets `secnumdepth' to |
| 4532 |
-\the\numexpr\maxdimen\relax\space |
| 4533 |
to locally switch of\MessageBreak |
| 4534 |
the numbering, i.e., inside running heads.\MessageBreak |
| 4535 |
Because of this, you can define section commands with\MessageBreak |
| 4536 |
`level' greater than -\the\numexpr\maxdimen\relax\space only.% |
| 4537 |
}% |
| 4538 |
\let\local@endgroup\endgroup |
| 4539 |
\aftergroup\@gobbletwo |
| 4540 |
\fi |
| 4541 |
}% |
| 4542 |
\local@endgroup |
| 4543 |
\@firstofone{% |
| 4544 |
\@ifundefined{c@#2}{\newcounter{#2}}{}% |
| 4545 |
\ifx\scr@local@counterwithout\relax |
| 4546 |
\else\ifx\scr@local@counterwithout\@empty |
| 4547 |
\else |
| 4548 |
\@removefromreset{#2}{\scr@local@counterwithout}% |
| 4549 |
\fi |
| 4550 |
\@namedef{the#2}{\arabic{#2}}% |
| 4551 |
\fi |
| 4552 |
\ifx\scr@local@counterwithin\relax |
| 4553 |
\else\ifx\scr@local@counterwithin\@empty |
| 4554 |
\@namedef{the#2}{\arabic{#2}}% |
| 4555 |
\else |
| 4556 |
\@removefromreset{#2}{\scr@local@counterwithin}% |
| 4557 |
\@addtoreset{#2}{\scr@local@counterwithin}% |
| 4558 |
\expandafter\def\csname the#2\expandafter\endcsname\expandafter{% |
| 4559 |
\csname the\scr@local@counterwithin\endcsname.\arabic{#2}}% |
| 4560 |
\fi |
| 4561 |
\fi |
| 4562 |
\@ifundefined{#2format}{% |
| 4563 |
\@namedef{#2format}{\csname the#2\endcsname\autodot\enskip}% |
| 4564 |
}{}% |
| 4565 |
\ifscr@dsc@parametersonly |
| 4566 |
\ClassInfo{\KOMAClassName}{% |
| 4567 |
not defining `\expandafter\string\csname #2\endcsname' due |
| 4568 |
to\MessageBreak |
| 4569 |
empty section style option% |
| 4570 |
}% |
| 4571 |
\else |
| 4572 |
\scr@ifundefinedorrelax{% |
| 4573 |
scr@dsc@def@style@\@nameuse{scr@#2@style}@command% |
| 4574 |
}{% |
| 4575 |
\ClassWarning{\KOMAClassName}{% |
| 4576 |
not defining `\expandafter\string\csname #2\endcsname' |
| 4577 |
due\MessageBreak |
| 4578 |
to not yet defined section style\MessageBreak |
| 4579 |
`\@nameuse{scr@#2@style}'% |
| 4580 |
}% |
| 4581 |
}{% |
| 4582 |
\@nameuse{scr@dsc@def@style@\@nameuse{scr@#2@style}@command}{#2}% |
| 4583 |
\UseName{__scrkernel_put_section_command:n}{#2}% |
| 4584 |
}% |
| 4585 |
\fi |
| 4586 |
\@ifundefined{DeclareSectionNumberDepth}{% |
| 4587 |
\@ifundefined{#2markformat}{% |
| 4588 |
\@namedef{#2markformat}{\csname the#2\endcsname\autodot\enskip}% |
| 4589 |
}{}% |
| 4590 |
\@ifundefined{#2mark}{% |
| 4591 |
\expandafter\let\csname #2mark\endcsname\@gobble |
| 4592 |
}{}% |
| 4593 |
}{% |
| 4594 |
\DeclareSectionNumberDepth{#2}{\csname #2numdepth\endcsname}% |
| 4595 |
}% |
| 4596 |
\expandafter\providecommand\expandafter*% |
| 4597 |
\csname add#2tocentry\endcsname[2]{% |
| 4598 |
\addtocentrydefault{#2}{##1}{##2}% |
| 4599 |
}% |
| 4600 |
\scr@ifundefinedorrelax{scr@tso@#2@style}{% |
| 4601 |
\expandafter\let\csname scr@tso@#2@style\expandafter\endcsname |
| 4602 |
\csname scr@dte@#2@style\endcsname |
| 4603 |
}{}% |
| 4604 |
\scr@ifundefinedorrelax{scr@tso@#2@style}{% |
| 4605 |
}{% |
| 4606 |
\DeclareTOCStyleEntry[\scr@dsc@tocstyle@options]{% |
| 4607 |
\@nameuse{scr@tso@#2@style}% |
| 4608 |
}{#2}% |
| 4609 |
}% |
| 4610 |
\scr@ifundefinedorrelax{l@#2}{% |
| 4611 |
\DeclareTOCStyleEntry[\scr@dsc@tocstyle@options]{default}{#2}% |
| 4612 |
}{}% |
| 4613 |
\expandafter\let\csname toclevel@#2\expandafter\endcsname |
| 4614 |
\csname #2tocdepth\endcsname |
| 4615 |
}% |
| 4616 |
}% |
| 4617 |
\let\scr@dsc@current\relax |
| 4618 |
} |
| 4619 |
\ExplSyntaxOn |
| 4620 |
\cs_new:Nn \__scrkernel_seq_put_unique:Nn |
| 4621 |
{ |
| 4622 |
\seq_if_in:NnF #1 { #2 } |
| 4623 |
{ \seq_put_left:Nn #1 { #2 } } |
| 4624 |
} |
| 4625 |
\seq_new:N \g__scrkernel_section_command_seq |
| 4626 |
|
| 4627 |
\cs_new:Nn \__scrkernel_put_section_command:n |
| 4628 |
{ |
| 4629 |
\__scrkernel_seq_put_unique:Nn \g__scrkernel_section_command_seq { #1 } |
| 4630 |
} |
| 4631 |
|
| 4632 |
\cs_new:Npn \__scrkernel_sort_section_commands_by_numdepth: |
| 4633 |
{ |
| 4634 |
\seq_sort:Nn \g__scrkernel_section_command_seq |
| 4635 |
{ |
| 4636 |
\int_compare:nNnTF |
| 4637 |
{ \use:c { ##2numdepth } } < { \use:c { ##1numdepth } } |
| 4638 |
{ \sort_return_swapped: } |
| 4639 |
{ \sort_return_same: } |
| 4640 |
} |
| 4641 |
} |
| 4642 |
|
| 4643 |
\cs_new:Npn \__scrkernel_sort_section_commands_by_tocdepth: |
| 4644 |
{ |
| 4645 |
\seq_sort:Nn \g__scrkernel_section_command_seq |
| 4646 |
{ |
| 4647 |
\int_compare:nNnTF |
| 4648 |
{ \use:c { ##2tocdepth } } < { \use:c { ##1tocdepth } } |
| 4649 |
{ \sort_return_swapped: } |
| 4650 |
{ \sort_return_same: } |
| 4651 |
} |
| 4652 |
} |
| 4653 |
|
| 4654 |
\cs_new:Npn \__scrkernel_sort_section_commands_by_toclevel: |
| 4655 |
{ |
| 4656 |
\seq_sort:Nn \g__scrkernel_section_command_seq |
| 4657 |
{ |
| 4658 |
\cs_if_exist:cF { toclevel@##1 } |
| 4659 |
{ \cs_set_eq:cc { toclevel@##1 } { ##1tocdepth } } |
| 4660 |
\cs_if_exist:cF { toclevel@##2 } |
| 4661 |
{ \cs_set_eq:cc { toclevel@##2 } { ##2tocdepth } } |
| 4662 |
\int_compare:nNnTF |
| 4663 |
{ \use:c { ##2tocdepth } } < { \use:c { ##1tocdepth } } |
| 4664 |
{ \sort_return_swapped: } |
| 4665 |
{ \sort_return_same: } |
| 4666 |
} |
| 4667 |
} |
| 4668 |
\hook_gput_code:nnn { package / hyperref / after } { . } |
| 4669 |
{ |
| 4670 |
\clist_map_inline:nn |
| 4671 |
{ part, chapter, |
| 4672 |
section, subsection, subsubsection, |
| 4673 |
paragraph, subparagraph } |
| 4674 |
{ |
| 4675 |
\cs_if_exist:cT { #1tocdepth } |
| 4676 |
{ |
| 4677 |
\int_compare:nNnF |
| 4678 |
{ \use:c { toclevel@#1 } } = { \use:c { #1tocdepth } } |
| 4679 |
{ |
| 4680 |
\ClassWarningNoLine{ \KOMAClassName } |
| 4681 |
{ |
| 4682 |
It~seems~hyperref~or~another~package~before~changed |
| 4683 |
\MessageBreak |
| 4684 |
\exp_args:NNc \string\use:c{toclevel@#1}~from~ |
| 4685 |
\use:c{#1tocdepth}~to\use:c{toclevel@#1}. |
| 4686 |
\MessageBreak |
| 4687 |
Reverting% |
| 4688 |
} |
| 4689 |
\cs_set_eq:cc { toclevel@#1 } { #1tocdepth } |
| 4690 |
} |
| 4691 |
} |
| 4692 |
} |
| 4693 |
} |
| 4694 |
\hook_gput_code:nnn { begindocument } { . } |
| 4695 |
{ |
| 4696 |
\seq_map_inline:Nn \g__scrkernel_section_command_seq |
| 4697 |
{ |
| 4698 |
\int_compare:nNnF |
| 4699 |
{ \use:c{ toclevel@#1 } } = { \use:c { #1tocdepth } } |
| 4700 |
{ |
| 4701 |
\ClassWarningNoLine { \KOMAClassName } |
| 4702 |
{ |
| 4703 |
Unexpected~change~of~hyperref~toclevel~of~#1.\MessageBreak |
| 4704 |
\exp_args:NNc \string\use:c{toclevel@#1}=\use:c{toclevel@#1} |
| 4705 |
!= |
| 4706 |
\use:c{#1tocdepth}=\exp_args:NNc \string\use:c{#1tocdepth}. |
| 4707 |
\MessageBreak |
| 4708 |
Cross~your~fingers! |
| 4709 |
} |
| 4710 |
} |
| 4711 |
} |
| 4712 |
} |
| 4713 |
\hook_gput_code:nnn { begindocument / end } { . } |
| 4714 |
{ |
| 4715 |
\IfPackageLoadedT { hyperref } |
| 4716 |
{ |
| 4717 |
\IfPackageLoadedF { bookmark } |
| 4718 |
{ |
| 4719 |
\__scrkernel_emergency_toclevel_cleanup: |
| 4720 |
\BeforeStartingTOC[\ext@toc]{\__scrkernel_emergency_toclevel_cleanup:} |
| 4721 |
} |
| 4722 |
} |
| 4723 |
} |
| 4724 |
|
| 4725 |
\cs_new:Npn \__scrkernel_emergency_toclevel_cleanup: |
| 4726 |
{ |
| 4727 |
\ClassInfo{\KOMAClassName}{running~emergency~toclevel~cleanup} |
| 4728 |
\group_begin: |
| 4729 |
\tl_clear:N \l_tmpa_tl |
| 4730 |
\__scrkernel_sort_section_commands_by_toclevel: |
| 4731 |
\seq_map_inline:Nn \g__scrkernel_section_command_seq |
| 4732 |
{ |
| 4733 |
\tl_if_empty:NF \l_tmpa_tl |
| 4734 |
{ |
| 4735 |
\int_compare:nNnT |
| 4736 |
{ \use:c { toclevel@##1 } } > { \l_tmpa_int + 1 } |
| 4737 |
{ |
| 4738 |
\ClassWarningNoLine { \KOMAClassName } |
| 4739 |
{ |
| 4740 |
Trying~emergency~fix~for~bookmark~level~gap, |
| 4741 |
\MessageBreak |
| 4742 |
because~toclevel~of~##1~(\use:c{toclevel@##1})~ |
| 4743 |
is~more~than~1 |
| 4744 |
\MessageBreak |
| 4745 |
greater~than~toclevel~of~\l_tmpa_tl\space |
| 4746 |
(\int_use:N\l_tmpa_int).\MessageBreak |
| 4747 |
Note:~This~fix~can~fail~and~you~should~load |
| 4748 |
\MessageBreak |
| 4749 |
package~bookmark~to~avoid~issues~with~such~gaps% |
| 4750 |
} |
| 4751 |
\cs_gset:cpe { toclevel@##1 } |
| 4752 |
{ \int_eval:n { \l_tmpa_int + 1 } } |
| 4753 |
} |
| 4754 |
} |
| 4755 |
\tl_set:Nn \l_tmpa_tl { ##1 } |
| 4756 |
\int_set:Nn \l_tmpa_int { \use:c { toclevel@##1 } } |
| 4757 |
} |
| 4758 |
\group_end: |
| 4759 |
} |
| 4760 |
\ExplSyntaxOff |
| 4761 |
\newcommand*{\scr@declaresectioncommanderror}[3]{% |
| 4762 |
\ClassError{\KOMAClassName}{% |
| 4763 |
#2 of \expandafter\string\csname #1\endcsname\space unknown% |
| 4764 |
}{% |
| 4765 |
Please use option `#3' to declare the #2.\MessageBreak |
| 4766 |
If you'll continue, declaration will be ignored% |
| 4767 |
}% |
| 4768 |
\let\local@endgroup\endgroup |
| 4769 |
\aftergroup\@gobbletwo |
| 4770 |
} |
| 4771 |
\newcommand*{\scr@declaresectioncommandwarning}[5]{% |
| 4772 |
\ClassInfo{\KOMAClassName}{% |
| 4773 |
#2 of \expandafter\string\csname #1\endcsname\space unknown.\MessageBreak |
| 4774 |
You should use option `#3' if you\MessageBreak |
| 4775 |
do not want to use the default value\MessageBreak |
| 4776 |
`\detokenize{#4}'% |
| 4777 |
}% |
| 4778 |
\l@addto@macro\local@endgroup{#5}% |
| 4779 |
} |
| 4780 |
\newcommand*{\DeclareNewSectionCommand}[2][]{% |
| 4781 |
\@ifundefined{#2}{% |
| 4782 |
\@tempswatrue |
| 4783 |
\let\reserved@b\@empty |
| 4784 |
\@for \reserved@a:=the#2,#2mark,#2format,#2markformat\do{% |
| 4785 |
\expandafter\scr@ifundefinedorrelax\expandafter{\reserved@a}{}{% |
| 4786 |
\@tempswafalse |
| 4787 |
\edef\reserved@b{\expandafter\string\csname \reserved@a\endcsname}% |
| 4788 |
}% |
| 4789 |
}% |
| 4790 |
\if@tempswa |
| 4791 |
\expandafter\let\expandafter\scr@dsc@current |
| 4792 |
\csname scr@tso@##2@style\endcsname |
| 4793 |
\DefineFamilyKey[.dsc]{KOMAarg}{style}{% |
| 4794 |
\edef\scr@dsc@current{##1}% |
| 4795 |
\FamilyKeyStateProcessed |
| 4796 |
}% |
| 4797 |
\DefineFamilyKey[.dsc]{KOMAarg}{@else@}{\FamilyKeyStateProcessed}% |
| 4798 |
\FamilyExecuteOptions[.dsc]{KOMAarg}{#1}% |
| 4799 |
\RelaxFamilyKey[.dsc]{KOMAarg}{@else@}% |
| 4800 |
\RelaxFamilyKey[.dsc]{KOMAarg}{style}% |
| 4801 |
\@tempswatrue |
| 4802 |
\@ifundefined{scr@dsc@current}{}{% |
| 4803 |
\scr@ifundefinedorrelax{scr@dsc@style@\scr@dsc@current @subcommands}{% |
| 4804 |
}{% |
| 4805 |
\edef\reserved@b{% |
| 4806 |
\csname scr@dsc@style@\scr@dsc@current @subcommands\endcsname{#2}% |
| 4807 |
}% |
| 4808 |
\expandafter\@for\expandafter\reserved@a\expandafter:\expandafter=% |
| 4809 |
\reserved@b\do{% |
| 4810 |
\expandafter\scr@ifundefinedorrelax\expandafter{\reserved@a}{}{% |
| 4811 |
\@tempswafalse |
| 4812 |
\edef\reserved@b{% |
| 4813 |
\expandafter\string\csname \reserved@a\endcsname}% |
| 4814 |
}% |
| 4815 |
}% |
| 4816 |
} |
| 4817 |
}% |
| 4818 |
\let\scr@dsc@current\relax |
| 4819 |
\fi |
| 4820 |
\if@tempswa |
| 4821 |
\DeclareSectionCommand[{#1}]{#2}% |
| 4822 |
\else |
| 4823 |
\ClassError{\KOMAClassName}{% |
| 4824 |
command `\reserved@b' already defined% |
| 4825 |
}{% |
| 4826 |
You've tried to define the section command `\expandafter\string\csname |
| 4827 |
#2\endcsname' newly.\MessageBreak |
| 4828 |
Such a section command needs an additional new command |
| 4829 |
`\reserved@b',\MessageBreak |
| 4830 |
but this already exists. So you cannot define |
| 4831 |
`\expandafter\string\csname #2\endcsname' newly.\MessageBreak |
| 4832 |
Maybe you should use one of \string\DeclareSectionCommand, |
| 4833 |
\string\RedeclareSectionCommand,\MessageBreak |
| 4834 |
or \string\ProvideSectionCommand.\MessageBreak |
| 4835 |
If you'll continue, the command will be ignored.% |
| 4836 |
}% |
| 4837 |
\fi |
| 4838 |
}{% |
| 4839 |
\ClassError{\KOMAClassName}{% |
| 4840 |
command `\expandafter\string\csname #2\endcsname' already defined% |
| 4841 |
}{% |
| 4842 |
You've tried to define the section command `\expandafter\string\csname |
| 4843 |
#2\endcsname' newly,\MessageBreak |
| 4844 |
but a command or something else with this name already |
| 4845 |
exists.\MessageBreak |
| 4846 |
Maybe you should use one of \string\DeclareSectionCommand, |
| 4847 |
\string\RedeclareSectionCommand,\MessageBreak |
| 4848 |
or \string\ProvideSectionCommand.\MessageBreak |
| 4849 |
If you'll continue, the command will be ignored.% |
| 4850 |
}% |
| 4851 |
}% |
| 4852 |
} |
| 4853 |
\newcommand*{\RedeclareSectionCommand}[2][]{% |
| 4854 |
\@ifundefined{#2}{% |
| 4855 |
\ClassError{\KOMAClassName}{% |
| 4856 |
command `\expandafter\string\csname #2\endcsname' not defined% |
| 4857 |
}{% |
| 4858 |
You've tried to re-define the section command `\expandafter\string\csname |
| 4859 |
#2\endcsname',\MessageBreak |
| 4860 |
but a command with this name does not exists.\MessageBreak |
| 4861 |
Maybe you should use one of \string\DeclareSectionCommand, |
| 4862 |
\string\DeclareNewSectionCommand,\MessageBreak |
| 4863 |
or \string\ProvideSectionCommand.\MessageBreak |
| 4864 |
If you'll continue, the command will be irgnored.% |
| 4865 |
}% |
| 4866 |
}{% |
| 4867 |
\DeclareSectionCommand[{#1}]{#2}% |
| 4868 |
}% |
| 4869 |
} |
| 4870 |
\newcommand*{\ProvideSectionCommand}[2][]{% |
| 4871 |
\@ifundefined{#2}{% |
| 4872 |
\DeclareSectionCommand[{#1}]{#2}% |
| 4873 |
}{% |
| 4874 |
\ClassInfo{\KOMAClassName}{% |
| 4875 |
\string\ProvideSectionCommand{#1} ignored% |
| 4876 |
}% |
| 4877 |
}% |
| 4878 |
} |
| 4879 |
\newcommand*{\DeclareSectionCommands}[2][]{% |
| 4880 |
\edef\reserved@a{#2}% |
| 4881 |
\def\scr@local@levelincrease{\z@}% |
| 4882 |
\def\scr@local@leveloffset{\z@}% |
| 4883 |
\def\scr@local@tocleveloffset{\z@}% |
| 4884 |
\@for\reserved@a:=\reserved@a\do{% |
| 4885 |
\scr@trim@spaces\reserved@a |
| 4886 |
\edef\reserved@a{% |
| 4887 |
\unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}% |
| 4888 |
}% |
| 4889 |
\reserved@a |
| 4890 |
}% |
| 4891 |
\let\scr@local@levelincrease\relax |
| 4892 |
\let\scr@local@leveloffset\relax |
| 4893 |
\let\scr@local@tocleveloffset\relax |
| 4894 |
} |
| 4895 |
\newcommand*{\DeclareNewSectionCommands}[2][]{% |
| 4896 |
\edef\reserved@a{#2}% |
| 4897 |
\def\scr@local@levelincrease{\z@}% |
| 4898 |
\def\scr@local@leveloffset{\z@}% |
| 4899 |
\def\scr@local@tocleveloffset{\z@}% |
| 4900 |
\@for\reserved@a:=\reserved@a\do{% |
| 4901 |
\scr@trim@spaces\reserved@a |
| 4902 |
\@ifundefined{\reserved@a}{}{% |
| 4903 |
\ClassError{\KOMAClassName}{% |
| 4904 |
command `\expandafter\string\csname\reserved@a\endcsname' already |
| 4905 |
defined% |
| 4906 |
}{% |
| 4907 |
You've tried to define the section command |
| 4908 |
`\expandafter\string\csname\reserved@a\endcsname' newly,\MessageBreak |
| 4909 |
but a command, token, box or length with this name already |
| 4910 |
exists.\MessageBreak |
| 4911 |
Maybe you should use one of \string\DeclareSectionCommand, |
| 4912 |
\string\RedeclareSectionCommand,\MessageBreak |
| 4913 |
or \string\ProvideSectionCommand.\MessageBreak |
| 4914 |
Nevertheless, if you'll continue, the command will be defined.% |
| 4915 |
}% |
| 4916 |
}% |
| 4917 |
\edef\reserved@a{% |
| 4918 |
\unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}% |
| 4919 |
}% |
| 4920 |
\reserved@a |
| 4921 |
}% |
| 4922 |
\let\scr@local@levelincrease\relax |
| 4923 |
\let\scr@local@leveloffset\relax |
| 4924 |
\let\scr@local@tocleveloffset\relax |
| 4925 |
} |
| 4926 |
\newcommand*{\RedeclareSectionCommands}[2][]{% |
| 4927 |
\edef\reserved@a{#2}% |
| 4928 |
\def\scr@local@levelincrease{\z@}% |
| 4929 |
\def\scr@local@leveloffset{\z@}% |
| 4930 |
\def\scr@local@tocleveloffset{\z@}% |
| 4931 |
\@for\reserved@a:=\reserved@a\do{% |
| 4932 |
\scr@trim@spaces\reserved@a |
| 4933 |
\@ifundefined{\reserved@a}{% |
| 4934 |
\ClassError{\KOMAClassName}{% |
| 4935 |
command `\expandafter\string\csname\reserved@a\endcsname' not defined% |
| 4936 |
}{% |
| 4937 |
You've tried to re-define the section command |
| 4938 |
`\expandafter\string\csname\reserved@a\endcsname',\MessageBreak |
| 4939 |
but a command with this name does not exists.\MessageBreak |
| 4940 |
Maybe you should use one of \string\DeclareSectionCommand, |
| 4941 |
\string\DeclareNewSectionCommand,\MessageBreak |
| 4942 |
or \string\ProvideSectionCommand.\MessageBreak |
| 4943 |
Nevertheless, if you'll continue, the command will be defined.% |
| 4944 |
}% |
| 4945 |
}{}% |
| 4946 |
\edef\reserved@a{% |
| 4947 |
\unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}% |
| 4948 |
}% |
| 4949 |
\reserved@a |
| 4950 |
}% |
| 4951 |
\let\scr@local@levelincrease\relax |
| 4952 |
\let\scr@local@leveloffset\relax |
| 4953 |
\let\scr@local@tocleveloffset\relax |
| 4954 |
} |
| 4955 |
\newcommand*{\ProvideSectionCommands}[2][]{% |
| 4956 |
\edef\reserved@a{#2}% |
| 4957 |
\def\scr@local@levelincrease{\z@}% |
| 4958 |
\def\scr@local@leveloffset{\z@}% |
| 4959 |
\def\scr@local@tocleveloffset{\z@}% |
| 4960 |
\@for\reserved@a:=\reserved@a\do{% |
| 4961 |
\scr@trim@spaces\reserved@a |
| 4962 |
\@ifundefined{\reserved@a}{% |
| 4963 |
\edef\reserved@a{% |
| 4964 |
\unexpanded{\DeclareSectionCommand[{#1}]}{\reserved@a}% |
| 4965 |
}% |
| 4966 |
\reserved@a |
| 4967 |
}{% |
| 4968 |
\DefineFamilyKey[.dsc]{KOMAarg}{@else@}{\FamilyKeyStateProcessed}% |
| 4969 |
\FamilyCounterMacroKey[.dsc]{KOMAarg}{increaselevel}[1]% |
| 4970 |
{\scr@local@levelincrease}% |
| 4971 |
\DefineFamilyKey[.dsc]{KOMAarg}{level}{% |
| 4972 |
\FamilySetCounterMacro{KOMAarg}{level}{\reserved@b}{##1}% |
| 4973 |
\edef\scr@local@leveloffset{% |
| 4974 |
\the\numexpr\scr@local@leveloffset+\scr@local@levelincrease\relax |
| 4975 |
}% |
| 4976 |
}% |
| 4977 |
\DefineFamilyKey[.dsc]{KOMAarg}{toclevel}{% |
| 4978 |
\FamilySetCounterMacro{KOMAarg}{toclevel}{\reserved@b}{##1}% |
| 4979 |
\edef\scr@local@tocleveloffset{% |
| 4980 |
\the\numexpr\scr@local@tocleveloffset+\scr@local@levelincrease\relax |
| 4981 |
}% |
| 4982 |
}% |
| 4983 |
\FamilyExecuteOptions[.dsc]{KOMAarg}{#1}% |
| 4984 |
\RelaxFamilyKey[.dsc]{KOMAarg}{toclevel}% |
| 4985 |
\RelaxFamilyKey[.dsc]{KOMAarg}{level}% |
| 4986 |
\RelaxFamilyKey[.dsc]{KOMAarg}{increaselevel}% |
| 4987 |
\RelaxFamilyKey[.dsc]{KOMAarg}{@else@}% |
| 4988 |
}% |
| 4989 |
}% |
| 4990 |
\let\scr@local@levelincrease\relax |
| 4991 |
\let\scr@local@leveloffset\relax |
| 4992 |
\let\scr@local@tocleveloffset\relax |
| 4993 |
} |
| 4994 |
\newcommand*{\IfSectionCommandStyleIs}[2]{% |
| 4995 |
\scr@ifundefinedorrelax{#1}{% |
| 4996 |
\ClassError{\KOMAClassName}{% |
| 4997 |
\expandafter\string\csname #1\endcsname\space not defined}{% |
| 4998 |
You cannot compare the section command style of an undefined command.}% |
| 4999 |
}{% |
| 5000 |
\scr@ifundefinedorrelax{scr@#1@style}{% |
| 5001 |
\ClassError{\KOMAClassName}{% |
| 5002 |
\expandafter\string\csname #1\endcsname\space not a valid section |
| 5003 |
command% |
| 5004 |
}{% |
| 5005 |
You cannot detect the section command style of a command, that |
| 5006 |
has\MessageBreak |
| 5007 |
never been defined as a section command by KOMA-Script.% |
| 5008 |
}% |
| 5009 |
}% |
| 5010 |
}% |
| 5011 |
\scr@ifundefinedorrelax{scr@dsc@def@style@#2@command}{% |
| 5012 |
\ClassError{\KOMAClassName}{% |
| 5013 |
unknown section command style `#2'% |
| 5014 |
}{}% |
| 5015 |
}% |
| 5016 |
\Ifstr{\@nameuse{scr@#1@style}}{#2}% |
| 5017 |
} |
| 5018 |
\newcommand*{\use@preamble}[1]{% |
| 5019 |
\@ifundefined{#1@preamble}{}{% |
| 5020 |
\@nameuse{#1@preamble}% |
| 5021 |
\global\expandafter\let\csname#1@preamble\endcsname=\relax |
| 5022 |
}% |
| 5023 |
} |
| 5024 |
\newcommand*{\set@preamble}[1]{% |
| 5025 |
\kernel@ifnextchar [%] |
| 5026 |
{\set@@preamble{#1}}{\set@@@preamble{#1}[][\hsize]}% |
| 5027 |
} |
| 5028 |
\newcommand*{\set@@preamble}{} |
| 5029 |
\def\set@@preamble#1[#2]{% |
| 5030 |
\kernel@ifnextchar [%] |
| 5031 |
{\set@@@preamble{#1}[{#2}]}{\set@@@preamble{#1}[{#2}][\hsize]}% |
| 5032 |
} |
| 5033 |
\newcommand{\set@@@preamble}{} |
| 5034 |
\long\def\set@@@preamble#1[#2][#3]#4{% |
| 5035 |
\begingroup |
| 5036 |
\def\prmbl@pos{#2}\let\prmbl@hpos\relax\let\prmbl@vpos\relax |
| 5037 |
\expandafter \@tfor \expandafter \@tempa |
| 5038 |
\expandafter :\expandafter =\prmbl@pos |
| 5039 |
\do{% |
| 5040 |
\if \@tempa l% |
| 5041 |
\set@preamble@hpos{0}{#2}% |
| 5042 |
\fi% |
| 5043 |
\if \@tempa c% |
| 5044 |
\set@preamble@hpos{1}{#2}% |
| 5045 |
\fi% |
| 5046 |
\if \@tempa r% |
| 5047 |
\set@preamble@hpos{2}{#2}% |
| 5048 |
\fi% |
| 5049 |
\if \@tempa u% |
| 5050 |
\set@preamble@vpos{0}{#2}% |
| 5051 |
\fi% |
| 5052 |
\if \@tempa b% |
| 5053 |
\set@preamble@vpos{0}{#2}% |
| 5054 |
\fi |
| 5055 |
\if \@tempa o% |
| 5056 |
\set@preamble@vpos{1}{#2}% |
| 5057 |
\fi% |
| 5058 |
\if \@tempa t% |
| 5059 |
\set@preamble@vpos{1}{#2}% |
| 5060 |
\fi |
| 5061 |
}% |
| 5062 |
\@ifundefined{prmbl@hpos}{\def\prmbl@hpos{0}}{}% |
| 5063 |
\@ifundefined{prmbl@vpos}{\def\prmbl@vpos{0}}{}% |
| 5064 |
\ifcase\prmbl@hpos |
| 5065 |
\ifcase\prmbl@vpos |
| 5066 |
\set@@@@preamble{#1@u}{t}{#3}{}{\hfil}{#4}% |
| 5067 |
\else |
| 5068 |
\set@@@@preamble{#1@o}{b}{#3}{}{\hfil}{#4}% |
| 5069 |
\fi |
| 5070 |
\or |
| 5071 |
\ifcase\prmbl@vpos |
| 5072 |
\set@@@@preamble{#1@u}{t}{#3}{\hfil}{\hfil}{#4}% |
| 5073 |
\else |
| 5074 |
\set@@@@preamble{#1@o}{b}{#3}{\hfil}{\hfil}{#4}% |
| 5075 |
\fi |
| 5076 |
\else |
| 5077 |
\ifcase\prmbl@vpos |
| 5078 |
\set@@@@preamble{#1@u}{t}{#3}{\hfil}{}{#4}% |
| 5079 |
\else |
| 5080 |
\set@@@@preamble{#1@o}{b}{#3}{\hfil}{}{#4}% |
| 5081 |
\fi |
| 5082 |
\fi |
| 5083 |
\endgroup |
| 5084 |
} |
| 5085 |
\newcommand{\set@@@@preamble}[6]{% |
| 5086 |
\expandafter\gdef\csname #1@preamble\endcsname{% |
| 5087 |
\hbox to\hsize{#4\parbox[{#2}]{#3}{#6\par}#5\par}% |
| 5088 |
}% |
| 5089 |
} |
| 5090 |
\newcommand*{\set@preamble@hpos}[2]{% |
| 5091 |
\@ifundefined{prbml@hpos}{% |
| 5092 |
\def\prmbl@hpos{#1}% |
| 5093 |
}{% |
| 5094 |
\ifnum \prmbl@hpos=0\relax\else% |
| 5095 |
\ClassError{\KOMAClassName}{% |
| 5096 |
inconsistent hpos options% |
| 5097 |
}{% |
| 5098 |
You've said `#2' as position option. But you have |
| 5099 |
to\MessageBreak |
| 5100 |
use only one of `l', `r', or `c' not two of |
| 5101 |
these.\MessageBreak |
| 5102 |
If you'll continue only first hpos option will be |
| 5103 |
used% |
| 5104 |
}% |
| 5105 |
\fi |
| 5106 |
}% |
| 5107 |
} |
| 5108 |
\newcommand*{\set@preamble@vpos}[2]{% |
| 5109 |
\@ifundefined{prbml@vpos}{% |
| 5110 |
\def\prmbl@vpos{#1}% |
| 5111 |
}{% |
| 5112 |
\ifnum \prmbl@vpos=0\relax\else% |
| 5113 |
\ClassError{\KOMAClassName}{% |
| 5114 |
inconsistent vpos options% |
| 5115 |
}{% |
| 5116 |
You've said `#2' as position option. But you have |
| 5117 |
to\MessageBreak |
| 5118 |
use only one of `t', `o', `b', or `u' not two of |
| 5119 |
these.\MessageBreak |
| 5120 |
If you'll continue only first vpos option will be |
| 5121 |
used% |
| 5122 |
}% |
| 5123 |
\fi |
| 5124 |
}% |
| 5125 |
} |
| 5126 |
\newif\if@mainmatter\@mainmattertrue |
| 5127 |
\ExplSyntaxOn |
| 5128 |
\NewDocumentCommand\frontmatter{so}{ |
| 5129 |
\if@twoside\cleardoubleoddpage\else\clearpage\fi |
| 5130 |
\@mainmatterfalse |
| 5131 |
\IfBooleanF{#1}{ |
| 5132 |
\tl_if_novalue:nTF {#2} |
| 5133 |
{\pagenumbering{roman}} |
| 5134 |
{\tl_if_blank:nF {#2}{\pagenumbering{#2}}} |
| 5135 |
} |
| 5136 |
} |
| 5137 |
\NewDocumentCommand\mainmatter{so}{% |
| 5138 |
\if@twoside\cleardoubleoddpage\else\clearpage\fi |
| 5139 |
\@mainmattertrue |
| 5140 |
\IfBooleanF{#1}{ |
| 5141 |
\tl_if_novalue:nTF {#2} |
| 5142 |
{\pagenumbering{arabic}}% |
| 5143 |
{\tl_if_blank:nF {#2}{\pagenumbering{#2}}} |
| 5144 |
} |
| 5145 |
} |
| 5146 |
\NewDocumentCommand\backmatter{sO{}}{% |
| 5147 |
\if@openright\cleardoubleoddpage\else\clearpage\fi\@mainmatterfalse |
| 5148 |
\IfBooleanF{#1}{ |
| 5149 |
\tl_if_blank:nF {#2}{\pagenumbering{#2}} |
| 5150 |
} |
| 5151 |
} |
| 5152 |
\ExplSyntaxOff |
| 5153 |
\newcommand*\appendix{% |
| 5154 |
\Ifstr{\@currenvir}{appendix}{% |
| 5155 |
\ClassWarning{\KOMAClassName}{% |
| 5156 |
You are using |
| 5157 |
`\string\begin{appendix}...\string\end{appendix}'.\MessageBreak |
| 5158 |
You should note, that `\string\appendix' is a mostly |
| 5159 |
globally\MessageBreak |
| 5160 |
working command not an enviroment with only local\MessageBreak |
| 5161 |
effects. Therefore `\string\end{appendix}' will neither\MessageBreak |
| 5162 |
switch back to normal section numbering nor finish\MessageBreak |
| 5163 |
every other effect of `\string\begin{appendix}'.\MessageBreak |
| 5164 |
Nevertheless, some effects may end with\MessageBreak |
| 5165 |
`\string\end{appendix}' and the document may become\MessageBreak |
| 5166 |
inconsistent.\MessageBreak |
| 5167 |
Because of this, you should remove `\string\end{appendix}'\MessageBreak |
| 5168 |
and replace `\string\begin{appendix}' by command\MessageBreak |
| 5169 |
`\string\appendix'% |
| 5170 |
}% |
| 5171 |
}{}% |
| 5172 |
\par |
| 5173 |
\setcounter{chapter}{0}% |
| 5174 |
\setcounter{section}{0}% |
| 5175 |
\gdef\@chapapp{\appendixname}% |
| 5176 |
\addtocontents{\ext@toc}{\def\protect\@chapapp{\protect\appendixname}}% |
| 5177 |
\doforeachtocfile[float]{% |
| 5178 |
\addtocontents{\@currext}{\def\protect\@chapapp{\protect\appendixname}}% |
| 5179 |
}% |
| 5180 |
\gdef\thechapter{\@Alph\c@chapter}% |
| 5181 |
\UseOneTimeHook{\KOMAClassName/appendix}% |
| 5182 |
\csname appendixmore\endcsname |
| 5183 |
} |
| 5184 |
\newcommand*{\scr@startpart}[1]{% |
| 5185 |
\ExecuteDoHook{heading/preinit/#1}% |
| 5186 |
\if@openright\cleardoublepage\else\clearpage\fi |
| 5187 |
\scr@ifundefinedorrelax{#1pagestyle}{}{% |
| 5188 |
\Ifstr{#1pagestyle}{}{}{% |
| 5189 |
\thispagestyle{\@nameuse{#1pagestyle}}% |
| 5190 |
}% |
| 5191 |
}% |
| 5192 |
\if@twocolumn |
| 5193 |
\onecolumn |
| 5194 |
\@tempswatrue |
| 5195 |
\else |
| 5196 |
\@tempswafalse |
| 5197 |
\fi |
| 5198 |
\@tempskipa=\glueexpr\@nameuse{scr@#1@beforeskip}\relax |
| 5199 |
\@ifundefined{scr@#1@afterindent}{\@afterindentfalse}{% |
| 5200 |
\csname scr@#1@afterindent\endcsname |
| 5201 |
{\@afterindenttrue}{\@afterindentfalse}{% |
| 5202 |
\@afterindenttrue |
| 5203 |
\ifdim\@tempskipa<\z@ |
| 5204 |
\@tempskipa=-\@tempskipa |
| 5205 |
\@afterindentfalse |
| 5206 |
\fi |
| 5207 |
}% |
| 5208 |
}% |
| 5209 |
\ExecuteDoHook{heading/postinit/#1}% |
| 5210 |
\partheadstartvskip |
| 5211 |
\vbox to\z@{\vss\use@preamble{#1@o}\strut\par}% |
| 5212 |
\vskip-\baselineskip\nobreak |
| 5213 |
\expandafter\SecDef\csname @#1\expandafter\endcsname\csname @s#1\endcsname |
| 5214 |
} |
| 5215 |
\newcommand{\scr@@startpart}{} |
| 5216 |
\long\def\scr@@startpart#1[#2]#3{% |
| 5217 |
\ExecuteDoHook{heading/branch/nostar/#1}% |
| 5218 |
\ifnum \scr@osectarg=\z@ |
| 5219 |
\@scr@tempswafalse |
| 5220 |
\else |
| 5221 |
\scr@istest#2=\@nil |
| 5222 |
\fi |
| 5223 |
\@currentusenumbertrue |
| 5224 |
\if@scr@tempswa |
| 5225 |
\setkeys{KOMAarg.section}{tocentry={#3},head={#3},reference={#3},#2}% |
| 5226 |
\else |
| 5227 |
\ifcase \scr@osectarg\relax |
| 5228 |
\setkeys{KOMAarg.section}{tocentry={#2},head={#2},reference={#2}}% |
| 5229 |
\or |
| 5230 |
\setkeys{KOMAarg.section}{tocentry={#3},head={#2},reference={#3}}% |
| 5231 |
\or |
| 5232 |
\setkeys{KOMAarg.section}{tocentry={#2},head={#3},reference={#2}}% |
| 5233 |
\or |
| 5234 |
\setkeys{KOMAarg.section}{tocentry={#2},head={#2},reference={#2}}% |
| 5235 |
\fi |
| 5236 |
\fi |
| 5237 |
\Ifnumbered{#1}{% |
| 5238 |
\refstepcounter{#1}% |
| 5239 |
\expandafter\@maybeautodot\csname the#1\endcsname |
| 5240 |
\typeout{#1 \csname the#1\endcsname.}% |
| 5241 |
\ifx\@currenttocentry\@empty\else |
| 5242 |
\@ifundefined{#1tocformat}{% |
| 5243 |
\expandafter\gdef\csname #1tocformat\endcsname |
| 5244 |
{\csname the#1\endcsname}% |
| 5245 |
}{}% |
| 5246 |
\scr@ifundefinedorrelax{add#1tocentry}{% |
| 5247 |
\addtocentrydefault{#1}% |
| 5248 |
}{% |
| 5249 |
\@nameuse{add#1tocentry}% |
| 5250 |
}{\csname\@ifundefined{#1tocformat}{the#1}{#1tocformat}\endcsname}% |
| 5251 |
{\@currenttocentry}% |
| 5252 |
\fi |
| 5253 |
}{% |
| 5254 |
\expandafter\ifnum\scr@v@is@ge{3.18}\relax |
| 5255 |
\begingroup |
| 5256 |
\let\@elt\@stpelt |
| 5257 |
\csname cl@#1\endcsname |
| 5258 |
\endgroup |
| 5259 |
\fi |
| 5260 |
\typeout{#1 without number}% |
| 5261 |
\ifx\@currenttocentry\@empty\else |
| 5262 |
\hy@insteadofrefstepcounter{#1}% |
| 5263 |
\scr@ifundefinedorrelax{add#1tocentry}{% |
| 5264 |
\addtocentrydefault{#1}% |
| 5265 |
}{% |
| 5266 |
\@nameuse{add#1tocentry}% |
| 5267 |
}{}{\@currenttocentry}% |
| 5268 |
\fi |
| 5269 |
}% |
| 5270 |
\begingroup |
| 5271 |
\def\IfUseNumber{\Ifnumbered{#1}}% |
| 5272 |
\ExecuteDoHook{heading/begingroup/#1}% |
| 5273 |
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative |
| 5274 |
\raggedpart |
| 5275 |
\normalfont\usekomafont{disposition}{\nobreak |
| 5276 |
\IfUseNumber{% |
| 5277 |
\partlineswithprefixformat{#1}{% |
| 5278 |
\usekomafont{#1prefix}{\nobreak\@nameuse{#1format}}% |
| 5279 |
\setlength{\@tempskipa}{\@nameuse{scr@#1@innerskip}}% |
| 5280 |
\partheadmidvskip |
| 5281 |
}{% |
| 5282 |
\usekomafont{#1}{\nobreak\interlinepenalty \@M#3\strut\@@par}% |
| 5283 |
}% |
| 5284 |
}{% |
| 5285 |
\partlineswithprefixformat{#1}{}{% |
| 5286 |
\usekomafont{#1}{\nobreak\interlinepenalty \@M#3\strut\@@par}% |
| 5287 |
} |
| 5288 |
}% |
| 5289 |
\expandafter\ifx\csname #1mark\endcsname\@gobble |
| 5290 |
\@mkboth{}{}% |
| 5291 |
\else |
| 5292 |
\csname #1mark\expandafter\endcsname\expandafter{\@currentheadentry}% |
| 5293 |
\fi |
| 5294 |
}% |
| 5295 |
\ExecuteDoHook{heading/endgroup/#1}% |
| 5296 |
\endgroup |
| 5297 |
\@nameuse{@end#1}% |
| 5298 |
\@afterheading |
| 5299 |
} |
| 5300 |
\newcommand{\scr@@startspart}[2]{% |
| 5301 |
\ExecuteDoHook{heading/branch/star/#1}% |
| 5302 |
\begingroup |
| 5303 |
\let\@mkboth\@gobbletwo |
| 5304 |
\hy@insteadofrefstepcounter{#1}% |
| 5305 |
\endgroup |
| 5306 |
\begingroup |
| 5307 |
\let\IfUseNumber\@secondoftwo |
| 5308 |
\ExecuteDoHook{heading/begingroup/#1}% |
| 5309 |
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative |
| 5310 |
\raggedpart |
| 5311 |
\normalfont\usekomafont{disposition}{% |
| 5312 |
\nobreak |
| 5313 |
\partlineswithprefixformat{#1}{}{% |
| 5314 |
\usekomafont{#1}{\nobreak\interlinepenalty \@M#2\strut\@@par}% |
| 5315 |
}% |
| 5316 |
\@mkboth{}{}% |
| 5317 |
}% |
| 5318 |
\ExecuteDoHook{heading/endgroup/#1}% |
| 5319 |
\endgroup |
| 5320 |
\@nameuse{@end#1}% |
| 5321 |
} |
| 5322 |
\newcommand{\partlineswithprefixformat}[3]{% |
| 5323 |
#2#3% |
| 5324 |
} |
| 5325 |
\newcommand*{\scr@@endpart}[1]{% |
| 5326 |
\vbox to\z@{\use@preamble{#1@u}\vss}% |
| 5327 |
\@tempskipa=\glueexpr\csname scr@#1@afterskip\endcsname\relax\relax |
| 5328 |
\ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\fi |
| 5329 |
\partheadendvskip |
| 5330 |
\partheademptypage |
| 5331 |
\if@tempswa |
| 5332 |
\twocolumn |
| 5333 |
\fi |
| 5334 |
} |
| 5335 |
\newcommand*{\hy@insteadofrefstepcounter}[1]{} |
| 5336 |
\let\hy@insteadofrefstepcounter\@gobble |
| 5337 |
\newcommand*{\scr@chapter@before@hyperref@patch}{% |
| 5338 |
\let\scr@orig@chapter\@chapter |
| 5339 |
\let\scr@orig@schapter\@schapter |
| 5340 |
\let\scr@orig@addchap\@addchap |
| 5341 |
} |
| 5342 |
\BeforePackage{hyperref}{\scr@chapter@before@hyperref@patch} |
| 5343 |
\newcommand*{\scr@chapter@after@hyperref@patch}{% |
| 5344 |
\let\@chapter\scr@orig@chapter |
| 5345 |
\let\@schapter\scr@orig@schapter |
| 5346 |
\let\@addchap\scr@orig@addchap |
| 5347 |
\ifx\hy@insteadofrefstepcounter\@gobble |
| 5348 |
\renewcommand*{\hy@insteadofrefstepcounter}[1]{% |
| 5349 |
\Hy@MakeCurrentHrefAuto{##1*}% |
| 5350 |
\Hy@raisedlink{% |
| 5351 |
\hyper@anchorstart{\@currentHref}\hyper@anchorend |
| 5352 |
}% |
| 5353 |
}% |
| 5354 |
\fi |
| 5355 |
} |
| 5356 |
\AfterAtEndOfPackage{hyperref}{\scr@chapter@after@hyperref@patch} |
| 5357 |
\newcommand*{\addparttocentry}[2]{% |
| 5358 |
\addtocentrydefault{part}{#1}{#2}% |
| 5359 |
} |
| 5360 |
\newcommand\addpart{% |
| 5361 |
\SecDef\@addpart\@saddpart |
| 5362 |
} |
| 5363 |
\newcommand*{\@addpart}{} |
| 5364 |
\long\def\@addpart[#1]#2{% |
| 5365 |
\edef\reserved@a{% |
| 5366 |
\unexpanded{% |
| 5367 |
\part[{#1}]{#2}% |
| 5368 |
\c@secnumdepth= |
| 5369 |
}\the\c@secnumdepth\relax |
| 5370 |
}% |
| 5371 |
\c@secnumdepth=\numexpr \partnumdepth-1\relax |
| 5372 |
\reserved@a |
| 5373 |
} |
| 5374 |
\newcommand{\@saddpart}[1]{% |
| 5375 |
\part*{#1}% |
| 5376 |
\addpartmark{}% |
| 5377 |
} |
| 5378 |
\newcounter{part} |
| 5379 |
\renewcommand*{\thepart}{\@Roman\c@part} |
| 5380 |
\newcommand*{\partformat}{\partname~\thepart\autodot} |
| 5381 |
\newcommand*\partname{Part} |
| 5382 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 5383 |
UKenglish,ukenglish,USenglish,usenglish}\partname{Part} |
| 5384 |
\newcommand*{\partmark}[1]{\@mkboth{}{}} |
| 5385 |
\newcommand*\addpartmark[1]{% |
| 5386 |
\begingroup |
| 5387 |
\expandafter\let\csname if@mainmatter\expandafter\endcsname |
| 5388 |
\csname iffalse\endcsname |
| 5389 |
\c@secnumdepth=\numexpr \partnumdepth-1\relax |
| 5390 |
\partmark{#1}% |
| 5391 |
\endgroup |
| 5392 |
} |
| 5393 |
\newcommand*{\raggedpart}{} |
| 5394 |
\let\raggedpart\centering |
| 5395 |
\newkomafont{partentry}{\usekomafont{disposition}\large} |
| 5396 |
\newkomafont{partentrypagenumber}{} |
| 5397 |
\newcommand*{\scr@startchapter}[1]{% |
| 5398 |
\ExecuteDoHook{heading/preinit/#1}% |
| 5399 |
\if@openright\cleardoublepage\else\clearpage\fi |
| 5400 |
\scr@ifundefinedorrelax{#1pagestyle}{}{% |
| 5401 |
\Ifstr{#1pagestyle}{}{}{% |
| 5402 |
\thispagestyle{\@nameuse{#1pagestyle}}% |
| 5403 |
}% |
| 5404 |
}% |
| 5405 |
\global\@topnum\z@ |
| 5406 |
\@ifundefined{scr@#1@afterindent}{\@afterindentfalse}{% |
| 5407 |
\csname scr@#1@afterindent\endcsname |
| 5408 |
{\@afterindenttrue}{\@afterindentfalse}{% |
| 5409 |
\@afterindenttrue |
| 5410 |
\@ifundefined{scr@#1@beforeskip}{\@afterindentfalse}{% |
| 5411 |
\ifdim\glueexpr\@nameuse{scr@#1@beforeskip}\relax<\z@ |
| 5412 |
\@afterindentfalse |
| 5413 |
\fi |
| 5414 |
}% |
| 5415 |
}% |
| 5416 |
}% |
| 5417 |
\ExecuteDoHook{heading/postinit/#1}% |
| 5418 |
\expandafter\SecDef\csname @#1\expandafter\endcsname\csname @s#1\endcsname |
| 5419 |
} |
| 5420 |
\newcommand*{\scr@@startchapter}{} |
| 5421 |
\def\scr@@startchapter#1[#2]#3{% |
| 5422 |
\ExecuteDoHook{heading/branch/nostar/#1}% |
| 5423 |
\ifnum \scr@osectarg=\z@ |
| 5424 |
\@scr@tempswafalse |
| 5425 |
\else |
| 5426 |
\scr@istest#2=\@nil |
| 5427 |
\fi |
| 5428 |
\@currentusenumbertrue |
| 5429 |
\if@scr@tempswa |
| 5430 |
\setkeys{KOMAarg.section}{tocentry={#3},head={#3},reference={#3},#2}% |
| 5431 |
\else |
| 5432 |
\ifcase \scr@osectarg\relax |
| 5433 |
\setkeys{KOMAarg.section}{tocentry={#2},head={#2},reference={#2}}% |
| 5434 |
\or |
| 5435 |
\setkeys{KOMAarg.section}{tocentry={#3},head={#2},reference={#3}}% |
| 5436 |
\or |
| 5437 |
\setkeys{KOMAarg.section}{tocentry={#2},head={#3},reference={#2}}% |
| 5438 |
\or |
| 5439 |
\setkeys{KOMAarg.section}{tocentry={#2},head={#2},reference={#2}}% |
| 5440 |
\fi |
| 5441 |
\fi |
| 5442 |
\Ifnumbered{#1}{% |
| 5443 |
\if@mainmatter |
| 5444 |
\@tempswatrue |
| 5445 |
\else\@tempswafalse\fi |
| 5446 |
}{\@tempswafalse}% |
| 5447 |
\if@tempswa |
| 5448 |
\refstepcounter{#1}% |
| 5449 |
\expandafter\@maybeautodot\csname the#1\endcsname |
| 5450 |
\typeout{#1 \csname the#1\endcsname.}% |
| 5451 |
\ifx\@currenttocentry\@empty\else |
| 5452 |
\@ifundefined{#1tocformat}{% |
| 5453 |
\expandafter\gdef\csname #1tocformat\endcsname |
| 5454 |
{\csname the#1\endcsname}% |
| 5455 |
}{}% |
| 5456 |
\scr@ifundefinedorrelax{add#1tocentry}{% |
| 5457 |
\addtocentrydefault{#1}% |
| 5458 |
}{% |
| 5459 |
\@nameuse{add#1tocentry}% |
| 5460 |
}{\csname\@ifundefined{#1tocformat}{the#1}{#1tocformat}\endcsname}% |
| 5461 |
{\@currenttocentry}% |
| 5462 |
\fi |
| 5463 |
\else |
| 5464 |
\expandafter\ifnum\scr@v@is@ge{3.15}\relax |
| 5465 |
\begingroup |
| 5466 |
\let\@elt\@stpelt |
| 5467 |
\csname cl@#1\endcsname |
| 5468 |
\endgroup |
| 5469 |
\fi |
| 5470 |
\typeout{#1 without number}% |
| 5471 |
\ifx\@currenttocentry\@empty\else |
| 5472 |
\hy@insteadofrefstepcounter{#1}% |
| 5473 |
\scr@ifundefinedorrelax{add#1tocentry}{% |
| 5474 |
\addtocentrydefault{#1}% |
| 5475 |
}{% |
| 5476 |
\@nameuse{add#1tocentry}% |
| 5477 |
}{}{\@currenttocentry}% |
| 5478 |
\fi |
| 5479 |
\fi |
| 5480 |
\csname #1mark\expandafter\endcsname\expandafter{\@currentheadentry}% |
| 5481 |
\ifdim \@chapterlistsgap>\z@ |
| 5482 |
\doforeachtocfile{% |
| 5483 |
\Iftocfeature{\@currext}{chapteratlist}{% |
| 5484 |
\addtocontents{\@currext}{\protect\addvspace{\@chapterlistsgap}}% |
| 5485 |
}{}% |
| 5486 |
}% |
| 5487 |
\expandafter\ifnum \scr@v@is@lt{3.43}\relax |
| 5488 |
\@ifundefined{float@addtolists}{}{% |
| 5489 |
\scr@float@addtolists@warning |
| 5490 |
\float@addtolists{\protect\addvspace{\@chapterlistsgap}}% |
| 5491 |
}% |
| 5492 |
\fi |
| 5493 |
\fi |
| 5494 |
\scr@t@st@nd@w@rn@m@k@ch@pt@rh@@d{#1}% |
| 5495 |
\if@twocolumn |
| 5496 |
\if@at@twocolumn |
| 5497 |
\@nameuse{@make#1head}{#3}% |
| 5498 |
\else |
| 5499 |
\edef\scr@restoreparsetup{% |
| 5500 |
\parskip\the\parskip |
| 5501 |
\parfillskip\the\parfillskip |
| 5502 |
\parindent\the\parindent |
| 5503 |
}% |
| 5504 |
\@topnewpage[% |
| 5505 |
\expandafter\ifnum\scr@v@is@ge{3.46}\relax |
| 5506 |
\scr@restoreparsetup |
| 5507 |
\vskip\topskip |
| 5508 |
\fi |
| 5509 |
\@nameuse{@make#1head}{#3\ifhmode\strut\fi}% |
| 5510 |
\expandafter\ifnum\scr@v@is@ge{3.46}\relax |
| 5511 |
\vskip\dimeval{\ht\strutbox-\dp\strutbox-\topskip+\parskip}% |
| 5512 |
\fi |
| 5513 |
]% |
| 5514 |
\fi |
| 5515 |
\else |
| 5516 |
\@nameuse{@make#1head}{#3}% |
| 5517 |
\fi |
| 5518 |
\@afterheading |
| 5519 |
} |
| 5520 |
\expandafter\ifnum\scr@v@is@ge{3.36}% |
| 5521 |
\newcommand*{\scr@t@st@nd@w@rn@m@k@ch@pt@rh@@d}[1]{% |
| 5522 |
\Ifstr{#1}{chapter}{% |
| 5523 |
\begingroup |
| 5524 |
\def\reserved@a{\scr@makechapterhead{chapter}}% |
| 5525 |
\ifx\@makechapterhead\reserved@a\else |
| 5526 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 5527 |
Redefinition of \string\@makechapterhead\space detected.\MessageBreak |
| 5528 |
Note: KOMA-Script does use styles for commands like\MessageBreak |
| 5529 |
\string\chapter. Currently it internally still provides and\MessageBreak |
| 5530 |
uses \string\@makechapterhead, but a completely different\MessageBreak |
| 5531 |
definition compared to the standard classes.\MessageBreak |
| 5532 |
So redefining or using internal \string\@makechapterhead\MessageBreak |
| 5533 |
by users or package authors may already break\MessageBreak |
| 5534 |
KOMA-Script and will not work with a coming version,\MessageBreak |
| 5535 |
that will remove this deprecated code}% |
| 5536 |
\let\scr@t@st@nd@w@rn@m@k@ch@pt@rh@@d\@gobbble |
| 5537 |
\fi |
| 5538 |
\endgroup |
| 5539 |
}{}% |
| 5540 |
} |
| 5541 |
\else |
| 5542 |
\let\scr@t@st@nd@w@rn@m@k@ch@pt@rh@@d\@gobble |
| 5543 |
\fi |
| 5544 |
\newcommand*{\scr@@startschapter}[2]{% |
| 5545 |
\ExecuteDoHook{heading/branch/star/#1}% |
| 5546 |
\begingroup |
| 5547 |
\let\@mkboth\@gobbletwo |
| 5548 |
\hy@insteadofrefstepcounter{#1}% |
| 5549 |
\endgroup |
| 5550 |
\scr@t@st@nd@w@rn@m@ks@ch@pt@rh@@d{#1}% |
| 5551 |
\if@twocolumn |
| 5552 |
\if@at@twocolumn |
| 5553 |
\@nameuse{@makes#1head}{#2}% |
| 5554 |
\else |
| 5555 |
\edef\scr@restoreparsetup{% |
| 5556 |
\parskip\the\parskip |
| 5557 |
\parfillskip\the\parfillskip |
| 5558 |
\parindent\the\parindent |
| 5559 |
}% |
| 5560 |
\@topnewpage[% |
| 5561 |
\expandafter\ifnum\scr@v@is@ge{3.46}\relax |
| 5562 |
\scr@restoreparsetup |
| 5563 |
\vskip\topskip |
| 5564 |
\fi |
| 5565 |
\@nameuse{@makes#1head}{#2\ifhmode\strut\fi}% |
| 5566 |
\expandafter\ifnum\scr@v@is@ge{3.46}\relax |
| 5567 |
\vskip\dimeval{\ht\strutbox-\dp\strutbox-\topskip+\parskip}% |
| 5568 |
\fi |
| 5569 |
]% |
| 5570 |
\fi |
| 5571 |
\else |
| 5572 |
\@nameuse{@makes#1head}{#2}% |
| 5573 |
\fi |
| 5574 |
\@afterheading |
| 5575 |
} |
| 5576 |
\expandafter\ifnum\scr@v@is@ge{3.36}% |
| 5577 |
\newcommand*{\scr@t@st@nd@w@rn@m@ks@ch@pt@rh@@d}[1]{% |
| 5578 |
\Ifstr{#1}{chapter}{% |
| 5579 |
\begingroup |
| 5580 |
\def\reserved@a{\scr@makeschapterhead{chapter}}% |
| 5581 |
\ifx\@makeschapterhead\reserved@a\else |
| 5582 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 5583 |
Redefinition of \string\@makeschapterhead\space detected.\MessageBreak |
| 5584 |
Note: KOMA-Script does use styles for commands like\MessageBreak |
| 5585 |
\string\chapter. Currently it internally still provides and\MessageBreak |
| 5586 |
uses \string\@makeschapterhead, but a completely different\MessageBreak |
| 5587 |
definition compared to the standard classes.\MessageBreak |
| 5588 |
So redefining or using internal \string\@makeschapterhead\MessageBreak |
| 5589 |
by users or package authors may already break\MessageBreak |
| 5590 |
KOMA-Script and will not work with a coming version,\MessageBreak |
| 5591 |
that will remove this deprecated code}% |
| 5592 |
\let\scr@t@st@nd@w@rn@m@ks@ch@pt@rh@@d\@gobble |
| 5593 |
\fi |
| 5594 |
\endgroup |
| 5595 |
}{}% |
| 5596 |
} |
| 5597 |
\else |
| 5598 |
\let\scr@t@st@nd@w@rn@m@ks@ch@pt@rh@@d\@gobble |
| 5599 |
\fi |
| 5600 |
%% \begin{macro}{\@at@twocolumntrue,\@at@twocolumnfalse,\if@at@twocolumn} |
| 5601 |
\newif\if@at@twocolumn |
| 5602 |
\newcommand*\scr@topnewpage{} |
| 5603 |
\let\scr@topnewpage\@topnewpage |
| 5604 |
\long\def\@topnewpage[#1]{% |
| 5605 |
\@at@twocolumntrue\scr@topnewpage[{#1}]\@at@twocolumnfalse |
| 5606 |
} |
| 5607 |
\newcommand*{\scr@makechapterhead}[2]{% |
| 5608 |
\use@chapter@o@preamble{#1}% |
| 5609 |
\@nameuse{@@make#1head}{#2}% |
| 5610 |
\use@preamble{#1@u}% |
| 5611 |
} |
| 5612 |
\newcommand*{\scr@@makechapterhead}[2]{% |
| 5613 |
\@tempskipa=\glueexpr \csname scr@#1@beforeskip\endcsname\relax\relax |
| 5614 |
\csname scr@#1@afterindent\endcsname |
| 5615 |
{\@afterindenttrue}{\@afterindentfalse}{% |
| 5616 |
\ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\else |
| 5617 |
\expandafter\ifnum\scr@v@is@ge{3.22} |
| 5618 |
\@afterindenttrue |
| 5619 |
\fi |
| 5620 |
\fi |
| 5621 |
}% |
| 5622 |
\chapterheadstartvskip |
| 5623 |
{% |
| 5624 |
\def\IfUseNumber{\Ifnumbered{#1}}% |
| 5625 |
\if@mainmatter\else\let\IfUseNumber\@secondoftwo\fi |
| 5626 |
\ExecuteDoHook{heading/begingroup/#1}% |
| 5627 |
\if@chapterprefix |
| 5628 |
\let\IfUsePrefixLine\@firstoftwo |
| 5629 |
\else |
| 5630 |
\let\IfUsePrefixLine\@secondoftwo |
| 5631 |
\fi |
| 5632 |
\setlength{\parindent}{\z@}\setlength{\parfillskip}{\z@ plus 1fil}% |
| 5633 |
\normalfont\usekomafont{disposition}{% |
| 5634 |
\usekomafont{#1}{% |
| 5635 |
\settoheight{\@tempskipa}{% |
| 5636 |
{\usekomafont{#1prefix}{% |
| 5637 |
\vrule \@width\z@ \@height\csname scr@#1@innerskip\endcsname}}% |
| 5638 |
}% |
| 5639 |
\raggedchapter |
| 5640 |
\IfUseNumber{% |
| 5641 |
\IfUsePrefixLine{% |
| 5642 |
\chapterlineswithprefixformat{#1}% |
| 5643 |
{{\usekomafont{#1prefix}{\csname #1format\endcsname% |
| 5644 |
\setlength{\@tempskipa}{\csname scr@#1@innerskip\endcsname}% |
| 5645 |
\chapterheadmidvskip}}}% |
| 5646 |
{\interlinepenalty \@M#2\@@par}% |
| 5647 |
}{% |
| 5648 |
\chapterlinesformat{#1}% |
| 5649 |
{\csname #1format\endcsname}% |
| 5650 |
{\interlinepenalty \@M#2\@@par}% |
| 5651 |
}% |
| 5652 |
}{% |
| 5653 |
\IfUsePrefixLine{% |
| 5654 |
\chapterlineswithprefixformat{#1}% |
| 5655 |
{}% |
| 5656 |
{\interlinepenalty \@M#2\@@par}% |
| 5657 |
}{% |
| 5658 |
\chapterlinesformat{#1}% |
| 5659 |
{}% |
| 5660 |
{\interlinepenalty \@M#2\@@par}% |
| 5661 |
}% |
| 5662 |
}% |
| 5663 |
}% |
| 5664 |
}% |
| 5665 |
\ExecuteDoHook{heading/endgroup/#1}% |
| 5666 |
}% |
| 5667 |
\nobreak\par\nobreak |
| 5668 |
\@tempskipa=\glueexpr \csname scr@#1@afterskip\endcsname\relax\relax |
| 5669 |
\chapterheadendvskip |
| 5670 |
} |
| 5671 |
\newcommand*{\scr@makeschapterhead}[2]{% |
| 5672 |
\use@chapter@o@preamble{#1}% |
| 5673 |
\@nameuse{@@makes#1head}{#2}% |
| 5674 |
\use@preamble{#1@u}% |
| 5675 |
} |
| 5676 |
\newcommand*{\scr@@makeschapterhead}[2]{% |
| 5677 |
\@tempskipa=\glueexpr \csname scr@#1@beforeskip\endcsname\relax\relax |
| 5678 |
\csname scr@#1@afterindent\endcsname |
| 5679 |
{\@afterindenttrue}{\@afterindentfalse}{% |
| 5680 |
\ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\else |
| 5681 |
\expandafter\ifnum\scr@v@is@ge{3.22} |
| 5682 |
\@afterindenttrue |
| 5683 |
\fi |
| 5684 |
\fi |
| 5685 |
}% |
| 5686 |
\chapterheadstartvskip |
| 5687 |
{% |
| 5688 |
\let\IfUseNumber\@secondoftwo |
| 5689 |
\ExecuteDoHook{heading/begingroup/#1}% |
| 5690 |
\if@chapterprefix |
| 5691 |
\let\IfUsePrefixLine\@firstoftwo |
| 5692 |
\else |
| 5693 |
\let\IfUsePrefixLine\@secondoftwo |
| 5694 |
\fi |
| 5695 |
\setlength{\parindent}{\z@}\setlength{\parfillskip}{\z@ plus 1fil}% |
| 5696 |
\normalfont\usekomafont{disposition}{% |
| 5697 |
\usekomafont{#1}{% |
| 5698 |
\raggedchapter |
| 5699 |
\IfUsePrefixLine{% |
| 5700 |
\chapterlineswithprefixformat{#1}% |
| 5701 |
{}% |
| 5702 |
{\interlinepenalty \@M#2\@@par}% |
| 5703 |
}{% |
| 5704 |
\chapterlinesformat{#1}% |
| 5705 |
{}% |
| 5706 |
{\interlinepenalty \@M#2\@@par}% |
| 5707 |
}% |
| 5708 |
}% |
| 5709 |
}% |
| 5710 |
\ExecuteDoHook{heading/endgroup/#1}% |
| 5711 |
}% |
| 5712 |
\nobreak\par\nobreak |
| 5713 |
\@tempskipa=\glueexpr \csname scr@#1@afterskip\endcsname\relax\relax |
| 5714 |
\chapterheadendvskip |
| 5715 |
} |
| 5716 |
\newcommand{\chapterlinesformat}[3]{% |
| 5717 |
\@hangfrom{#2}{#3}% |
| 5718 |
} |
| 5719 |
\newcommand{\chapterlineswithprefixformat}[3]{% |
| 5720 |
#2#3% |
| 5721 |
} |
| 5722 |
\newcommand*{\use@chapter@o@preamble}[1]{% |
| 5723 |
{% |
| 5724 |
\settoheight{\@tempdima}{% |
| 5725 |
\@tempskipa=\glueexpr \csname scr@#1@beforeskip\endcsname\relax\relax |
| 5726 |
\ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\fi |
| 5727 |
\vbox{\chapterheadstartvskip}% |
| 5728 |
}% |
| 5729 |
\settodepth{\@tempdimb}{% |
| 5730 |
\@tempskipa=\glueexpr \csname scr@#1@beforeskip\endcsname\relax\relax |
| 5731 |
\ifdim\@tempskipa<\z@\@tempskipa-\@tempskipa\fi |
| 5732 |
\vbox{\chapterheadstartvskip}% |
| 5733 |
}% |
| 5734 |
\addtolength{\@tempdima}{\@tempdimb}% |
| 5735 |
\setbox\z@\vbox{% |
| 5736 |
\use@preamble{#1@o}% |
| 5737 |
}% |
| 5738 |
\setlength{\@tempdimb}{\ht0}% |
| 5739 |
\addtolength{\@tempdimb}{\dp0}% |
| 5740 |
\vbox to \z@{% |
| 5741 |
\vskip-\baselineskip |
| 5742 |
\vbox to \@tempdima{% |
| 5743 |
\vfill |
| 5744 |
\box\z@ |
| 5745 |
}% |
| 5746 |
\vss |
| 5747 |
}\vskip-\parskip\vskip-\baselineskip |
| 5748 |
\ifdim \@tempdimb>\@tempdima% |
| 5749 |
\addtolength{\@tempdimb}{-\@tempdima}% |
| 5750 |
\ifdim\@tempdimb<\vfuzz |
| 5751 |
\ClassInfo{\KOMAClassName}{% |
| 5752 |
preamble before #1 is \the\@tempdimb\space to high.\MessageBreak |
| 5753 |
Tolerated without warning because of\MessageBreak |
| 5754 |
\string\vfuzz\space = \the\vfuzz\space >= \the\@tempdimb |
| 5755 |
}% |
| 5756 |
\else |
| 5757 |
\ClassWarning{\KOMAClassName}{% |
| 5758 |
preamble before #1 is \the\@tempdimb\space to high.\MessageBreak |
| 5759 |
To avoid the overfull \string\vbox\space you may |
| 5760 |
change\MessageBreak |
| 5761 |
the `beforeskip' value using |
| 5762 |
\string\RedeclareSectionCommand\MessageBreak |
| 5763 |
at the preamble of your document.\MessageBreak |
| 5764 |
You may also change \string\setchapterpreamble\MessageBreak |
| 5765 |
before the command, which generates the message |
| 5766 |
about\MessageBreak |
| 5767 |
an overfull \string\vbox |
| 5768 |
}% |
| 5769 |
\fi |
| 5770 |
\fi% |
| 5771 |
}% |
| 5772 |
} |
| 5773 |
\newcommand*{\addchaptertocentry}[2]{% |
| 5774 |
\addtocentrydefault{chapter}{#1}{#2}% |
| 5775 |
\if@chaptertolists |
| 5776 |
\doforeachtocfile{% |
| 5777 |
\Iftocfeature{\@currext}{chapteratlist}{% |
| 5778 |
\addxcontentsline{\@currext}{chapteratlist}[{#1}]{#2}% |
| 5779 |
}{}% |
| 5780 |
}% |
| 5781 |
\fi |
| 5782 |
} |
| 5783 |
\newcommand\addchap{% |
| 5784 |
\SecDef\@addchap\@saddchap |
| 5785 |
}% |
| 5786 |
\newcommand*{\@addchap}{}% |
| 5787 |
\long\def\@addchap[#1]#2{% |
| 5788 |
\edef\reserved@a{% |
| 5789 |
\unexpanded{% |
| 5790 |
\chapter[{#1}]{#2}% |
| 5791 |
\c@secnumdepth= |
| 5792 |
}\the\c@secnumdepth\relax |
| 5793 |
}% |
| 5794 |
\c@secnumdepth=\numexpr \chapternumdepth-1\relax |
| 5795 |
\reserved@a |
| 5796 |
} |
| 5797 |
\newcommand{\@saddchap}[1]{% |
| 5798 |
\chapter*{#1}% |
| 5799 |
\addchapmark{}% |
| 5800 |
}% |
| 5801 |
\AfterPackage{hyperref}{% |
| 5802 |
\@ifpackagelater{hyperref}{2001/02/19}{}{% |
| 5803 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 5804 |
You are using an old version of the hyperref package!\MessageBreak% |
| 5805 |
This version has a buggy hack in many drivers,\MessageBreak% |
| 5806 |
causing \string\addchap\space to behave strangely.\MessageBreak% |
| 5807 |
Please update hyperref to at least version 6.71b% |
| 5808 |
}% |
| 5809 |
}% |
| 5810 |
} |
| 5811 |
\newcommand*{\raggedchapterentry}{} |
| 5812 |
\newcommand*{\l@chapteratlist}{\l@chapter} |
| 5813 |
\newcounter{chapter} |
| 5814 |
\renewcommand*{\thechapter}{\@arabic\c@chapter} |
| 5815 |
\newcommand*{\chapterformat}{% |
| 5816 |
\mbox{\chapappifchapterprefix{\nobreakspace}\thechapter\autodot |
| 5817 |
\IfUsePrefixLine{}{\enskip}}% |
| 5818 |
} |
| 5819 |
\newcommand*\chaptermarkformat{\chapappifchapterprefix{\ }% |
| 5820 |
\thechapter\autodot\enskip} |
| 5821 |
\newcommand*\chaptername{Chapter} |
| 5822 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 5823 |
UKenglish,ukenglish,USenglish,usenglish}\chaptername{Chapter} |
| 5824 |
\newcommand*\appendixname{Appendix} |
| 5825 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 5826 |
UKenglish,ukenglish,USenglish,usenglish}\appendixname{Appendix} |
| 5827 |
\newcommand*{\chapappifchapterprefix}[1]{% |
| 5828 |
\IfChapterUsesPrefixLine{\chapapp#1}{}% |
| 5829 |
} |
| 5830 |
\newcommand*{\IfChapterUsesPrefixLine}{% |
| 5831 |
\if@chapterprefix\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi |
| 5832 |
} |
| 5833 |
\newcommand*{\chapapp}{\@chapapp} |
| 5834 |
\newcommand*\@chapapp{\chaptername} |
| 5835 |
\newcommand*\chaptermark[1]{} |
| 5836 |
\newcommand*\addchapmark[1]{% |
| 5837 |
\begingroup |
| 5838 |
\expandafter\let\csname if@mainmatter\expandafter\endcsname |
| 5839 |
\csname iffalse\endcsname |
| 5840 |
\c@secnumdepth=\numexpr \chapternumdepth-1\relax |
| 5841 |
\chaptermark{#1}% |
| 5842 |
\endgroup |
| 5843 |
} |
| 5844 |
\newcommand*{\raggedchapter}{\raggedsection} |
| 5845 |
\newkomafont{chapterentry}{\usekomafont{disposition}} |
| 5846 |
\newkomafont{chapterentrypagenumber}{} |
| 5847 |
\newkomafont{chapterentrydots}{} |
| 5848 |
\newcommand\addsec{\SecDef\@addsec\@saddsec} |
| 5849 |
\newcommand*{\@addsec}{} |
| 5850 |
\def\@addsec[#1]#2{% |
| 5851 |
\edef\reserved@a{% |
| 5852 |
\unexpanded{% |
| 5853 |
\section[{#1}]{#2}% |
| 5854 |
\c@secnumdepth= |
| 5855 |
}\the\c@secnumdepth\relax |
| 5856 |
}% |
| 5857 |
\c@secnumdepth=\numexpr \sectionnumdepth-1\relax |
| 5858 |
\reserved@a |
| 5859 |
} |
| 5860 |
\newcommand*{\@saddsec}[1]{% |
| 5861 |
\section*{#1}\addsecmark{}% |
| 5862 |
} |
| 5863 |
\newkomafont{minisec}{} |
| 5864 |
\newcommand\minisec[1]{% |
| 5865 |
\expandafter\ifnum\scr@v@is@lt{3.13a}\relax |
| 5866 |
\@afterindentfalse \vskip 1.5ex |
| 5867 |
\else |
| 5868 |
\if@noskipsec \leavevmode \fi |
| 5869 |
\par |
| 5870 |
\@afterindentfalse |
| 5871 |
\if@nobreak |
| 5872 |
\everypar{}% |
| 5873 |
\else |
| 5874 |
\addpenalty\@secpenalty\addvspace{1.5ex}% |
| 5875 |
\fi |
| 5876 |
\fi |
| 5877 |
{\parindent \z@ |
| 5878 |
\expandafter\ifnum\scr@v@is@gt{2.96}\relax |
| 5879 |
\setlength{\parfillskip}{\z@ plus 1fil}% |
| 5880 |
\fi |
| 5881 |
\raggedsection\normalfont\sectfont\nobreak |
| 5882 |
\usekomafont{minisec}{\nobreak\interlinepenalty \@M #1\par\nobreak}% |
| 5883 |
}\nobreak |
| 5884 |
\@afterheading |
| 5885 |
} |
| 5886 |
\newcommand*{\addsectiontocentry}[2]{% |
| 5887 |
\addtocentrydefault{section}{#1}{#2}% |
| 5888 |
} |
| 5889 |
\newcommand*{\addsubsectiontocentry}[2]{% |
| 5890 |
\addtocentrydefault{subsection}{#1}{#2}% |
| 5891 |
} |
| 5892 |
\newcommand*{\addparagraphtocentry}[2]{% |
| 5893 |
\addtocentrydefault{paragraph}{#1}{#2}% |
| 5894 |
} |
| 5895 |
\newcommand*{\addsubparagraphtocentry}[2]{% |
| 5896 |
\addtocentrydefault{subparagraph}{#1}{#2}% |
| 5897 |
} |
| 5898 |
\newcounter{section}[chapter] |
| 5899 |
\renewcommand*\thesection{% |
| 5900 |
\expandafter\ifnum\scr@v@is@gt{2.97d}% |
| 5901 |
\if@mainmatter\thechapter.\fi |
| 5902 |
\else |
| 5903 |
\thechapter.% |
| 5904 |
\fi |
| 5905 |
\@arabic\c@section |
| 5906 |
} |
| 5907 |
\newcommand*\sectionmarkformat{\thesection\autodot\enskip} |
| 5908 |
\newcounter{subsection}[section] |
| 5909 |
\renewcommand*{\thesubsection}{\thesection.\@arabic\c@subsection} |
| 5910 |
\newcounter{subsubsection}[subsection] |
| 5911 |
\renewcommand*{\thesubsubsection}{% |
| 5912 |
\thesubsection.\@arabic\c@subsubsection |
| 5913 |
} |
| 5914 |
\newcounter{paragraph}[subsubsection] |
| 5915 |
\renewcommand*{\theparagraph}{\thesubsubsection.\@arabic\c@paragraph} |
| 5916 |
\newcounter{subparagraph}[paragraph] |
| 5917 |
\renewcommand*{\thesubparagraph}{% |
| 5918 |
\theparagraph.\@arabic\c@subparagraph |
| 5919 |
} |
| 5920 |
\newcommand*{\othersectionlevelsformat}[3]{#3\autodot\enskip} |
| 5921 |
\renewcommand*{\@seccntformat}[1]{% |
| 5922 |
\expandafter\ifnum\scr@v@is@lt{3.17}\relax |
| 5923 |
\protect\othersectionlevelsformat{#1}{% |
| 5924 |
\expandafter\aftergroup\noexpand\@gobble}{\csname the#1\endcsname}% |
| 5925 |
\else |
| 5926 |
\scr@ifundefinedorrelax{#1format}{% |
| 5927 |
\protect\othersectionlevelsformat{#1}{% |
| 5928 |
\expandafter\aftergroup\noexpand\@gobble}{\csname the#1\endcsname}% |
| 5929 |
}{\expandafter\protect\csname #1format\endcsname}% |
| 5930 |
\fi |
| 5931 |
} |
| 5932 |
\newcommand*\addsecmark[1]{% |
| 5933 |
\begingroup |
| 5934 |
\c@secnumdepth=\numexpr \sectionnumdepth-1\relax |
| 5935 |
\sectionmark{#1}% |
| 5936 |
\endgroup |
| 5937 |
} |
| 5938 |
\DeclareSectionCommand[% |
| 5939 |
style=chapter,% |
| 5940 |
level=\z@,% |
| 5941 |
pagestyle=plain,% |
| 5942 |
tocstyle=chapter,% |
| 5943 |
tocindent=\z@,% |
| 5944 |
tocnumwidth=1.5em% |
| 5945 |
]{chapter} |
| 5946 |
\DeclareSectionCommand[% |
| 5947 |
style=section,% |
| 5948 |
level=1,% |
| 5949 |
indent=\z@,% |
| 5950 |
beforeskip=-3.5ex \@plus -1ex \@minus -.2ex,% |
| 5951 |
afterskip=2.3ex \@plus.2ex,% |
| 5952 |
tocstyle=section,% |
| 5953 |
tocindentfollows=chapter,% |
| 5954 |
tocindent=1.5em,% |
| 5955 |
tocnumwidth=2.3em% |
| 5956 |
]{section} |
| 5957 |
\DeclareSectionCommand[% |
| 5958 |
style=part,% |
| 5959 |
level=\m@ne,% |
| 5960 |
pagestyle=plain,% |
| 5961 |
tocstyle=part,% |
| 5962 |
toclevel=\m@ne,% |
| 5963 |
tocindent=\z@,% |
| 5964 |
tocnumwidth=2em% |
| 5965 |
]{part} |
| 5966 |
\DeclareSectionCommand[% |
| 5967 |
style=section,% |
| 5968 |
level=2,% |
| 5969 |
indent=\z@,% |
| 5970 |
beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,% |
| 5971 |
afterskip=1.5ex \@plus .2ex,% |
| 5972 |
tocstyle=section,% |
| 5973 |
tocindent=3.8em,% |
| 5974 |
tocnumwidth=3.2em% |
| 5975 |
]{subsection} |
| 5976 |
\DeclareSectionCommand[% |
| 5977 |
style=section,% |
| 5978 |
level=3,% |
| 5979 |
indent=\z@,% |
| 5980 |
beforeskip=-3.25ex\@plus -1ex \@minus -.2ex,% |
| 5981 |
afterskip=1.5ex \@plus .2ex,% |
| 5982 |
tocstyle=section,% |
| 5983 |
tocindent=7.0em,% |
| 5984 |
tocnumwidth=4.1em% |
| 5985 |
]{subsubsection} |
| 5986 |
\DeclareSectionCommand[% |
| 5987 |
style=section,% |
| 5988 |
level=4,% |
| 5989 |
indent=\z@,% |
| 5990 |
beforeskip=3.25ex \@plus1ex \@minus.2ex,% |
| 5991 |
afterskip=-1em,% |
| 5992 |
tocindentfollows=subsubsection,% |
| 5993 |
tocstyle=section,% |
| 5994 |
tocindent=10em,% |
| 5995 |
tocnumwidth=5em% |
| 5996 |
]{paragraph} |
| 5997 |
\DeclareSectionCommand[% |
| 5998 |
style=section,% |
| 5999 |
level=5,% |
| 6000 |
indent=\scr@parindent,% |
| 6001 |
beforeskip=3.25ex \@plus1ex \@minus .2ex,% |
| 6002 |
afterskip=-1em,% |
| 6003 |
tocstyle=section,% |
| 6004 |
tocindent=12em,% |
| 6005 |
tocnumwidth=6em% |
| 6006 |
]{subparagraph} |
| 6007 |
\expandafter\ifnum\scr@v@is@lt{3.15}\relax |
| 6008 |
\let\scr@subparagraph@sectionindent\parindent |
| 6009 |
\else |
| 6010 |
\def\scr@subparagraph@sectionindent{\scr@parindent}% |
| 6011 |
\fi |
| 6012 |
\newcommand*{\scr@fnt@disposition}{\sectfont} |
| 6013 |
\aliaskomafont{sectioning}{disposition} |
| 6014 |
%%% From File: $Id: scrkernel-miscellaneous.dtx 4223 2025-09-11 09:09:44Z kohm $ |
| 6015 |
%%% (run: body) |
| 6016 |
\ExplSyntaxOn |
| 6017 |
\cs_if_exist:NT \tag_if_active:T |
| 6018 |
{ |
| 6019 |
\msg_new:nnn { \KOMAClassName } { tagging-not-supported } |
| 6020 |
{ |
| 6021 |
Activated~tagging~detected~but~not~supported!\\ |
| 6022 |
Note:~This~class~currently~does~not~actively~support~tagging.~ |
| 6023 |
This~means:~Several~elements~will~not~be~tagged~correctly.~ |
| 6024 |
We~therefore~currently~suggest~to~not~use~tagging~and~i.e.~ |
| 6025 |
use\\ |
| 6026 |
\ \ \token_to_str:N\RequirePackage{pdfmetadata}\\ |
| 6027 |
\ \ \token_to_str:N\SetKeys[document/metadata]{...}\\ |
| 6028 |
instead~of\\ |
| 6029 |
\ \ \token_to_str:N\DocumentMetadata{...}\\ |
| 6030 |
to~avoid~automatic~activation~of~tagging. |
| 6031 |
} |
| 6032 |
\hook_gput_code:nnn { begindocument } { \KOMAClassName } |
| 6033 |
{ |
| 6034 |
\tag_if_active:T |
| 6035 |
{ \msg_warning:nn { \KOMAClassName } { tagging-not-supported } } |
| 6036 |
} |
| 6037 |
} |
| 6038 |
\ExplSyntaxOff |
| 6039 |
\@addtoreset{equation}{chapter} |
| 6040 |
\renewcommand*{\theequation}{% |
| 6041 |
\expandafter\ifnum\scr@v@is@gt{2.97d}% |
| 6042 |
\if@mainmatter\thechapter.\fi |
| 6043 |
\else |
| 6044 |
\thechapter.% |
| 6045 |
\fi |
| 6046 |
\@arabic\c@equation |
| 6047 |
} |
| 6048 |
|
| 6049 |
\newif\if@restonecol |
| 6050 |
\newcommand{\dictum}[2][]{\par% |
| 6051 |
\begingroup |
| 6052 |
\raggeddictum\parbox{\dictumwidth}{% |
| 6053 |
{\@dictumfont{\raggeddictumtext #2\strut\par}% |
| 6054 |
\def\@tempa{#1}\ifx\@tempa\@empty\else% |
| 6055 |
{\raggeddictumtext\dictumrule}% |
| 6056 |
\raggeddictumauthor\@dictumauthorfont\dictumauthorformat{#1}% |
| 6057 |
\strut\par% |
| 6058 |
\fi% |
| 6059 |
}% |
| 6060 |
}\par% |
| 6061 |
\endgroup |
| 6062 |
} |
| 6063 |
\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}% |
| 6064 |
\newcommand*{\dictumwidth}{.3333\textwidth} |
| 6065 |
\newcommand*{\raggeddictum}{\raggedleft} |
| 6066 |
\newcommand*{\dictumauthorformat}[1]{(#1)} |
| 6067 |
\newcommand*{\raggeddictumtext}{\raggedright} |
| 6068 |
\newcommand*{\raggeddictumauthor}{\raggedleft} |
| 6069 |
\newkomafont{dictum}{\normalfont\normalcolor\maybesffamily\small} |
| 6070 |
\newkomafont{dictumauthor}{\itshape} |
| 6071 |
\aliaskomafont{dictumtext}{dictum} |
| 6072 |
\setlength{\skip\@mpfootins}{\skip\footins} |
| 6073 |
\setlength\fboxsep{3\p@} |
| 6074 |
\setlength\fboxrule{.4\p@} |
| 6075 |
\newcommand*{\new@tpo@label}{\@newl@bel{tpo}} |
| 6076 |
\AtBeginDocument{% |
| 6077 |
\if@filesw |
| 6078 |
\immediate\write\@auxout{% |
| 6079 |
\string\providecommand*\string\new@tpo@label[2]{}% |
| 6080 |
}% |
| 6081 |
\fi |
| 6082 |
} |
| 6083 |
\newcommand*{\scr@tpo}{0} |
| 6084 |
\newcommand*{\is@thispageodd}[1][\is@thispageodd@setlabel]{% |
| 6085 |
\@bsphack |
| 6086 |
\begingroup |
| 6087 |
\@tempcnta=\scr@tpo |
| 6088 |
\advance\@tempcnta by\@ne |
| 6089 |
\xdef\scr@tpo{\the\@tempcnta}% |
| 6090 |
\expandafter\ifx\csname tpo@\scr@tpo\endcsname\relax |
| 6091 |
\protect\G@refundefinedtrue |
| 6092 |
\ClassWarning{\KOMAClassName}{% |
| 6093 |
odd/even page label number \scr@tpo\space undefined}% |
| 6094 |
\edef\@tempa{\the\value{page}}% |
| 6095 |
\else |
| 6096 |
\edef\@tempa{\csname tpo@\scr@tpo\endcsname}% |
| 6097 |
\fi |
| 6098 |
\ifodd\number\@tempa |
| 6099 |
\aftergroup\thispagewasoddtrue |
| 6100 |
\else |
| 6101 |
\aftergroup\thispagewasoddfalse |
| 6102 |
\fi |
| 6103 |
\endgroup |
| 6104 |
\edef\is@thispageodd@setlabel{% |
| 6105 |
\if@filesw |
| 6106 |
\unexpanded{\protected@write\@auxout{\let\number\relax}}{% |
| 6107 |
\noexpand\string |
| 6108 |
\noexpand\new@tpo@label{\scr@tpo}{\noexpand\number\c@page}}% |
| 6109 |
\fi |
| 6110 |
\noexpand\def\noexpand\is@thispageodd@setlabel |
| 6111 |
{\unexpanded\expandafter{\is@thispageodd@setlabel}}% |
| 6112 |
}% |
| 6113 |
#1% |
| 6114 |
\@esphack |
| 6115 |
} |
| 6116 |
\newcommand*{\is@thispageodd@setlabel}{} |
| 6117 |
\newif\ifthispagewasodd |
| 6118 |
\providecommand*{\ifthispageodd}{% |
| 6119 |
\ClassWarning{\KOMAClassName}{% |
| 6120 |
Usage of deprecated command |
| 6121 |
`\string\ifthispageodd'.\MessageBreak |
| 6122 |
The command has been renamed because of a\MessageBreak |
| 6123 |
recommendation of The LaTeX Project Team.\MessageBreak |
| 6124 |
Please replace `\string\ifthispageodd' by `\string\Ifthispageodd'% |
| 6125 |
}% |
| 6126 |
\Ifthispageodd |
| 6127 |
} |
| 6128 |
\newcommand{\Ifthispageodd}{% |
| 6129 |
\is@thispageodd |
| 6130 |
\ifthispagewasodd |
| 6131 |
\expandafter\@firstoftwo |
| 6132 |
\else |
| 6133 |
\expandafter\@secondoftwo |
| 6134 |
\fi |
| 6135 |
} |
| 6136 |
\newcommand\marginline[1]{% |
| 6137 |
\marginpar[{\raggedleft #1}]{\raggedright #1}% |
| 6138 |
} |
| 6139 |
\scr@ifundefinedorrelax{textsubscript}{% |
| 6140 |
\DeclareRobustCommand*\textsubscript[1]{% |
| 6141 |
\@textsubscript{\selectfont#1}% |
| 6142 |
}% |
| 6143 |
}{% |
| 6144 |
\scr@ifundefinedorrelax{textsubscript }{% |
| 6145 |
\DeclareRobustCommand*\textsubscript[1]{% |
| 6146 |
\@textsubscript{\selectfont#1}% |
| 6147 |
}% |
| 6148 |
}{}% |
| 6149 |
} |
| 6150 |
\providecommand*{\@textsubscript}[1]{% |
| 6151 |
{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}% |
| 6152 |
} |
| 6153 |
\providecommand*{\scr@endstrut}{\unskip\ifhmode\nobreak\strut\fi} |
| 6154 |
\newcommand*{\scr@package@not@recommended}[2]{% |
| 6155 |
\scr@ifundefinedorrelax{class@shoulddisablepackagewarning@list}{% |
| 6156 |
\@firstofone |
| 6157 |
}{% |
| 6158 |
\edef\reserved@a{% |
| 6159 |
\noexpand\in@{#1}{\class@shoulddisablepackagewarning@list}}% |
| 6160 |
\reserved@a |
| 6161 |
\ifin@\expandafter\@gobble\else\expandafter\@firstofone\fi |
| 6162 |
}{% |
| 6163 |
\expandafter\providecommand\csname scr@class@#1@warning\endcsname{% |
| 6164 |
\ClassWarning{\KOMAClassName}{% |
| 6165 |
Usage of package `#1' together\MessageBreak |
| 6166 |
with a KOMA-Script class is not recommended.\MessageBreak |
| 6167 |
\if\relax\detokenize{#2}\relax\else |
| 6168 |
I'd suggest to use #2.\MessageBreak |
| 6169 |
\fi |
| 6170 |
Nevertheless, using requested\MessageBreak |
| 6171 |
package `#1'% |
| 6172 |
}% |
| 6173 |
}% |
| 6174 |
\BeforePackage{#1}{% |
| 6175 |
\csname scr@class@#1@warning\endcsname |
| 6176 |
}% |
| 6177 |
}% |
| 6178 |
}% |
| 6179 |
\scr@package@not@recommended{emptypage}{% |
| 6180 |
option\MessageBreak |
| 6181 |
`cleardoublepage' with one of it's\MessageBreak |
| 6182 |
several values} |
| 6183 |
\scr@package@not@recommended{fancyhdr}{% |
| 6184 |
\MessageBreak |
| 6185 |
package `scrlayer' or `scrlayer-scrpage', because\MessageBreak |
| 6186 |
they support KOMA-Script classes.\MessageBreak |
| 6187 |
With `fancyhdr' several features of class `\KOMAClassName'\MessageBreak |
| 6188 |
like options `headsepline', `footsepline' or command\MessageBreak |
| 6189 |
`\string\MakeMarkcase' and the commands `\string\setkomafont' and\MessageBreak |
| 6190 |
`\string\addtokomafont' for the page style elements need\MessageBreak |
| 6191 |
explicite user intervention to work} |
| 6192 |
\scr@package@not@recommended{minitoc}{} |
| 6193 |
\scr@package@not@recommended{multitoc}{% |
| 6194 |
package `multicol' and, e.g.:\MessageBreak |
| 6195 |
\space\space |
| 6196 |
\string\BeforeStartingTOC{\string\begin{multicols}{2}}\MessageBreak |
| 6197 |
\space\space |
| 6198 |
\string\AfterStartingTOC{\string\end{multicols}}\MessageBreak |
| 6199 |
to make all ToCs two-columned.\MessageBreak |
| 6200 |
\@ifpackagelater{2018/07/18}{}{% |
| 6201 |
Note, package `multitoc' breaks additional\MessageBreak |
| 6202 |
ToCs generated by `\string\DeclareNewTOC' or\MessageBreak |
| 6203 |
packages like `listings' or `newcaption' and\MessageBreak |
| 6204 |
even the standard table of contents,\MessageBreak |
| 6205 |
list of figures or list of tables,\MessageBreak |
| 6206 |
if you omit the corresponding options `toc',\MessageBreak |
| 6207 |
`lof' or `lot'.% |
| 6208 |
}% |
| 6209 |
} |
| 6210 |
\scr@package@not@recommended{parskip}{% |
| 6211 |
option\MessageBreak |
| 6212 |
`parskip' with one of it's several values} |
| 6213 |
\scr@package@not@recommended{titleps}{% |
| 6214 |
package `scrlayer-scrpage'} |
| 6215 |
\scr@package@not@recommended{titlesec}{% |
| 6216 |
KOMA-Script features\MessageBreak |
| 6217 |
like \string\setkomafont, \string\RedeclareSectionCommand, |
| 6218 |
\string\sectionlinesformat\MessageBreak |
| 6219 |
and several others to re-configure section\MessageBreak |
| 6220 |
headings} |
| 6221 |
\AfterPackage*{sectsty}{% |
| 6222 |
\@ifpackagelater{sectsty}{2002/02/26}{% |
| 6223 |
\ClassInfo{\KOMAClassName}{Unknown `sectsty' release.\MessageBreak |
| 6224 |
Cross your fingers, that is compatible% |
| 6225 |
}% |
| 6226 |
}{% |
| 6227 |
\ClassWarning{\KOMAClassName}{% |
| 6228 |
Incompatible package `sectsty' loaded!\MessageBreak |
| 6229 |
Package `sectsty' up to version 2.0.2 is incompatible\MessageBreak |
| 6230 |
with KOMA-Script from version 2.8e released in 2001.\MessageBreak |
| 6231 |
You should avoid that package and configure the\MessageBreak |
| 6232 |
section titles of your document using the KOMA-Script\MessageBreak |
| 6233 |
user interface, e.g., \string\chapterlinesformat,\MessageBreak |
| 6234 |
\string\RedeclareSectionCommand\space etc. or you should ask\MessageBreak |
| 6235 |
the `sectsty' maintainer for a more compatible release.\MessageBreak |
| 6236 |
Ignoring this warning could result in several error\MessageBreak |
| 6237 |
messages and formatting issues after loading package\MessageBreak |
| 6238 |
`sectsty'% |
| 6239 |
}% |
| 6240 |
}% |
| 6241 |
} |
| 6242 |
\scr@package@not@recommended{tocbibind}{% |
| 6243 |
options like `listof=totoc'\MessageBreak |
| 6244 |
or `bibliography=totoc', or commands like\MessageBreak |
| 6245 |
`\string\setuptoc{toc}{totoc}' instead of this package,\MessageBreak |
| 6246 |
because it breaks several KOMA-Script features of\MessageBreak |
| 6247 |
the list of figures, list of tables, bibliography,\MessageBreak |
| 6248 |
index and the running head% |
| 6249 |
} |
| 6250 |
\scr@package@not@recommended{tocloft}{% |
| 6251 |
options like `listof=entryprefix',\MessageBreak |
| 6252 |
commands like `\string\listoflofentryname' or\MessageBreak |
| 6253 |
`\string\listoflotentryname', |
| 6254 |
and `\string\DeclareTOCStyleEntry' or\MessageBreak |
| 6255 |
`\string\RedeclareSectionCommand' |
| 6256 |
instead of this package,\MessageBreak |
| 6257 |
because it breaks several KOMA-Script features of\MessageBreak |
| 6258 |
the list of figures, list of tables and table of\MessageBreak |
| 6259 |
contents, i.e., options like `listof=numbered',\MessageBreak |
| 6260 |
`listof=flat or `toc=flat', commands like\MessageBreak |
| 6261 |
`\string\BeforeTOCHead{...}' and |
| 6262 |
`\string\AfterTOCHead{...}',\MessageBreak |
| 6263 |
`\string\BeforeStartingTOC{...}' and |
| 6264 |
\string\AfterStartingTOC{...}',\MessageBreak |
| 6265 |
all features of `\string\DeclareTOCStyleEntry',\MessageBreak |
| 6266 |
and the ToC entry features of `\string\DeclareSecionCommand'\MessageBreak |
| 6267 |
and `\string\RedeclareSectionCommand' of levels\MessageBreak |
| 6268 |
`part', |
| 6269 |
`section', `subsection',\MessageBreak |
| 6270 |
`subsubsection', `paragraph' and `subparagraph'% |
| 6271 |
} |
| 6272 |
\BeforePackage{minitoc}{% |
| 6273 |
\let\scr@mt@saved@sect\@sect |
| 6274 |
} |
| 6275 |
\AfterPackage{minitoc}{% |
| 6276 |
\def\@tempa#1#2#3#4#5#6[#7]#8{% |
| 6277 |
\ifnum #2<1 \relax |
| 6278 |
\addtocontents{toc}{\protect\sectbegin} |
| 6279 |
\fi |
| 6280 |
\stc@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% |
| 6281 |
}% |
| 6282 |
\ifx\@sect\@tempa |
| 6283 |
\def\@tempa#1#2#3#4#5#6[#7]#8{ |
| 6284 |
\expandafter |
| 6285 |
\ifx\csname #1\endcsname\section\relax |
| 6286 |
\addcontentsline{lof}{xsect}{#7}% |
| 6287 |
\addcontentsline{lot}{xsect}{#7}% |
| 6288 |
\fi |
| 6289 |
\ifx\csname #1\endcsname\starsection\relax |
| 6290 |
\addcontentsline{lof}{xsect}{#7}% |
| 6291 |
\addcontentsline{lot}{xsect}{#7}% |
| 6292 |
\fi |
| 6293 |
\ifnum #2>\c@secnumdepth\relax |
| 6294 |
\let\@svsec\@empty |
| 6295 |
\else |
| 6296 |
\refstepcounter{#1}% |
| 6297 |
\edef\@svsec{\csname the#1\endcsname\hskip 1em}% |
| 6298 |
\fi |
| 6299 |
\@tempskipa #5\relax |
| 6300 |
\ifdim \@tempskipa>\z@ |
| 6301 |
\begingroup #6\relax |
| 6302 |
\@hangfrom{\hskip #3\relax\@svsec}% |
| 6303 |
{\interlinepenalty \@M #8\par}% |
| 6304 |
\endgroup |
| 6305 |
\csname #1mark\endcsname{#7}% |
| 6306 |
\addcontentsline{toc}{#1}{% |
| 6307 |
\ifnum #2>\c@secnumdepth\relax |
| 6308 |
\else |
| 6309 |
\protect\numberline{\csname the#1\endcsname}% |
| 6310 |
\fi |
| 6311 |
#7% |
| 6312 |
}% |
| 6313 |
\else |
| 6314 |
\def\@svsechd{#6\hskip #3\relax |
| 6315 |
\@svsec #8\csname #1mark\endcsname{#7}% |
| 6316 |
\addcontentsline{toc}{#1}{% |
| 6317 |
\ifnum #2>\c@secnumdepth\relax |
| 6318 |
\else |
| 6319 |
\protect\numberline{\csname the#1\endcsname} |
| 6320 |
\fi |
| 6321 |
#7}% |
| 6322 |
}% |
| 6323 |
\fi |
| 6324 |
\@xsect{#5}% |
| 6325 |
}% |
| 6326 |
\ifx\stc@sect\@tempa |
| 6327 |
\ClassWarning{\KOMAClassName}{% |
| 6328 |
Redefining minitoc's internal command |
| 6329 |
`\string\stc@sect'\MessageBreak |
| 6330 |
to prevent minitoc to destroy several features\MessageBreak |
| 6331 |
of KOMA-Script% |
| 6332 |
}% |
| 6333 |
\let\stc@sect\scr@mt@saved@sect |
| 6334 |
\else |
| 6335 |
\ClassInfo{\KOMAClassName}{% |
| 6336 |
Deactivating the `minitoc' workaround,\MessageBreak |
| 6337 |
because of unexpected definition of\MessageBreak |
| 6338 |
`\string\stc@sect'% |
| 6339 |
}% |
| 6340 |
\let\scr@mt@saved@sect\relax |
| 6341 |
\fi |
| 6342 |
\else |
| 6343 |
\ifx\@sect\scr@mt@saved@sect |
| 6344 |
\ClassInfo{\KOMAClassName}{% |
| 6345 |
Deactivating the `minitoc' workaround for |
| 6346 |
`\string\@sect',\MessageBreak |
| 6347 |
because it is not needed% |
| 6348 |
}% |
| 6349 |
\else |
| 6350 |
\ClassInfo{\KOMAClassName}{% |
| 6351 |
Deactivating the `minitoc' workaround,\MessageBreak |
| 6352 |
because of unexpected definition of\MessageBreak |
| 6353 |
`\string\@sect'% |
| 6354 |
}% |
| 6355 |
\fi |
| 6356 |
\let\scr@mt@saved@sect\relax |
| 6357 |
\fi |
| 6358 |
} |
| 6359 |
%%% From File: $Id: scrkernel-pagestyles.dtx 4058 2023-06-16 08:32:27Z kohm $ |
| 6360 |
%%% (run: body) |
| 6361 |
\newcommand*{\set@tempdima@hw}{% |
| 6362 |
\setlength{\@tempdima}{\textwidth}% |
| 6363 |
\if@mincl |
| 6364 |
\addtolength{\@tempdima}{\marginparsep}% |
| 6365 |
\addtolength{\@tempdima}{\marginparwidth}% |
| 6366 |
\fi |
| 6367 |
} |
| 6368 |
\newcommand*{\pnumfont}{\normalfont\normalcolor} |
| 6369 |
\newcommand*{\headfont}{\normalfont\normalcolor\slshape} |
| 6370 |
\newcommand*{\footfont}{} |
| 6371 |
\newcommand*{\scr@fnt@pagenumber}{\pnumfont} |
| 6372 |
\aliaskomafont{pagination}{pagenumber} |
| 6373 |
\newcommand*{\scr@fnt@pageheadfoot}{\headfont} |
| 6374 |
\aliaskomafont{pagehead}{pageheadfoot} |
| 6375 |
\newcommand*{\scr@fnt@pagefoot}{\footfont} |
| 6376 |
\newcommand*{\scr@fnt@wrn@pagefoot}[1]{% |
| 6377 |
This class does not use font element `pagefoot'!\MessageBreak |
| 6378 |
Maybe you should load package `scrlayer-scrpage',\MessageBreak |
| 6379 |
before using this element% |
| 6380 |
} |
| 6381 |
\newcommand*{% |
| 6382 |
\pagemark |
| 6383 |
}{% |
| 6384 |
{\usekomafont{pagenumber}{% |
| 6385 |
\thepage}}} |
| 6386 |
\renewcommand*{\ps@plain}{% |
| 6387 |
\renewcommand*{\@oddhead}{}% |
| 6388 |
\let\@evenhead\@oddhead |
| 6389 |
\renewcommand*{\@evenfoot}{% |
| 6390 |
\set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{% |
| 6391 |
\if@fsl \hrule \vskip 3\p@ \fi |
| 6392 |
\hb@xt@ \@tempdima{{\pagemark\hfil}}}}}% |
| 6393 |
\renewcommand*{\@oddfoot}{% |
| 6394 |
\set@tempdima@hw\hb@xt@ \@tempdima{\vbox{% |
| 6395 |
\if@fsl \hrule \vskip 3\p@ \fi |
| 6396 |
\hb@xt@ \@tempdima{{\hfil\pagemark |
| 6397 |
\if@twoside\else\hfil\fi}}}}\hss}% |
| 6398 |
}% |
| 6399 |
\newcommand*{\ps@headings}{\let\@mkboth\markboth |
| 6400 |
\renewcommand*{\@evenhead}{% |
| 6401 |
\set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{% |
| 6402 |
\hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}% |
| 6403 |
\if@hsl \vskip 1.5\p@ \hrule \fi}}}% |
| 6404 |
\renewcommand*{\@oddhead}{% |
| 6405 |
\set@tempdima@hw\hb@xt@ \@tempdima{\vbox{% |
| 6406 |
\hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark |
| 6407 |
\if@twoside\else\hfil\fi}}% |
| 6408 |
\if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}% |
| 6409 |
\renewcommand*{\@evenfoot}{% |
| 6410 |
\set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{% |
| 6411 |
\if@fsl \hrule \vskip 3\p@ \fi |
| 6412 |
\hb@xt@ \@tempdima{{\pagemark\hfil}}}}}% |
| 6413 |
\renewcommand*{\@oddfoot}{% |
| 6414 |
\set@tempdima@hw\hb@xt@ \@tempdima{\vbox{% |
| 6415 |
\if@fsl \hrule \vskip 3\p@ \fi |
| 6416 |
\hb@xt@ \@tempdima{{\hfil\pagemark |
| 6417 |
\if@twoside\else\hfil\fi}}}}\hss}% |
| 6418 |
\renewcommand*{\chaptermark}[1]{% |
| 6419 |
\if@twoside\expandafter\markboth\else\expandafter\markright\fi |
| 6420 |
{% |
| 6421 |
\Ifnumbered{chapter}{% |
| 6422 |
\if@mainmatter |
| 6423 |
\MakeMarkcase{\chaptermarkformat}% |
| 6424 |
\fi |
| 6425 |
}{}\MakeMarkcase{##1}% |
| 6426 |
}{}% |
| 6427 |
}% |
| 6428 |
\renewcommand*{\sectionmark}[1]{% |
| 6429 |
\if@twoside |
| 6430 |
\markright{% |
| 6431 |
\Ifnumbered{section}{\MakeMarkcase{\sectionmarkformat}}{}% |
| 6432 |
\MakeMarkcase{##1}% |
| 6433 |
}% |
| 6434 |
\fi |
| 6435 |
}% |
| 6436 |
}% |
| 6437 |
\newcommand*{\ps@myheadings}{\let\@mkboth\@gobbletwo |
| 6438 |
\renewcommand*{\@evenhead}{% |
| 6439 |
\set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{% |
| 6440 |
\hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}% |
| 6441 |
\if@hsl \vskip 1.5\p@ \hrule \fi}}}% |
| 6442 |
\renewcommand*{\@oddhead}{% |
| 6443 |
\set@tempdima@hw\hb@xt@ \@tempdima{\vbox{% |
| 6444 |
\hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark |
| 6445 |
\if@twoside\else\hfil\fi}}% |
| 6446 |
\if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}% |
| 6447 |
\renewcommand*{\@evenfoot}{% |
| 6448 |
\set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{% |
| 6449 |
\if@fsl \hrule \vskip 3\p@ \fi |
| 6450 |
\hb@xt@ \@tempdima{{\pagemark\hfil}}}}}% |
| 6451 |
\renewcommand*{\@oddfoot}{% |
| 6452 |
\set@tempdima@hw\hb@xt@ \@tempdima{\vbox{% |
| 6453 |
\if@fsl \hrule \vskip 3\p@ \fi |
| 6454 |
\hb@xt@ \@tempdima{{\hfil\pagemark |
| 6455 |
\if@twoside\else\hfil\fi}}}}\hss}% |
| 6456 |
\renewcommand*{\chaptermark}[1]{}% |
| 6457 |
\renewcommand*{\sectionmark}[1]{}% |
| 6458 |
} |
| 6459 |
\newcommand*{\titlepagestyle}{plain} |
| 6460 |
\newcommand*{\indexpagestyle}{plain} |
| 6461 |
\pagestyle{headings} |
| 6462 |
\pagenumbering{arabic} |
| 6463 |
%%% From File: $Id: scrlayer.dtx 4145 2025-05-13 16:54:14Z kohm $ |
| 6464 |
%%% (run: body) |
| 6465 |
\providecommand*{\@mkleft}{% |
| 6466 |
\IfActiveMkBoth{\markleft}{\@gobble}% |
| 6467 |
}% |
| 6468 |
\providecommand*{\@mkright}{% |
| 6469 |
\IfActiveMkBoth{\markright}{\@gobble}% |
| 6470 |
}% |
| 6471 |
\providecommand{\@mkdouble}[1]{% |
| 6472 |
\@mkboth{#1}{#1}% |
| 6473 |
} |
| 6474 |
%%% From File: $Id: scrkernel-floats.dtx 4197 2025-08-15 09:13:30Z kohm $ |
| 6475 |
%%% (run: body) |
| 6476 |
\newlength{\abovecaptionskip} |
| 6477 |
\newlength{\belowcaptionskip} |
| 6478 |
\setlength{\abovecaptionskip}{10\p@} |
| 6479 |
\setlength{\belowcaptionskip}{0\p@} |
| 6480 |
\newcommand*{\captionformat}{:\ } |
| 6481 |
\AddToHook{package/caption3/after}{% |
| 6482 |
\DeclareCaptionLabelSeparator{koma}{\captionformat}% |
| 6483 |
\SetCaptionDefault{labelseparator}{koma}% |
| 6484 |
} |
| 6485 |
\newcommand*{\scap@caption}{} |
| 6486 |
\newcommand*{\scap@width}{\linewidth} |
| 6487 |
\newcommand*{\scap@move}{\z@} |
| 6488 |
\newif\ifscap@alt |
| 6489 |
\newcommand*{\scap@currentlabel}{} |
| 6490 |
\newcommand*{\scap@currentlabelname}{} |
| 6491 |
\newcommand*{\scap@currentHref}{} |
| 6492 |
\newcommand*{\@captionbeside}{} |
| 6493 |
\long\def\@captionbeside[#1]#2{% |
| 6494 |
\kernel@ifnextchar [%] |
| 6495 |
{\@@captionbeside[{#1}]{#2}} |
| 6496 |
{\c@pti@nb@sid@[{#1}]{#2}}% |
| 6497 |
} |
| 6498 |
\newcommand*{\@@captionbeside}{} |
| 6499 |
\long\def\@@captionbeside[#1]#2[#3]{% |
| 6500 |
\def\scap@pos{#3}% |
| 6501 |
\kernel@ifnextchar [%] |
| 6502 |
{\@@@captionbeside[{#1}]{#2}} |
| 6503 |
{\c@pti@nb@sid@[{#1}]{#2}}% |
| 6504 |
} |
| 6505 |
\newcommand*{\@@@captionbeside}{} |
| 6506 |
\long\def\@@@captionbeside[#1]#2[#3]{% |
| 6507 |
\def\scap@width{#3}% |
| 6508 |
\kernel@ifnextchar [%] |
| 6509 |
{\@@@@captionbeside[{#1}]{#2}} |
| 6510 |
{\setlength{\@tempdima}{#3}% |
| 6511 |
\addtolength{\@tempdima}{-\linewidth}% |
| 6512 |
\setlength{\@tempdima}{-.5\@tempdima}% |
| 6513 |
\edef\scap@move{\the\@tempdima}% |
| 6514 |
\c@pti@nb@sid@[{#1}]{#2}}% |
| 6515 |
} |
| 6516 |
\newcommand*{\@@@@captionbeside}{} |
| 6517 |
\long\def\@@@@captionbeside[#1]#2[#3]{% |
| 6518 |
\def\scap@move{#3}% |
| 6519 |
\kernel@ifstar |
| 6520 |
{\scap@alttrue\c@pti@nb@sid@[{#1}]{#2}} |
| 6521 |
{\scap@altfalse\c@pti@nb@sid@[{#1}]{#2}}% |
| 6522 |
} |
| 6523 |
\newbox\c@pti@nb@sid@b@x |
| 6524 |
\newcommand{\c@pti@nb@sid@}{} |
| 6525 |
\long\def\c@pti@nb@sid@[#1]#2{% |
| 6526 |
\def\scap@caption{% |
| 6527 |
\if c\scap@valign |
| 6528 |
\setlength{\abovecaptionskip}{\z@}% |
| 6529 |
\else \if t\scap@valign |
| 6530 |
\setlength{\abovecaptionskip}{-\ht\strutbox}% |
| 6531 |
\else \if b\scap@valign |
| 6532 |
\setlength{\abovecaptionskip}{\z@}% |
| 6533 |
\fi |
| 6534 |
\fi |
| 6535 |
\fi |
| 6536 |
\setlength{\belowcaptionskip}{-\dp\strutbox}% |
| 6537 |
\captionbelow[{#1}]{#2}% |
| 6538 |
}% |
| 6539 |
\begin{lrbox}{\c@pti@nb@sid@b@x}% |
| 6540 |
} |
| 6541 |
\newenvironment*{captionbeside}{% |
| 6542 |
\@dblarg\@captionbeside |
| 6543 |
}{% |
| 6544 |
\end{lrbox}% |
| 6545 |
\settowidth{\@tempdima}{\usebox\c@pti@nb@sid@b@x}% |
| 6546 |
\setlength{\@tempdimb}{\scap@width}% |
| 6547 |
\addtolength{\@tempdimb}{-\@tempdima}% |
| 6548 |
\addtolength{\@tempdimb}{-\columnsep}% |
| 6549 |
\ifdim \@tempdimb<2em |
| 6550 |
\ClassWarning{\KOMAClassName}{% |
| 6551 |
caption beside will be very, very small.\MessageBreak |
| 6552 |
In most cases this will result in overfull and\MessageBreak |
| 6553 |
underfull \string\hbox\space messages% |
| 6554 |
}% |
| 6555 |
\fi |
| 6556 |
\onelinecaptionsfalse |
| 6557 |
\setcapwidth[r]{\@tempdimb}% |
| 6558 |
\let\@tempa\scap@pos |
| 6559 |
\setlength{\@tempdimc}{\scap@move}% |
| 6560 |
\if i\scap@pos\def\@tempa{l}\fi |
| 6561 |
\if o\scap@pos\def\@tempa{r}\fi |
| 6562 |
\if@twoside |
| 6563 |
\Ifthispageodd{}{% |
| 6564 |
\if o\scap@pos\def\@tempa{l}\fi |
| 6565 |
\if i\scap@pos\def\@tempa{r}\fi |
| 6566 |
\ifscap@alt |
| 6567 |
\addtolength{\@tempdimc}{\scap@width}% |
| 6568 |
\addtolength{\@tempdimc}{-\linewidth}% |
| 6569 |
\setlength{\@tempdimc}{-\@tempdimc}% |
| 6570 |
\fi |
| 6571 |
}% |
| 6572 |
\fi |
| 6573 |
\hspace*{\@tempdimc}% |
| 6574 |
\if l\@tempa |
| 6575 |
\rlap{% |
| 6576 |
\parbox[\scap@valign]{\@tempdimb}{\scap@caption |
| 6577 |
\global\let\scap@currentlabel\@currentlabel |
| 6578 |
\global\let\scap@currentcounter\@currentcounter |
| 6579 |
\global\let\scap@currentlabelname\@currentlabelname |
| 6580 |
\global\let\scap@currentHref\@currentHref |
| 6581 |
}% |
| 6582 |
\nobreak\hskip\columnsep |
| 6583 |
\parbox[\scap@valign]{\wd\c@pti@nb@sid@b@x}{\usebox\c@pti@nb@sid@b@x}% |
| 6584 |
}% |
| 6585 |
\else |
| 6586 |
\rlap{% |
| 6587 |
\parbox[\scap@valign]{\wd\c@pti@nb@sid@b@x}{\usebox\c@pti@nb@sid@b@x}% |
| 6588 |
\nobreak\hskip\columnsep |
| 6589 |
\parbox[\scap@valign]{\@tempdimb}{\scap@caption |
| 6590 |
\global\let\scap@currentlabel\@currentlabel |
| 6591 |
\global\let\scap@currentcounter\@currentcounter |
| 6592 |
\global\let\scap@currentlabelname\@currentlabelname |
| 6593 |
\global\let\scap@currentHref\@currentHref |
| 6594 |
}% |
| 6595 |
}% |
| 6596 |
\fi |
| 6597 |
\par |
| 6598 |
\aftergroup\let\aftergroup\@currentlabel\aftergroup\scap@currentlabel |
| 6599 |
\aftergroup\let\aftergroup\@currentcounter\aftergroup\scap@currentcounter |
| 6600 |
\aftergroup\let\aftergroup\@currentlabelname\aftergroup\scap@currentlabelname |
| 6601 |
\aftergroup\let\aftergroup\@currentHref\aftergroup\scap@currentHref |
| 6602 |
} |
| 6603 |
\newcommand*\capfont{\normalfont\normalcolor} |
| 6604 |
\newcommand*\caplabelfont{\normalfont\normalcolor} |
| 6605 |
\newcommand*{\scr@fnt@caption}{\capfont} |
| 6606 |
\newcommand*{\scr@fnt@captionlabel}{\caplabelfont} |
| 6607 |
\AddToHook{package/caption3/after}{% |
| 6608 |
\DeclareCaptionFont{scr@font}{\scr@fnt@caption}% |
| 6609 |
\DeclareCaptionFont{scr@labelfont}{\scr@fnt@captionlabel}% |
| 6610 |
\SetCaptionDefault{font}{scr@font}% |
| 6611 |
\SetCaptionDefault{labelfont}{scr@labelfont}% |
| 6612 |
} |
| 6613 |
\newif\ifdofullc@p |
| 6614 |
\dofullc@ptrue |
| 6615 |
\newif\if@capbreak |
| 6616 |
\@capbreakfalse |
| 6617 |
\ExplSyntaxOn |
| 6618 |
\NewDocumentCommand { \setcapindent } { s m } |
| 6619 |
{ |
| 6620 |
\IfBooleanTF {#1} |
| 6621 |
{ |
| 6622 |
\cs_set:Npe \cap@indent { \dim_eval:n { #2 } } |
| 6623 |
\@capbreaktrue |
| 6624 |
} |
| 6625 |
{ |
| 6626 |
\cs_set:Npe \cap@indent { \dim_eval:n { #2 } } |
| 6627 |
\@capbreakfalse |
| 6628 |
} |
| 6629 |
\dofullc@pfalse |
| 6630 |
\__scrkernel_at_caption_package:n |
| 6631 |
{ |
| 6632 |
\exp_args:No \msg_warning:nnee { \KOMAClassName } |
| 6633 |
{ using-caption } |
| 6634 |
{ \token_to_str:N\setcapindent\IfBooleanT{#1}*{#2} } |
| 6635 |
{ |
| 6636 |
\token_to_str:N \captionsetup |
| 6637 |
{ indent=\ifdim\cap@indent<\z@\z@\else\cap@indent\fi } |
| 6638 |
} |
| 6639 |
\captionsetup { indent=\ifdim\cap@indent<\z@\z@\else\cap@indent\fi } |
| 6640 |
} |
| 6641 |
} |
| 6642 |
\ExplSyntaxOff |
| 6643 |
\newcommand*{\setcaphanging}{\dofullc@ptrue\@capbreakfalse} |
| 6644 |
\expandafter\ifnum\scr@v@is@ge{3.41}% |
| 6645 |
\newcommand*{\captionnopagebreak}{\nopagebreak} |
| 6646 |
\else |
| 6647 |
\newcommand*{\captionnopagebreak}{} |
| 6648 |
\fi |
| 6649 |
\newcommand*{\@abovecaptionbreak}{} |
| 6650 |
\newcommand*{\@belowcaptionbreak}{} |
| 6651 |
\let\@belowcaptionbreak\captionnopagebreak |
| 6652 |
\IfFormatAtLeastTF{2023/11/01}{% |
| 6653 |
\NewSocketPlug{tocbasic/swapskip/after}{swapbreak}{% |
| 6654 |
\let\@abovecaptionbreak\captionnopagebreak |
| 6655 |
\let\@belowcaptionbreak\relax |
| 6656 |
}% |
| 6657 |
\AssignSocketPlug{tocbasic/swapskip/after}{swapbreak}% |
| 6658 |
}{% |
| 6659 |
\AddToHook{tocbasic/swapskip/after}{& |
| 6660 |
\let\@abovecaptionbreak\captionnopagebreak |
| 6661 |
\let\@belowcaptionbreak\relax |
| 6662 |
}% |
| 6663 |
} |
| 6664 |
\newcommand{\@makecaption}[2]{% |
| 6665 |
\@abovecaptionbreak\vskip\abovecaptionskip\@abovecaptionbreak |
| 6666 |
\@@makecaption\@firstofone{#1}{#2}% |
| 6667 |
\@belowcaptionbreak\vskip\belowcaptionskip\@belowcaptionbreak |
| 6668 |
} |
| 6669 |
\newcommand*{\cap@width}{\hsize} |
| 6670 |
\newcommand*{\cap@left}{\hfill} |
| 6671 |
\newcommand*{\cap@right}{\hfill} |
| 6672 |
\ExplSyntaxOn |
| 6673 |
\prop_put:Non \g_msg_module_type_prop { \KOMAClassName } { Class } |
| 6674 |
\exp_args:No \msg_new:nnn { \KOMAClassName } |
| 6675 |
{ minimum-value-needed } |
| 6676 |
{ |
| 6677 |
You've~tried~#2~\msg_line_context:,~ |
| 6678 |
but~values~less~than~#1~are~not~allowed.~ |
| 6679 |
Using~#1~instead. |
| 6680 |
} |
| 6681 |
\exp_args:No \msg_new:nnn { \KOMAClassName } |
| 6682 |
{ caption-not-support-setcapwidth-option } |
| 6683 |
{ |
| 6684 |
Ignoring~command~ |
| 6685 |
\token_to_str:N \setcapwidth [#1]{...}\\ |
| 6686 |
because~the~caption~package~is~being\\ |
| 6687 |
used~\msg_line_context:. |
| 6688 |
} |
| 6689 |
\exp_args:No \msg_new:nnn { \KOMAClassName } |
| 6690 |
{ caption-not-support-setcapdynwidth } |
| 6691 |
{ |
| 6692 |
Ignoring~\token_to_str:N \setcapdynwidth \c_space_token |
| 6693 |
because~the~caption~package~is~being~used~\msg_line_context:. |
| 6694 |
} |
| 6695 |
\exp_args:No \msg_new:nnnn { \KOMAClassName } |
| 6696 |
{ setcaption-unknown-option } |
| 6697 |
{ unknown~optional~position~argument~[#1]~\msg_line_context: } |
| 6698 |
{ |
| 6699 |
Only~ONE~of~c,~l,~r,~i,~o~is~allowed~as~optional~argument~to~ |
| 6700 |
\token_to_str:N \setcapwidth \c_space_tl and~ |
| 6701 |
\token_to_str:N \setcapdynwidth \c_space_tl \msg_line_context:. |
| 6702 |
} |
| 6703 |
\exp_args:No \msg_new:nnn { \KOMAClassName } |
| 6704 |
{ using-caption } |
| 6705 |
{ |
| 6706 |
Mapping~of\\ |
| 6707 |
\c_space_tl #1\\ |
| 6708 |
to\\ |
| 6709 |
\c_space_tl #2\\ |
| 6710 |
because~the~caption~package~is~being~used.\\ |
| 6711 |
When~using~the~caption~package,~it~is~recommended\\ |
| 6712 |
to~use~the~options~of~this~package~directly~instead\\ |
| 6713 |
of~the~KOMA-Script~setting~\msg_line_context:. |
| 6714 |
} |
| 6715 |
\NewDocumentCommand { \setcapwidth } { om } |
| 6716 |
{ |
| 6717 |
\dim_compare:nNnTF { #2 } < { \c_zero_dim } |
| 6718 |
{ |
| 6719 |
\exp_args:No \msg_warning:nnne { \KOMAClassName } |
| 6720 |
{ minimum-value-needed } { 0pt } { \dim_eval:n { #2 } } |
| 6721 |
\def\cap@width{0pt} |
| 6722 |
} |
| 6723 |
{ |
| 6724 |
\cs_set:Npe \cap@width { \dim_eval:n { #2 } } |
| 6725 |
} |
| 6726 |
\IfPackageLoadedF { caption } { \__scrkernel_set_cap_left_right:n { #1 } } |
| 6727 |
\__scrkernel_at_caption_package:n |
| 6728 |
{ |
| 6729 |
\IfValueTF { #1 } |
| 6730 |
{ |
| 6731 |
\exp_args:No \msg_warning:nne { \KOMAClassName } |
| 6732 |
{ caption-not-support-setcapwidth-option } { #1 } |
| 6733 |
} |
| 6734 |
{ |
| 6735 |
\exp_args:No \msg_warning:nnne { \KOMAClassName } |
| 6736 |
{ using-caption } |
| 6737 |
{ \setcapwidth{#2} } |
| 6738 |
{ \token_to_str:N \captionsetup { width=\cap@width } } |
| 6739 |
\captionsetup { width=\cap@width } |
| 6740 |
} |
| 6741 |
} |
| 6742 |
} |
| 6743 |
\cs_new:Nn \__scrkernel_at_caption_package:n |
| 6744 |
{ |
| 6745 |
\IfPackageLoadedTF { caption3 } |
| 6746 |
{ |
| 6747 |
\cs_if_eq:NNTF \AtCaptionPackage \@notprerr |
| 6748 |
{ #1 } |
| 6749 |
{ \AtCaptionPackage { #1 } } |
| 6750 |
} |
| 6751 |
{ |
| 6752 |
\hook_gput_code:nnn { pkg / caption3 / after } { \KOMAClassName } |
| 6753 |
{ \AtCaptionPackage { #1 } } |
| 6754 |
} |
| 6755 |
} |
| 6756 |
\__scrkernel_at_caption_package:n |
| 6757 |
{ |
| 6758 |
\cs_set:Nn \__scrkernel_at_caption_package:n { ##1 } |
| 6759 |
} |
| 6760 |
\cs_new:Nn \__scrkernel_set_cap_left_right:n |
| 6761 |
{ |
| 6762 |
\str_case:enF { #1 } |
| 6763 |
{ |
| 6764 |
{ c } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \hfill |
| 6765 |
\cs_set_eq:NN \cap@right \hfill } } |
| 6766 |
{ l } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \relax |
| 6767 |
\cs_set_eq:NN \cap@right \hfill } } |
| 6768 |
{ r } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \hfill |
| 6769 |
\cs_set_eq:NN \cap@right \relax } } |
| 6770 |
{ i } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \relax |
| 6771 |
\cs_set_eq:NN \cap@right \hfill |
| 6772 |
\if@twoside |
| 6773 |
\Ifthispageodd {} { |
| 6774 |
\cs_set_eq:NN \cap@left \hfill |
| 6775 |
\cs_set_eq:NN \cap@right \relax |
| 6776 |
} |
| 6777 |
\fi } } |
| 6778 |
{ o } { \cs_set:Npn \cap@margin { \cs_set_eq:NN \cap@left \hfill |
| 6779 |
\cs_set_eq:NN \cap@right \relax |
| 6780 |
\if@twoside |
| 6781 |
\Ifthispageodd { |
| 6782 |
\cs_set_eq:NN \cap@left \relax |
| 6783 |
\cs_set_eq:NN \cap@right \hfill |
| 6784 |
} { } |
| 6785 |
\fi } } |
| 6786 |
} |
| 6787 |
{ |
| 6788 |
\IfValueT{ #1 } |
| 6789 |
{ |
| 6790 |
\exp_args:No \msg_error:nnn { \KOMAClassName } |
| 6791 |
{ setcaption-unknown-option } { #1 } |
| 6792 |
} |
| 6793 |
} |
| 6794 |
} |
| 6795 |
\NewDocumentCommand { \setcapdynwidth } { om } |
| 6796 |
{ |
| 6797 |
\IfPackageLoadedTF { caption } |
| 6798 |
{ |
| 6799 |
\exp_args:No \msg_warning:nn { \KOMAClassName } |
| 6800 |
{ caption-not-support-setcapdynwidth } |
| 6801 |
} |
| 6802 |
{ |
| 6803 |
\cs_set:Npn \cap@width { #2 } |
| 6804 |
\__scrkernel_set_cap_left_right:n { #1 } |
| 6805 |
} |
| 6806 |
} |
| 6807 |
\ExplSyntaxOff |
| 6808 |
\newcommand*{\cap@margin}{} |
| 6809 |
\let\cap@margin=\relax% |
| 6810 |
\ExplSyntaxOn |
| 6811 |
\NewDocumentCommand {\setcapmargin} { s O{#3} m } |
| 6812 |
{ |
| 6813 |
\IfBooleanTF {#1} |
| 6814 |
{ |
| 6815 |
\cs_set:Npn \cap@margin |
| 6816 |
{ |
| 6817 |
\onelinecaptionsfalse |
| 6818 |
\cs_set:Npe \cap@width { \dim_eval:n { \hsize - #2 - #3 } } |
| 6819 |
\if@twoside |
| 6820 |
\Ifthispageodd |
| 6821 |
{ |
| 6822 |
\cs_set:Npn \cap@left { \hspace*{#2} } |
| 6823 |
\cs_set:Npn \cap@right { \hspace*{#3} } |
| 6824 |
} |
| 6825 |
{ |
| 6826 |
\cs_set:Npn \cap@left { \hspace*{#3} } |
| 6827 |
\cs_set:Npn \cap@right { \hspace*{#2} } |
| 6828 |
} |
| 6829 |
\else |
| 6830 |
\cs_set:Npn \cap@left { \hspace*{#2} } |
| 6831 |
\cs_set:Npn \cap@right { \hspace*{#3} } |
| 6832 |
\fi |
| 6833 |
} |
| 6834 |
\__scrkernel_at_caption_package:n |
| 6835 |
{ |
| 6836 |
\exp_args:No \msg_warning:nnne { \KOMAClassName } |
| 6837 |
{ using-caption } |
| 6838 |
{ \setcapmargin*[#2]{#3} } |
| 6839 |
{ \token_to_str:N \captionsetup { twoside, slc=0, margin={#2,#3} } } |
| 6840 |
\captionsetup{ twoside, slc=0, margin={#2,#3} } |
| 6841 |
} |
| 6842 |
} |
| 6843 |
{ |
| 6844 |
\cs_set:Npn \cap@margin |
| 6845 |
{ |
| 6846 |
\onelinecaptionsfalse |
| 6847 |
\cs_set:Npe \cap@width { \dim_eval:n { \hsize - #2 - #3 } } |
| 6848 |
\cs_set:Npn \cap@left { \hspace*{#2} } |
| 6849 |
\cs_set:Npn \cap@right { \hspace*{#3} } |
| 6850 |
} |
| 6851 |
\__scrkernel_at_caption_package:n |
| 6852 |
{ |
| 6853 |
\exp_args:No \msg_warning:nnne { \KOMAClassName } |
| 6854 |
{ using-caption } |
| 6855 |
{ \setcapmargin[#2]{#3} } |
| 6856 |
{ \token_to_str:N \captionsetup { oneside, slc=0, margin={#2,#3} } } |
| 6857 |
\captionsetup{oneside,slc=0,margin={#2,#3}} |
| 6858 |
} |
| 6859 |
} |
| 6860 |
} |
| 6861 |
\ExplSyntaxOff |
| 6862 |
\NewHook{\KOMAClassName/makecaption/deactivate} |
| 6863 |
\newcommand{\@@makecaption}[3]{% |
| 6864 |
\cap@margin |
| 6865 |
\begingroup |
| 6866 |
\ifonelinecaptions |
| 6867 |
\def\stepcounter##1{\advance\value{##1}\@ne}% |
| 6868 |
\let\refstepcounter\stepcounter |
| 6869 |
\let\label\@gobble@om |
| 6870 |
\let\index\@gobble@som |
| 6871 |
\let\glossary\@gobble@om |
| 6872 |
\let\@footnotetext=\@gobble |
| 6873 |
\let\hypertarget\@gobbletwo |
| 6874 |
\UseHook{\KOMAClassName/makecaption/deactivate}% |
| 6875 |
\edef\@xnewline{% |
| 6876 |
\unexpanded{\ClassInfo{\KOMAClassName}{% |
| 6877 |
Workaround for not recommended usage of \string\\ or\MessageBreak |
| 6878 |
\string\newline in caption text |
| 6879 |
}% |
| 6880 |
\hspace*{\linewidth}\hspace{1sp}% |
| 6881 |
}% |
| 6882 |
\unexpanded\expandafter{\@xnewline}% |
| 6883 |
}% |
| 6884 |
\edef\@xcentercr{% |
| 6885 |
\unexpanded{\ClassInfo{\KOMAClassName}{% |
| 6886 |
Workaround for not recommended usage of \string\\ or\MessageBreak |
| 6887 |
\string\newline in caption text |
| 6888 |
}% |
| 6889 |
\hspace*{\linewidth}\hspace{1sp}% |
| 6890 |
}% |
| 6891 |
\unexpanded\expandafter{\@xcentercr}% |
| 6892 |
}% |
| 6893 |
\settowidth{\@tempdima}{\scr@@makesinglelinecaption{#1}{#2}{#3}}% |
| 6894 |
\ifdim\@tempdima>\cap@width |
| 6895 |
\aftergroup\scr@makemultilinecaption |
| 6896 |
\else |
| 6897 |
\aftergroup\scr@makesinglelinecaption |
| 6898 |
\fi |
| 6899 |
\else |
| 6900 |
\aftergroup\scr@makemultilinecaption |
| 6901 |
\fi |
| 6902 |
\endgroup |
| 6903 |
{#1}{#2}{#3}% |
| 6904 |
} |
| 6905 |
\newcommand{\scr@makesinglelinecaption}[3]{% |
| 6906 |
{% |
| 6907 |
\usefontofkomafont{caption}{% |
| 6908 |
\hb@xt@\hsize{% |
| 6909 |
\cap@left |
| 6910 |
\scr@@makesinglelinecaption{#1}{#2}{#3}% |
| 6911 |
\cap@right |
| 6912 |
}\par\kern\dp\strutbox% |
| 6913 |
}% |
| 6914 |
}\kern-\dp\strutbox |
| 6915 |
} |
| 6916 |
\newcommand{\scr@@makesinglelinecaption}[3]{% |
| 6917 |
\usekomafont{caption}{\strut\ignorespaces |
| 6918 |
#1{{\usekomafont{captionlabel}{\MakeCaptionLabelCase{#2}\captionformat}}}% |
| 6919 |
\MakeCaptionTextCase{#3}\unskip}% |
| 6920 |
} |
| 6921 |
\newcommand{\scr@makemultilinecaption}[3]{% |
| 6922 |
{% |
| 6923 |
\usefontofkomafont{caption}{% |
| 6924 |
\hb@xt@\hsize{% |
| 6925 |
\cap@left |
| 6926 |
\vbox{\hsize\cap@width\linewidth\hsize |
| 6927 |
\scr@ifundefinedorrelax{@captype}{% |
| 6928 |
\ClassWarning{\KOMAClassName}{% |
| 6929 |
`\string\caption' outside float.\MessageBreak |
| 6930 |
Seems you are using `\string\caption' outside a |
| 6931 |
float.\MessageBreak |
| 6932 |
Maybe you are using a package that uses |
| 6933 |
`\string\@makecaption'\MessageBreak |
| 6934 |
without setting `\string\@captype' before.\MessageBreak |
| 6935 |
Because I cannot detect the caption type, I'm using\MessageBreak |
| 6936 |
the empty one.% |
| 6937 |
}% |
| 6938 |
\let\@captype\@empty |
| 6939 |
}{}% |
| 6940 |
\scr@ifundefinedorrelax{ragged\@captype caption}{\raggedcaption}{% |
| 6941 |
\@nameuse{ragged\@captype caption}% |
| 6942 |
}% |
| 6943 |
\ifdofullc@p |
| 6944 |
\@hangfrom{% |
| 6945 |
\strut |
| 6946 |
\scr@smashdp{% |
| 6947 |
#1{% |
| 6948 |
\usekomafont{caption}{% |
| 6949 |
\usekomafont{captionlabel}{% |
| 6950 |
\MakeCaptionLabelCase{#2}\captionformat |
| 6951 |
}% |
| 6952 |
}% |
| 6953 |
}% |
| 6954 |
}% |
| 6955 |
}% |
| 6956 |
{\usekomafont{caption}{\MakeCaptionTextCase{#3}\scr@endstrut\par}}% |
| 6957 |
\else |
| 6958 |
\ifdim\cap@indent<\z@ |
| 6959 |
\strut |
| 6960 |
#1{% |
| 6961 |
\usekomafont{caption}{% |
| 6962 |
\usekomafont{captionlabel}{% |
| 6963 |
\MakeCaptionLabelCase{#2}\captionformat\par |
| 6964 |
}% |
| 6965 |
}% |
| 6966 |
}% |
| 6967 |
\noindent{\usekomafont{caption}{% |
| 6968 |
\hspace*{-\cap@indent}% |
| 6969 |
\MakeCaptionTextCase{#3}\scr@endstrut\par |
| 6970 |
}}% |
| 6971 |
\else |
| 6972 |
\if@capbreak |
| 6973 |
\strut |
| 6974 |
#1{% |
| 6975 |
\usekomafont{caption}{% |
| 6976 |
\usekomafont{captionlabel}{% |
| 6977 |
\MakeCaptionLabelCase{#2}\captionformat\par |
| 6978 |
}% |
| 6979 |
}% |
| 6980 |
}% |
| 6981 |
\noindent\@hangfrom{\hspace*{\cap@indent}}% |
| 6982 |
{\usekomafont{caption}{% |
| 6983 |
\MakeCaptionTextCase{#3}\scr@endstrut\par |
| 6984 |
}}% |
| 6985 |
\else |
| 6986 |
\@hangfrom{\scr@smashdp\strut\hspace*{\cap@indent}}% |
| 6987 |
{% |
| 6988 |
\hspace{-\cap@indent}% |
| 6989 |
\scr@smashdp{% |
| 6990 |
#1{\usekomafont{caption}{% |
| 6991 |
\usekomafont{captionlabel}{% |
| 6992 |
\MakeCaptionLabelCase{#2}\captionformat |
| 6993 |
}% |
| 6994 |
}% |
| 6995 |
}% |
| 6996 |
}% |
| 6997 |
{\usekomafont{caption}{% |
| 6998 |
\MakeCaptionTextCase{#3}\scr@endstrut}\par |
| 6999 |
}% |
| 7000 |
}% |
| 7001 |
\fi |
| 7002 |
\fi |
| 7003 |
\fi |
| 7004 |
}% |
| 7005 |
\cap@right |
| 7006 |
}\par\kern\dp\strutbox |
| 7007 |
}% |
| 7008 |
}\kern-\dp\strutbox |
| 7009 |
} |
| 7010 |
\newcommand{\MakeCaptionLabelCase}[1]{#1} |
| 7011 |
\newcommand{\MakeCaptionTextCase}[1]{#1} |
| 7012 |
\newcommand*\setcaptionalignment{% |
| 7013 |
\kernel@ifnextchar [%] |
| 7014 |
{\@setcaptionalignment} |
| 7015 |
{% |
| 7016 |
\scr@ifundefinedorrelax{@captype}{\@setcaptionalignment}{% |
| 7017 |
\edef\reserved@a{\noexpand\@setcaptionalignment[{\@captype}]}\reserved@a |
| 7018 |
}% |
| 7019 |
}% |
| 7020 |
}% |
| 7021 |
\newcommand*\@setcaptionalignment[2][]{% |
| 7022 |
\IfArgIsEmpty{#1}{}{% |
| 7023 |
\expandafter\ifnum |
| 7024 |
\scr@ifundefinedorrelax{#1}{0}{\scr@ifundefinedorrelax{end#1}{0}{1}}=0 |
| 7025 |
\ClassWarning{\KOMAClassName}{% |
| 7026 |
float type `#1' defined not yet,\MessageBreak |
| 7027 |
but setting ragged mode for captions of\MessageBreak |
| 7028 |
float type `#1'% |
| 7029 |
}% |
| 7030 |
\fi |
| 7031 |
}% |
| 7032 |
\def\reserved@a{#2}% |
| 7033 |
\Ifstr{\reserved@a}{j}{% |
| 7034 |
\expandafter\let\csname ragged#1caption\endcsname\@empty |
| 7035 |
}{% |
| 7036 |
\Ifstr{\reserved@a}{l}{% |
| 7037 |
\scr@ifundefinedorrelax{LaTeXraggedright}{% |
| 7038 |
\expandafter\let\csname ragged#1caption\endcsname\raggedright |
| 7039 |
}{% |
| 7040 |
\expandafter\let\csname ragged#1caption\endcsname\LaTeXraggedright |
| 7041 |
}% |
| 7042 |
}{% |
| 7043 |
\Ifstr{\reserved@a}{r}{% |
| 7044 |
\scr@ifundefinedorrelax{LaTeXraggedleft}{% |
| 7045 |
\expandafter\let\csname ragged#1caption\endcsname\raggedleft |
| 7046 |
}{% |
| 7047 |
\expandafter\let\csname ragged#1caption\endcsname\LaTeXraggedleft |
| 7048 |
}% |
| 7049 |
}{% |
| 7050 |
\Ifstr{\reserved@a}{c}{% |
| 7051 |
\scr@ifundefinedorrelax{LaTeXcentering}{% |
| 7052 |
\expandafter\let\csname ragged#1caption\endcsname\centering |
| 7053 |
}{% |
| 7054 |
\expandafter\let\csname ragged#1caption\endcsname\LaTeXcentering |
| 7055 |
}% |
| 7056 |
}{% |
| 7057 |
\Ifstr{\reserved@a}{J}{% |
| 7058 |
\scr@ifundefinedorrelax{justifying}{% |
| 7059 |
\scr@caption@raggede@warning{J}{\justifying}% |
| 7060 |
\expandafter\let\csname ragged#1caption\endcsname\@empty |
| 7061 |
}{% |
| 7062 |
\expandafter\let\csname ragged#1caption\endcsname\justifying |
| 7063 |
}% |
| 7064 |
}{% |
| 7065 |
\Ifstr{\reserved@a}{L}{% |
| 7066 |
\scr@ifundefinedorrelax{RaggedRight}{% |
| 7067 |
\scr@caption@raggede@warning{L}{\RaggedRight}% |
| 7068 |
\expandafter\let\csname ragged#1caption\endcsname\raggedright |
| 7069 |
}{% |
| 7070 |
\expandafter\let\csname ragged#1caption\endcsname\RaggedRight |
| 7071 |
}% |
| 7072 |
}{% |
| 7073 |
\Ifstr{\reserved@a}{R}{% |
| 7074 |
\scr@ifundefinedorrelax{RaggedLeft}{% |
| 7075 |
\scr@caption@raggede@warning{R}{\RaggedLeft}% |
| 7076 |
\expandafter\let\csname ragged#1caption\endcsname\raggedleft |
| 7077 |
}{% |
| 7078 |
\expandafter\let\csname ragged#1caption\endcsname\RaggedLeft |
| 7079 |
}% |
| 7080 |
}{% |
| 7081 |
\Ifstr{\reserved@a}{C}{% |
| 7082 |
\scr@ifundefinedorrelax{Centering}{% |
| 7083 |
\scr@caption@raggede@warning{C}{\Centering}% |
| 7084 |
\expandafter\let\csname ragged#1caption\endcsname\centering |
| 7085 |
}{% |
| 7086 |
\expandafter\let\csname ragged#1caption\endcsname\Centering |
| 7087 |
}% |
| 7088 |
}{% |
| 7089 |
\Ifstr{\reserved@a}{}{% |
| 7090 |
\expandafter\let\csname ragged#1caption\endcsname\relax |
| 7091 |
}{% |
| 7092 |
\ClassError{\KOMAClassName}{unknown alignment char `#2'}{% |
| 7093 |
\string\setcaptionalignment\space supports |
| 7094 |
only:\MessageBreak |
| 7095 |
\space\space c - centered captions,\MessageBreak |
| 7096 |
\space\space j - justified captions,\MessageBreak |
| 7097 |
\space\space l - left align captions,\MessageBreak |
| 7098 |
\space\space r - right aligned captions,\MessageBreak |
| 7099 |
\space\space C - centered captions with |
| 7100 |
`ragged2e',\MessageBreak |
| 7101 |
\space\space J - justified captions with |
| 7102 |
`ragged2e',\MessageBreak |
| 7103 |
\space\space L - left align captions with |
| 7104 |
`ragged2e',\MessageBreak |
| 7105 |
\space\space R - right aligned captions with |
| 7106 |
`ragged2e',\MessageBreak |
| 7107 |
or an empty argument to remove special |
| 7108 |
alignment.\MessageBreak |
| 7109 |
If you'd continue, I'd not change the alignment.% |
| 7110 |
}% |
| 7111 |
}% |
| 7112 |
}% |
| 7113 |
}% |
| 7114 |
}% |
| 7115 |
}% |
| 7116 |
}% |
| 7117 |
}% |
| 7118 |
}% |
| 7119 |
}% |
| 7120 |
} |
| 7121 |
\newcommand*{\scr@caption@raggede@warning}[2]{% |
| 7122 |
\begingroup |
| 7123 |
\lowercase{\def\reserved@a{#1}}% |
| 7124 |
\ClassWarning{\KOMAClassName}{% |
| 7125 |
`\string#2' undefined!\MessageBreak |
| 7126 |
To avoid replacing caption alignment `#1' by `\reserved@a'\MessageBreak |
| 7127 |
you should load package `ragged2e' before using\MessageBreak |
| 7128 |
`\string\setcaptionalignment'% |
| 7129 |
}% |
| 7130 |
\endgroup |
| 7131 |
} |
| 7132 |
\newcommand*\raggedcaption{} |
| 7133 |
\AddToHook{package/caption3/after}{% |
| 7134 |
\DeclareCaptionFormat{koma}[#1#2#3\par]{% |
| 7135 |
\ifdofullc@p |
| 7136 |
\caption@useformat{hang}{#1}{#2}{#3}% |
| 7137 |
\else |
| 7138 |
#1#2% |
| 7139 |
\ifdim\cap@indent<\z@ |
| 7140 |
\par |
| 7141 |
\noindent\hspace*{-\cap@indent}% |
| 7142 |
\else\if@capbreak |
| 7143 |
\par |
| 7144 |
\fi\fi |
| 7145 |
#3\par |
| 7146 |
\fi}% |
| 7147 |
\SetCaptionDefault{format}{koma} |
| 7148 |
\DeclareCaptionLabelFormat{koma}{\bothIfFirst{#1}{\nobreakspace}#2\autodot} |
| 7149 |
\SetCaptionFallback{labelformat}{koma} |
| 7150 |
} |
| 7151 |
\newcommand*{\scr@caption@before@longtable@warning}[1]{% |
| 7152 |
\ClassWarning{\KOMAClassName}{% |
| 7153 |
you've loaded package `#1' before package\MessageBreak |
| 7154 |
`longtable'!\MessageBreak |
| 7155 |
Because of this package `#1' isn't able to\MessageBreak |
| 7156 |
control `\string\caption' at longtables. \space After loading |
| 7157 |
\MessageBreak |
| 7158 |
package `#1' KOMA-Script also doesn't control\MessageBreak |
| 7159 |
`\string\caption'.\MessageBreak |
| 7160 |
I think, you should load package `caption' after\MessageBreak |
| 7161 |
package `longtable'% |
| 7162 |
}% |
| 7163 |
} |
| 7164 |
\AfterPackage{longtable}{% |
| 7165 |
\if@komalongtable |
| 7166 |
\renewcommand{\LT@makecaption}[3]{% |
| 7167 |
\LT@mcol\LT@cols c{% |
| 7168 |
\hbox to\z@{\hss\parbox[t]\linewidth{% |
| 7169 |
\if@captionabove\else\vskip\belowcaptionskip\fi |
| 7170 |
\@@makecaption{#1}{#2}{#3}% |
| 7171 |
\endgraf |
| 7172 |
\if@captionabove\vskip\abovecaptionskip\fi |
| 7173 |
}% |
| 7174 |
\hss |
| 7175 |
}% |
| 7176 |
}% |
| 7177 |
}% |
| 7178 |
\newcommand*{\scr@LT@array}{}% |
| 7179 |
\let\scr@LT@array=\LT@array |
| 7180 |
\renewcommand*{\LT@array}{% |
| 7181 |
\def\@captype{table}% |
| 7182 |
\@ifundefined{LTcaptype}{}{% |
| 7183 |
\Ifstr{\LTcaptype}{}{}{\let\@captype\LTcaptype}% |
| 7184 |
}% |
| 7185 |
\csname tocbasic_if_caption_above:TF\endcsname |
| 7186 |
{\@captionabovetrue}{\@captionabovefalse}% |
| 7187 |
\def\captionabove{\noalign{\global\@captionabovetrue}% |
| 7188 |
\LT@caption}% |
| 7189 |
\def\captionbelow{\noalign{\global\@captionabovefalse}% |
| 7190 |
\LT@caption}% |
| 7191 |
\scr@LT@array |
| 7192 |
}% |
| 7193 |
\ClassInfo{\KOMAClassName}{% |
| 7194 |
longtable captions redefined% |
| 7195 |
}% |
| 7196 |
\fi |
| 7197 |
} |
| 7198 |
\newcommand*{\fs@komaabove}{% |
| 7199 |
\let\@fs@capt\floatc@komascript |
| 7200 |
\let\@fs@pre\@empty |
| 7201 |
\def\@fs@mid{\vskip\abovecaptionskip}% |
| 7202 |
\let\@fs@post\@empty |
| 7203 |
\let\@fs@iftopcapt\iftrue} |
| 7204 |
\newcommand*{\fs@komabelow}{% |
| 7205 |
\let\@fs@capt\floatc@komascript |
| 7206 |
\let\@fs@pre\@empty |
| 7207 |
\def\@fs@mid{\vskip\abovecaptionskip}% |
| 7208 |
\let\@fs@post\@empty |
| 7209 |
\let\@fs@iftopcapt\iffalse} |
| 7210 |
\newcommand{\floatc@komascript}{\@@makecaption\@firstofone} |
| 7211 |
\setcounter{topnumber}{2} |
| 7212 |
\renewcommand*\topfraction{.7} |
| 7213 |
\setcounter{bottomnumber}{1} |
| 7214 |
\renewcommand*\bottomfraction{.3} |
| 7215 |
\setcounter{totalnumber}{3} |
| 7216 |
\renewcommand*\textfraction{.2} |
| 7217 |
\renewcommand*\floatpagefraction{.5} |
| 7218 |
\setcounter{dbltopnumber}{2} |
| 7219 |
\renewcommand*\dbltopfraction{.7} |
| 7220 |
\renewcommand*\dblfloatpagefraction{.5} |
| 7221 |
\newenvironment{captionofbeside}[1]{% |
| 7222 |
\def\@captype{#1}% |
| 7223 |
\captionbeside |
| 7224 |
}{% |
| 7225 |
\endcaptionbeside |
| 7226 |
} |
| 7227 |
\newcommand*\figurename{Figure} |
| 7228 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7229 |
UKenglish,ukenglish,USenglish,usenglish}\figurename{Figure} |
| 7230 |
\newcommand*\tablename{Table} |
| 7231 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7232 |
UKenglish,ukenglish,USenglish,usenglish}\tablename{Table} |
| 7233 |
\DeclareNewTOC[% |
| 7234 |
type=figure, |
| 7235 |
float, |
| 7236 |
nonfloat, |
| 7237 |
counterwithin=chapter, |
| 7238 |
floatpos=tbp, |
| 7239 |
floattype=1, |
| 7240 |
tocentryindent=1.5em, |
| 7241 |
tocentrynumwidth=2.3em, |
| 7242 |
]{lof} |
| 7243 |
\expandafter\ifnum\scr@v@is@le{2.97d}% |
| 7244 |
\renewcommand*\thefigure{\thechapter.\@arabic\c@figure} |
| 7245 |
\fi |
| 7246 |
\DeclareNewTOC[% |
| 7247 |
type=table, |
| 7248 |
float, |
| 7249 |
nonfloat, |
| 7250 |
counterwithin=chapter, |
| 7251 |
floatpos=tbp, |
| 7252 |
floattype=2, |
| 7253 |
tocentryindent=1.5em, |
| 7254 |
tocentrynumwidth=2.3em, |
| 7255 |
]{lot} |
| 7256 |
\expandafter\ifnum\scr@v@is@le{2.97d}% |
| 7257 |
\renewcommand*\thetable{\thechapter.\@arabic\c@table} |
| 7258 |
\fi |
| 7259 |
%%% From File: $Id: scrkernel-footnotes.dtx 4245 2025-11-26 08:59:26Z kohm $ |
| 7260 |
%%% (run: body) |
| 7261 |
\renewcommand*\footnoterule{% |
| 7262 |
\normalsize\ftn@rule@test@values |
| 7263 |
\kern-\dimexpr 2.6\p@+\ftn@rule@height\relax |
| 7264 |
\ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi |
| 7265 |
{\usekomafont{footnoterule}{% |
| 7266 |
\hrule \@height\ftn@rule@height \@width\ftn@rule@width}}% |
| 7267 |
\kern 2.6\p@} |
| 7268 |
\newcommand*{\ftn@rule@test@values}{% |
| 7269 |
\ifdim\ftn@rule@height <\z@ |
| 7270 |
\ClassWarning{\KOMAClassName}{% |
| 7271 |
You might get into trouble, because the\MessageBreak |
| 7272 |
height of the footnote rule has a value\MessageBreak |
| 7273 |
less than 0% |
| 7274 |
}% |
| 7275 |
\else |
| 7276 |
\ifdim\ftn@rule@height >\dimexpr\skip\footins -2.6\p@\relax |
| 7277 |
\ClassWarning{\KOMAClassName}{% |
| 7278 |
You might get into trouble, because the\MessageBreak |
| 7279 |
height of the footnote rule has a value\MessageBreak |
| 7280 |
greater than \the\dimexpr\skip\footins -2.6\p@\relax |
| 7281 |
}% |
| 7282 |
\fi |
| 7283 |
\fi |
| 7284 |
\ifdim\ftn@rule@width <\z@ |
| 7285 |
\ClassWarning{\KOMAClassName}{% |
| 7286 |
You might get into trouble, because the width\MessageBreak |
| 7287 |
or length of the footnote rule has a value\MessageBreak |
| 7288 |
less than 0pt% |
| 7289 |
}% |
| 7290 |
\else |
| 7291 |
\ifdim\ftn@rule@width >\columnwidth |
| 7292 |
\ClassWarning{\KOMAClassName}{% |
| 7293 |
You might get into trouble, because the width\MessageBreak |
| 7294 |
or length of the footnote rule has a value\MessageBreak |
| 7295 |
greater than \string\columnwidth |
| 7296 |
}% |
| 7297 |
\fi |
| 7298 |
\fi |
| 7299 |
} |
| 7300 |
\newkomafont{footnoterule}{} |
| 7301 |
\newcommand*{\ftn@rule@width}{.4\columnwidth} |
| 7302 |
\newcommand*{\ftn@rule@height}{.4\p@} |
| 7303 |
\newcommand*{\setfootnoterule}[2][]{% |
| 7304 |
\IfArgIsEmpty{#1}{}{% |
| 7305 |
\renewcommand*{\ftn@rule@height}{#1}% |
| 7306 |
}% |
| 7307 |
\IfArgIsEmpty{#2}{}{% |
| 7308 |
\renewcommand*{\ftn@rule@width}{#2}% |
| 7309 |
}% |
| 7310 |
\ftn@rule@test@values |
| 7311 |
} |
| 7312 |
\@addtoreset{footnote}{chapter} |
| 7313 |
\newcommand\deffootnote[4][]{% |
| 7314 |
\expandafter\ifnum\scr@v@is@ge{3.22}\relax |
| 7315 |
\long\def\@makefntext##1{% |
| 7316 |
\ExecuteDoHook{footnote/text/begin}% |
| 7317 |
\raggedfootnote |
| 7318 |
\leftskip #2 |
| 7319 |
\l@addto@macro\@trivlist{% |
| 7320 |
\ifnum\@listdepth=\@ne\advance\leftmargin #2\relax\fi |
| 7321 |
}% |
| 7322 |
\parindent #3\noindent |
| 7323 |
\IfArgIsEmpty{#1}{}{% |
| 7324 |
\hskip \dimexpr #1-#2\relax |
| 7325 |
}% |
| 7326 |
\ftn@font\hbox to \z@{\hss\@@makefnmark}##1% |
| 7327 |
\ExecuteDoHook{footnote/text/end}% |
| 7328 |
}% |
| 7329 |
\else |
| 7330 |
\ClassInfo{\KOMAClassName}{% |
| 7331 |
Using old \string\@makefntext\space due to compatibility |
| 7332 |
level\MessageBreak |
| 7333 |
less than 3.22}% |
| 7334 |
\long\def\@makefntext##1{% |
| 7335 |
\setlength{\@tempdimc}{#3}% |
| 7336 |
\def\@tempa{#1}\ifx\@tempa\@empty |
| 7337 |
\@setpar{\@@par |
| 7338 |
\@tempdima = \hsize |
| 7339 |
\addtolength{\@tempdima}{-#2}% |
| 7340 |
\parshape \@ne #2 \@tempdima}% |
| 7341 |
\else |
| 7342 |
\addtolength{\@tempdimc}{#2}% |
| 7343 |
\addtolength{\@tempdimc}{-#1}% |
| 7344 |
\@setpar{\@@par |
| 7345 |
\@tempdima = \hsize |
| 7346 |
\addtolength{\@tempdima}{-#1}% |
| 7347 |
\@tempdimb = \hsize |
| 7348 |
\addtolength{\@tempdimb}{-#2}% |
| 7349 |
\parshape \tw@ #1 \@tempdima #2 \@tempdimb |
| 7350 |
}% |
| 7351 |
\fi |
| 7352 |
\par |
| 7353 |
\parindent\@tempdimc\noindent |
| 7354 |
\ftn@font\hbox to \z@{\hss\@@makefnmark}##1% |
| 7355 |
}% |
| 7356 |
\fi |
| 7357 |
\def\@@makefnmark{\hbox{\ftnm@font{#4}}}% |
| 7358 |
} |
| 7359 |
\newcommand*{\raggedfootnote}{} |
| 7360 |
\newcommand*{\ftn@font}{\normalfont} |
| 7361 |
\newcommand*{\scr@fnt@footnote}{\ftn@font} |
| 7362 |
\newcommand*{\ftnm@font}{} |
| 7363 |
\aliaskomafont{footnotenumber}{footnotelabel} |
| 7364 |
\newcommand*{\scr@fnt@footnotelabel}{\ftnm@font} |
| 7365 |
\aliaskomafont{footnotetext}{footnote} |
| 7366 |
\newcommand*\deffootnotemark[1]{% |
| 7367 |
\def\@makefnmark{\hbox{\ftntm@font{#1}}}% |
| 7368 |
} |
| 7369 |
\newcommand*{\ftntm@font}{} |
| 7370 |
\newcommand*{\scr@fnt@footnotereference}{\ftntm@font} |
| 7371 |
\aliaskomafont{footnoteref}{footnotereference} |
| 7372 |
\aliaskomafont{footnotemark}{footnotereference} |
| 7373 |
\newcommand*{\FN@mf@check}{% |
| 7374 |
\ifdim\lastkern=\multiplefootnotemarker\relax |
| 7375 |
\edef\@x@sf{\the\spacefactor}% |
| 7376 |
\unkern\multiplefootnoteseparator |
| 7377 |
\spacefactor\@x@sf\relax |
| 7378 |
\fi |
| 7379 |
} |
| 7380 |
\newcommand*{\scr@mf@prepare}{% |
| 7381 |
\kern-\multiplefootnotemarker |
| 7382 |
\kern\multiplefootnotemarker\relax |
| 7383 |
} |
| 7384 |
\@ifundefined{FN@mf@prepare}{\let\FN@mf@prepare\relax}{} |
| 7385 |
\newcommand{\scr@saved@footnotetext}{} |
| 7386 |
\let\scr@saved@footnotetext\@footnotetext |
| 7387 |
\renewcommand{\@footnotetext}[1]{% |
| 7388 |
\scr@saved@footnotetext{#1}% |
| 7389 |
\csname FN@mf@prepare\endcsname |
| 7390 |
} |
| 7391 |
\BeforePackage{footmisc}{% |
| 7392 |
\ifx\@footnotemark\scr@footnotemark |
| 7393 |
\let\@footnotemark\scr@saved@footnotemark |
| 7394 |
\fi |
| 7395 |
\let\@footnotetext\scr@saved@footnotetext |
| 7396 |
} |
| 7397 |
\BeforePackage{setspace}{% |
| 7398 |
\let\@footnotetext\scr@saved@footnotetext |
| 7399 |
} |
| 7400 |
\AfterPackage{setspace}{% |
| 7401 |
\let\scr@saved@footnotetext\@footnotetext |
| 7402 |
\renewcommand{\@footnotetext}[1]{% |
| 7403 |
\scr@saved@footnotetext{#1}% |
| 7404 |
\csname FN@mf@prepare\endcsname |
| 7405 |
}% |
| 7406 |
} |
| 7407 |
\newcommand*{\multiplefootnoteseparator}{% |
| 7408 |
\begingroup\let\thefootnotemark\multfootsep\@makefnmark\endgroup |
| 7409 |
} |
| 7410 |
\newcommand*{\multfootsep}{,} |
| 7411 |
\newcommand*{\multiplefootnotemarker}{3sp} |
| 7412 |
\newcommand*{\thefootnotemark}{\@thefnmark} |
| 7413 |
\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}} |
| 7414 |
\deffootnotemark{\textsuperscript{\thefootnotemark}} |
| 7415 |
\providecommand*{\footref}[1]{% |
| 7416 |
\begingroup |
| 7417 |
\unrestored@protected@xdef\@thefnmark{\ref{#1}}% |
| 7418 |
\endgroup |
| 7419 |
\@footnotemark |
| 7420 |
} |
| 7421 |
%%% From File: $Id: scrkernel-listsof.dtx 4193 2025-08-12 14:24:39Z kohm $ |
| 7422 |
%%% (run: body) |
| 7423 |
\g@addto@macro{\numberline@numberpostfix}{\autodot} |
| 7424 |
\usetocbasicnumberline[% |
| 7425 |
\ClassInfo{\KOMAClassName}{Redefining `\string\numberline'}% |
| 7426 |
] |
| 7427 |
\doforeachtocfile[float]{% |
| 7428 |
\setuptoc{\@currext}{chapteratlist}% |
| 7429 |
} |
| 7430 |
\AtAddToTocList[float]{% |
| 7431 |
\setuptoc{\@currext}{chapteratlist}% |
| 7432 |
} |
| 7433 |
\newcommand*{\scr@dottedtocline}{} |
| 7434 |
\newcommand*{\last@l@number}{} |
| 7435 |
\newcommand*{\@l@number}{} |
| 7436 |
\newcommand*{\set@l@number}[1]{% |
| 7437 |
\settowidth{\@tempdima}{#1\enskip}% |
| 7438 |
\ifdim\@tempdima >\@l@number |
| 7439 |
\xdef\@l@number{\the\@tempdima}% |
| 7440 |
\fi% |
| 7441 |
\ifdim\@tempdima >\last@l@number \else |
| 7442 |
\setlength{\@tempdima}{\last@l@number}% |
| 7443 |
\fi% |
| 7444 |
} |
| 7445 |
\newcommand*{\before@starttoc}[1]{% |
| 7446 |
\let\scr@dottedtocline=\@dottedtocline |
| 7447 |
\renewcommand*{\@dottedtocline}[3]{% |
| 7448 |
\scr@dottedtocline{##1}{\z@}{\last@l@number}}% |
| 7449 |
\renewcommand*{\numberline@box}[1]{% |
| 7450 |
\set@l@number{##1}\hb@xt@\@tempdima{##1}}% |
| 7451 |
\gdef\@l@number{\z@}% |
| 7452 |
\@ifundefined{#1@l@number}{% |
| 7453 |
\def\last@l@number{2em}% |
| 7454 |
}{% |
| 7455 |
\expandafter\ifx\csname #1@l@number\endcsname\@empty |
| 7456 |
\let\last@l@number\z@ |
| 7457 |
\else |
| 7458 |
\expandafter\let\expandafter\last@l@number |
| 7459 |
\expandafter=\csname#1@l@number\endcsname |
| 7460 |
\fi |
| 7461 |
}% |
| 7462 |
\begingroup |
| 7463 |
\def\do@endgroup{\endgroup}% |
| 7464 |
\def\do##1{% |
| 7465 |
\scr@ifundefinedorrelax{scr@tso@##1@numwidth}{}{% |
| 7466 |
\l@addto@macro\do@endgroup{% |
| 7467 |
\@namedef{scr@tso@##1@numwidth}{\last@l@number}% |
| 7468 |
}% |
| 7469 |
}% |
| 7470 |
\scr@ifundefinedorrelax{scr@tso@##1@indent}{}{% |
| 7471 |
\l@addto@macro\do@endgroup{% |
| 7472 |
\@namedef{scr@tso@##1@indent}{\z@}% |
| 7473 |
}% |
| 7474 |
}% |
| 7475 |
}% |
| 7476 |
\@nameuse{scr@dte@donumwidth}% |
| 7477 |
\do@endgroup |
| 7478 |
} |
| 7479 |
\newcommand*{\after@starttoc}[1]{% |
| 7480 |
\protected@write\@auxout{}{% |
| 7481 |
\string\gdef\expandafter\string\csname#1@l@number\endcsname{% |
| 7482 |
\@l@number}}% |
| 7483 |
} |
| 7484 |
\g@addto@macro\tocbasic@@before@hook{% |
| 7485 |
\if@dynlist\expandafter\before@starttoc\expandafter{\@currext}\fi |
| 7486 |
} |
| 7487 |
\g@addto@macro\tocbasic@@after@hook{% |
| 7488 |
\if@dynlist\expandafter\after@starttoc\expandafter{\@currext}\fi |
| 7489 |
} |
| 7490 |
\newcommand*\contentsname{Contents} |
| 7491 |
\newcommand*\listoftocname{\contentsname} |
| 7492 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7493 |
UKenglish,ukenglish,USenglish,usenglish}\contentsname{Contents}% |
| 7494 |
\setcounter{tocdepth}{2} |
| 7495 |
\newcommand*\toc@heading{% |
| 7496 |
\ClassWarning{\KOMAClassName}{% |
| 7497 |
usage of deprecated \string\toc@heading!\MessageBreak |
| 7498 |
You should use the features of package `tocbasic'\MessageBreak |
| 7499 |
instead of \string\toc@heading.\MessageBreak |
| 7500 |
Definition of \string\toc@heading\space may be removed from\MessageBreak |
| 7501 |
KOMA-Script soon, so it should not be used% |
| 7502 |
}% |
| 7503 |
\chapter*{\contentsname}% |
| 7504 |
\@mkboth{\MakeMarkcase{\contentsname}}{\MakeMarkcase{\contentsname}}% |
| 7505 |
} |
| 7506 |
\newcommand*{\toc@l@number}{} |
| 7507 |
\newcommand*{\tableofcontents}{% |
| 7508 |
\begingroup |
| 7509 |
\let\if@dynlist\if@tocleft |
| 7510 |
\expandafter\listoftoc\expandafter{\ext@toc}% |
| 7511 |
\endgroup |
| 7512 |
} |
| 7513 |
\newcommand{\addtocentrydefault}[3]{% |
| 7514 |
\expandafter\tocbasic@addxcontentsline\expandafter{\ext@toc}{#1}{#2}{#3}% |
| 7515 |
} |
| 7516 |
\newcommand*{\float@listhead}[1]{% |
| 7517 |
\scr@float@listhead@warning |
| 7518 |
\float@@listhead{#1}% |
| 7519 |
\@mkboth{\MakeMarkcase{#1}}{\MakeMarkcase{#1}}% |
| 7520 |
\if@dynlist% |
| 7521 |
\newcommand*{\scr@starttoc}{}% |
| 7522 |
\let\scr@starttoc=\@starttoc |
| 7523 |
\renewcommand*{\@starttoc}[1]{% |
| 7524 |
\before@starttoc{##1}\scr@starttoc{##1}\after@starttoc{##1}% |
| 7525 |
}% |
| 7526 |
\fi |
| 7527 |
} |
| 7528 |
\newcommand*{\scr@float@listhead@warning}{% |
| 7529 |
\ClassWarning{\KOMAClassName}{% |
| 7530 |
Usage of \string\float@listhead\space detected!\MessageBreak |
| 7531 |
This could be, because you are using\MessageBreak |
| 7532 |
\IfPackageLoadedTF{floatrow}{% |
| 7533 |
\IfPackageLoadedTF{floatrowbytocbasic}{% |
| 7534 |
a package that does not support the KOMA-Script\MessageBreak |
| 7535 |
interface of KOMA-Script package `tocbasic`.\MessageBreak |
| 7536 |
}{% |
| 7537 |
package `floatrow` without `floatrowbytocbasic`.\MessageBreak |
| 7538 |
}% |
| 7539 |
}{% |
| 7540 |
\IfPackageLoadedTF{float}{% |
| 7541 |
\IfPackageLoadedTF{floatbytocbasic}{% |
| 7542 |
a package that does not support the KOMA-Script\MessageBreak |
| 7543 |
interface of KOMA-Script package `tocbasic`.\MessageBreak |
| 7544 |
}{% |
| 7545 |
package `float` without `floatbytocbasic`.\MessageBreak |
| 7546 |
}% |
| 7547 |
}{% |
| 7548 |
a package that does not support the KOMA-Script\MessageBreak |
| 7549 |
interface of KOMA-Script package `tocbasic`.\MessageBreak |
| 7550 |
}% |
| 7551 |
}% |
| 7552 |
Implementation of \string\float@listhead\space became\MessageBreak |
| 7553 |
deprecated in KOMA-Script v3.01 2008/11/14 and\MessageBreak |
| 7554 |
has been replaced by several more flexible\MessageBreak |
| 7555 |
features of package `tocbasic`.\MessageBreak |
| 7556 |
Implementation of \string\float@listhead\space will\MessageBreak |
| 7557 |
be removed from KOMA-Script soon% |
| 7558 |
}% |
| 7559 |
} |
| 7560 |
\newcommand*{\scr@float@addtolists@warning}{% |
| 7561 |
\ClassWarningNoLine{\KOMAClassName}{% |
| 7562 |
\string\float@addtolists\space detected!\MessageBreak |
| 7563 |
Implementation of \string\float@addtolist\space became\MessageBreak |
| 7564 |
deprecated in KOMA-Script v3.01 2008/11/14 and\MessageBreak |
| 7565 |
has been replaced by several more flexible\MessageBreak |
| 7566 |
features of package `tocbasic`.\MessageBreak |
| 7567 |
Since Version 3.12 support for deprecated\MessageBreak |
| 7568 |
\string\float@addtolist\space interface has been\MessageBreak |
| 7569 |
restricted to only some of the KOMA-Script\MessageBreak |
| 7570 |
features and been removed from others.\MessageBreak |
| 7571 |
Since Version 3.43 support for deprecated\MessageBreak |
| 7572 |
\string\float@addtolist\space interface has been\MessageBreak |
| 7573 |
removed from all KOMA-Script classes% |
| 7574 |
}% |
| 7575 |
\global\let\scr@float@addtolists@warning\relax |
| 7576 |
} |
| 7577 |
\renewcommand*\listfigurename{List of Figures} |
| 7578 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7579 |
UKenglish,ukenglish,USenglish,usenglish}\listfigurename{List of Figures} |
| 7580 |
\renewcommand*\listoflofname{\listfigurename} |
| 7581 |
\renewcommand*\listoflofentryname{\figurename} |
| 7582 |
\renewcommand*\listtablename{List of Tables} |
| 7583 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7584 |
UKenglish,ukenglish,USenglish,usenglish}\listtablename{List of Tables} |
| 7585 |
\renewcommand*\listoflotname{\listtablename} |
| 7586 |
\renewcommand*\listoflotentryname{\tablename} |
| 7587 |
%%% From File: $Id: scrkernel-bibliography.dtx 4032 2023-04-17 09:45:11Z kohm $ |
| 7588 |
%%% (run: body) |
| 7589 |
\newcommand*\bibname{Bibliography} |
| 7590 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7591 |
UKenglish,ukenglish,USenglish,usenglish}\bibname{Bibliography} |
| 7592 |
\newcommand*{\bibpreamble}{\relax} |
| 7593 |
\let\bibpreamble\relax |
| 7594 |
\newcommand{\setbibpreamble}[1]{\def\bibpreamble{#1}} |
| 7595 |
\newdimen\bibindent |
| 7596 |
\bibindent=1.5em |
| 7597 |
\newenvironment{thebibliography}[1]{% |
| 7598 |
\if@bib@break@ |
| 7599 |
\bib@beginhook |
| 7600 |
\else |
| 7601 |
\ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else |
| 7602 |
\setchapterpreamble{\bibpreamble}% |
| 7603 |
\fi\fi |
| 7604 |
\bib@heading |
| 7605 |
\bib@beginhook |
| 7606 |
\bib@before@hook |
| 7607 |
\fi |
| 7608 |
\renewcommand{\BreakBibliography}[1]{% |
| 7609 |
\@bib@break |
| 7610 |
\end{thebibliography}% |
| 7611 |
\begingroup ##1\endgroup |
| 7612 |
\begin{thebibliography}{#1} |
| 7613 |
}% |
| 7614 |
\list{% |
| 7615 |
\@biblabel{\@arabic\c@enumiv}% |
| 7616 |
}{% |
| 7617 |
\settowidth\labelwidth{\@biblabel{#1}}% |
| 7618 |
\leftmargin\labelwidth |
| 7619 |
\advance\leftmargin\labelsep |
| 7620 |
\@openbib@code |
| 7621 |
\if@bib@break@ |
| 7622 |
\edef\@tempa{% |
| 7623 |
\noexpand\usecounter{enumiv}% |
| 7624 |
\noexpand\setcounter{enumiv}{\the\c@enumiv}% |
| 7625 |
}\@tempa |
| 7626 |
\no@bib@break |
| 7627 |
\else |
| 7628 |
\usecounter{enumiv}% |
| 7629 |
\fi |
| 7630 |
\let\p@enumiv\@empty |
| 7631 |
\renewcommand*\theenumiv{\@arabic\c@enumiv}% |
| 7632 |
}% |
| 7633 |
\sloppy\clubpenalty4000 \widowpenalty4000 |
| 7634 |
\sfcode`\.=\@m |
| 7635 |
}{% |
| 7636 |
\if@bib@break@ |
| 7637 |
\def\@noitemerr{% |
| 7638 |
\@latex@warning{% |
| 7639 |
\string\BreakBibliography\space at begin of `thebibliography' |
| 7640 |
environment\MessageBreak |
| 7641 |
or following \string\BreakBibliography}% |
| 7642 |
}% |
| 7643 |
\else |
| 7644 |
\def\@noitemerr{% |
| 7645 |
\@latex@warning{% |
| 7646 |
Empty `thebibliography' environment or |
| 7647 |
\string\BreakBibliography\MessageBreak |
| 7648 |
before end of `thebibliography' environment}% |
| 7649 |
}% |
| 7650 |
\fi |
| 7651 |
\endlist |
| 7652 |
\if@bib@break@ |
| 7653 |
\else |
| 7654 |
\bib@after@hook |
| 7655 |
\let\bib@before@hook\@empty |
| 7656 |
\let\bib@after@hook\@empty |
| 7657 |
\fi |
| 7658 |
\bib@endhook |
| 7659 |
} |
| 7660 |
\newif\if@bib@break@ |
| 7661 |
\newcommand{\no@bib@break}{\global\let\if@bib@break@\iffalse} |
| 7662 |
\newcommand*{\@bib@break}{\global\let\if@bib@break@\iftrue} |
| 7663 |
\newcommand*{\bib@before@hook}{} |
| 7664 |
\newcommand*{\bib@after@hook}{} |
| 7665 |
\newcommand{\BreakBibliography}[1]{% |
| 7666 |
\ClassWarning{\KOMAClassName}{% |
| 7667 |
You've used \string\BreakBibliography\space either outside of\MessageBreak |
| 7668 |
the bibliography or `thebibliography' was redefined\MessageBreak |
| 7669 |
incompatible, e.g., using a bibliography package.\MessageBreak |
| 7670 |
\string\BreakBibliography\space ignored% |
| 7671 |
}% |
| 7672 |
} |
| 7673 |
\newcommand{\AfterBibliographyPreamble}{\g@addto@macro\bib@before@hook} |
| 7674 |
\newcommand{\AtEndBibliography}{\g@addto@macro\bib@after@hook} |
| 7675 |
%%% From File: $Id: scrkernel-index.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 7676 |
%%% (run: body) |
| 7677 |
\newcommand*{\index@preamble}{} |
| 7678 |
\let\index@preamble=\relax |
| 7679 |
\newcommand{\setindexpreamble}[1]{\def\index@preamble{#1}} |
| 7680 |
\newcommand*{\idx@heading}{% |
| 7681 |
\ifidx@leveldown\else\if@openright\cleardoublepage\else\clearpage\fi\fi |
| 7682 |
\twocolumn[% |
| 7683 |
\@chaptertolistsfalse |
| 7684 |
\idx@@heading{\indexname}]% |
| 7685 |
\idx@@mark{\indexname}% |
| 7686 |
} |
| 7687 |
\newenvironment{theindex}{% |
| 7688 |
\if@twocolumn |
| 7689 |
\@restonecolfalse |
| 7690 |
\else |
| 7691 |
\@restonecoltrue |
| 7692 |
\fi |
| 7693 |
\columnseprule \z@ |
| 7694 |
\columnsep 35\p@ |
| 7695 |
\setchapterpreamble{\index@preamble}% |
| 7696 |
\idx@heading |
| 7697 |
\ifx\indexpagestyle\@empty\else\thispagestyle{\indexpagestyle}\fi |
| 7698 |
\parindent\z@ |
| 7699 |
\setlength{\parskip}{\z@ \@plus .3\p@}% |
| 7700 |
\setlength{\parfillskip}{\z@ \@plus 1fil}% |
| 7701 |
\let\item\@idxitem |
| 7702 |
}{% |
| 7703 |
\if@restonecol\onecolumn\else\clearpage\fi |
| 7704 |
} |
| 7705 |
\newcommand*\@idxitem{\par\hangindent 40\p@} |
| 7706 |
\newcommand*\subitem{\@idxitem \hspace*{20\p@}} |
| 7707 |
\newcommand*\subsubitem{\@idxitem \hspace*{30\p@}} |
| 7708 |
\newcommand*\indexspace{% |
| 7709 |
\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax |
| 7710 |
} |
| 7711 |
\newcommand*\indexname{Index} |
| 7712 |
\providecaptionname{american,australian,british,canadian,english,newzealand,% |
| 7713 |
UKenglish,ukenglish,USenglish,usenglish}\indexname{Index} |
| 7714 |
%%% From File: $Id: scrkernel-listsandtabulars.dtx 4138 2025-02-10 13:55:51Z kohm $ |
| 7715 |
%%% (run: body) |
| 7716 |
\if@twocolumn |
| 7717 |
\setlength{\leftmargini}{2em} |
| 7718 |
\else |
| 7719 |
\setlength{\leftmargini}{2.5em} |
| 7720 |
\fi |
| 7721 |
\setlength{\leftmarginii}{2.2em} |
| 7722 |
\setlength{\leftmarginiii}{1.87em} |
| 7723 |
\setlength{\leftmarginiv}{1.7em} |
| 7724 |
\if@twocolumn |
| 7725 |
\setlength{\leftmarginv}{.5em} |
| 7726 |
\setlength{\leftmarginvi}{.5em} |
| 7727 |
\else |
| 7728 |
\setlength{\leftmarginv}{1em} |
| 7729 |
\setlength{\leftmarginvi}{1em} |
| 7730 |
\fi |
| 7731 |
\setlength{\leftmargin}{\leftmargini} |
| 7732 |
\setlength{\labelsep}{.5em} |
| 7733 |
\setlength{\labelwidth}{\leftmargini} |
| 7734 |
\addtolength{\labelwidth}{-\labelsep} |
| 7735 |
\@beginparpenalty=-\@lowpenalty |
| 7736 |
\@endparpenalty =-\@lowpenalty |
| 7737 |
\@itempenalty =-\@lowpenalty |
| 7738 |
\renewcommand*\theenumi{\@arabic\c@enumi} |
| 7739 |
\renewcommand*\theenumii{\@alph\c@enumii} |
| 7740 |
\renewcommand*\theenumiii{\@roman\c@enumiii} |
| 7741 |
\renewcommand*\theenumiv{\@Alph\c@enumiv} |
| 7742 |
\newcommand*\labelenumi{\usekomafont{labelenumi}{\theenumi.}} |
| 7743 |
\newcommand*\labelenumii{\usekomafont{labelenumii}{\theenumii)}} |
| 7744 |
\newcommand*\labelenumiii{\usekomafont{labelenumiii}{\theenumiii.}} |
| 7745 |
\newcommand*\labelenumiv{\usekomafont{labelenumiv}{\theenumiv.}} |
| 7746 |
\renewcommand*\p@enumii{\theenumi} |
| 7747 |
\renewcommand*\p@enumiii{\p@enumii(\theenumii)} |
| 7748 |
\renewcommand*\p@enumiv{\p@enumiii\theenumiii} |
| 7749 |
\newcommand*\labelitemi{\usekomafont{labelitemi}{\textbullet}} |
| 7750 |
\newcommand*\labelitemii{\usekomafont{labelitemii}{\textendash}} |
| 7751 |
\newcommand*\labelitemiii{\usekomafont{labelitemiii}{\textasteriskcentered}} |
| 7752 |
\newcommand*\labelitemiv{\usekomafont{labelitemiv}{\textperiodcentered}} |
| 7753 |
\newenvironment{description}{% |
| 7754 |
\list{}{\labelwidth\z@ \itemindent-\leftmargin |
| 7755 |
\let\makelabel\descriptionlabel}% |
| 7756 |
}{% |
| 7757 |
\endlist |
| 7758 |
} |
| 7759 |
\newcommand*{\descriptionlabel}[1]{% |
| 7760 |
\hspace{\labelsep}\usekomafont{descriptionlabel}{#1}% |
| 7761 |
} |
| 7762 |
\newenvironment{labeling}[2][]{% |
| 7763 |
\def\sc@septext{#1}% |
| 7764 |
\list{}{\settowidth{\labelwidth}{{% |
| 7765 |
\usekomafont{labelinglabel}{#2% |
| 7766 |
\usekomafont{labelingseparator}{\sc@septext}}% |
| 7767 |
}}% |
| 7768 |
\leftmargin\labelwidth \advance\leftmargin by \labelsep |
| 7769 |
\let\makelabel\labelinglabel |
| 7770 |
}% |
| 7771 |
}{% |
| 7772 |
\endlist |
| 7773 |
} |
| 7774 |
\newcommand\labelinglabel[1]{% |
| 7775 |
\usekomafont{labelinglabel}{#1\hfil |
| 7776 |
\usekomafont{labelingseparator}{\sc@septext}}% |
| 7777 |
} |
| 7778 |
\newenvironment{verse}{% |
| 7779 |
\let\\=\@centercr |
| 7780 |
\list{}{\itemsep=\z@ |
| 7781 |
\itemindent=-1.5em |
| 7782 |
\listparindent=\itemindent |
| 7783 |
\rightmargin=\leftmargin |
| 7784 |
\advance\leftmargin by1.5em |
| 7785 |
}% |
| 7786 |
\item\relax |
| 7787 |
}{% |
| 7788 |
\endlist |
| 7789 |
} |
| 7790 |
\newenvironment{quotation}{% |
| 7791 |
\list{}{\listparindent 1em% |
| 7792 |
\itemindent \listparindent |
| 7793 |
\rightmargin \leftmargin |
| 7794 |
\parsep \z@ \@plus\p@ |
| 7795 |
}% |
| 7796 |
\item\relax |
| 7797 |
}{% |
| 7798 |
\endlist |
| 7799 |
} |
| 7800 |
\newenvironment{quote}{% |
| 7801 |
\list{}{\rightmargin\leftmargin}% |
| 7802 |
\item\relax |
| 7803 |
}{% |
| 7804 |
\endlist |
| 7805 |
} |
| 7806 |
\newenvironment{addmargin}{% |
| 7807 |
\@tempswafalse\@addmargin |
| 7808 |
}{% |
| 7809 |
\advance\@listdepth\@ne |
| 7810 |
\endlist |
| 7811 |
} |
| 7812 |
\newenvironment{addmargin*}{% |
| 7813 |
\@tempswafalse |
| 7814 |
\if@twoside\is@thispageodd[]\ifthispagewasodd\else\@tempswatrue\fi |
| 7815 |
\edef\scr@addmargin@startpage{\csname tpo@\scr@tpo\endcsname}\fi |
| 7816 |
\@addmargin |
| 7817 |
}{% |
| 7818 |
\if@twoside |
| 7819 |
\unskip\nobreak\Ifthispageodd{}{}% |
| 7820 |
\expandafter\ifx\csname tpo@\scr@tpo\endcsname\scr@addmargin@startpage\else |
| 7821 |
\ClassWarning{\KOMAClassName}{% |
| 7822 |
page break inside `addmargin*' environment.\MessageBreak |
| 7823 |
A `addmargin*' environment starting on page |
| 7824 |
\scr@addmargin@startpage\MessageBreak |
| 7825 |
ends on page \csname tpo@\scr@tpo\endcsname.\MessageBreak |
| 7826 |
This will result in potential wrong margins on\MessageBreak |
| 7827 |
every other page.\MessageBreak |
| 7828 |
So maybe you should change the `addmargin*'\MessageBreak |
| 7829 |
environment, that ends% |
| 7830 |
}% |
| 7831 |
\fi |
| 7832 |
\fi |
| 7833 |
\advance\@listdepth\@ne |
| 7834 |
\endlist |
| 7835 |
} |
| 7836 |
\newcommand*{\@addmargin}[2][\@tempa]{% |
| 7837 |
\list{}{% |
| 7838 |
\if@tempswa |
| 7839 |
\def\@tempa{\leftmargin}% |
| 7840 |
\setlength{\leftmargin}{#2}% |
| 7841 |
\setlength{\rightmargin}{#1}% |
| 7842 |
\else |
| 7843 |
\def\@tempa{\rightmargin}% |
| 7844 |
\setlength{\rightmargin}{#2}% |
| 7845 |
\setlength{\leftmargin}{#1}% |
| 7846 |
\fi |
| 7847 |
\setlength{\listparindent}{\parindent}% |
| 7848 |
\setlength{\itemsep}{\parskip}% |
| 7849 |
\setlength{\itemindent}{\z@}% |
| 7850 |
\setlength{\@tempskipa}{\topsep}% |
| 7851 |
\setlength{\topsep}{\z@}% |
| 7852 |
\setlength{\parsep}{\parskip}% |
| 7853 |
\setlength{\@tempskipb}{\partopsep}% |
| 7854 |
\setlength{\partopsep}{\z@}% |
| 7855 |
\let\makelabel\@gobble |
| 7856 |
\setlength{\labelwidth}{\z@}% |
| 7857 |
\advance\@listdepth\m@ne |
| 7858 |
}% |
| 7859 |
\expandafter\ifnum\scr@v@is@ge{3.22}% |
| 7860 |
\setlength{\topsep}{\@tempskipa}% |
| 7861 |
\setlength{\partopsep}{\@tempskipb}% |
| 7862 |
\fi |
| 7863 |
\item\is@thispageodd@setlabel\nobreak\ignorespaces |
| 7864 |
} |
| 7865 |
\newcommand*\descfont{\maybesffamily\bfseries} |
| 7866 |
\newcommand*{\scr@fnt@descriptionlabel}{\descfont} |
| 7867 |
\newcommand*{\labelitemfont}{\normalfont} |
| 7868 |
\newcommand*\scr@fnt@itemizelabel{\labelitemfont} |
| 7869 |
\newkomafont{labelitemi}{\usekomafont{itemizelabel}} |
| 7870 |
\newkomafont{labelitemii}{\usekomafont{itemizelabel}\bfseries} |
| 7871 |
\newkomafont{labelitemiii}{\usekomafont{itemizelabel}} |
| 7872 |
\newkomafont{labelitemiv}{\usekomafont{itemizelabel}} |
| 7873 |
\newkomafont{enumeratelabel}{} |
| 7874 |
\newkomafont{labelenumi}{\usekomafont{enumeratelabel}} |
| 7875 |
\newkomafont{labelenumii}{\usekomafont{enumeratelabel}} |
| 7876 |
\newkomafont{labelenumiii}{\usekomafont{enumeratelabel}} |
| 7877 |
\newkomafont{labelenumiv}{\usekomafont{enumeratelabel}} |
| 7878 |
\newkomafont{labelinglabel}{} |
| 7879 |
\newkomafont{labelingseparator}{} |
| 7880 |
\setlength\arraycolsep{5\p@} |
| 7881 |
\setlength\tabcolsep{6\p@} |
| 7882 |
\setlength\arrayrulewidth{.4\p@} |
| 7883 |
\setlength\doublerulesep{2\p@} |
| 7884 |
\setlength\tabbingsep{\labelsep} |
| 7885 |
%%% From File: $Id: scrlogo.dtx 4032 2023-04-17 09:45:11Z kohm $ |
| 7886 |
\RequirePackage{scrlogo} |
| 7887 |
\endinput |
| 7888 |
%% |
| 7889 |
%% End of file `scrbook.cls'. |