| 1 |
%% |
| 2 |
%% This is file `scrkbase.sty', |
| 3 |
%% generated with the docstrip utility, extended by scrdocstrip. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% scrkernel-version.dtx (with options: `package,scrkbase') |
| 8 |
%% scrkernel-basics.dtx (with options: `package,prepare,koma') |
| 9 |
%% scrkernel-basics.dtx (with options: `package,option,koma') |
| 10 |
%% scrkernel-fonts.dtx (with options: `package,option,scrkbase') |
| 11 |
%% scrkernel-basics.dtx (with options: `package,body,koma') |
| 12 |
%% scrkernel-fonts.dtx (with options: `package,body,scrkbase') |
| 13 |
%% scrlogo.dtx (with options: `logo') |
| 14 |
%% |
| 15 |
%% Copyright (c) 1994-2026 Markus Kohm [komascript at gmx info] |
| 16 |
%% |
| 17 |
%% This file was generated from file(s) of the KOMA-Script bundle. |
| 18 |
%% --------------------------------------------------------------- |
| 19 |
%% |
| 20 |
%% It may be distributed under the conditions of the |
| 21 |
%% LaTeX Project Public License in the version distributed together |
| 22 |
%% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'. |
| 23 |
%% |
| 24 |
%% This file may only be distributed together with a copy of the |
| 25 |
%% KOMA-Script bundle. You may however distribute the |
| 26 |
%% KOMA-Script bundle without all such generated files. See also |
| 27 |
%% `lppl.txt' or `lppl-de.txt' for additional information. |
| 28 |
%% |
| 29 |
%% The list of files belonging to KOMA-Script distribution is given in |
| 30 |
%% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for |
| 31 |
%% additional information. |
| 32 |
%% |
| 33 |
%% If this file is a beta version, you may not be allowed to distribute |
| 34 |
%% it. Look at the comments below to see if this is the case. |
| 35 |
%% |
| 36 |
%% English and German manuals are part of KOMA-Script bundle. |
| 37 |
%% ---------------------------------------------------------- |
| 38 |
%% |
| 39 |
%% See `README'. |
| 40 |
%% |
| 41 |
%% The KOMA-Script bundle (but maybe not this file) was based upon the |
| 42 |
%% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e |
| 43 |
%% standard classes created by The LaTeX3 Project 1994-1996. You can |
| 44 |
%% find a complete unmodified copy of LaTeX2e at |
| 45 |
%% <http://mirror.ctan.org/tex-archive/macros/latex/base/>. |
| 46 |
%% |
| 47 |
%%% From File: $Id: scrkernel-version.dtx 4261 2026-02-02 09:02:14Z kohm $ |
| 48 |
\providecommand*{\@CheckKOMAScriptVersion}{% |
| 49 |
\begingroup |
| 50 |
\ExplSyntaxOff |
| 51 |
\@@CheckKOMAScriptVersion |
| 52 |
} |
| 53 |
\providecommand*{\@@CheckKOMAScriptVersion}[1]{% |
| 54 |
\@ifundefined{KOMAScriptVersion}{% |
| 55 |
\gdef\KOMAScriptVersion{#1}% |
| 56 |
}{% |
| 57 |
\def\@tempa{#1}% |
| 58 |
\ifx\KOMAScriptVersion\@tempa\else |
| 59 |
\GenericWarning{\space\@spaces\@spaces\@spaces\@spaces}{% |
| 60 |
Version warning: |
| 61 |
\noexpand\KOMAScriptVersion is |
| 62 |
`\csname KOMAScriptVersion\endcsname',\MessageBreak |
| 63 |
but `#1' was expected!\MessageBreak |
| 64 |
You should not use classes, packages or files |
| 65 |
from\MessageBreak |
| 66 |
different KOMA-Script versions\@gobble |
| 67 |
}% |
| 68 |
\fi |
| 69 |
}% |
| 70 |
\endgroup |
| 71 |
} |
| 72 |
\@CheckKOMAScriptVersion{2026/02/02 v3.49.2 KOMA-Script}% |
| 73 |
\providecommand*{\scr@pkgextension}{\@pkgextension} |
| 74 |
\AtBeginDocument{% |
| 75 |
\let\scr@pkgextension\@pkgextension |
| 76 |
} |
| 77 |
%%% From File: $Id: scrkernel-basics.dtx 4198 2025-08-15 09:19:27Z kohm $ |
| 78 |
%%% (run: prepare) |
| 79 |
\NeedsTeXFormat{LaTeX2e}[2022/06/01] |
| 80 |
\ProvidesPackage{% |
| 81 |
scrkbase% |
| 82 |
}[% |
| 83 |
2026/02/02 v3.49.2 KOMA-Script |
| 84 |
package |
| 85 |
(% |
| 86 |
KOMA-Script-dependent |
| 87 |
basics and keyval usage)] |
| 88 |
\RequirePackage{scrbase}[\KOMAScriptVersion] |
| 89 |
\IfLTXAtLeastTF{2022/06/01}{}{% |
| 90 |
\@ifundefined{KOMAClassName} |
| 91 |
{\PackageError{scrkbase}} |
| 92 |
{\ClassError{\KOMAClassName}} |
| 93 |
{% |
| 94 |
LaTeX kernel too old!\MessageBreak |
| 95 |
This version of KOMA-Script requires at least\MessageBreak |
| 96 |
LaTeX 2022-06-01.\MessageBreak |
| 97 |
You need to either use an older version of\MessageBreak |
| 98 |
KOMA-Script or update your LaTeX kernel.\MessageBreak |
| 99 |
Sorry, but this error is fatal.\MessageBreak |
| 100 |
You cannot continue. Aborting LaTeX run% |
| 101 |
} |
| 102 |
{No further help available!}% |
| 103 |
\batchmode \immediate\read -1 to \@tempa |
| 104 |
} |
| 105 |
\providecommand*\IfPackageLoadedT[1]{\IfPackageLoadedTF{#1}\@firstofone\@gobble} |
| 106 |
\providecommand*\IfPackageLoadedF[1]{\IfPackageLoadedTF{#1}{}} |
| 107 |
\ProvideDocumentCommand\@gobble@o{+o}{} |
| 108 |
\ProvideExpandableDocumentCommand\@gobble@om{+o+m}{} |
| 109 |
\ProvideExpandableDocumentCommand\@gobble@som{s+o+m}{} |
| 110 |
\newcommand*{\KOMA@key}[1][\@currname.\@currext]{% |
| 111 |
\DefineFamilyMember[{.#1}]{KOMA}% |
| 112 |
\@ifundefined{scr@kav@KOMA.#1}{\@namedef{scr@kav@KOMA.#1}{}}{}% |
| 113 |
\DefineFamilyKey[{.#1}]{KOMA}% |
| 114 |
} |
| 115 |
\newcommand*{\KOMA@kav@add}[3]{% |
| 116 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 117 |
\KOMA@internal@error\KOMA@kav@add{#1}% |
| 118 |
}{% |
| 119 |
\expandafter\l@addto@macro\csname scr@kav@KOMA.#1\endcsname{\do{{#2}{#3}}}% |
| 120 |
}% |
| 121 |
} |
| 122 |
\newcommand*{\KOMA@kav@xadd}[3]{% |
| 123 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 124 |
\KOMA@internal@error\KOMA@kav@xadd{#1}% |
| 125 |
}{% |
| 126 |
\protected@edef\reserved@a{{#2}{#3}}% |
| 127 |
\expandafter\l@addto@macro\csname scr@kav@KOMA.#1\expandafter\endcsname |
| 128 |
\expandafter{\expandafter\do\expandafter{\reserved@a}}% |
| 129 |
}% |
| 130 |
} |
| 131 |
\newcommand*{\KOMA@kav@remove}[3]{% |
| 132 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 133 |
\KOMA@internal@error\KOMA@kav@remove{#1}% |
| 134 |
}{% |
| 135 |
\begingroup |
| 136 |
\def\reserved@a{\endgroup\@namedef{scr@kav@KOMA.#1}{}}% |
| 137 |
\edef\reserved@b{\detokenize{{#2}{#3}}}% |
| 138 |
\def\do##1{% |
| 139 |
\edef\reserved@c{\detokenize{##1}}% |
| 140 |
\ifx\reserved@b\reserved@c\else |
| 141 |
\l@addto@macro\reserved@a{% |
| 142 |
\expandafter\l@addto@macro\csname scr@kav@KOMA.#1\endcsname{% |
| 143 |
\do{##1}% |
| 144 |
}% |
| 145 |
}% |
| 146 |
\fi |
| 147 |
}% |
| 148 |
\@nameuse{scr@kav@KOMA.#1}% |
| 149 |
\reserved@a |
| 150 |
}% |
| 151 |
} |
| 152 |
\newcommand*{\KOMA@kav@removekey}[2]{% |
| 153 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 154 |
\KOMA@internal@error\KOMA@kav@removekey{#1}% |
| 155 |
}{% |
| 156 |
\begingroup |
| 157 |
\def\reserved@a{\endgroup\@namedef{scr@kav@KOMA.#1}{}}% |
| 158 |
\edef\reserved@b{\detokenize{#2}}% |
| 159 |
\def\reserved@d##1##2{\edef\reserved@c{\detokenize{##1}}}% |
| 160 |
\def\do##1{% |
| 161 |
\reserved@d##1\relax |
| 162 |
\ifx\reserved@b\reserved@c\else |
| 163 |
\l@addto@macro\reserved@a{% |
| 164 |
\expandafter\l@addto@macro\csname scr@kav@KOMA.#1\endcsname{% |
| 165 |
\do{##1}% |
| 166 |
}% |
| 167 |
}% |
| 168 |
\fi |
| 169 |
}% |
| 170 |
\@nameuse{scr@kav@KOMA.#1}% |
| 171 |
\reserved@a |
| 172 |
}% |
| 173 |
} |
| 174 |
\newcommand*{\KOMA@kav@replacevalue}[3]{% |
| 175 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 176 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 177 |
\KOMA@internal@error\KOMA@kav@replacevalue{#1}% |
| 178 |
}{% |
| 179 |
\KOMA@kav@removekey{#1}{#2}% |
| 180 |
\KOMA@kav@add{#1}{#2}{#3}% |
| 181 |
}% |
| 182 |
\fi |
| 183 |
} |
| 184 |
\newcommand*{\KOMA@kav@xreplacevalue}[3]{% |
| 185 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 186 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 187 |
\KOMA@internal@error\KOMA@kav@replacevalue{#1}% |
| 188 |
}{% |
| 189 |
\KOMA@kav@removekey{#1}{#2}% |
| 190 |
\KOMA@kav@xadd{#1}{#2}{#3}% |
| 191 |
}% |
| 192 |
\fi |
| 193 |
} |
| 194 |
\newcommand*{\KOMA@kav@replacebool}[3]{% |
| 195 |
\ifx\FamilyKeyState\FamilyKeyStateProcessed |
| 196 |
\@ifundefined{scr@kav@KOMA.#1}{% |
| 197 |
\KOMA@internal@error\KOMA@kav@replacebool{#1}% |
| 198 |
}{% |
| 199 |
\KOMA@kav@remove{#1}{#2}{false}% |
| 200 |
\KOMA@kav@remove{#1}{#2}{true}% |
| 201 |
\expandafter\ifx\csname if#3\expandafter\endcsname |
| 202 |
\csname iftrue\endcsname |
| 203 |
\KOMA@kav@xadd{#1}{#2}{true}% |
| 204 |
\else |
| 205 |
\KOMA@kav@xadd{#1}{#2}{false}% |
| 206 |
\fi |
| 207 |
}% |
| 208 |
\fi |
| 209 |
} |
| 210 |
\newcommand*{\KOMA@kav@defall}[2]{% |
| 211 |
\@ifundefined{scr@kav@KOMA.#2}{% |
| 212 |
\KOMA@internal@error\KOMA@kav@defall{#1}% |
| 213 |
}{% |
| 214 |
\begingroup |
| 215 |
\let\reserved@a\@empty |
| 216 |
\def\reserved@b##1##2{\l@addto@macro\reserved@a{,{##1=##2}}}% |
| 217 |
\def\do##1{\reserved@b##1}% |
| 218 |
\@nameuse{scr@kav@KOMA.#2}% |
| 219 |
\ifx\reserved@a\@empty |
| 220 |
\def\reserved@b{\endgroup\let#1\@empty}% |
| 221 |
\else |
| 222 |
\edef\reserved@b{% |
| 223 |
\unexpanded{\endgroup\def#1}{% |
| 224 |
\unexpanded |
| 225 |
\expandafter\expandafter\expandafter{% |
| 226 |
\expandafter\@gobble\reserved@a}}}% |
| 227 |
\fi |
| 228 |
\reserved@b |
| 229 |
}% |
| 230 |
} |
| 231 |
\newcommand*{\KOMA@kav@defone}[3]{% |
| 232 |
\@ifundefined{scr@kav@KOMA.#2}{% |
| 233 |
\KOMA@internal@error\KOMA@kav@defall{#1}% |
| 234 |
}{% |
| 235 |
\begingroup |
| 236 |
\let\reserved@a\@empty |
| 237 |
\def\reserved@b##1##2{% |
| 238 |
\Ifstr{##1}{#3}{\l@addto@macro\reserved@a{,{##2}}}{}% |
| 239 |
}% |
| 240 |
\def\do##1{\reserved@b##1}% |
| 241 |
\@nameuse{scr@kav@KOMA.#2}% |
| 242 |
\ifx\reserved@a\@empty |
| 243 |
\def\reserved@b{\endgroup\let#1\@empty}% |
| 244 |
\else |
| 245 |
\edef\reserved@b{% |
| 246 |
\unexpanded{\endgroup\def#1}{% |
| 247 |
\unexpanded |
| 248 |
\expandafter\expandafter\expandafter{% |
| 249 |
\expandafter\@gobble\reserved@a}}}% |
| 250 |
\fi |
| 251 |
\reserved@b |
| 252 |
}% |
| 253 |
} |
| 254 |
\newcommand*{\KOMA@internal@error}[2]{% |
| 255 |
\PackageError{scrkbase}{internal error using \string#1{#2}}{% |
| 256 |
You've found an internal error either in KOMA-Script or a third |
| 257 |
party\MessageBreak |
| 258 |
definition, that uses KOMA-Script internal macros.\MessageBreak |
| 259 |
Please send a bug report with a minimal but complete example, |
| 260 |
that\MessageBreak |
| 261 |
shows this error, to komascript at gmx dot info or report it |
| 262 |
at\MessageBreak |
| 263 |
<https://sf.net/p/koma-script/tickets/> (you need an account to do so).% |
| 264 |
}% |
| 265 |
} |
| 266 |
\newcommand*{\KOMAProcessOptions}{\FamilyProcessOptions{KOMA}} |
| 267 |
\@onlypreamble\KOMAProcessOptions |
| 268 |
%%% From File: $Id: scrkernel-basics.dtx 4198 2025-08-15 09:19:27Z kohm $ |
| 269 |
%%% (run: option) |
| 270 |
\KOMAProcessOptions\relax |
| 271 |
%%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 272 |
%%% (run: option) |
| 273 |
%%% From File: $Id: scrkernel-basics.dtx 4198 2025-08-15 09:19:27Z kohm $ |
| 274 |
%%% (run: body) |
| 275 |
\newcommand*{\KOMAExecuteOptions}[1][\@currname.\@currext]{% |
| 276 |
\Ifstrstart{#1}{.}{% |
| 277 |
\PackageWarning{scrkbase}{Deprecated initial dot of member |
| 278 |
argument\MessageBreak |
| 279 |
of \string\KOMAExecuteOptions\space detected% |
| 280 |
}% |
| 281 |
\expandafter\FamilyExecuteOptions[#1]% |
| 282 |
}{% |
| 283 |
\FamilyExecuteOptions[.#1]% |
| 284 |
}% |
| 285 |
{KOMA}% |
| 286 |
} |
| 287 |
\newcommand*{\KOMAoptions}{\FamilyOptions{KOMA}} |
| 288 |
\newcommand*{\KOMAoptionsOf}[2][\@firstofone]{% |
| 289 |
\scr@ifundefinedorrelax{scr@kav@KOMA.#2}{% |
| 290 |
\PackageError{scrkbase}{\string\KOMAoptionsOf\space not supported}{% |
| 291 |
#2 is not the name of a KOMA-Script package or\MessageBreak |
| 292 |
KOMA-Script class, that supports \string\KOMAoptionsOf.}% |
| 293 |
}{% |
| 294 |
\begingroup |
| 295 |
\def\reserved@a{#1}% |
| 296 |
\KOMA@kav@defall\reserved@b{#2}% |
| 297 |
\expandafter\expandafter\expandafter\endgroup |
| 298 |
\expandafter\reserved@a\expandafter{\reserved@b}% |
| 299 |
}% |
| 300 |
} |
| 301 |
\newcommand*{\KOMAoptionOf}[3][\@firstofone]{% |
| 302 |
\scr@ifundefinedorrelax{scr@kav@KOMA.#2}{% |
| 303 |
\PackageError{scrkbase}{\string\KOMAoptionOf\space not supported}{% |
| 304 |
#2 is not the name of a KOMA-Script package or\MessageBreak |
| 305 |
KOMA-Script class, that supports \string\KOMAoptionOf.}% |
| 306 |
}{% |
| 307 |
\begingroup |
| 308 |
\def\reserved@a{#1}% |
| 309 |
\KOMA@kav@defone\reserved@b{#2}{#3}% |
| 310 |
\ifx\reserved@b\@empty |
| 311 |
\PackageWarning{scrkbase}{option `#3' for `#2' unset}% |
| 312 |
\endgroup |
| 313 |
\else |
| 314 |
\expandafter\expandafter\expandafter\endgroup |
| 315 |
\expandafter\reserved@a\expandafter{\reserved@b}% |
| 316 |
\fi |
| 317 |
}% |
| 318 |
} |
| 319 |
\newcommand*{\AfterKOMAoptions}{\AtEndOfFamilyOptions} |
| 320 |
\newcommand*{\KOMAoption}{\FamilyOption{KOMA}} |
| 321 |
\newcommand*{\KOMA@unknown@keyval}{\FamilyUnknownKeyValue{KOMA}} |
| 322 |
\newcommand*{\KOMA@ifkey}[2][\@currname.\@currext]{% |
| 323 |
\begingroup\edef\reserved@a{\noexpand\KOMA@@ifkey{#1}{#2}}% |
| 324 |
\expandafter\endgroup\reserved@a |
| 325 |
} |
| 326 |
\newcommand*{\KOMA@@ifkey}[3]{% |
| 327 |
\@ifundefined{if#3}{% |
| 328 |
\expandafter\newif\csname if#3\endcsname |
| 329 |
}{}% |
| 330 |
\KOMA@key[{#1}]{#2}[true]{% |
| 331 |
\KOMA@set@ifkey{#2}{#3}{##1}% |
| 332 |
\KOMA@kav@replacebool{#1}{#2}{#3}% |
| 333 |
}% |
| 334 |
\csname if#3\endcsname |
| 335 |
\KOMA@kav@xadd{#1}{#2}{true}% |
| 336 |
\else |
| 337 |
\KOMA@kav@xadd{#1}{#2}{false}% |
| 338 |
\fi |
| 339 |
} |
| 340 |
\newcommand*{\KOMA@set@ifkey}{\FamilySetBool{KOMA}} |
| 341 |
\newcommand*{\KOMA@ncmdkey}[2][\@currname.\@currext]{% |
| 342 |
\begingroup\edef\reserved@a{\noexpand\KOMA@@ncmdkey{#1}{#2}}% |
| 343 |
\expandafter\endgroup\reserved@a |
| 344 |
} |
| 345 |
\newcommand*{\KOMA@@ncmdkey}[2]{% |
| 346 |
\kernel@ifnextchar [%] |
| 347 |
{\KOMA@@@ncmdkey{#1}{#2}}{\KOMA@@@ncmdkey{#1}{#2}[]} |
| 348 |
} |
| 349 |
\newcommand*{\KOMA@@@ncmdkey}{} |
| 350 |
\def\KOMA@@@ncmdkey#1#2[#3]#4#5{% |
| 351 |
\@ifundefined{#4}{\@namedef{#4}{0}}{}% |
| 352 |
\ifx\relax#3\relax |
| 353 |
\KOMA@key[{#1}]{#2}{% |
| 354 |
\KOMA@set@ncmdkey{#2}{#4}{#5}{##1}% |
| 355 |
\KOMA@kav@replacevalue{#1}{#2}{##1}% |
| 356 |
}% |
| 357 |
\else |
| 358 |
\KOMA@key[{#1}]{#2}[{#3}]{% |
| 359 |
\KOMA@set@ncmdkey{#2}{#4}{#5}{##1}% |
| 360 |
\KOMA@kav@replacevalue{#1}{#2}{##1}% |
| 361 |
}% |
| 362 |
\fi |
| 363 |
} |
| 364 |
\newcommand*{\KOMA@set@ncmdkey}{\FamilySetNumerical{KOMA}} |
| 365 |
\newcommand*{\KOMA@DeclareDeprecatedOption}{% |
| 366 |
\kernel@ifnextchar [%] |
| 367 |
{\KOMA@@DeclareDeprecatedOption}% |
| 368 |
{\KOMA@@@DeclareDeprecatedOption{\ClassWarningNoLine{\KOMAClassName}}}% |
| 369 |
} |
| 370 |
\newcommand*{\KOMA@@DeclareDeprecatedOption}[1][]{% |
| 371 |
\KOMA@@@DeclareDeprecatedOption{\PackageWarningNoLine{#1}}% |
| 372 |
} |
| 373 |
\newcommand*{\KOMA@@@DeclareDeprecatedOption}[3]{% |
| 374 |
\DeclareOption{#2}{\KOMA@UseDeprecatedOption{#1}{#2}{#3}}% |
| 375 |
} |
| 376 |
\newcommand*{\KOMA@UseDeprecatedOption}[3]{% |
| 377 |
\begingroup |
| 378 |
\scr@ifundefinedorrelax{KV@KOMA.\@currname.\@currext @version}{% |
| 379 |
\edef\reserved@a{\noexpand\endgroup |
| 380 |
\noexpand#1{% |
| 381 |
You've used deprecated option `\detokenize{#2}'.\noexpand\MessageBreak |
| 382 |
Usage of this option is deprecated.\noexpand\MessageBreak |
| 383 |
You should simply replace `\detokenize{#2}'\noexpand\MessageBreak |
| 384 |
by `\detokenize{#3}'% |
| 385 |
}% |
| 386 |
\noexpand\KOMAExecuteOptions{#3}% |
| 387 |
\noexpand\def\noexpand\CurrentOption{\CurrentOption}% |
| 388 |
}% |
| 389 |
}{% |
| 390 |
\edef\reserved@a{\noexpand\endgroup |
| 391 |
\noexpand#1{% |
| 392 |
You've used deprecated option `\detokenize{#2}'.\noexpand\MessageBreak |
| 393 |
Usage of this option indicates an old document\noexpand\MessageBreak |
| 394 |
and changes compatibility level using\noexpand\MessageBreak |
| 395 |
`\detokenize{#3},version=first,\noexpand\MessageBreak |
| 396 |
enabledeprecatedfontcommands' that may result\noexpand\MessageBreak |
| 397 |
in further warnings.\noexpand\MessageBreak |
| 398 |
If you don't want this, you should simply\noexpand\MessageBreak |
| 399 |
replace option `\detokenize{#2}' by `\detokenize{#3}'% |
| 400 |
}% |
| 401 |
\noexpand\KOMAExecuteOptions{% |
| 402 |
#3,version=first}% |
| 403 |
\noexpand\ExecuteOptions{enabledeprecatedfontcommands}% |
| 404 |
\noexpand\def\noexpand\CurrentOption{\CurrentOption}% |
| 405 |
}% |
| 406 |
}% |
| 407 |
\reserved@a |
| 408 |
} |
| 409 |
\newcommand*{\KOMA@DeclareStandardOption}{% |
| 410 |
\kernel@ifnextchar [%] |
| 411 |
{\KOMA@@DeclareStandardOption}% |
| 412 |
{\KOMA@@@DeclareStandardOption{\ClassInfoNoLine{\KOMAClassName}}}% |
| 413 |
} |
| 414 |
\newcommand*{\KOMA@@DeclareStandardOption}[1][]{% |
| 415 |
\KOMA@@@DeclareStandardOption{\PackageInfoNoLine{#1}}% |
| 416 |
} |
| 417 |
\newcommand*{\KOMA@@@DeclareStandardOption}[3]{% |
| 418 |
\DeclareOption{#2}{\KOMA@UseStandardOption{#1}{#2}{#3}}% |
| 419 |
} |
| 420 |
\newcommand*{\KOMA@UseStandardOption}[3]{% |
| 421 |
\begingroup |
| 422 |
\edef\reserved@a{\noexpand\endgroup |
| 423 |
\noexpand#1{% |
| 424 |
You've used standard option `#2'.\noexpand\MessageBreak |
| 425 |
This is correct!\noexpand\MessageBreak |
| 426 |
Internally I'm using `#3'.\noexpand\MessageBreak |
| 427 |
If you'd like to set the option with \string\KOMAoptions,% |
| 428 |
\noexpand\MessageBreak |
| 429 |
you'd have to use `#3' there\noexpand\MessageBreak |
| 430 |
instead of `#2', too% |
| 431 |
}% |
| 432 |
\noexpand\KOMAExecuteOptions{#3}% |
| 433 |
\noexpand\def\noexpand\CurrentOption{\CurrentOption}% |
| 434 |
}% |
| 435 |
\reserved@a |
| 436 |
} |
| 437 |
\newcommand*{\KOMA@newdeprecatedcommand}[3][\@gobbletwo]{% |
| 438 |
\newcommand*{#2}{\KOMA@UseDeprecatedCommand{#1}{\string#2}{#3}}% |
| 439 |
} |
| 440 |
\newcommand*{\KOMA@UseDeprecatedCommand}[3]{% |
| 441 |
#1{% |
| 442 |
scrkbase% |
| 443 |
}{% |
| 444 |
You've used deprecated command `#2'.\MessageBreak |
| 445 |
\protect\KOMAoptions{#3} will be used instead.\MessageBreak |
| 446 |
You should also replace `#2' by `\protect\KOMAoptions{#3}'% |
| 447 |
}% |
| 448 |
\KOMAoptions{#3}% |
| 449 |
} |
| 450 |
%%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $ |
| 451 |
%%% (run: body) |
| 452 |
\newcommand*{\IfExistskomafont}[1]{% |
| 453 |
\scr@ifundefinedorrelax{scr@fnt@#1}{% |
| 454 |
\scr@ifundefinedorrelax{scr@fnt@instead@#1}{\@secondoftwo}{\@firstoftwo}% |
| 455 |
}{% |
| 456 |
\@firstoftwo |
| 457 |
}% |
| 458 |
} |
| 459 |
\newcommand*{\IfIsAliaskomafont}[1]{% |
| 460 |
\scr@ifundefinedorrelax{scr@fnt@#1}{% |
| 461 |
\scr@ifundefinedorrelax{scr@fnt@instead@#1}{\@secondoftwo}{\@firstoftwo}% |
| 462 |
}{% |
| 463 |
\@secondoftwo |
| 464 |
}% |
| 465 |
} |
| 466 |
\newcommand*{\setkomafont}[2]{% |
| 467 |
\@ifundefined{scr@fnt@#1}{% |
| 468 |
\@ifundefined{scr@fnt@instead@#1}{% |
| 469 |
\PackageError{scrkbase}{% |
| 470 |
font of element `#1' can't be set}{% |
| 471 |
You've told me to redefine the font selection of the |
| 472 |
element,\MessageBreak% |
| 473 |
but either no such element is known by |
| 474 |
KOMA-Script\MessageBreak% |
| 475 |
or the element does not use a special font selection% |
| 476 |
}% |
| 477 |
}{% |
| 478 |
\PackageInfo{scrkbase}{% |
| 479 |
You've told me to redefine the font selection of the\MessageBreak |
| 480 |
element `#1' that is an alias of element\MessageBreak |
| 481 |
`\csname scr@fnt@instead@#1\endcsname'% |
| 482 |
}% |
| 483 |
\expandafter\setkomafont\expandafter{% |
| 484 |
\csname scr@fnt@instead@#1\endcsname}{#2}% |
| 485 |
}% |
| 486 |
}{% |
| 487 |
\expandafter\expandafter\expandafter\def\csname scr@fnt@#1\endcsname{#2}% |
| 488 |
}% |
| 489 |
\@ifundefined{scr@fnt@wrn@#1}{}{% |
| 490 |
\PackageWarning{scrkbase}{% |
| 491 |
\csname scr@fnt@wrn@#1\endcsname{#1}% |
| 492 |
}% |
| 493 |
}% |
| 494 |
} |
| 495 |
\newcommand*{\addtokomafont}[2]{% |
| 496 |
\@ifundefined{scr@fnt@#1}{% |
| 497 |
\@ifundefined{scr@fnt@instead@#1}{% |
| 498 |
\PackageError{scrkbase}{% |
| 499 |
font of element `#1' can't be extended% |
| 500 |
}{% |
| 501 |
You've told me to extend the font selection of the |
| 502 |
element,\MessageBreak |
| 503 |
but either no such element is known by |
| 504 |
KOMA-Script\MessageBreak |
| 505 |
or the element does not use a special font selection% |
| 506 |
}% |
| 507 |
}{% |
| 508 |
\PackageInfo{scrkbase}{% |
| 509 |
You've told me to extend the font selection of the\MessageBreak |
| 510 |
element `#1' that is an alias of element\MessageBreak |
| 511 |
`\csname scr@fnt@instead@#1\endcsname'% |
| 512 |
}% |
| 513 |
\expandafter\addtokomafont\expandafter{% |
| 514 |
\csname scr@fnt@instead@#1\endcsname}{#2}% |
| 515 |
}% |
| 516 |
}{% |
| 517 |
\expandafter\expandafter\expandafter\l@addto@macro |
| 518 |
\csname scr@fnt@#1\endcsname{#2}% |
| 519 |
}% |
| 520 |
\@ifundefined{scr@fnt@wrn@#1}{}{% |
| 521 |
\PackageWarning{scrkbase}{% |
| 522 |
\csname scr@fnt@wrn@#1\endcsname{#1}% |
| 523 |
}% |
| 524 |
}% |
| 525 |
} |
| 526 |
\newcommand*{\usekomafont}[1]{% |
| 527 |
\@ifundefined{scr@fnt@#1}{% |
| 528 |
\@ifundefined{scr@fnt@instead@#1}{% |
| 529 |
\PackageError{scrkbase}{% |
| 530 |
font of element `#1' can't be used% |
| 531 |
}{% |
| 532 |
You've told me to use the font selection of the |
| 533 |
element,\MessageBreak |
| 534 |
but either no such element is known by |
| 535 |
KOMA-Script\MessageBreak |
| 536 |
or the element does not use a special font selection% |
| 537 |
}% |
| 538 |
}{% |
| 539 |
\PackageInfo{scrkbase}{% |
| 540 |
You've told me to use the font selection of the |
| 541 |
element\MessageBreak |
| 542 |
`#1' that is an alias of element `\csname |
| 543 |
scr@fnt@instead@#1\endcsname'\MessageBreak |
| 544 |
}% |
| 545 |
\expandafter\expandafter\expandafter\usekomafont |
| 546 |
\expandafter\expandafter\expandafter{% |
| 547 |
\csname scr@fnt@instead@#1\endcsname}% |
| 548 |
}% |
| 549 |
}{% |
| 550 |
\@nameuse{scr@fnt@#1}% |
| 551 |
}% |
| 552 |
} |
| 553 |
\newcommand*{\usesizeofkomafont}[1]{% |
| 554 |
\begingroup |
| 555 |
\scr@prepareforkomafont |
| 556 |
\sbox\@tempboxa{% |
| 557 |
\usekomafont{#1}{% |
| 558 |
\selectfont |
| 559 |
\global\let\g@scr@f@size\f@size |
| 560 |
\global\let\g@scr@f@baselineskip\f@baselineskip |
| 561 |
\global\let\g@scr@f@linespread\f@linespread |
| 562 |
}% |
| 563 |
}% |
| 564 |
\endgroup |
| 565 |
\linespread{\g@scr@f@linespread}% |
| 566 |
\fontsize{\g@scr@f@size}{\g@scr@f@baselineskip}% |
| 567 |
\selectfont |
| 568 |
} |
| 569 |
\newcommand*{\usefamilyofkomafont}{\use@ofkomafont{family}} |
| 570 |
\newcommand*{\useseriesofkomafont}{\use@ofkomafont{series}} |
| 571 |
\newcommand*{\useshapeofkomafont}{\use@ofkomafont{shape}} |
| 572 |
\newcommand*{\useencodingofkomafont}{\use@ofkomafont{encoding}} |
| 573 |
\newcommand*{\usefontofkomafont}[1]{% |
| 574 |
\begingroup |
| 575 |
\scr@prepareforkomafont |
| 576 |
\sbox\@tempboxa{% |
| 577 |
\usekomafont{#1}{% |
| 578 |
\selectfont |
| 579 |
\global\let\g@scr@f@encoding\f@encoding |
| 580 |
\global\let\g@scr@f@family\f@family |
| 581 |
\global\let\g@scr@f@series\f@series |
| 582 |
\global\let\g@scr@f@shape\f@shape |
| 583 |
\global\let\g@scr@f@size\f@size |
| 584 |
\global\let\g@scr@f@baselineskip\f@baselineskip |
| 585 |
\global\let\g@scr@f@linespread\f@linespread |
| 586 |
}% |
| 587 |
}% |
| 588 |
\endgroup |
| 589 |
\linespread{\g@scr@f@linespread}% |
| 590 |
\fontsize{\g@scr@f@size}{\g@scr@f@baselineskip}% |
| 591 |
\usefont{\g@scr@f@encoding}{\g@scr@f@family}{\g@scr@f@series}{\g@scr@f@shape}% |
| 592 |
}% |
| 593 |
\newcommand*{\use@ofkomafont}[2]{% |
| 594 |
\begingroup |
| 595 |
\scr@prepareforkomafont |
| 596 |
\sbox\@tempboxa{% |
| 597 |
\usekomafont{#2}{% |
| 598 |
\selectfont |
| 599 |
\global\expandafter\let\csname g@scr@f@#1\expandafter\endcsname |
| 600 |
\csname f@#1\endcsname |
| 601 |
}% |
| 602 |
}% |
| 603 |
\endgroup |
| 604 |
\@nameuse{font#1}{\csname g@scr@f@#1\endcsname}% |
| 605 |
\selectfont |
| 606 |
} |
| 607 |
\newcommand*{\g@scr@f@encoding}{}\let\g@scr@f@encoding\f@encoding |
| 608 |
\newcommand*{\g@scr@f@family}{}\let\g@scr@f@family\f@family |
| 609 |
\newcommand*{\g@scr@f@series}{}\let\g@scr@f@series\f@series |
| 610 |
\newcommand*{\g@scr@f@shape}{}\let\g@scr@f@shape\f@shape |
| 611 |
\newcommand*{\g@scr@f@size}{}\let\g@scr@f@size\f@size |
| 612 |
\newcommand*{\g@scr@f@baselineskip}{}\let\g@scr@f@baselineskip\f@baselineskip |
| 613 |
\newcommand*{\g@scr@f@linespread}{}\let\g@scr@f@linespread\f@linespread |
| 614 |
\newcommand*{\scr@komafontrelaxlist}{% |
| 615 |
\do\normalcolor |
| 616 |
} |
| 617 |
\newcommand*{\scr@komafontgobblelist}{% |
| 618 |
\do\color |
| 619 |
} |
| 620 |
\newcommand*{\scr@komafontonearglist}{% |
| 621 |
\do\MakeUppercase \do\MakeLowercase |
| 622 |
} |
| 623 |
\newcommand*{\scr@prepareforkomafont}{% |
| 624 |
\long\def\do##1{\let##1\relax}\scr@komafontrelaxlist |
| 625 |
\long\def\do##1{\let##1\@gobble}\scr@komafontgobblelist |
| 626 |
\long\def\do##1{\let##1\@firstofone}\scr@komafontonearglist |
| 627 |
} |
| 628 |
\newcommand*{\addtokomafontrelaxlist}[1]{% |
| 629 |
\l@addto@macro\scr@komafontrelaxlist{\do#1}% |
| 630 |
} |
| 631 |
\newcommand*{\addtokomafontgobblelist}[1]{% |
| 632 |
\l@addto@macro\scr@komafontgobblelist{\do#1}% |
| 633 |
} |
| 634 |
\newcommand*{\addtokomafontonearglist}[1]{% |
| 635 |
\l@addto@macro\scr@komafontonearglist{\do#1}% |
| 636 |
} |
| 637 |
\newcommand*{\newkomafont}[3][\relax]{% |
| 638 |
\scr@ifundefinedorrelax{scr@fnt@instead@#2}{}{% |
| 639 |
\PackageWarning{scrkbase}{% |
| 640 |
Making stand-alone element `#2' from\MessageBreak |
| 641 |
alias to `\@nameuse{scr@fnt@instead@#2}' |
| 642 |
}% |
| 643 |
\expandafter\let\csname scr@fnt@instead@#2\endcsname\relax |
| 644 |
}% |
| 645 |
\expandafter\newcommand\expandafter*\csname @#2font\endcsname{#3}% |
| 646 |
\expandafter\expandafter\expandafter\newcommand |
| 647 |
\expandafter\expandafter\expandafter*% |
| 648 |
\expandafter\csname scr@fnt@#2\expandafter\endcsname\expandafter{% |
| 649 |
\csname @#2font\endcsname% |
| 650 |
}% |
| 651 |
\ifx\relax#1\relax\else |
| 652 |
\expandafter\newcommand\expandafter*\csname scr@fnt@wrn@#2\endcsname[1]{#1}% |
| 653 |
\fi |
| 654 |
} |
| 655 |
\newcommand*{\aliaskomafont}[2]{% |
| 656 |
\scr@ifundefinedorrelax{scr@fnt@#1}{}{% |
| 657 |
\PackageWarning{scrkbase}{% |
| 658 |
Redefining stand alone element `#1' as\MessageBreak |
| 659 |
alias to `#2'% |
| 660 |
} |
| 661 |
\expandafter\let\csname scr@fnt@#1\endcsname\relax |
| 662 |
}% |
| 663 |
\scr@ifundefinedorrelax{scr@fnt@wrn@#1}{}{% |
| 664 |
\expandafter\let\csname scr@fnt@wrn@#1\encsname\relax |
| 665 |
} |
| 666 |
\expandafter\newcommand\expandafter*\csname scr@fnt@instead@#1\endcsname{% |
| 667 |
#2% |
| 668 |
}% |
| 669 |
} |
| 670 |
%%% From File: $Id: scrlogo.dtx 4032 2023-04-17 09:45:11Z kohm $ |
| 671 |
\RequirePackage{scrlogo} |
| 672 |
\endinput |
| 673 |
%% |
| 674 |
%% End of file `scrkbase.sty'. |