Skip to content

Commit

Permalink
apply pagestyle before loading scrlayer-scrpage, fixes #59
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpiggi committed Mar 30, 2021
1 parent 2eaa810 commit 6df3265
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/tudscr-misc.dtx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
% \CheckSum{324}
% \CheckSum{334}
% \iffalse meta-comment
%
% TUD-Script -- Corporate Design of Technische Universität Dresden
% ----------------------------------------------------------------------------
%
% Copyright (C) Falk Hanisch <[email protected]>, 2012-2020
% Copyright (C) Falk Hanisch <[email protected]>, 2012-2021
%
% ----------------------------------------------------------------------------
%
Expand Down
8 changes: 5 additions & 3 deletions source/tudscr-pagestyle.dtx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
% \CheckSum{2044}
% \CheckSum{2046}
% \iffalse meta-comment
%
% TUD-Script -- Corporate Design of Technische Universität Dresden
% ----------------------------------------------------------------------------
%
% Copyright (C) Falk Hanisch <[email protected]>, 2012-2020
% Copyright (C) Falk Hanisch <[email protected]>, 2012-2021
%
% ----------------------------------------------------------------------------
%
Expand Down Expand Up @@ -52,7 +52,7 @@
% \fi
%
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\ProvidesFile{tudscr-pagestyle.dtx}[2020/09/29 v2.06j TUD-Script\space%
\ProvidesFile{tudscr-pagestyle.dtx}[2021/03/30 v2.06l TUD-Script\space%
(pagestyle)%
]
%
Expand Down Expand Up @@ -121,6 +121,7 @@
\if@tud@x@standalone@crop
\PreventPackageFromLoading{scrlayer-scrpage}%
\else
\PassOptionsToPackage{automark}{scrlayer-scrpage}%
\AtEndPreamble{\RequirePackage{scrlayer-scrpage}[2020/09/21]}%
\fi
% \end{macrocode}
Expand Down Expand Up @@ -649,6 +650,7 @@
% \begin{macrocode}
\tud@cs@store{pagestyle}
\renewcommand*\pagestyle[1]{%
\csuse{ps@#1}%
\AfterAtEndOfPackage*{scrlayer-scrpage}{\pagestyle{#1}}%
}
\BeforePackage{scrlayer-scrpage}{%
Expand Down

0 comments on commit 6df3265

Please sign in to comment.