diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrlayer.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/scrlayer.dtx | 166 |
1 files changed, 121 insertions, 45 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrlayer.dtx b/Master/texmf-dist/source/latex/koma-script/scrlayer.dtx index 6376ff1e718..50c44bd3327 100644 --- a/Master/texmf-dist/source/latex/koma-script/scrlayer.dtx +++ b/Master/texmf-dist/source/latex/koma-script/scrlayer.dtx @@ -1,4 +1,4 @@ -% \CheckSum{4041} +% \CheckSum{4107} % \iffalse^^A meta-comment % ====================================================================== % scrlayer.dtx @@ -57,7 +57,7 @@ % Right brace \} Tilde \~} % % \iffalse^^A meta-comment -%%% From File: $Id: scrlayer.dtx 3196 2019-08-26 09:20:16Z kohm $ +%%% From File: $Id: scrlayer.dtx 3411 2019-11-28 09:11:27Z kohm $ %<identify>%%% (run: identify) %<init>%%% (run: init) %<options>%%% (run: options) @@ -67,9 +67,9 @@ \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi \begingroup \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} - \filedate$Date: 2019-08-26 11:20:16 +0200 (Mon, 26 Aug 2019) $ + \filedate$Date: 2019-11-28 10:11:27 +0100 (Thu, 28 Nov 2019) $ \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} - \filerevision$Revision: 3196 $ + \filerevision$Revision: 3411 $ \edef\reserved@a{% \noexpand\endgroup \noexpand\ProvidesFile{scrlayer.dtx}% @@ -565,6 +565,7 @@ % \changes{v3.25}{2017/10/13}{added to the \KOMAScript{} classes}%^^A % \begin{macro}{\@mkdouble} % \changes{v3.25}{2017/10/13}{added to the \KOMAScript{} classes}%^^A +% \changes{v3.27a}{2019/10/17}{long definition}%^^A % These are new in \Package{scrlayer}. They may be updated, whenever % \Macro{@mkboth} will be updated. Otherwise they get a working default % definition. These commands will not become part of the interface and other @@ -577,7 +578,7 @@ \providecommand*{\@mkright}{% \IfActiveMkBoth{\markright}{\@gobble}% }% -\providecommand*{\@mkdouble}[1]{% +\providecommand{\@mkdouble}[1]{% \@mkboth{#1}{#1}% } %</(package|class)&body> @@ -587,29 +588,42 @@ % \end{macro}%^^A \@mkleft % % \begin{macro}{\markleft} +% \changes{v3.27a}{2019/10/17}{robust and long definition}%^^A % \begin{macro}{\@markleft} % \LaTeX{} itself provides \Macro{markboth} and \Macro{markright} but not % \Macro{markleft}. So we add it. % \begin{macrocode} %<*package&body> -\providecommand*{\markleft}[1]{% - \begingroup - \let\label\relax \let\index\relax \let\glossary\relax - \expandafter\@markleft\@themark {#1}% - \@temptokena \expandafter{\@themark}% - \mark{\the\@temptokena}% - \endgroup - \if@nobreak\ifvmode\nobreak\fi\fi -} -\providecommand{\@markleft}[3]{% - \@temptokena {#2}% - \unrestored@protected@xdef\@themark{{#3}{\the\@temptokena}}% -} +\@ifundefined{markleft}{% + \DeclareRobustCommand{\markleft}[1]{% + \begingroup + \let\label\relax \let\index\relax \let\glossary\relax + \expandafter\@markleft\@themark {#1}% + \@temptokena \expandafter{\@themark}% + \mark{\the\@temptokena}% + \endgroup + \if@nobreak\ifvmode\nobreak\fi\fi + }% + \providecommand{\@markleft}[3]{% + \@temptokena {#2}% + \unrestored@protected@xdef\@themark{{#3}{\the\@temptokena}}% + }% +}{} %</package&body> % \end{macrocode} % \end{macro}%^^A \@markleft % \end{macro}%^^A \markleft % +% \begin{macro}{\markdouble} +% \changes{v3.28}{2019/10/17}{new}%^^A +% This is easier, because it uses \cs{markboth}. So we do not need to declare +% it robust and we can use \cs{providecommand}. +% \begin{macrocode} +%<*package&body> +\providecommand{\markdouble}[1]{\markboth{#1}{#1}} +%</package&body> +% \end{macrocode} +% \end{macro}%^^A \markdouble % % \begin{option}{autooneside} % \begin{macro}{\ifscrlayer@autooneside} @@ -727,8 +741,9 @@ % % \begin{macro}{\automark} % \changes{v3.20}{2016/04/12}{\cs{@ifstar} durch \cs{kernel@ifstar} -% ersetzt}%^^A +% ersetzt}%^^A % \begin{macro}{\@automark} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % This is the brain knot of the game! I'll try to explain, what I'm doing: % First of all the new starred version of \Macro{automark} doesn't reset the % mark commands. So it works cumulatively. This may be useful e.g. to have @@ -739,8 +754,8 @@ \kernel@ifstar{\@automark}{\manualmark\@automark}% } \newcommand*{\@automark}[2][]{% - \ifstr{#2}{}{% - \ifstr{#1}{}{% + \Ifstr{#2}{}{% + \Ifstr{#1}{}{% % \end{macrocode} % \Macro{automark[]{}} or \Macro{automark{}} has been used. This will activate % the low level mark commands, but doesn't change the high level commands. It @@ -756,7 +771,7 @@ \automark@righthigh{#1}% }% }{% - \ifstr{#1}{}{% + \Ifstr{#1}{}{% % \end{macrocode} % \Macro{automark[]{\dots}} or \Macro{automark{\dots}} has been used. This % will activate the low level mark commands and also set up either the left or @@ -948,6 +963,7 @@ % \end{macro}%^^A \automark % % \begin{macro}{\DeclareSectionNumberDepth} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{description} % \item[\Parameter{string}:] the name of the section level, e.g., % part, chapter, section etc. (must be fully @@ -972,7 +988,7 @@ }{}% \begingroup \@tempswatrue - \def\@elt##1{\ifstr{#1}{##1}{\@tempswafalse}{}}% + \def\@elt##1{\Ifstr{#1}{##1}{\@tempswafalse}{}}% \scrlayer@level@list \if@tempswa \aftergroup\@firstofone @@ -1890,7 +1906,8 @@ % \begin{macro}{\ModifyLayer} % \changes{v3.14}{2014/10/20}{\cs{long}}%^^A % \changes{v0.9}{2014/08/31}{missing definition and reset of -% \cs{scr@current@layer} added}%^^A +% \cs{scr@current@layer} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % There are also two commands for declaration of layers, that haven't been % declared before, with or without error message for already declared layers, % and two commands for changing already declared layers, first one beginning @@ -1934,7 +1951,7 @@ \edef\reserved@a{% \unexpanded{% \FamilyExecuteOptions[.definelayer]{KOMAarg}{#1}% - \ifstr{\csname scr@l@#2@mode\endcsname}% + \Ifstr{\csname scr@l@#2@mode\endcsname}% }{\csname scr@l@#2@mode\endcsname}% }\reserved@a{}{% \PackageWarning{scrlayer}{% @@ -2287,6 +2304,8 @@ % remove the global pre-definitions by emptying the local hooks. The local % argument are named similar, but without ``\texttt{ps}'' after % ``\texttt{on}''. +% \begin{option}{onselect} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsselect} % \begin{macro}{\@ps@initialhook} % \begin{description} @@ -2316,6 +2335,7 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @initialhook\endcsname {#1}% + \let\scr@opt@marker@initialhook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> @@ -2351,12 +2371,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @hook\endcsname {#1}% + \let\scr@opt@marker@hook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@hook % \end{option}%^^A onpsinit +% \end{option}%^^A oninit +% \begin{option}{ononeside} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsoneside} % \begin{macro}{\@ps@onesidehook} % \begin{description} @@ -2387,12 +2411,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @onesidehook\endcsname {#1}% + \let\scr@opt@marker@onesidehook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@onesidehook % \end{option}%^^A onpsoneside +% \end{option}%^^A ononeside +% \begin{option}{ontwoside} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpstwoside} % \begin{macro}{\@ps@twosidehook} % \begin{description} @@ -2423,12 +2451,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @twosidehook\endcsname {#1}% + \let\scr@opt@marker@twosidehook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@twosidehook % \end{option}%^^A onpstwoside +% \end{option}%^^A ontwoside +% \begin{option}{onoddpage} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsoddpage} % \begin{macro}{\@ps@oddpagehook} % \begin{description} @@ -2459,12 +2491,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @oddpagehook\endcsname {#1}% + \let\scr@opt@marker@oddpagehook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@oddpagehook % \end{option}%^^A onpsoddpage +% \end{option}%^^A onoddside +% \begin{option}{onevenpage} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsevenpage} % \begin{macro}{\@ps@evenpagehook} % \begin{description} @@ -2495,12 +2531,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @evenpagehook\endcsname {#1}% + \let\scr@opt@marker@evenpagehook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@evenpagehook % \end{option}%^^A onpsevenpage +% \end{option}%^^A onevenside +% \begin{option}{onfloatpage} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsfloatpage} % \begin{macro}{\@ps@floatpagehook} % \begin{description} @@ -2529,12 +2569,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @floatpagehook\endcsname {#1}% + \let\scr@opt@marker@floatpagehook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@floatpagehook % \end{option}%^^A onpsfloatpage +% \end{option}%^^A onfloatpage +% \begin{option}{onnonfloatpage} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsnonfloatpage} % \begin{macro}{\@ps@nonfloatpagehook} % \begin{description} @@ -2563,12 +2607,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @nonfloatpagehook\endcsname {#1}% + \let\scr@opt@marker@nonfloatpagehook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@nonfloatpagehook % \end{option}%^^A onpsnonfloatpage +% \end{option}%^^A onnonfloatpage +% \begin{option}{onbackground} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsbackground} % \begin{macro}{\@ps@backgroundhook} % \begin{description} @@ -2599,12 +2647,16 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @backgroundhook\endcsname {#1}% + \let\scr@opt@marker@backgroundhook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@ps@backgroundhook % \end{option}%^^A onbackground +% \end{option}%^^A onbackground +% \begin{option}{onforeground} +% \changes{v3.28}{2019/11/28}{marker for \cs{ModifyLayerPageStyleOptions}}%^^A % \begin{option}{onpsforeground} % \begin{macro}{\@ps@foregroundhook} % \begin{description} @@ -2635,12 +2687,14 @@ \expandafter\l@addto@macro \csname @ps@\scrlayer@current@pagestyle @foregroundhook\endcsname {#1}% + \let\scr@opt@marker@foregroundhook\FamilyKeyStateProcssed \FamilyKeyStateProcessed } %</package&body> % \end{macrocode} % \end{macro}%^^A \@psforegroundhook % \end{option}%^^A onpsforeground +% \end{option}%^^A onforeground % \begin{option}{singlespacing} % \changes{v3.24}{2017/05/22}{new option added}%^^A % \begin{description} @@ -2672,6 +2726,7 @@ % \textsf{multicol}}%^^A % \changes{v3.24}{2017/05/22}{test for \cs{if@ps@singlespacing} added}%^^A % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % Needed, because of page style aliases. Same arguments like % \cs{DeclarePageStyleByLayers} but, \#1 is the name of the page style, \#2 is % the list of options and \#3 is still the list of layers. @@ -2829,7 +2884,7 @@ \@namedef{@ps@#1@layers}{}% \@for \reserved@a:=#3\do {% \scr@trim@spaces\reserved@a - \ifstr\reserved@a\@empty{}{% + \Ifstr\reserved@a\@empty{}{% \expandafter\@cons\csname @ps@#1@layers\endcsname{{\reserved@a}}% }% }% @@ -3278,10 +3333,12 @@ % % \begin{macro}{\AddLayersToPageStyle} % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{macro}{\AddLayersAtBeginOfPageStyle} % \begin{macro}{\AddLayersAtEndOfPageStyle} % \begin{macro}{\RemoveLayersFromPageStyle} % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{description} % \item[\Parameter{string}:] the name of the page style to be modified (must % be expandable and result in a string). @@ -3309,7 +3366,7 @@ \IfLayerPageStyleExists{\reserved@b}{% \@for \reserved@a:=#2\do {% \scr@trim@spaces\reserved@a - \ifstr\reserved@a\@empty{}{% + \Ifstr\reserved@a\@empty{}{% \expandafter\@cons\csname @ps@\reserved@b @layers\endcsname {{\reserved@a}}% }% @@ -3343,7 +3400,7 @@ \IfLayerPageStyleExists{#1}{% \@for \reserved@a:=#2\do {% \scr@trim@spaces\reserved@a - \ifstr\reserved@a\@empty{}{% + \Ifstr\reserved@a\@empty{}{% \expandafter\remove@layer@from@page@style\expandafter{\reserved@a}% {\reserved@b}% }% @@ -3355,6 +3412,7 @@ % \end{macrocode} % \begin{macro}{\remove@layer@from@page@style} % \changes{v0.9}{2014/07/25}{cleaning of layer list must be global} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % Helper macro to remove exactly one layer (arg 1) from a page style (arg 2). % \begin{macrocode} \newcommand*{\remove@layer@from@page@style}[2]{% @@ -3362,7 +3420,7 @@ \expandafter\let\expandafter\reserved@a\csname @ps@#2@layers\endcsname \expandafter\global\expandafter\let\csname @ps@#2@layers\endcsname\@empty \def\@elt##1{% - \ifstr{#1}{##1}{}{% + \Ifstr{#1}{##1}{}{% \expandafter\@cons\csname @ps@#2@layers\endcsname{{##1}}% }% }\reserved@a @@ -3405,7 +3463,9 @@ % % \begin{macro}{\AddLayersToPageStyleBeforeLayer} % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{macro}{\AddLayersToPageStyleAfterLayer} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A % \begin{description} % \item[\Parameter{string}:] the name of the page style to be modified (must @@ -3430,12 +3490,12 @@ \csname @ps@\reserved@b @layers\endcsname \@namedef{@ps@\reserved@b @layers}{}% \def\@elt##1{% - \ifstr{##1}\@empty{}{% + \Ifstr{##1}\@empty{}{% \expandafter\@cons\csname @ps@\reserved@b @layers\endcsname{{##1}}% - \ifstr{##1}{#3}{% + \Ifstr{##1}{#3}{% \@for \reserved@a:=#2\do {% \scr@trim@spaces\reserved@a - \ifstr\reserved@a\@empty{}{% + \Ifstr\reserved@a\@empty{}{% \expandafter\@cons\csname @ps@\reserved@b @layers\endcsname {{\reserved@a}}% }% @@ -3457,11 +3517,11 @@ \csname @ps@\reserved@b @layers\endcsname \@namedef{@ps@\reserved@b @layers}{}% \def\@elt##1{% - \ifstr{##1}\@empty{}{% - \ifstr{##1}{#3}{% + \Ifstr{##1}\@empty{}{% + \Ifstr{##1}{#3}{% \@for \reserved@a:=#2\do {% \scr@trim@spaces\reserved@a - \ifstr\reserved@a\@empty{}{% + \Ifstr\reserved@a\@empty{}{% \expandafter\@cons\csname @ps@\reserved@b @layers\endcsname {{\reserved@a}}% }% @@ -3483,6 +3543,7 @@ % % % \begin{macro}{\UnifyLayersAtPageStyle} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{description} % \item[\Parameter{string}:] the name of the page style to be unified (must % be expandable and result in a string). @@ -3498,7 +3559,7 @@ \@namedef{@ps@\reserved@b @layers}{}% \begingroup \def\@elt##1{% - \ifstr{##1}\@empty{}{% + \Ifstr{##1}\@empty{}{% \remove@layer@from@page@style{##1}{\reserved@b}% \expandafter\@cons\csname @ps@\reserved@b @layers\endcsname{{##1}}% }% @@ -3540,6 +3601,7 @@ } % \end{macrocode} % \begin{macro}{\scrlayer@modify@layer@ps@options} +% \changes{v3.28}{2019/11/28}{usage of marker makros}%^^A % Helper needed because of alias page styles. Same parameters like % \cs{ModifyLayerPageStyleOptions} % \begin{macrocode} @@ -3556,11 +3618,21 @@ \@namedef{@ps@#1@twosidehook}{}% \@namedef{@ps@#1@floatpagehook}{}% \@namedef{@ps@#1@nonfloatpagehook}{}% + \let\scr@opt@marker@initialhook\@empty + \let\scr@opt@marker@hook\@empty + \let\scr@opt@marker@backgroundhook\@empty + \let\scr@opt@marker@foregroundhook\@empty + \let\scr@opt@marker@oddpagehook\@empty + \let\scr@opt@marker@evenpagehook\@empty + \let\scr@opt@marker@onesidehook\@empty + \let\scr@opt@marker@twosidehook\@empty + \let\scr@opt@marker@floatpagehook\@empty + \let\scr@opt@marker@nonfloatpagehook\@empty \FamilyExecuteOptions[.definelayerpagestyle]{KOMAarg}{#2}% \def\reserved@a{\endgroup}% \def\@sls@##1{% - \expandafter\let\expandafter\reserved@b\csname @ps@#1@##1hook\endcsname - \ifx\reserved@b\@empty\else + \expandafter\ifx \csname scr@opt@marker@##1hook\endcsname\@empty\else + \expandafter\let\expandafter\reserved@b\csname @ps@#1@##1hook\endcsname \l@addto@macro\reserved@a{\@namedef{@ps@#1@##1hook}}% \expandafter\l@addto@macro\expandafter\reserved@a\expandafter{% \expandafter{% @@ -3625,7 +3697,7 @@ } \AfterPackage*{tagpdf}{% \providecommand*{\scrlayer@beginartifact}[1]{% - \ifstr{#1}{}{% + \Ifstr{#1}{}{% \tagmcbegin{artifact}% }{% \tagmcbegin{artifact=#1}% @@ -3811,8 +3883,10 @@ % % \begin{macro}{\IfLayerAtPageStyle} % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{macro}{\IfSomeLayersAtPageStyle} % \changes{v3.26}{2018/08/29}{\cs{scr@trim@spaces} added}%^^A +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{macro}{\IfLayersAtPageStyle} % \begin{description} % \item[\Parameter{string}:] the name of the page style to be tested (must @@ -3849,13 +3923,13 @@ \begingroup \edef\reserved@a{\GetRealPageStyle{#1}}% \@tempswafalse - \ifstr{#2}{}{% + \Ifstr{#2}{}{% \expandafter\ifx\csname @ps@\reserved@a @layers\endcsname\@empty \@tempswatrue \fi }{% \expandafter\ForEachLayerOfPageStyle\expandafter{% - \reserved@a}{\ifstr{##1}{#2}{\aftergroup\@tempswatrue}{}}% + \reserved@a}{\Ifstr{##1}{#2}{\aftergroup\@tempswatrue}{}}% }% \if@tempswa \aftergroup\@firstoftwo \else \aftergroup\@secondoftwo \fi \expandafter\endgroup @@ -3884,7 +3958,7 @@ \IfLayerPageStyleExists{#1}{% \begingroup \@tempswatrue - \ifstr{#2}{}{% + \Ifstr{#2}{}{% \edef\reserved@a{\GetRealPageStyle{#1}}% \expandafter\ifx\csname @scr@\reserved@a @layers\endcsname\@empty \else \@tempswafalse @@ -3911,6 +3985,7 @@ % % % \begin{macro}{\DestroyRealLayerPageStyle} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % \begin{description} % \item[\Parameter{string}:] name of the layer page style to be destroyed. % \end{description} @@ -3935,13 +4010,13 @@ \expandafter\let\csname @ps@#1@nonfloatpagehook\endcsname\relax \expandafter\let\csname @ps@#1@layers\endcsname\relax \expandafter\let\csname ps@#1\endcsname\relax - \ifstr{\currentpagestyle}{#1}{% + \Ifstr{\currentpagestyle}{#1}{% \def\currentpagestyle{scrlayer@empty}% \let\@oddhead\@empty\let\@evenhead\@empty \let\@oddfoot\@empty\let\@evenfoot\@empty }{}% \if@specialpage - \ifstr{\@specialstyle}{#1}{% + \Ifstr{\@specialstyle}{#1}{% \global\let\@specialstyle\relax \global\@specialpagefalse }{}% @@ -3968,6 +4043,7 @@ % % \begin{macro}{\pagestyle} % \begin{macro}{\currentpagestyle} +% \changes{v3.28}{2019/11/18}{\cs{ifstr} umbenannt in \cs{Ifstr}}%^^A % We save the current page style. Note, that this doesn't work for special % page styles\footnote{Special page styles are set by % \Macro{thispagestyle}.} that hasn't been defined using @@ -4002,7 +4078,7 @@ \let\scrlayer@exec@after@pagestyle@hook\@gobble \def\ps@test{}% \pagestyle{test}% - \ifstr{\currentpagestyle}{test}{}{% + \Ifstr{\currentpagestyle}{test}{}{% \PackageError{scrlayer}{package incompatibility detected}{% Another package redefines \string\pagestyle\space incompatible with scrlayer.\MessageBreak |