summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrlfile.sty')
-rw-r--r--Master/texmf-dist/tex/latex/koma-script/scrlfile.sty32
1 files changed, 28 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty b/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
index 390c3b16720..1f441671ffe 100644
--- a/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
+++ b/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
@@ -41,7 +41,7 @@
%% standard classes created by The LaTeX3 Project 1994-1996.
%%
%%% From File: scrlfile.dtx
-\def\scrlfileversion{2007/12/18 v2.98}
+\def\scrlfileversion{2008/07/09 v3.00}
\ProvidesPackage{scrlfile}[%
\scrlfileversion\space KOMA-Script package (loading files)]
\typeout{Package scrlfile, \csname ver@scrlfile.sty\endcsname%
@@ -163,13 +163,29 @@
\ifx\reserved@a\reserved@b
\let\scr@saved@clearpage=\clearpage
\renewcommand*{\clearpage}{\scr@saved@clearpage
- \scr@hook@bcma\let\clearpage=\scr@saved@clearpage}%
+ \scr@hook@bcma
+ \scr@restore@newpage
+ \let\clearpage=\scr@saved@clearpage}%
\fi%
}%
}
\newcommand*{\scr@saved@checkend}{}
-\newcommand*{\scr@hook@bcma}{%
- \renewcommand*{\BeforeClosingMainAux}[1]{##1}%
+\newcommand*{\scr@redefine@newpage}{%
+ \let\scr@saved@newpage\newpage
+ \def\scr@restore@newpage{%
+ \renewcommand*{\newpage}{%
+ \PackageWarningNoLine{%
+ scrlfile%
+ }{%
+ \string\newpage\space at main aux file!\MessageBreak
+ You have output material at the main aux file.\MessageBreak
+ Note, that the \string\BeforeClosingMainAux\space commands\MessageBreak
+ are processed before the output from aux file%
+ }%
+ \let\newpage\scr@saved@newpage
+ \newpage
+ }%
+ }%
\renewcommand*{\newpage}{%
\PackageError{%
scrlfile%
@@ -185,7 +201,15 @@
}%
}%
}
+\newcommand*{\scr@restore@newpage}{}
+\newcommand*{\scr@hook@bcma}{}
\newcommand*{\BeforeClosingMainAux}{%
+ \ifx\scr@hook@bcma\@empty
+ \gdef\scr@hook@bcma{%
+ \renewcommand*{\BeforeClosingMainAux}[1]{####1}%
+ \scr@redefine@newpage
+ }%
+ \fi
\g@addto@macro\scr@hook@bcma%
}
%%% From File: scrlogo.dtx