Debian Codegraph @

texmf-dist/source/latex/koma-script/scrkernel-compatibility.dtx

raw
1 % \iffalse meta-comment
2 % ======================================================================
3 % scrkernel-compatibility.dtx
4 % Copyright (c) Markus Kohm, 2006-2025
5 %
6 % This file is part of the LaTeX2e KOMA-Script bundle.
7 %
8 % This work may be distributed and/or modified under the conditions of
9 % the LaTeX Project Public License, version 1.3c of the license.
10 % The latest version of this license is in
11 % http://www.latex-project.org/lppl.txt
12 % and version 1.3c or later is part of all distributions of LaTeX
13 % version 2005/12/01 or later and of this work.
14 %
15 % This work has the LPPL maintenance status "author-maintained".
16 %
17 % The Current Maintainer and author of this work is Markus Kohm.
18 %
19 % This work consists of all files listed in MANIFEST.md.
20 % ======================================================================
21 %%% From File: $Id: scrkernel-compatibility.dtx 4261 2026-02-02 09:02:14Z kohm $
22 %<identify>%%% (run: identify)
23 %<init>%%% (run: init)
24 %<option>%%% (run: option)
25 %<body>%%% (run: body)
26 %<*dtx>
27 \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
28 \begingroup
29 \def\filedate$#1: #2-#3-#4 #5${\def\filedate{#2/#3/#4}}
30 \filedate$Date: 2026-02-02 10:02:14 +0100 (Mo, 02. Feb 2026) $
31 \def\filerevision$#1: #2 ${\def\filerevision{r#2}}
32 \filerevision$Revision: 4261 $
33 \edef\reserved@a{%
34 \noexpand\endgroup
35 \noexpand\ProvidesFile{scrkernel-compatibility.dtx}%
36 [\filedate\space\filerevision\space
37 KOMA-Script source
38 (compatibility)]
39 }%
40 \reserved@a
41 \documentclass[USenglish]{koma-script-source-doc}
42 \usepackage{babel}
43 \usepackage{hvlogos}
44 \setcounter{StandardModuleDepth}{2}
45 \begin{document}
46 \DocInput{scrkernel-compatibility.dtx}
47 \end{document}
48 %</dtx>
49 % \fi^^A meta-comment
50 %
51 % \changes{v2.95}{2006/03/16}{new by splitting \file{scrclass.dtx}}
52 % \changes{v3.36}{2022/02/21}{switch over from \cls*{scrdoc} to
53 % \cls*{koma-script-source-doc}}
54 % \changes{v3.36}{2022/02/21}{whole implementation documentation in English}
55 % \changes{v3.40}{2023/04/17}{guide names changed}
56 %
57 % \GetFileInfo{scrkernel-compatibility.dtx}
58 % \title{Compatibility with prior Versions of
59 % \href{https://komascript.de}{\KOMAScript}}
60 % \author{\href{mailto:[email protected]}{Markus Kohm}}
61 % \date{Revision \fileversion{} of \filedate}
62 % \maketitle
63 % \begin{abstract}
64 % \KOMAScript{} has been designed to be as much compatible with the user
65 % interface of the standard classes as possible. Compatibility with internal
66 % commands of the standard classes is not possible and therefore sometimes
67 % given, but mostly not. Compatibility with the lookalike of the standard
68 % classes is not a main purpose of \KOMAScript{}, however with option
69 % \opt{emulatestandardclasses} several layout elements can be changed to
70 % look similar to the standard classes.
71 %
72 % Another compatibility topic is compatibility of \KOMAScript{} to prior
73 % version of \KOMAScript. Sometimes, \KOMAScript{} has been changed to
74 % improve the typography. In most of these cases you can switch back to the
75 % results of prior versions with option \opt{version}.
76 %
77 % All those features are implemented in \file{scrkernel-compatibility.dtx}.
78 % \end{abstract}
79 % \tableofcontents
80 %
81 % \section{User Manual}
82 %
83 % You can find the user documentation of the commands implemented in
84 % \file{scrkernel-compatibility.dtx} in the \KOMAScript{} manual, either the
85 % German \file{scrguide-de.pdf} or the English \file{scrguide-en.pdf}.
86 %
87 %
88 % \MaybeStop{\PrintIndex}
89 %
90 %
91 % \section{Implementation of Compatibility Selection}
92 %
93 % \changes{v3.99}{2022/10/25}{begin of less compatibility of \KOMAScript~4}
94 % For \KOMAScript{} before version 4 there are a lot of compatibility
95 % settings. However, testing of all those are almost impossible and with all
96 % those new features of new \LaTeX{} kernels it will become harder and
97 % harder. So from \KOMAScript~4, compatibility to prior versions will be
98 % reduced a lot. If users need such compatibility, they should use older
99 % releases. However, for some time, at least before the first official release
100 % of \KOMAScript~4, conditionally the sources support generation of a
101 % \KOMAScript~3 compatible version or alternatively of a \KOMAScript~4
102 % compatible version.
103 %
104 % \subsection{Options for compatibility with the standard classes}
105 % There is only one such option, which can only be used while loading a
106 % \KOMAScript{} class.
107 %
108 % \begin{option}{emulatestandardclasses}
109 % \changes{v3.12}{2013/11/11}{added}
110 % \changes{v3.20}{2016/02/16}{\opt{headings\quotechar=standardclasses} also
111 % for \cls*{scrartcl}}
112 % \changes{v3.44}{2025/03/13}{warning added}
113 % Because this option has to change several defaults, it should be used as
114 % early as possible. The earliest time is the load time. So it has been
115 % defined as a classic option.
116 % \begin{macro}{\@scr@emulatestandardclassesfalse,\@scr@emulatestandardclassestrue,
117 % \if@scr@emulatestandardclasses}
118 % \changes{v3.12}{2013/11/11}{added}
119 % We need a boolean switch, but it should be a kind of constant, so the
120 % default changing macros are deactivated.
121 % \begin{macrocode}
122 %<*option&class&!letter>
123 \newif\if@scr@emulatestandardclasses
124 \let\scr@emulatestandardclassestrue\relax
125 \let\scr@emulatestandardclassesfalse\relax
126 \DeclareOption{emulatestandardclasses}{%
127 \ClassWarningNoLine{\KOMAClassName}{%
128 The use of the undocumented and therefore unofficial\MessageBreak
129 and highly experimental option `emulatestandardclasses'\MessageBreak
130 leads to restrictions in support. In particular, it is\MessageBreak
131 to be expected that the function of the option will\MessageBreak
132 change at any time or that the option will be removed\MessageBreak
133 from the \KOMAClassName\space class.%
134 }%
135 \let\if@scr@emulatestandardclasses\iftrue
136 \KOMAExecuteOptions{%
137 fontsize=10pt,%
138 %<article|book|report> headings=standardclasses,%
139 cleardoublepage=current
140 }%
141 \newcommand*{\defaultpapersize}{letter}%
142 \AtEndOfClass{%
143 \setkomafont{descriptionlabel}{\bfseries}%
144 \setkomafont{dictum}{\normalfont\small}%
145 \setkomafont{caption}{}%
146 \setkomafont{captionlabel}{}%
147 \setcapindent{0pt}%
148 \RequirePackage[pagestyleset=standard,markcase=upper]{scrlayer-scrpage}%
149 \PreventPackageFromLoading{scrpage2}%
150 \setkomafont{pagenumber}{\normalfont}%
151 \setkomafont{pageheadfoot}{\normalfont}%
152 \cfoot[\pagemark]{}%
153 %<article|report> \pagestyle{plain}%
154 }%
155 }
156 %</option&class&!letter>
157 % \end{macrocode}
158 % \end{macro}
159 % \end{option}
160 %
161 %
162 % \subsection{Options for compatibility with prior versions of \KOMAScript}
163 %
164 % \changes{v3.99}{2022/10/25}{\KOMAScript~3 only}
165 % All features of this section are limited to \KOMAScript~3. \KOMAScript~4
166 % will not implement it.
167 % \begin{macrocode}
168 %<*!v4>
169 % \end{macrocode}
170 %
171 % For \KOMAScript~3 there is a single option to select compatibility with
172 % exactly one \KOMAScript{} version. The compatibility changes are limited to
173 % feature changes. Bug changes are not affected. So you would never be able to
174 % get exactly the result of the given version using this option. However
175 % falling back to compatibility with a prior version usually also deactivates
176 % other features of the current version.
177 %
178 % \changes{v3.01b}{2008/12/09}{compatibility definitions in packages only, if
179 % not yet defined}
180 %
181 % \begin{option}{version}
182 % \changes{v2.9u}{2005/03/05}{added}
183 % \changes{v2.95}{2006/03/16}{can be used while loading only}
184 % \changes{v3.39}{2022/11/11}{initial dot removed from member argument of
185 % option storage commands}
186 % \begin{macro}{\scr@compatibility}
187 % \changes{v2.9u}{2005/03/05}{added}
188 % \changes{v3.01a}{2008/11/20}{default is \opt{\quotechar=last}}
189 % \begin{macro}{\scr@ta@compatibility}
190 % \changes{v3.01b}{2008/12/09}{added}
191 % Depending on \opt{version=\meta{version}} \cs{scr@compatibility}
192 % resp. \cs{scr@ta@compatibility} will be set to an integer. The mapping from
193 % \meta{version} to the integer is done with several macros
194 % \cs{scr@v@\meta{version}}.
195 % \begin{macrocode}
196 %<*init>
197 %<class>\newcommand*
198 %<package>\providecommand*
199 {\scr@compatibility}{\scr@v@last}
200 %<typearea>\newcommand*{\scr@ta@compatibility}{\scr@compatibility}
201 %</init>
202 %<*option>
203 \KOMA@key{version}[last]{%
204 \scr@ifundefinedorrelax{scr@v@#1}{%
205 \def\scr@compatibility{0}%
206 %<class> \ClassWarningNoLine{\KOMAClassName}{%
207 %<*package>
208 \PackageWarningNoLine{%
209 %<extend> scrextend%
210 %<typearea> typearea%
211 %<letter> scrletter%
212 }{%
213 %</package>
214 You have set option `version' to value `#1', but\MessageBreak
215 this value of version is not supported.\MessageBreak
216 Because of this, version was set to `first'%
217 }%
218 \FamilyKeyStateProcessed
219 \KOMA@kav@replacevalue{%
220 %<class> \KOMAClassFileName
221 %<package&extend> scrextend.\scr@pkgextension
222 %<package&typearea> typearea.\scr@pkgextension
223 %<package&letter> scrletter.\scr@pkgextension
224 }{version}{first}%
225 }{%
226 %<class> \ClassInfoNoLine{\KOMAClassName}{%
227 %<*package>
228 \PackageInfoNoLine{%
229 %<extend> scrextend%
230 %<typearea> typearea%
231 %<letter> scrletter%
232 }{%
233 %</package>
234 Switching compatibility level to `#1'%
235 }%
236 %<class|extend|letter> \edef\scr@compatibility{\@nameuse{scr@v@#1}}%
237 %<typearea> \edef\scr@ta@compatibility{\@nameuse{scr@v@#1}}%
238 \FamilyKeyStateProcessed
239 \KOMA@kav@xreplacevalue{%
240 %<class> \KOMAClassFileName
241 %<package&extend> scrextend.\scr@pkgextension
242 %<package&typearea> typearea.\scr@pkgextension
243 %<package&letter> scrletter.\scr@pkgextension
244 }{version}{#1}%
245 \ifnum\scr@compatibility<\scr@v@last
246 %<class> \ClassWarningNoLine{\KOMAClassName}{%
247 %<*package>
248 \PackageWarningNoLine{%
249 %<extend> scrextend%
250 %<typearea> typearea%
251 %<letter> scrletter%
252 }{%
253 %</package>
254 Switching back to an old KOMA-Script release does\MessageBreak
255 not mean, that KOMA-Script is fully compatible with\MessageBreak
256 the old release. If you need full compatibility\MessageBreak
257 to an old KOMA-Script release, you should use that\MessageBreak
258 old KOMA-Script release. However, in that case you\MessageBreak
259 could also need old releases of other packages and\MessageBreak
260 even of the LaTeX kernel.\MessageBreak
261 Please also note, that the KOMA-Script developers\MessageBreak
262 refuse support for documents using `version=#1'.\MessageBreak
263 We recommend to eliminate all deprecated options\MessageBreak
264 and commands. We also recommend to not use option\MessageBreak
265 `version', i.e., with other values than `last'%
266 }%
267 \fi
268 }%
269 }
270 %<class>\KOMA@kav@add{\KOMAClassFileName}{version}{last}
271 % \end{macrocode}
272 % We do not use \cs{FamilyKeyState} if the option is set to late, but
273 % immediately report an error.
274 % \begin{macrocode}
275 %<class>\AtEndOfClass{%
276 %<package>\AtEndOfPackage{%
277 \KOMA@key{version}[]{%
278 %<class> \ClassError{\KOMAClassName}{%
279 %<*package>
280 \PackageError{%
281 %<extend> scrextend%
282 %<typearea> typearea%
283 %<letter> scrletter%
284 }{%
285 %</package>
286 Option `version' too late%
287 }{%
288 Option `version' may be set only while loading the
289 %<class> class.\MessageBreak
290 %<package> package.\MessageBreak
291 But you've tried to set it up later.%
292 }%
293 \FamilyKeyStateProcessed
294 }%
295 }
296 %</option>
297 % \end{macrocode}
298 %
299 % \begin{macrocode}
300 %<*init>
301 % \end{macrocode}
302 % \begin{macro}{\scr@v@first}
303 % \changes{v2.9u}{2005/03/05}{added}
304 % \changes{v3.45}{2025/06/04}{value changed}
305 % \begin{macro}{\scr@[email protected]}
306 % \changes{v2.9u}{2005/03/05}{added}
307 % \changes{v3.45}{2025/06/04}{value changed}
308 % \begin{macro}{\scr@[email protected]}
309 % \changes{v2.9u}{2005/03/05}{added}
310 % \changes{v3.45}{2025/06/04}{value changed}
311 % \begin{macro}{\scr@[email protected]}
312 % \changes{v2.95}{2006/03/23}{added}
313 % \changes{v3.45}{2025/06/04}{value changed}
314 % \begin{macro}{\scr@[email protected]}
315 % \changes{v2.96a}{2006/11/27}{added}
316 % \changes{v3.45}{2025/06/04}{value changed}
317 % \begin{macro}{\scr@[email protected]}
318 % \changes{v2.96a}{2006/11/27}{added}
319 % \changes{v3.45}{2025/06/04}{value changed}
320 % \begin{macro}{\scr@[email protected]}
321 % \changes{v2.96a}{2006/11/27}{added}
322 % \changes{v3.45}{2025/06/04}{value changed}
323 % \begin{macro}{\scr@[email protected]}
324 % \changes{v2.96a}{2006/11/27}{added}
325 % \changes{v3.45}{2025/06/04}{value changed}
326 % \begin{macro}{\scr@[email protected]}
327 % \changes{v2.97}{2007/03/02}{added}
328 % \changes{v3.45}{2025/06/04}{value changed}
329 % \begin{macro}{\scr@[email protected]}
330 % \changes{v2.97a}{2007/03/07}{added}
331 % \changes{v3.45}{2025/06/04}{value changed}
332 % \begin{macro}{\scr@[email protected]}
333 % \changes{v2.97b}{2007/03/25}{added}
334 % \changes{v3.45}{2025/06/04}{value changed}
335 % \begin{macro}{\scr@[email protected]}
336 % \changes{v2.97c}{2007/05/12}{added}
337 % \changes{v2.97d}{2007/10/09}{value changed}
338 % \changes{v3.45}{2025/06/04}{value changed}
339 % \begin{macro}{\scr@[email protected]}
340 % \changes{v2.97d}{2007/10/03}{added}
341 % \changes{v2.97d}{2007/10/09}{value changed}
342 % \changes{v3.45}{2025/06/04}{value changed}
343 % \begin{macro}{\scr@[email protected]}
344 % \changes{v2.97e}{2007/11/27}{added}
345 % \changes{v3.45}{2025/06/04}{value changed}
346 % \begin{macro}{\scr@[email protected]}
347 % \changes{v2.98}{2007/12/24}{added}
348 % \changes{v3.45}{2025/06/04}{value changed}
349 % \begin{macro}{\scr@[email protected]}
350 % \changes{v2.98a}{2008/01/08}{added}
351 % \changes{v3.45}{2025/06/04}{value changed}
352 % \begin{macro}{\scr@[email protected]}
353 % \changes{v2.98b}{2008/01/30}{added}
354 % \changes{v3.45}{2025/06/04}{value changed}
355 % \begin{macro}{\scr@[email protected]}
356 % \changes{v2.98c}{2008/02/01}{added}
357 % \changes{v3.45}{2025/06/04}{value changed}
358 % \begin{macro}{\scr@[email protected]}
359 % \changes{v3.00}{2008/11/04}{added}
360 % \changes{v3.45}{2025/06/04}{value changed}
361 % \begin{macro}{\scr@[email protected]}
362 % \changes{v3.01}{2008/11/14}{added}
363 % \changes{v3.45}{2025/06/04}{value changed}
364 % \begin{macro}{\scr@[email protected]}
365 % \changes{v3.01a}{2008/11/20}{added}
366 % \changes{v3.45}{2025/06/04}{value changed}
367 % \begin{macro}{\scr@[email protected]}
368 % \changes{v3.01b}{2008/11/24}{added}
369 % \changes{v3.45}{2025/06/04}{value changed}
370 % \begin{macro}{\scr@[email protected]}
371 % \changes{v3.01c}{2008/12/09}{added}
372 % \changes{v3.45}{2025/06/04}{value changed}
373 % \begin{macro}{\scr@[email protected]}
374 % \changes{v3.02}{2009/01/01}{added}
375 % \changes{v3.45}{2025/06/04}{value changed}
376 % \begin{macro}{\scr@[email protected]}
377 % \changes{v3.02b}{2009/01/24}{added}
378 % \changes{v3.45}{2025/06/04}{value changed}
379 % \begin{macro}{\scr@[email protected]}
380 % \changes{v3.02c}{2009/01/28}{added}
381 % \changes{v3.45}{2025/06/04}{value changed}
382 % \begin{macro}{\scr@[email protected]}
383 % \changes{v3.03}{2009/04/01}{added}
384 % \changes{v3.45}{2025/06/04}{value changed}
385 % \begin{macro}{\scr@[email protected]}
386 % \changes{v3.03a}{2009/04/02}{added}
387 % \changes{v3.45}{2025/06/04}{value changed}
388 % \begin{macro}{\scr@[email protected]}
389 % \changes{v3.03b}{2009/04/12}{added}
390 % \changes{v3.45}{2025/06/04}{value changed}
391 % \begin{macro}{\scr@[email protected]}
392 % \changes{v3.04}{2009/07/07}{added}
393 % \changes{v3.45}{2025/06/04}{value changed}
394 % \begin{macro}{\scr@[email protected]}
395 % \changes{v3.05}{2009/07/08}{added}
396 % \changes{v3.45}{2025/06/04}{value changed}
397 % \begin{macro}{\scr@[email protected]}
398 % \changes{v3.04a}{2009/07/24}{added}
399 % \changes{v3.45}{2025/06/04}{value changed}
400 % \begin{macro}{\scr@[email protected]}
401 % \changes{v3.05a}{2010/03/10}{added}
402 % \changes{v3.45}{2025/06/04}{value changed}
403 % \begin{macro}{\scr@[email protected]}
404 % \changes{v3.06}{2010/06/17}{added}
405 % \changes{v3.45}{2025/06/04}{value changed}
406 % \begin{macro}{\scr@[email protected]}
407 % \changes{v3.07}{2010/09/14}{added}
408 % \changes{v3.45}{2025/06/04}{value changed}
409 % \begin{macro}{\scr@[email protected]}
410 % \changes{v3.08}{2010/10/28}{added}
411 % \changes{v3.45}{2025/06/04}{value changed}
412 % \begin{macro}{\scr@[email protected]}
413 % \changes{v3.08a}{2011/01/25}{added}
414 % \changes{v3.45}{2025/06/04}{value changed}
415 % \begin{macro}{\scr@[email protected]}
416 % \changes{v3.08b}{2011/02/22}{added}
417 % \changes{v3.45}{2025/06/04}{value changed}
418 % \begin{macro}{\scr@[email protected]}
419 % \changes{v3.09}{2011/04/02}{added}
420 % \changes{v3.45}{2025/06/04}{value changed}
421 % \begin{macro}{\scr@[email protected]}
422 % \changes{v3.09a}{2011/04/12}{added}
423 % \changes{v3.45}{2025/06/04}{value changed}
424 % \begin{macro}{\scr@[email protected]}
425 % \changes{v3.10}{2011/08/30}{added}
426 % \changes{v3.45}{2025/06/04}{value changed}
427 % \begin{macro}{\scr@[email protected]}
428 % \changes{v3.10a}{2012/03/08}{added}
429 % \changes{v3.45}{2025/06/04}{value changed}
430 % \begin{macro}{\scr@[email protected]}
431 % \changes{v3.10b}{2012/03/13}{added}
432 % \changes{v3.45}{2025/06/04}{value changed}
433 % \begin{macro}{\scr@[email protected]}
434 % \changes{v3.11}{2012/05/15}{added}
435 % \changes{v3.45}{2025/06/04}{value changed}
436 % \begin{macro}{\scr@[email protected]}
437 % \changes{v3.11a}{2012/05/25}{added}
438 % \changes{v3.45}{2025/06/04}{value changed}
439 % \begin{macro}{\scr@[email protected]}
440 % \changes{v3.11b}{2012/07/29}{added}
441 % \changes{v3.45}{2025/06/04}{value changed}
442 % \begin{macro}{\scr@[email protected]}
443 % \changes{v3.12}{2013/03/05}{added}
444 % \changes{v3.45}{2025/06/04}{value changed}
445 % \begin{macro}{\scr@[email protected]}
446 % \changes{v3.13}{2014/03/19}{added}
447 % \changes{v3.45}{2025/06/04}{value changed}
448 % \begin{macro}{\scr@[email protected]}
449 % \changes{v3.13a}{2014/08/07}{added}
450 % \changes{v3.45}{2025/06/04}{value changed}
451 % \begin{macro}{\scr@[email protected]}
452 % \changes{v3.14}{2014/10/28}{added}
453 % \changes{v3.45}{2025/06/04}{value changed}
454 % \begin{macro}{\scr@[email protected]}
455 % \changes{v3.15}{2014/11/20}{added}
456 % \changes{v3.45}{2025/06/04}{value changed}
457 % \begin{macro}{\scr@[email protected]}
458 % \changes{v3.16}{2015/02/08}{added}
459 % \changes{v3.45}{2025/06/04}{value changed}
460 % \begin{macro}{\scr@[email protected]}
461 % \changes{v3.17}{2015/02/08}{added}
462 % \changes{v3.45}{2025/06/04}{value changed}
463 % \begin{macro}{\scr@[email protected]}
464 % \changes{v3.17a}{2015/05/06}{added}
465 % \changes{v3.45}{2025/06/04}{value changed}
466 % \begin{macro}{\scr@[email protected]}
467 % \changes{v3.17c}{2015/05/13}{added}
468 % \changes{v3.45}{2025/06/04}{value changed}
469 % \begin{macro}{\scr@[email protected]}
470 % \changes{v3.18}{2015/05/14}{added}
471 % \changes{v3.45}{2025/06/04}{value changed}
472 % \begin{macro}{\scr@[email protected]}
473 % \changes{v3.18a}{2015/07/03}{added}
474 % \changes{v3.45}{2025/06/04}{value changed}
475 % \begin{macro}{\scr@[email protected]}
476 % \changes{v3.19}{2015/07/26}{added}
477 % \changes{v3.45}{2025/06/04}{value changed}
478 % \begin{macro}{\scr@[email protected]}
479 % \changes{v3.19a}{2015/10/03}{added}
480 % \changes{v3.45}{2025/06/04}{value changed}
481 % \begin{macro}{\scr@[email protected]}
482 % \changes{v3.20}{2015/10/06}{added}
483 % \changes{v3.45}{2025/06/04}{value changed}
484 % \begin{macro}{\scr@[email protected]}
485 % \changes{v3.21}{2016/05/19}{added}
486 % \changes{v3.45}{2025/06/04}{value changed}
487 % \begin{macro}{\scr@[email protected]}
488 % \changes{v3.22}{2016/07/29}{added}
489 % \changes{v3.45}{2025/06/04}{value changed}
490 % \begin{macro}{\scr@[email protected]}
491 % \changes{v3.23}{2017/02/04}{added}
492 % \changes{v3.45}{2025/06/04}{value changed}
493 % \begin{macro}{\scr@[email protected]}
494 % \changes{v3.24}{2017/04/22}{added}
495 % \changes{v3.45}{2025/06/04}{value changed}
496 % \begin{macro}{\scr@[email protected]}
497 % \changes{v3.25}{2017/09/07}{added}
498 % \changes{v3.45}{2025/06/04}{value changed}
499 % \begin{macro}{\scr@[email protected]}
500 % \changes{v3.26}{2018/03/31}{added}
501 % \changes{v3.45}{2025/06/04}{value changed}
502 % \begin{macro}{\scr@[email protected]}
503 % \changes{v3.26a}{2018/12/30}{added}
504 % \changes{v3.45}{2025/06/04}{value changed}
505 % \begin{macro}{\scr@[email protected]}
506 % \changes{v3.26b}{2018/12/30}{added}
507 % \changes{v3.45}{2025/06/04}{value changed}
508 % \begin{macro}{\scr@[email protected]}
509 % \changes{v3.27}{2019/02/02}{added}
510 % \changes{v3.45}{2025/06/04}{value changed}
511 % \begin{macro}{\scr@[email protected]}
512 % \changes{v3.27a}{2019/10/13}{added}
513 % \changes{v3.45}{2025/06/04}{value changed}
514 % \begin{macro}{\scr@[email protected]}
515 % \changes{v3.28}{2019/11/20}{added}
516 % \changes{v3.45}{2025/06/04}{value changed}
517 % \begin{macro}{\scr@[email protected]}
518 % \changes{v3.29}{2020/01/06}{added}
519 % \changes{v3.45}{2025/06/04}{value changed}
520 % \begin{macro}{\scr@[email protected]}
521 % \changes{v3.30}{2020/02/24}{added}
522 % \changes{v3.45}{2025/06/04}{value changed}
523 % \begin{macro}{\scr@[email protected]}
524 % \changes{v3.31}{2020/04/26}{added}
525 % \changes{v3.45}{2025/06/04}{value changed}
526 % \begin{macro}{\scr@[email protected]}
527 % \changes{v3.32}{2020/08/06}{added}
528 % \changes{v3.45}{2025/06/04}{value changed}
529 % \begin{macro}{\scr@[email protected]}
530 % \changes{v3.33}{2021/01/01}{added}
531 % \changes{v3.45}{2025/06/04}{value changed}
532 % \begin{macro}{\scr@[email protected]}
533 % \changes{v3.34}{2021/03/22}{added}
534 % \changes{v3.45}{2025/06/04}{value changed}
535 % \begin{macro}{\scr@[email protected]}
536 % \changes{v3.35}{2021/10/12}{added}
537 % \changes{v3.45}{2025/06/04}{value changed}
538 % \begin{macro}{\scr@[email protected]}
539 % \changes{v3.36}{2021/11/17}{added}
540 % \changes{v3.45}{2025/06/04}{value changed}
541 % \begin{macro}{\scr@[email protected]}
542 % \changes{v3.37}{2022/05/04}{added}
543 % \changes{v3.45}{2025/06/04}{value changed}
544 % \begin{macro}{\scr@[email protected]}
545 % \changes{v3.38}{2022/07/06}{added}
546 % \changes{v3.45}{2025/06/04}{value changed}
547 % \begin{macro}{\scr@[email protected]}
548 % \changes{v3.39}{2022/10/13}{added}
549 % \changes{v3.45}{2025/06/04}{value changed}
550 % \begin{macro}{\scr@[email protected]}
551 % \changes{v3.40}{2023/04/17}{added}
552 % \changes{v3.45}{2025/06/04}{value changed}
553 % \begin{macro}{\scr@[email protected]}
554 % \changes{v3.41}{2023/04/24}{added}
555 % \changes{v3.45}{2025/06/04}{value changed}
556 % \begin{macro}{\scr@[email protected]}
557 % \changes{v3.42}{2023/07/13}{added}
558 % \changes{v3.45}{2025/06/04}{value changed}
559 % \begin{macro}{\scr@[email protected]}
560 % \changes{v3.43}{2024/10/22}{added}
561 % \begin{macro}{\scr@[email protected]}
562 % \changes{v3.44}{2024//11/27}{added}
563 % \begin{macro}{\scr@[email protected]}
564 % \changes{v3.45}{2025/06/04}{added}
565 % \begin{macro}{\scr@[email protected]}
566 % \changes{v3.46}{2025/06/05}{added}
567 % \begin{macro}{\scr@[email protected]}
568 % \changes{v3.47}{2025/08/28}{added}
569 % \begin{macro}{\scr@[email protected]}
570 % \changes{v3.48}{2025/08/28}{added}
571 % \begin{macro}{\scr@[email protected]}
572 % \changes{v3.49}{2025/09/11}{added}
573 % \begin{macro}{\scr@[email protected]}
574 % \changes{v3.49.1}{2026/01/07}{added}
575 % \begin{macro}{\scr@[email protected]}
576 % \changes{v3.49.2}{2026/02/02}{added}
577 % \begin{macro}{\scr@v@last}
578 % \changes{v2.9u}{2005/03/05}{added}
579 % \begin{macrocode}
580 \@namedef{scr@v@first}{29000}
581 \@namedef{scr@[email protected]}{29000}
582 \@namedef{scr@[email protected]}{29019}
583 \@namedef{scr@[email protected]}{29020}
584 \@namedef{scr@[email protected]}{29500}
585 \@namedef{scr@[email protected]}{29501}
586 \@namedef{scr@[email protected]}{29502}
587 \@namedef{scr@[email protected]}{29600}
588 \@namedef{scr@[email protected]}{29601}
589 \@namedef{scr@[email protected]}{29700}
590 \@namedef{scr@[email protected]}{29701}
591 \@namedef{scr@[email protected]}{29702}
592 \@namedef{scr@[email protected]}{29703}
593 \@namedef{scr@[email protected]}{29704}
594 \@namedef{scr@[email protected]}{29705}
595 \@namedef{scr@[email protected]}{29800}
596 \@namedef{scr@[email protected]}{29801}
597 \@namedef{scr@[email protected]}{29802}
598 \@namedef{scr@[email protected]}{29803}
599 \@namedef{scr@[email protected]}{30000}
600 \@namedef{scr@[email protected]}{30100}
601 \@namedef{scr@[email protected]}{30101}
602 \@namedef{scr@[email protected]}{30102}
603 \@namedef{scr@[email protected]}{30103}
604 \@namedef{scr@[email protected]}{30200}
605 \@namedef{scr@[email protected]}{30202}
606 \@namedef{scr@[email protected]}{30203}
607 \@namedef{scr@[email protected]}{30300}
608 \@namedef{scr@[email protected]}{30301}
609 \@namedef{scr@[email protected]}{30302}
610 \@namedef{scr@[email protected]}{30400}
611 \@namedef{scr@[email protected]}{30401}
612 \@namedef{scr@[email protected]}{30500}
613 \@namedef{scr@[email protected]}{30501}
614 \@namedef{scr@[email protected]}{30600}
615 \@namedef{scr@[email protected]}{30700}
616 \@namedef{scr@[email protected]}{30800}
617 \@namedef{scr@[email protected]}{30801}
618 \@namedef{scr@[email protected]}{30802}
619 \@namedef{scr@[email protected]}{30900}
620 \@namedef{scr@[email protected]}{30901}
621 \@namedef{scr@[email protected]}{31000}
622 \@namedef{scr@[email protected]}{31001}
623 \@namedef{scr@[email protected]}{31002}
624 \@namedef{scr@[email protected]}{31100}
625 \@namedef{scr@[email protected]}{31101}
626 \@namedef{scr@[email protected]}{31102}
627 \@namedef{scr@[email protected]}{31200}
628 \@namedef{scr@[email protected]}{31300}
629 \@namedef{scr@[email protected]}{31301}
630 \@namedef{scr@[email protected]}{31400}
631 \@namedef{scr@[email protected]}{31500}
632 \@namedef{scr@[email protected]}{31600}
633 \@namedef{scr@[email protected]}{31700}
634 \@namedef{scr@[email protected]}{31701}
635 \@namedef{scr@[email protected]}{31703}
636 \@namedef{scr@[email protected]}{31800}
637 \@namedef{scr@[email protected]}{31801}
638 \@namedef{scr@[email protected]}{31900}
639 \@namedef{scr@[email protected]}{31901}
640 \@namedef{scr@[email protected]}{32000}
641 \@namedef{scr@[email protected]}{32100}
642 \@namedef{scr@[email protected]}{32200}
643 \@namedef{scr@[email protected]}{32300}
644 \@namedef{scr@[email protected]}{32400}
645 \@namedef{scr@[email protected]}{32500}
646 \@namedef{scr@[email protected]}{32600}
647 \@namedef{scr@[email protected]}{32601}
648 \@namedef{scr@[email protected]}{32602}
649 \@namedef{scr@[email protected]}{32700}
650 \@namedef{scr@[email protected]}{32701}
651 \@namedef{scr@[email protected]}{32800}
652 \@namedef{scr@[email protected]}{32900}
653 \@namedef{scr@[email protected]}{33300}
654 \@namedef{scr@[email protected]}{33100}
655 \@namedef{scr@[email protected]}{33200}
656 \@namedef{scr@[email protected]}{33300}
657 \@namedef{scr@[email protected]}{33400}
658 \@namedef{scr@[email protected]}{33500}
659 \@namedef{scr@[email protected]}{33600}
660 \@namedef{scr@[email protected]}{33700}
661 \@namedef{scr@[email protected]}{33800}
662 \@namedef{scr@[email protected]}{33900}
663 \@namedef{scr@[email protected]}{34000}
664 \@namedef{scr@[email protected]}{34100}
665 \@namedef{scr@[email protected]}{34200}
666 \@namedef{scr@[email protected]}{34300}
667 \@namedef{scr@[email protected]}{34400}
668 \@namedef{scr@[email protected]}{34500}
669 \@namedef{scr@[email protected]}{34600}
670 \@namedef{scr@[email protected]}{34700}
671 \@namedef{scr@[email protected]}{34800}
672 \@namedef{scr@[email protected]}{34900}
673 \@namedef{scr@[email protected]}{34901}
674 \@namedef{scr@[email protected]}{34902}
675 \@namedef{scr@v@last}{34902}
676 % \end{macrocode}
677 % \end{macro}
678 % \end{macro}
679 % \end{macro}
680 % \end{macro}
681 % \end{macro}
682 % \end{macro}
683 % \end{macro}
684 % \end{macro}
685 % \end{macro}
686 % \end{macro}
687 % \end{macro}
688 % \end{macro}
689 % \end{macro}
690 % \end{macro}
691 % \end{macro}
692 % \end{macro}
693 % \end{macro}
694 % \end{macro}
695 % \end{macro}
696 % \end{macro}
697 % \end{macro}
698 % \end{macro}
699 % \end{macro}
700 % \end{macro}
701 % \end{macro}
702 % \end{macro}
703 % \end{macro}
704 % \end{macro}
705 % \end{macro}
706 % \end{macro}
707 % \end{macro}
708 % \end{macro}
709 % \end{macro}
710 % \end{macro}
711 % \end{macro}
712 % \end{macro}
713 % \end{macro}
714 % \end{macro}
715 % \end{macro}
716 % \end{macro}
717 % \end{macro}
718 % \end{macro}
719 % \end{macro}
720 % \end{macro}
721 % \end{macro}
722 % \end{macro}
723 % \end{macro}
724 % \end{macro}
725 % \end{macro}
726 % \end{macro}
727 % \end{macro}
728 % \end{macro}
729 % \end{macro}
730 % \end{macro}
731 % \end{macro}
732 % \end{macro}
733 % \end{macro}
734 % \end{macro}
735 % \end{macro}
736 % \end{macro}
737 % \end{macro}
738 % \end{macro}
739 % \end{macro}
740 % \end{macro}
741 % \end{macro}
742 % \end{macro}
743 % \end{macro}
744 % \end{macro}
745 % \end{macro}
746 % \end{macro}
747 % \end{macro}
748 % \end{macro}
749 % \end{macro}
750 % \end{macro}
751 % \end{macro}
752 % \end{macro}
753 % \end{macro}
754 % \end{macro}
755 % \end{macro}
756 % \end{macro}
757 % \end{macro}
758 % \end{macro}
759 % \end{macro}
760 % \end{macro}
761 % \end{macro}
762 % \end{macro}
763 % \end{macro}
764 % \end{macro}
765 % \end{macro}
766 % \end{macro}
767 % \end{macro}
768 % \end{macro}
769 % \end{macro}
770 % \end{macro}
771 % \end{macro}
772 % \end{macro}
773 % \end{macro}
774 % \end{option}
775 % \begin{macrocode}
776 %</init>
777 % \end{macrocode}
778 %
779 % \begin{macro}{\scr@v@is@lt,\scr@v@is@gt,\scr@v@is@le,\scr@v@is@ge}
780 % \changes{v3.17}{2015/03/10}{added}
781 % All these macros are to be used as condition for \cs{ifnum} and compare the
782 % currently selected version with a given \meta{version}, e.g.:
783 % \begin{quote}
784 % \cs{expandafter}\cs{ifnum}\cs{scr@v@is@lt}\marg{version} \meta{true code}
785 % \cs{else} \meta{false code} \cs{fi}
786 % \end{quote}
787 % The conditions are:
788 % \begin{quote}\raggedright
789 % \cs{scr@v@is@lt} --- current version less than \meta{version} \\
790 % \cs{scr@v@is@gt} --- current version greater than \meta{version} \\
791 % \cs{scr@v@is@le} --- current version less than or equal to \meta{version} \\
792 % \cs{scr@v@is@ge} --- current version greater than or equal to \meta{version} \\
793 % \end{quote}
794 % \begin{macrocode}
795 %<*option&(class|extend)>
796 \newcommand*{\scr@v@is@lt}[1]{%
797 \scr@compatibility<\@nameuse{scr@v@#1}
798 }
799 \newcommand*{\scr@v@is@gt}[1]{%
800 \scr@compatibility>\@nameuse{scr@v@#1}
801 }
802 \newcommand*{\scr@v@is@le}[1]{%
803 \numexpr\scr@compatibility-\@ne\relax<\@nameuse{scr@v@#1}
804 }
805 \newcommand*{\scr@v@is@ge}[1]{%
806 \numexpr\scr@compatibility+\@ne\relax>\@nameuse{scr@v@#1}
807 }
808 %</option&(class|extend)>
809 % \end{macrocode}
810 % \end{macro}
811 %
812 % \begin{macro}{\scr@v@is@eq}
813 % \changes{v3.39}{2022/10/25}{added}
814 % Similar to the above for equality test.
815 % \begin{macrocode}
816 %<*option&(class|extend)>
817 \newcommand*{\scr@v@is@eq}[1]{%
818 \scr@compatibility=\@nameuse{scr@v@#1}
819 }
820 %</option&(class|extend)>
821 % \end{macrocode}
822 % \end{macro}
823 %
824 % \begin{macro}{\scr@ta@v@is@lt,\scr@ta@v@is@gt,\scr@ta@v@is@le,\scr@ta@v@is@ge}
825 % \changes{v3.17}{2015/03/10}{Neu (intern)}
826 % The same conditions are defined for \pkg*{typearea}.
827 % \begin{macrocode}
828 %<*option&package&typearea>
829 \newcommand*{\scr@ta@v@is@lt}[1]{%
830 \scr@ta@compatibility<\@nameuse{scr@v@#1}
831 }
832 \newcommand*{\scr@ta@v@is@gt}[1]{%
833 \scr@ta@compatibility>\@nameuse{scr@v@#1}
834 }
835 \newcommand*{\scr@ta@v@is@le}[1]{%
836 \numexpr\scr@ta@compatibility-\@ne <\@nameuse{scr@v@#1}
837 }
838 \newcommand*{\scr@ta@v@is@ge}[1]{%
839 \numexpr\scr@ta@compatibility+\@ne >\@nameuse{scr@v@#1}
840 }
841 %</option&package&typearea>
842 % \end{macrocode}
843 % \end{macro}
844 %
845 % \begin{macrocode}
846 %</!v4>
847 % \end{macrocode}
848 %
849 % \subsection{Compatibility with used \LaTeX{} kernel version}
850 % \changes{v3.37}{2022/06/21}{version test added}
851 % We also do some version tests at |\begin{document}| because of the extremely
852 % high speed of \LaTeX{} kernel development.
853 % \begin{macrocode}
854 %<*body&(class|extend)>
855 \AtBeginDocument{%
856 \begingroup
857 \def\reserved@a#1/#2/#3 #4\@nil{\@tempcnta=#1\relax\@tempcntb=#2\relax}%
858 \expandafter\reserved@a\KOMAScriptVersion\@nil
859 \edef\reserved@a{\the\numexpr\@tempcnta+2\relax/%
860 \ifnum\@tempcntb<10 0\fi\the\@tempcntb/01}%
861 \expandafter\IfLTXAtLeastTF\expandafter{\reserved@a}{%
862 %<class> \ClassWarningNoLine{\KOMAClassName}{%
863 %<package> \PackageWarningNoLine{scrextend}{%
864 Your are using a KOMA-Script version, that has not\MessageBreak
865 been tested with your more than one year newer\MessageBreak
866 LaTeX release `\fmtversion'.\MessageBreak
867 Because of the high speed of LaTeX kernel development,\MessageBreak
868 this could result in a lot of issues.\MessageBreak
869 Please have a look at\MessageBreak
870 <http://www.ctan.org/pkg/koma-script> and if this\MessageBreak
871 shows a newer KOMA-Script version than\MessageBreak
872 `\KOMAScriptVersion', we suggest to do\MessageBreak
873 an update of KOMA-Script or maybe even the whole\MessageBreak
874 TeX distribution%
875 }%
876 }{%
877 \edef\reserved@a{\the\numexpr\@tempcnta-4\relax/%
878 \ifnum\@tempcntb<10 0\fi\the\@tempcntb/01}%
879 \expandafter\IfLTXAtLeastTF\expandafter{\reserved@a}{}{%
880 %<class> \ClassWarningNoLine{\KOMAClassName}{%
881 %<package> \PackageWarningNoLine{scrextend}{%
882 You are using a KOMA-Script version, that has not been\MessageBreak
883 tested with your more than four years older LaTeX\MessageBreak
884 release `\fmtversion'.\MessageBreak
885 Because of the high speed of LaTeX kernel development,\MessageBreak
886 KOMA-Script releases cannot be tested with all past\MessageBreak
887 LaTeX releases.\MessageBreak
888 \ifnum\scr@compatibility<\scr@v@last
889 So even if you are using option `version' implicitly\MessageBreak
890 or explicitly, this
891 \else
892 So this
893 \fi
894 could result in a lot of issues.\MessageBreak
895 We recommend, to update the whole TeX distribution.\MessageBreak
896 If this could not be done, we suggest to use at\MessageBreak
897 least an older KOMA-Script release, e.g., from\MessageBreak
898 <https://sf.net/projects/koma-script/files/KOMA-Script/>%
899 }%
900 }%
901 }%
902 \endgroup
903 }
904 %</body&(class|extend)>
905 % \end{macrocode}
906 %
907 %
908 % \subsection{Compatibility with early versions of \cls*{scrlttr2}}
909 % Early version of \cls*{scrlttr2} have had another macro. Because, there may
910 % still be \file{lco} files, that use is, it is also defined if compatibility
911 % to version before 2.95 has been selected.
912 %
913 % \begin{macro}{\@setif}
914 % \changes{v2.8q}{2001/10/08}{added}
915 % \changes{v2.95}{2006/03/31}{only for version settings before 2.95}
916 % The deprecated command has been used to set a boolean switch to true or
917 % false using one of the values |true|, |false|, |on|, or |off|.
918 % \begin{macrocode}
919 %<*!v4>
920 %<*class&letter&body>
921 \expandafter\ifnum \@nameuse{scr@[email protected]}>\scr@compatibility\relax
922 \newcommand*{\@setif}[2][]{%
923 \begingroup
924 \edef\@tempa{#1}\ifx\@tempa\@empty
925 \def\@tempa{\KOMA@set@ifkey{#2}{@#2}}%
926 \else
927 \def\@tempa{\KOMA@set@ifkey{#2}{#1}}%
928 \fi
929 \expandafter\endgroup\@tempa
930 }%
931 \fi
932 %</class&letter&body>
933 %</!v4>
934 % \end{macrocode}
935 % \end{macro}
936 %
937 % \Finale
938 % \PrintChanges
939 %
940 \endinput
941 % Local Variables:
942 % mode: doctex
943 % ispell-local-dictionary: "en_US"
944 % eval: (flyspell-mode 1)
945 % TeX-master: t
946 % TeX-engine: luatex-dev
947 % eval: (setcar (or (cl-member "Index" (setq-local TeX-command-list (copy-alist TeX-command-list)) :key #'car :test #'string-equal) (setq-local TeX-command-list (cons nil TeX-command-list))) '("Index" "mkindex %s" TeX-run-index nil t :help "makeindex for dtx"))
948 % End: