summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx')
-rw-r--r--macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx39
1 files changed, 21 insertions, 18 deletions
diff --git a/macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx b/macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx
index 6f223ad944..d7a264f89e 100644
--- a/macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx
+++ b/macros/latex/contrib/koma-script/source/scrlayer-scrpage.dtx
@@ -1,7 +1,7 @@
% \iffalse^^A meta-comment
% ======================================================================
% scrlayer-scrpage.dtx
-% Copyright (c) Markus Kohm, 2012-2020
+% Copyright (c) Markus Kohm, 2012-2021
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -19,7 +19,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrlayer-scrpage.dtx
-% Copyright (c) Markus Kohm, 2012-2020
+% Copyright (c) Markus Kohm, 2012-2021
%
% Diese Datei ist Teil der LaTeX2e KOMA-Script-Sammlung.
%
@@ -38,7 +38,7 @@
% Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien.
% ======================================================================
%
-%%% From File: $Id: scrlayer-scrpage.dtx 3531 2020-09-11 12:28:41Z kohm $
+%%% From File: $Id: scrlayer-scrpage.dtx 3595 2021-05-16 07:11:07Z kohm $
%<identify>%%% (run: identify)
%<init>%%% (run: init)
%<options>%%% (run: options)
@@ -47,9 +47,9 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
- \filedate$Date: 2020-09-11 14:28:41 +0200 (Fri, 11 Sep 2020) $
+ \filedate$Date: 2021-05-16 09:11:07 +0200 (Sun, 16 May 2021) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
- \filerevision$Revision: 3531 $
+ \filerevision$Revision: 3595 $
\edef\reserved@a{%
\noexpand\endgroup
\noexpand\ProvidesFile{scrlayer-scrpage.dtx}%
@@ -1507,19 +1507,20 @@
}%
% \end{macrocode}
% \begin{macro}{\sls@secure@box}
-% \begin{description}
-% \item[\Parameter{length}:] a \LaTeX{} length, that gives the maximum
-% height + depth of the \meta{content}. It has to be either
-% \cs{headheight} or \cs{footheight}.
-% \item[\Parameter{content}:] what should be output (inside the box).
-% \end{description}
+% \changes{v3.34}{2021/05/16}{\LaTeX{} team requested for additional \cs{par}}
+% \begin{description}
+% \item[\Parameter{length}:] a \LaTeX{} length, that gives the maximum
+% height + depth of the \meta{content}. It has to be either
+% \cs{headheight} or \cs{footheight}.
+% \item[\Parameter{content}:] what should be output (inside the box).
+% \end{description}
% Note, that several length may be changed, to fit.
% \begin{macrocode}
\newcommand*{\sls@secure@box}[2]{%
\begingroup
\setbox\z@\vbox{%
\ifsls@leavevmode\leavevmode\expandafter\ignorespaces\fi
- #2%
+ #2\par
}%
\ifdim #1<\dimexpr \ht\z@+\dp\z@\relax
\PackageWarning{scrlayer-scrpage}{%
@@ -1671,12 +1672,13 @@
% \end{macro}%^^A \footfont
%
% \begin{macro}{\sls@hf@rule}
-% \begin{description}
-% \item[\Parameter{rule name}:] one of \texttt{headtop}, \texttt{headsep},
-% \texttt{footsep}, or \texttt{footbot}
-% \item[\Parameter{dimensional expression}:] the line length (width)
-% \item[\Parameter{dimensional expression}:] the line thickness (height)
-% \end{description}
+% \changes{v3.34}{2021/05/16}{\LaTeX{} team requested for additional \cs{par}}
+% \begin{description}
+% \item[\Parameter{rule name}:] one of \texttt{headtop}, \texttt{headsep},
+% \texttt{footsep}, or \texttt{footbot}
+% \item[\Parameter{dimensional expression}:] the line length (width)
+% \item[\Parameter{dimensional expression}:] the line thickness (height)
+% \end{description}
% Helper to draw the line.
% \begin{macrocode}
\newcommand*\sls@hf@rule[3]{%
@@ -1699,6 +1701,7 @@
\if@tempswa
\hskip \z@\@plus 1fill\@minus \paperwidth\null
\fi
+ \par
}%
}%
\endgroup