From 81cddd7517e67e55f78f585fe591499404736882 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 21 Mar 2021 21:34:33 +0000
Subject: koma-script (21mar21)

git-svn-id: svn://tug.org/texlive/trunk@58585 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/koma-script/scrreprt.cls  | 175 ++++++++++++++-------
 1 file changed, 116 insertions(+), 59 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/koma-script/scrreprt.cls')

diff --git a/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls b/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls
index c1458590550..6f61e46ce56 100644
--- a/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls
+++ b/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls
@@ -84,7 +84,7 @@
 %% find a complete unmodified copy of LaTeX2e at
 %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
 %% 
-%%% From File: $Id: scrkernel-version.dtx 3545 2020-09-21 07:45:07Z kohm $
+%%% From File: $Id: scrkernel-version.dtx 3586 2021-03-17 13:57:48Z kohm $
 \begingroup
   \catcode`\@11\relax
   \ifx\KOMAScriptVersion\undefined
@@ -106,7 +106,7 @@
       \fi
     }
   \fi
-  \@CheckKOMAScriptVersion{2020/09/21 v3.32 KOMA-Script}%
+  \@CheckKOMAScriptVersion{2021/03/17 v3.33 KOMA-Script}%
 \endgroup
 \providecommand*{\scr@clsextension}{\@clsextension}
 \AtBeginDocument{%
@@ -121,16 +121,16 @@
   report%
 }
 \ProvidesClass{\KOMAClassName}[%
-  2020/09/21 v3.32 KOMA-Script
+  2021/03/17 v3.33 KOMA-Script
   document class (\ClassName)%
 ]
-%%% From File: $Id: scrkernel-basics.dtx 3527 2020-09-11 09:44:32Z kohm $
+%%% From File: $Id: scrkernel-basics.dtx 3578 2021-03-12 16:50:00Z kohm $
 %%%            (run: load)
 \RequirePackage{scrkbase}[\KOMAScriptVersion]
 %%% From File: $Id: scrkernel-listsof.dtx 3477 2020-04-11 07:26:26Z kohm $
 %%%            (run: prepare)
 \RequirePackage{tocbasic}[%
-  2020/09/21 v3.32 KOMA-Script
+  2021/03/17 v3.33 KOMA-Script
 ]
 \AtAddToTocList[\@currname.\@currext]{\setuptoc{\@currext}{onecolumn}}%
 \AtAddToTocList[ToC]{\setuptoc{\@currext}{onecolumn}}%
@@ -143,7 +143,7 @@
 \AtAddToTocList[float]{\setuptoc{\@currext}{onecolumn}}%
 %%% From File: $Id: scrkernel-tocstyle.dtx 3507 2020-06-11 14:57:03Z kohm $
 %%%            (run: prepare)
-%%% From File: $Id: scrkernel-sections.dtx 3543 2020-09-14 16:21:00Z kohm $
+%%% From File: $Id: scrkernel-sections.dtx 3567 2021-02-17 10:01:38Z kohm $
 %%%            (run: prepare)
 \newif\if@openright
 \@openrightfalse
@@ -219,7 +219,7 @@
 \newcommand*{\size@paragraph}{}
 \newcommand*{\size@subparagraph}{}
 \newcommand*{\sectfont}{\normalcolor\@gr@gsffamily\bfseries}
-%%% From File: $Id: scrkernel-compatibility.dtx 3515 2020-08-06 16:16:31Z kohm $
+%%% From File: $Id: scrkernel-compatibility.dtx 3547 2021-01-01 12:08:50Z kohm $
 %%%            (run: init)
 \newcommand*
   {\scr@compatibility}{\scr@v@last}
@@ -299,10 +299,11 @@
 \@namedef{scr@v@3.30}{17}
 \@namedef{scr@v@3.31}{18}
 \@namedef{scr@v@3.32}{18}
+\@namedef{scr@v@3.33}{18}
 \@namedef{scr@v@last}{18}
 %%% From File: $Id: scrkernel-typearea.dtx 3488 2020-04-27 13:04:43Z kohm $
 %%%            (run: init)
-%%% From File: $Id: scrkernel-compatibility.dtx 3515 2020-08-06 16:16:31Z kohm $
+%%% From File: $Id: scrkernel-compatibility.dtx 3547 2021-01-01 12:08:50Z kohm $
 %%%            (run: option)
 \newif\if@scr@emulatestandardclasses
 \let\scr@emulatestandardclassestrue\relax
@@ -377,7 +378,7 @@
 \newcommand*{\scr@v@is@ge}[1]{%
   \numexpr\scr@compatibility+\@ne\relax>\@nameuse{scr@v@#1}
 }
-%%% From File: $Id: scrkernel-miscellaneous.dtx 3514 2020-08-06 16:14:53Z kohm $
+%%% From File: $Id: scrkernel-miscellaneous.dtx 3554 2021-01-28 15:40:05Z kohm $
 %%%            (run: option)
 \KOMA@key{draft}[true]{%
   \KOMA@set@ifkey{draft}{@tempswa}{#1}%
@@ -648,7 +649,7 @@
 }
 \DeclareOption*{%
   \x@paper}
-%%% From File: $Id: scrkernel-paragraphs.dtx 3262 2019-10-10 08:25:29Z kohm $
+%%% From File: $Id: scrkernel-paragraphs.dtx 3552 2021-01-21 09:52:21Z kohm $
 %%%            (run: option)
 \newcommand*{\setparsizes}[3]{%
   \edef\f@parindent{\the\parindent}%
@@ -851,7 +852,7 @@
 \KOMA@DeclareDeprecatedOption{abstractoff}{abstract=false}
 %%% From File: $Id: scrkernel-tocstyle.dtx 3507 2020-06-11 14:57:03Z kohm $
 %%%            (run: option)
-%%% From File: $Id: scrkernel-sections.dtx 3543 2020-09-14 16:21:00Z kohm $
+%%% From File: $Id: scrkernel-sections.dtx 3567 2021-02-17 10:01:38Z kohm $
 %%%            (run: option)
 \KOMA@key{open}{%
   \KOMA@set@ncmdkey{open}{@tempa}{%
@@ -955,7 +956,23 @@
           }{bookmark}\MessageBreak
           before \string\begin{document}%
         }%
-        \RequirePackage{bookmark}%
+        \@ifundefined{es@quoting}{%
+          \RequirePackage{bookmark}%
+        }{%
+          \ifx\es@quoting\activatequoting
+            \ClassInfo{\KOMAClassName}{%
+              temporary deactivation of babel-spanish quoting
+            }%
+            \deactivatequoting
+            \RequirePackage{bookmark}%
+            \ClassInfo{\KOMAClassName}{%
+              reactivation of babel-spanish quoting
+            }%
+            \activatequoting
+          \else
+            \RequirePackage{bookmark}%
+          \fi
+        }%
         \ifx\@beginmainauxhook\relax
         \else
           \if@filesw
@@ -1425,7 +1442,7 @@
 \DeclareOption{origlongtable}{\@komalongtablefalse}
 \KOMA@DeclareDeprecatedOption{onelinecaption}{captions=oneline}
 \KOMA@DeclareDeprecatedOption{noonelinecaption}{captions=nooneline}
-%%% From File: $Id: scrkernel-footnotes.dtx 3390 2019-11-18 17:09:35Z kohm $
+%%% From File: $Id: scrkernel-footnotes.dtx 3570 2021-02-24 10:08:31Z kohm $
 %%%            (run: option)
 \KOMA@key{footnotes}{%
   \ifx\@footnotemark\scr@saved@footnotemark
@@ -2027,20 +2044,20 @@
 \KOMA@kav@add{.\KOMAClassFileName}{index}{notoc}
 \KOMA@kav@add{.\KOMAClassFileName}{index}{standardlevel}
 \KOMA@DeclareDeprecatedOption{idxtotoc}{index=totoc}
-%%% From File: $Id: scrkernel-listsandtabulars.dtx 3394 2019-11-19 11:56:28Z kohm $
+%%% From File: $Id: scrkernel-listsandtabulars.dtx 3563 2021-02-15 18:40:44Z kohm $
 %%%            (run: option)
-%%% From File: $Id: scrkernel-sections.dtx 3543 2020-09-14 16:21:00Z kohm $
+%%% From File: $Id: scrkernel-sections.dtx 3567 2021-02-17 10:01:38Z kohm $
 %%%            (run: execoption)
 \KOMAExecuteOptions{headings=openany}
 \KOMAExecuteOptions{numbers=autoendperiod}
-%%% From File: $Id: scrkernel-miscellaneous.dtx 3514 2020-08-06 16:14:53Z kohm $
+%%% From File: $Id: scrkernel-miscellaneous.dtx 3554 2021-01-28 15:40:05Z kohm $
 %%%            (run: execoption)
 \KOMAExecuteOptions{%
   parskip=false,%
   headings=big%
 }
 \KOMAProcessOptions\relax
-%%% From File: $Id: scrkernel-compatibility.dtx 3515 2020-08-06 16:16:31Z kohm $
+%%% From File: $Id: scrkernel-compatibility.dtx 3547 2021-01-01 12:08:50Z kohm $
 %%%            (run: body)
 %%% From File: $Id: scrkernel-fonts.dtx 3390 2019-11-18 17:09:35Z kohm $
 %%%            (run: body)
@@ -2570,48 +2587,82 @@
     \fi
   }%
 \fi
-%%% From File: $Id: scrkernel-paragraphs.dtx 3262 2019-10-10 08:25:29Z kohm $
+%%% From File: $Id: scrkernel-paragraphs.dtx 3552 2021-01-21 09:52:21Z kohm $
 %%%            (run: body)
 \setlength{\lineskip}{\p@}
 \setlength{\normallineskip}{\p@}
 \setlength{\columnsep}{10\p@}
 \setlength{\columnseprule}{\z@}
-\newcommand*{\scr@selectfont}{}
-\expandafter\let\expandafter\scr@selectfont\csname selectfont \endcsname
-\BeforePackage{everysel}{%
-  \AtBeginDocument{%
-    \expandafter\ifx\csname selectfont \endcsname\scr@new@selectfont\else
-      \ClassWarningNoLine{\KOMAClassName}{discard change of \string\selectfont}%
-    \fi
-    \expandafter\let\csname selectfont \endcsname\scr@selectfont
+\IfLTXAtLeastTF{2021/01/05}{%
+  \AddToHook{selectfont}{\par@update}%
+  \AfterPackage{everysel}{%
+    \IfPackageAtLeastTF{everysel}{2021/01/18}{}{%
+      \ClassError{\KOMAClassName}{%
+        incompatible `everysel' detected
+      }{%
+        You are using an old version of `everysel' in combination with a
+        LaTeX\MessageBreak
+        version >= 2021/01/05 and KOMA-Script >= 3.33. This combination
+        is\MessageBreak
+        not supported.\MessageBreak
+        You could switch back to an older LaTeX using package
+        `latexrelease'.\MessageBreak
+        But I recommend to update `everysel'%
+      }%
+    }%
   }%
-}
-\AfterPackage{everysel}{%
-  \scr@ifundefinedorrelax{@EverySelectfont@Init}{%
-    \expandafter\ifx\csname selectfont \endcsname\scr@new@selectfont
-      \ClassWarningNoLine{\KOMAClassName}{%
-        \string\selectfont\space already changed}%
-    \else
-      \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}%
-      \expandafter\let\expandafter\scr@new@selectfont
-        \csname selectfont \endcsname
-    \fi
-  }{%
-    \g@addto@macro\@EverySelectfont@Init{%
-      \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}%
-      \expandafter\let\expandafter\scr@new@selectfont
-        \csname selectfont \endcsname
+  \AfterPackage{tracefnt}{%
+    \IfPackageAtLeastTF{tracefnt}{2020/12/22}{}{%
+      \ClassError{\KOMAClassName}{%
+        incompatible `tracefnt' detected
+      }{%
+        `tracefnt' is a LaTeX base package and therefore should be updated
+        together\MessageBreak
+        with LaTeX kernel. So this should never happen! Please check
+        your\MessageBreak
+        LaTeX installation%
+      }%
     }%
   }%
-}
-\AfterPackage{tracefnt}{%
+}{%
+  \newcommand*{\scr@selectfont}{}
   \expandafter\let\expandafter\scr@selectfont\csname selectfont \endcsname
-  \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}%
+  \BeforePackage{everysel}{%
+    \AtBeginDocument{%
+      \expandafter\ifx\csname selectfont \endcsname\scr@new@selectfont\else
+        \ClassWarningNoLine{\KOMAClassName}{%
+          discard change of \string\selectfont}%
+      \fi
+      \expandafter\let\csname selectfont \endcsname\scr@selectfont
+    }%
+  }%
+  \AfterPackage{everysel}{%
+    \scr@ifundefinedorrelax{@EverySelectfont@Init}{%
+      \expandafter\ifx\csname selectfont \endcsname\scr@new@selectfont
+        \ClassWarningNoLine{\KOMAClassName}{%
+          \string\selectfont\space already changed}%
+      \else
+        \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}%
+        \expandafter\let\expandafter\scr@new@selectfont
+          \csname selectfont \endcsname
+      \fi
+    }{%
+      \g@addto@macro\@EverySelectfont@Init{%
+        \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}%
+        \expandafter\let\expandafter\scr@new@selectfont
+          \csname selectfont \endcsname
+      }%
+    }%
+  }%
+  \AfterPackage{tracefnt}{%
+    \expandafter\let\expandafter\scr@selectfont\csname selectfont \endcsname
+    \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}%
+    \expandafter\let\expandafter\scr@new@selectfont\csname selectfont \endcsname
+  }%
+  \expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}
+  \newcommand*{\scr@new@selectfont}{}
   \expandafter\let\expandafter\scr@new@selectfont\csname selectfont \endcsname
 }
-\expandafter\g@addto@macro\csname selectfont \endcsname{\par@update}
-\newcommand*{\scr@new@selectfont}{}
-\expandafter\let\expandafter\scr@new@selectfont\csname selectfont \endcsname
 \newcommand*{\par@updaterelative}{%
   \begingroup
     \edef\@tempa{\the\parindent}\ifx\@tempa\f@parindent
@@ -3177,7 +3228,7 @@
 %%% From File: $Id: scrkernel-tocstyle.dtx 3507 2020-06-11 14:57:03Z kohm $
 %%%            (run: class,style,default)
 \CloneTOCEntryStyle{section}{default}
-%%% From File: $Id: scrkernel-sections.dtx 3543 2020-09-14 16:21:00Z kohm $
+%%% From File: $Id: scrkernel-sections.dtx 3567 2021-02-17 10:01:38Z kohm $
 %%%            (run: body)
 \setcounter{secnumdepth}{2}
 \providecommand*{\ifnumbered}{%
@@ -5693,7 +5744,7 @@
 \fi
 \newcommand*{\scr@fnt@disposition}{\sectfont}
 \aliaskomafont{sectioning}{disposition}
-%%% From File: $Id: scrkernel-miscellaneous.dtx 3514 2020-08-06 16:14:53Z kohm $
+%%% From File: $Id: scrkernel-miscellaneous.dtx 3554 2021-01-28 15:40:05Z kohm $
 %%%            (run: body)
 \newif\if@restonecol
 \newcommand{\dictum}[2][]{\par%
@@ -5999,7 +6050,7 @@
   \fi
 }
 \AfterPackage{titlesec}{%
-  \@ifpackagelater{titlesec}{2019/07/17}{%
+  \@ifpackagelater{titlesec}{2019/10/17}{%
     \ClassInfo{\KOMAClassName}{Unknown `titesec' release.\MessageBreak
       Cross your fingers, that is compatible%
     }%
@@ -6125,7 +6176,7 @@
 \newcommand*{\indexpagestyle}{plain}
 \pagestyle{plain}
 \pagenumbering{arabic}
-%%% From File: $Id: scrlayer.dtx 3533 2020-09-11 13:32:10Z kohm $
+%%% From File: $Id: scrlayer.dtx 3560 2021-02-15 13:20:12Z kohm $
 %%%            (run: body)
 \providecommand*{\@mkleft}{%
   \IfActiveMkBoth{\markleft}{\@gobble}%
@@ -6944,7 +6995,7 @@
   \thechapter.%
   \@arabic\c@table
 }
-%%% From File: $Id: scrkernel-footnotes.dtx 3390 2019-11-18 17:09:35Z kohm $
+%%% From File: $Id: scrkernel-footnotes.dtx 3570 2021-02-24 10:08:31Z kohm $
 %%%            (run: body)
 \renewcommand*\footnoterule{%
   \normalsize\ftn@rule@test@values
@@ -7097,7 +7148,7 @@
 \newcommand*{\thefootnotemark}{\@thefnmark}
 \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}
 \deffootnotemark{\textsuperscript{\thefootnotemark}}
-\newcommand*{\footref}[1]{%
+\providecommand*{\footref}[1]{%
   \begingroup
     \unrestored@protected@xdef\@thefnmark{\ref{#1}}%
   \endgroup
@@ -7380,7 +7431,7 @@
   \par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax
 }
 \newcommand*\indexname{Index}
-%%% From File: $Id: scrkernel-listsandtabulars.dtx 3394 2019-11-19 11:56:28Z kohm $
+%%% From File: $Id: scrkernel-listsandtabulars.dtx 3563 2021-02-15 18:40:44Z kohm $
 %%%            (run: body)
 \if@twocolumn
   \setlength{\leftmargini}{2em}
@@ -7420,10 +7471,10 @@
 \renewcommand*\p@enumii{\theenumi}
 \renewcommand*\p@enumiii{\p@enumii(\theenumii)}
 \renewcommand*\p@enumiv{\p@enumiii\theenumiii}
-\newcommand*\labelitemi{\textbullet}
-\newcommand*\labelitemii{\normalfont\bfseries\textendash}
-\newcommand*\labelitemiii{\textasteriskcentered}
-\newcommand*\labelitemiv{\textperiodcentered}
+\newcommand*\labelitemi{\usekomafont{labelitemi}{\textbullet}}
+\newcommand*\labelitemii{\usekomafont{labelitemii}{\textendash}}
+\newcommand*\labelitemiii{\usekomafont{labelitemiii}{\textasteriskcentered}}
+\newcommand*\labelitemiv{\usekomafont{labelitemiv}{\textperiodcentered}}
 \newenvironment{description}{%
   \list{}{\labelwidth\z@ \itemindent-\leftmargin
     \let\makelabel\descriptionlabel}%
@@ -7538,6 +7589,12 @@
 }
 \newcommand*\descfont{\@gr@gsffamily\bfseries}
 \newcommand*{\scr@fnt@descriptionlabel}{\descfont}
+\newcommand*{\labelitemfont}{\normalfont}
+\newcommand*\scr@fnt@itemizelabel{\labelitemfont}
+\newkomafont{labelitemi}{\usekomafont{itemizelabel}}
+\newkomafont{labelitemii}{\usekomafont{itemizelabel}\bfseries}
+\newkomafont{labelitemiii}{\usekomafont{itemizelabel}}
+\newkomafont{labelitemiv}{\usekomafont{itemizelabel}}
 \newkomafont{labelinglabel}{}
 \newkomafont{labelingseparator}{}
 %%% From File: $Id: scrlogo.dtx 3527 2020-09-11 09:44:32Z kohm $
-- 
cgit v1.2.3

