diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-12 20:10:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-12 20:10:51 +0000 |
commit | 1d6906471eb88c119dc3a48f9a44e9cd345e2f41 (patch) | |
tree | 5bf0d5dd7a9496529a6f32af7ad24fc0f18b2d72 /Master/texmf-dist/tex/latex/koma-script/scrlayer.sty | |
parent | d1a688fe4933bc485a8df8cdf30497c917e33146 (diff) |
koma-script (12oct22)
git-svn-id: svn://tug.org/texlive/trunk@64685 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrlayer.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/koma-script/scrlayer.sty | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrlayer.sty b/Master/texmf-dist/tex/latex/koma-script/scrlayer.sty index 63b95bfbdeb..90e76725dce 100644 --- a/Master/texmf-dist/tex/latex/koma-script/scrlayer.sty +++ b/Master/texmf-dist/tex/latex/koma-script/scrlayer.sty @@ -11,7 +11,7 @@ %% scrlayer.dtx (with options: `package,scrlayer,final') %% scrlogo.dtx (with options: `logo') %% -%% Copyright (c) 2012-2021 Markus Kohm [komascript at gmx info] +%% Copyright (c) 2012-2022 Markus Kohm [komascript at gmx info] %% %% This file was generated from file(s) of the KOMA-Script bundle. %% --------------------------------------------------------------- @@ -43,14 +43,14 @@ %% find a complete unmodified copy of LaTeX2e at %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>. %% -%%% From File: $Id: scrlayer.dtx 3894 2022-06-19 10:25:46Z kohm $ +%%% From File: $Id: scrlayer.dtx 3945 2022-07-19 09:16:17Z kohm $ %%% (run: identify) \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{scrlayer}[% - 2022/07/04 v3.37 KOMA-Script + 2022/10/12 v3.38 KOMA-Script package (defining layers and page styles)] -%%% From File: $Id: scrlayer.dtx 3894 2022-06-19 10:25:46Z kohm $ +%%% From File: $Id: scrlayer.dtx 3945 2022-07-19 09:16:17Z kohm $ %%% (run: init) \newcommand*{\scrlayer@@inherited@options@cslist}{} \newcommand*{\scrlayer@@add@inherited@option}[1]{% @@ -145,7 +145,7 @@ \@namedef{scrlayer@deprecated@reported@for@#1}{\string #2}% }{}% } -%%% From File: $Id: scrlayer.dtx 3894 2022-06-19 10:25:46Z kohm $ +%%% From File: $Id: scrlayer.dtx 3945 2022-07-19 09:16:17Z kohm $ %%% (run: options) \KOMA@key{markcase}{% \begingroup @@ -330,7 +330,7 @@ \scrlayer@@add@inherited@option{forceoverwrite} \KOMA@ifkey{autoremoveinterfaces}{scrlayer@autoremoveinterfaces} \scrlayer@@add@inherited@option{autoremoveinterfaces} -%%% From File: $Id: scrlayer.dtx 3894 2022-06-19 10:25:46Z kohm $ +%%% From File: $Id: scrlayer.dtx 3945 2022-07-19 09:16:17Z kohm $ %%% (run: body) \KOMAProcessOptions\relax \newcommand*{\rightfirstmark}{\expandafter\@rightmark\firstmark\@empty\@empty} @@ -591,14 +591,8 @@ }% } \newcommand*{\scrlayer@level@list}{} -\scr@ifundefinedorrelax{part}{}{% - \DeclareSectionNumberDepth{part}{-1}% -} -\if@chapter - \DeclareSectionNumberDepth{chapter}{0}% -\fi \newcommand*{\scrlayer@level@init}{% - \@tempcnta=1 + \@tempcnta=\if@chapter \m@ne\else \z@\fi \def\reserved@b##1{% \@tempswatrue \def\reserved@a{##1}% @@ -618,11 +612,38 @@ }% }% }% + \reserved@b{part}% + \reserved@b{chapter}% \reserved@b{section}% \reserved@b{paragraph}% \reserved@b{minisec}% } \scrlayer@level@init +\renewcommand*{\scrlayer@level@init}{% + \@tempcnta=1 + \def\reserved@b##1{% + \@tempswatrue + \def\reserved@a{##1}% + \@whilesw \if@tempswa \fi {% + \scr@ifundefinedorrelax{\reserved@a}{% + \@tempswafalse + }{% + \@ifundefined{\reserved@a numdepth}{% + \expandafter\DeclareSectionNumberDepth + \expandafter{\reserved@a}{\@tempcnta}% + }{% + \expandafter\DeclareSectionNumberDepth + \expandafter{\reserved@a}{\csname \reserved@a numdepth\endcsname}% + }% + \advance \@tempcnta by \@ne + \edef\reserved@a{sub\reserved@a}% + }% + }% + }% + \reserved@b{section}% + \reserved@b{paragraph}% + \reserved@b{minisec}% +} \AtBeginDocument{% \scrlayer@level@init } @@ -2335,7 +2356,7 @@ \@ifundefined{scrlayer@#1@onremove}{\@namedef{scrlayer@#1@onremove}{}}{}% \expandafter\l@addto@macro\csname scrlayer@#1@onremove\endcsname{#2}% } -%%% From File: $Id: scrlayer.dtx 3894 2022-06-19 10:25:46Z kohm $ +%%% From File: $Id: scrlayer.dtx 3945 2022-07-19 09:16:17Z kohm $ %%% (run: final) \DeclareNewPageStyleByLayers{@everystyle@}{} \RedeclarePageStyleByLayers{empty}{} |