diff options
Diffstat (limited to 'macros/latex/contrib/koma-script/scrkernel-pagestyles.dtx')
-rw-r--r-- | macros/latex/contrib/koma-script/scrkernel-pagestyles.dtx | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/macros/latex/contrib/koma-script/scrkernel-pagestyles.dtx b/macros/latex/contrib/koma-script/scrkernel-pagestyles.dtx index 4681df436b..34184fef42 100644 --- a/macros/latex/contrib/koma-script/scrkernel-pagestyles.dtx +++ b/macros/latex/contrib/koma-script/scrkernel-pagestyles.dtx @@ -18,16 +18,16 @@ % % This work consists of all files listed in MANIFEST.md. % ====================================================================== -%%% From File: $Id: scrkernel-pagestyles.dtx 4032 2023-04-17 09:45:11Z kohm $ +%%% From File: $Id: scrkernel-pagestyles.dtx 4058 2023-06-16 08:32:27Z kohm $ %<option>%%% (run: option) %<body>%%% (run: body) %<*dtx> \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi \begingroup \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} - \filedate$Date: 2023-04-17 11:45:11 +0200 (Mo, 17. Apr 2023) $ + \filedate$Date: 2023-06-16 10:32:27 +0200 (Fr, 16. Jun 2023) $ \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} - \filerevision$Revision: 4032 $ + \filerevision$Revision: 4058 $ \edef\reserved@a{% \noexpand\endgroup \noexpand\ProvidesFile{scrkernel-pagestyles.dtx}% @@ -334,13 +334,23 @@ \hb@xt@ \@tempdima{{\hfil\pagemark \if@twoside\else\hfil\fi}}}}\hss}% %<*article> +% \end{macrocode} +% \changes{v3.41}{2023/06/16}{split usage of \cs{MakeMarkcase}} +% From version 3.41 usage of \cs{MakeMarkcase} is split for number and text, +% to also support \cs{MakeTitlecase}. +% \begin{macrocode} \renewcommand*{\sectionmark}[1]{% \if@twoside\expandafter\markboth\else\expandafter\markright\fi - {\MakeMarkcase{\Ifnumbered{section}{\sectionmarkformat}{}##1}}{}}% + {% + \Ifnumbered{section}{\MakeMarkcase{\sectionmarkformat}}{}% + \MakeMarkcase{##1}% + }{}% + }% \renewcommand*{\subsectionmark}[1]{% \if@twoside \markright{% - \MakeMarkcase{\Ifnumbered{subsection}{\subsectionmarkformat}{}##1}% + \Ifnumbered{subsection}{\MakeMarkcase{\subsectionmarkformat}}{}% + \MakeMarkcase{##1}% }% \fi }% @@ -348,17 +358,20 @@ %<*report|book> \renewcommand*{\chaptermark}[1]{% \if@twoside\expandafter\markboth\else\expandafter\markright\fi - {\MakeMarkcase{\Ifnumbered{chapter}{% -%<book> \if@mainmatter - \chaptermarkformat -%<book> \fi - }{}##1}% + {% + \Ifnumbered{chapter}{% +%<book> \if@mainmatter + \MakeMarkcase{\chaptermarkformat}% +%<book> \fi + }{}\MakeMarkcase{##1}% }{}% }% \renewcommand*{\sectionmark}[1]{% \if@twoside - \markright{\MakeMarkcase{\Ifnumbered{section}{\sectionmarkformat}{}% - ##1}}% + \markright{% + \Ifnumbered{section}{\MakeMarkcase{\sectionmarkformat}}{}% + \MakeMarkcase{##1}% + }% \fi }% %</report|book> |