diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrreprt.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/koma-script/scrreprt.cls | 165 |
1 files changed, 105 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls b/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls index 9d4d0622269..8d6bc8f213e 100644 --- a/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls +++ b/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls @@ -84,30 +84,32 @@ %% find a complete unmodified copy of LaTeX2e at %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>. %% -%%% From File: $Id: scrkernel-version.dtx 4070 2023-07-07 07:08:40Z kohm $ -\begingroup - \catcode`\@11\relax - \ifx\KOMAScriptVersion\undefined - \newcommand*{\@CheckKOMAScriptVersion}[1]{% +%%% From File: $Id: scrkernel-version.dtx 4133 2024-10-24 09:54:28Z kohm $ +\providecommand*{\@CheckKOMAScriptVersion}{% + \begingroup + \ExplSyntaxOff + \@@CheckKOMAScriptVersion +} +\providecommand*{\@@CheckKOMAScriptVersion}[1]{% + \@ifundefined{KOMAScriptVersion}{% \gdef\KOMAScriptVersion{#1}% - }% - \else - \newcommand*{\@CheckKOMAScriptVersion}[1]{% + }{% \def\@tempa{#1}% \ifx\KOMAScriptVersion\@tempa\else - \@latex@warning@no@line{% - \noexpand\KOMAScriptVersion\space is - `\KOMAScriptVersion',\MessageBreak + \GenericWarning{\space\@spaces\@spaces\@spaces\@spaces}{% + Version warning: + \noexpand\KOMAScriptVersion is + `\csname KOMAScriptVersion\endcsname',\MessageBreak but `#1' was expected!\MessageBreak You should not use classes, packages or files from\MessageBreak - different KOMA-Script versions% + different KOMA-Script versions\@gobble }% \fi - } - \fi - \@CheckKOMAScriptVersion{2023/07/07 v3.41 KOMA-Script}% -\endgroup + }% + \endgroup +} +\@CheckKOMAScriptVersion{2024/10/24 v3.43 KOMA-Script}% \providecommand*{\scr@clsextension}{\@clsextension} \AtBeginDocument{% \let\scr@clsextension\@clsextension @@ -119,16 +121,16 @@ report% } \ProvidesClass{\KOMAClassName}[% - 2023/07/07 v3.41 KOMA-Script + 2024/10/24 v3.43 KOMA-Script document class (\ClassName)% ] -%%% From File: $Id: scrkernel-basics.dtx 4051 2023-04-26 16:01:28Z kohm $ +%%% From File: $Id: scrkernel-basics.dtx 4074 2023-07-14 15:56:59Z kohm $ %%% (run: load) \RequirePackage{scrkbase}[\KOMAScriptVersion] -%%% From File: $Id: scrkernel-listsof.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-listsof.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: prepare) \RequirePackage{tocbasic}[% - 2023/07/07 v3.41 KOMA-Script + 2024/10/24 v3.43 KOMA-Script ] \AtAddToTocList[\@currname.\@currext]{\setuptoc{\@currext}{onecolumn}}% \AtAddToTocList[ToC]{\setuptoc{\@currext}{onecolumn}}% @@ -141,7 +143,7 @@ \AtAddToTocList[float]{\setuptoc{\@currext}{onecolumn}}% %%% From File: $Id: scrkernel-tocstyle.dtx 4060 2023-06-20 08:59:01Z kohm $ %%% (run: prepare) -%%% From File: $Id: scrkernel-sections.dtx 4069 2023-06-29 08:55:54Z kohm $ +%%% From File: $Id: scrkernel-sections.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: prepare) \newif\if@openright \@openrightfalse @@ -228,7 +230,7 @@ \newcommand*{\size@subparagraph}{} \newcommand*{\scr@fnt@subparagraph}{\size@subparagraph} \newcommand*{\sectfont}{\normalcolor\maybesffamily\bfseries} -%%% From File: $Id: scrkernel-compatibility.dtx 4054 2023-05-10 14:35:36Z kohm $ +%%% From File: $Id: scrkernel-compatibility.dtx 4133 2024-10-24 09:54:28Z kohm $ %%% (run: init) \newcommand* {\scr@compatibility}{\scr@v@last} @@ -317,10 +319,12 @@ \@namedef{scr@v@3.39}{20} \@namedef{scr@v@3.40}{20} \@namedef{scr@v@3.41}{21} -\@namedef{scr@v@last}{21} -%%% From File: $Id: scrkernel-typearea.dtx 4032 2023-04-17 09:45:11Z kohm $ +\@namedef{scr@v@3.42}{21} +\@namedef{scr@v@3.43}{3430} +\@namedef{scr@v@last}{3430} +%%% From File: $Id: scrkernel-typearea.dtx 4100 2024-02-01 09:40:30Z kohm $ %%% (run: init) -%%% From File: $Id: scrkernel-compatibility.dtx 4054 2023-05-10 14:35:36Z kohm $ +%%% From File: $Id: scrkernel-compatibility.dtx 4133 2024-10-24 09:54:28Z kohm $ %%% (run: option) \newif\if@scr@emulatestandardclasses \let\scr@emulatestandardclassestrue\relax @@ -377,7 +381,7 @@ old KOMA-Script release. However, in that case you\MessageBreak could also need old releases of other packages and\MessageBreak even of the LaTeX kernel.\MessageBreak - You should also note, that the KOMA-Script developers\MessageBreak + Please also note, that the KOMA-Script developers\MessageBreak refuse support for documents using `version=#1'.\MessageBreak We recommend to eliminate all deprecated options\MessageBreak and commands. We also recommend to not use option\MessageBreak @@ -414,7 +418,7 @@ \newcommand*{\scr@v@is@eq}[1]{% \scr@compatibility=\@nameuse{scr@v@#1} } -%%% From File: $Id: scrkernel-miscellaneous.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-miscellaneous.dtx 4094 2023-12-05 16:17:40Z kohm $ %%% (run: option) \KOMA@key{draft}[true]{% \KOMA@set@ifkey{draft}{@tempswa}{#1}% @@ -466,7 +470,7 @@ \KOMA@kav@add{\KOMAClassFileName}{overfullrule}{false} \DeclareOption{leqno}{\input{leqno.clo}} \DeclareOption{fleqn}{\input{fleqn.clo}} -%%% From File: $Id: scrkernel-language.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-language.dtx 4107 2024-04-10 17:24:53Z kohm $ %%% (run: option) %%% From File: $Id: scrkernel-fonts.dtx 4034 2023-04-20 08:03:46Z kohm $ %%% (run: option) @@ -625,7 +629,7 @@ {sfdefaults}{\if@sfdefaults true\else false\fi}% \fi } -%%% From File: $Id: scrkernel-typearea.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-typearea.dtx 4100 2024-02-01 09:40:30Z kohm $ %%% (run: options) \KOMA@key{twoside}[true]{% \if@atdocument\else\PassOptionsToPackage{twoside=#1}{typearea}\fi% @@ -957,7 +961,7 @@ \KOMA@DeclareDeprecatedOption{abstractoff}{abstract=false} %%% From File: $Id: scrkernel-tocstyle.dtx 4060 2023-06-20 08:59:01Z kohm $ %%% (run: option) -%%% From File: $Id: scrkernel-sections.dtx 4069 2023-06-29 08:55:54Z kohm $ +%%% From File: $Id: scrkernel-sections.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: option) \KOMA@key{open}{% \KOMA@set@ncmdkey{open}{@tempa}{% @@ -1021,6 +1025,26 @@ \AtBeginDocument{% \@ifpackageloaded{bookmark}{}{% \if@scr@autoloadbookmarkpackage + \IfFileExists{bookmark.sty}{}{% + \ClassWarningNoLine{\KOMAClassName}{% + Using `bookmark' together with `hyperref' is + recommended,\MessageBreak + because of handling of possible bookmark level gaps.\MessageBreak + However, the package seems not to be installed and\MessageBreak + therefore cannot be loaded automatically.\MessageBreak + It is recommended to install package `bookmark'!\MessageBreak + However, you can avoid this warning without\MessageBreak + installation of package `bookmark', if you'd + deactivate\MessageBreak + automatically loading of `bookmark' using KOMA-Script\MessageBreak + option `bookmarkpackage=false' before + \string\begin{document}% + }% + \@scr@autoloadbookmarkpackagefalse + \KOMA@kav@replacevalue{\KOMAClassFileName}{bookmarkpackage}{false}% + }% + \fi + \if@scr@autoloadbookmarkpackage \scr@ifundefinedorrelax{Hy@driver}{% \ClassWarning{\KOMAClassName}{% `hyperref' loaded but `\string\Hy@driver' undefined.\MessageBreak @@ -1084,7 +1108,8 @@ \if@filesw \ClassWarning{\KOMAClassName}{% seems someone has broken package `auxhook'.\MessageBreak - Usually this happens, if `auxhook' is loaded or used\MessageBreak + Usually this happens, if `auxhook' is loaded or + used\MessageBreak implicitly or explicitly by patching \string\document% \scr@ifundefinedorrelax{AtEndPreamble}{}{% @@ -1658,7 +1683,7 @@ \csname FN@mf@prepare\endcsname \ifhmode\spacefactor\@x@sf\fi \relax} -%%% From File: $Id: scrkernel-listsof.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-listsof.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: option) \newif\if@tocleft \KOMA@key{toc}{% @@ -2214,18 +2239,18 @@ \KOMA@DeclareDeprecatedOption{idxtotoc}{index=totoc} %%% From File: $Id: scrkernel-listsandtabulars.dtx 4032 2023-04-17 09:45:11Z kohm $ %%% (run: option) -%%% From File: $Id: scrkernel-sections.dtx 4069 2023-06-29 08:55:54Z kohm $ +%%% From File: $Id: scrkernel-sections.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: execoption) \KOMAExecuteOptions{headings=openany} \KOMAExecuteOptions{numbers=autoendperiod} -%%% From File: $Id: scrkernel-miscellaneous.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-miscellaneous.dtx 4094 2023-12-05 16:17:40Z kohm $ %%% (run: execoption) \KOMAExecuteOptions{% parskip=false,% headings=big% } \KOMAProcessOptions\relax -%%% From File: $Id: scrkernel-compatibility.dtx 4054 2023-05-10 14:35:36Z kohm $ +%%% From File: $Id: scrkernel-compatibility.dtx 4133 2024-10-24 09:54:28Z kohm $ %%% (run: body) \AtBeginDocument{% \begingroup @@ -2775,13 +2800,13 @@ \@nomath\sfb} \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal} \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal} -%%% From File: $Id: scrkernel-language.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-language.dtx 4107 2024-04-10 17:24:53Z kohm $ %%% (run: body) \def\today{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi \space\number\day, \number\year}% -%%% From File: $Id: scrkernel-typearea.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-typearea.dtx 4100 2024-02-01 09:40:30Z kohm $ %%% (run: body) \let\@BCOR =\relax \let\@@BCOR =\relax @@ -3471,7 +3496,7 @@ %%% From File: $Id: scrkernel-tocstyle.dtx 4060 2023-06-20 08:59:01Z kohm $ %%% (run: class,style,default) \CloneTOCEntryStyle{section}{default} -%%% From File: $Id: scrkernel-sections.dtx 4069 2023-06-29 08:55:54Z kohm $ +%%% From File: $Id: scrkernel-sections.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: body) \BeforeClosingMainAux{% \if@autodot\if@filesw\immediate\write\@mainaux{% @@ -5577,10 +5602,12 @@ \addtocontents{\@currext}{\protect\addvspace{\@chapterlistsgap}}% }{}% }% - \@ifundefined{float@addtolists}{}{% - \scr@float@addtolists@warning - \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% - }% + \expandafter\ifnum \scr@v@is@lt{3.43}\relax + \@ifundefined{float@addtolists}{}{% + \scr@float@addtolists@warning + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + }% + \fi \fi \scr@t@st@nd@w@rn@m@k@ch@pt@rh@@d{#1}% \if@twocolumn @@ -5840,7 +5867,6 @@ \addxcontentsline{\@currext}{chapteratlist}[{#1}]{#2}% }{}% }% - \@ifundefined{float@addtolists}{}{\scr@float@addtolists@warning}% \fi } \newcommand\addchap{% @@ -6060,7 +6086,7 @@ \fi \newcommand*{\scr@fnt@disposition}{\sectfont} \aliaskomafont{sectioning}{disposition} -%%% From File: $Id: scrkernel-miscellaneous.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-miscellaneous.dtx 4094 2023-12-05 16:17:40Z kohm $ %%% (run: body) \@addtoreset{equation}{chapter} \renewcommand*{\theequation}{% @@ -6125,9 +6151,9 @@ \endgroup \edef\is@thispageodd@setlabel{% \if@filesw - \unexpanded{\protected@write\@auxout{\let\arabic\relax}}{% + \unexpanded{\protected@write\@auxout{\let\number\relax}}{% \noexpand\string - \noexpand\new@tpo@label{\scr@tpo}{\noexpand\arabic{page}}}% + \noexpand\new@tpo@label{\scr@tpo}{\noexpand\number\c@page}}% \fi \noexpand\def\noexpand\is@thispageodd@setlabel {\unexpanded\expandafter{\is@thispageodd@setlabel}}% @@ -6182,7 +6208,7 @@ \reserved@a \ifin@\expandafter\@gobble\else\expandafter\@firstofone\fi }{% - \BeforePackage{#1}{% + \expandafter\providecommand\csname scr@class@#1@warning\endcsname{% \ClassWarning{\KOMAClassName}{% Usage of package `#1' together\MessageBreak with a KOMA-Script class is not recommended.\MessageBreak @@ -6193,6 +6219,9 @@ package `#1'% }% }% + \BeforePackage{#1}{% + \csname scr@class@#1@warning\endcsname + }% }% }% \scr@package@not@recommended{emptypage}{% @@ -6477,7 +6506,7 @@ \newcommand*{\indexpagestyle}{plain} \pagestyle{plain} \pagenumbering{arabic} -%%% From File: $Id: scrlayer.dtx 4058 2023-06-16 08:32:27Z kohm $ +%%% From File: $Id: scrlayer.dtx 4118 2024-09-02 12:05:30Z kohm $ %%% (run: body) \providecommand*{\@mkleft}{% \IfActiveMkBoth{\markleft}{\@gobble}% @@ -7420,7 +7449,7 @@ \endgroup \@footnotemark } -%%% From File: $Id: scrkernel-listsof.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-listsof.dtx 4130 2024-10-24 08:14:37Z kohm $ %%% (run: body) \g@addto@macro{\numberline@numberpostfix}{\autodot} \usetocbasicnumberline[% @@ -7529,17 +7558,34 @@ } \newcommand*{\scr@float@listhead@warning}{% \ClassWarning{\KOMAClassName}{% - \string\float@listhead\space detected!\MessageBreak + Usage of \string\float@listhead\space detected!\MessageBreak + This could be, because you are using\MessageBreak + \@ifpackageloaded{floatrow}{% + \@ifpackageloaded{floatrowbytocbasic}{% + a package that does not support the KOMA-Script\MessageBreak + interface of KOMA-Script package `tocbasic`.\MessageBreak + }{% + package `floatrow` without `floatrowbytocbasic`.\MessageBreak + }% + }{% + \@ifpackageloaded{float}{% + \@ifpackageloaded{floatbytocbasic}{% + a package that does not support the KOMA-Script\MessageBreak + interface of KOMA-Script package `tocbasic`.\MessageBreak + }{% + package `float` without `floatbytocbasic`.\MessageBreak + }% + }{% + a package that does not support the KOMA-Script\MessageBreak + interface of KOMA-Script package `tocbasic`.\MessageBreak + }% + }% Implementation of \string\float@listhead\space became\MessageBreak deprecated in KOMA-Script v3.01 2008/11/14 and\MessageBreak has been replaced by several more flexible\MessageBreak features of package `tocbasic`.\MessageBreak - Maybe implementation of \string\float@listhead\space will\MessageBreak - be removed from KOMA-Script soon.\MessageBreak - Loading of package `scrhack' may help to\MessageBreak - avoid this warning, if you are using a\MessageBreak - a package that still implements the\MessageBreak - deprecated \string\float@listhead\space interface% + Implementation of \string\float@listhead\space will\MessageBreak + be removed from KOMA-Script soon% }% } \newcommand*{\scr@float@addtolists@warning}{% @@ -7553,10 +7599,9 @@ \string\float@addtolist\space interface has been\MessageBreak restricted to only some of the KOMA-Script\MessageBreak features and been removed from others.\MessageBreak - Loading of package `scrhack' may help to\MessageBreak - avoid this warning, if you are using a\MessageBreak - a package that still implements the\MessageBreak - deprecated \string\float@addtolist\space interface% + Since Version 3.43 support for deprecated\MessageBreak + \string\float@addtolist\space interface has been\MessageBreak + removed from all KOMA-Script classes% }% \global\let\scr@float@addtolists@warning\relax } |