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.sty98
1 files changed, 62 insertions, 36 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty b/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
index e314c208726..a2a4ca5eabb 100644
--- a/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
+++ b/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
@@ -4,51 +4,43 @@
%%
%% The original source files were:
%%
-%% scrclass.dtx (with options: `package,scrlfile')
-%% scrlogo.dtx
+%% scrlfile.dtx (with options: `scrlfile')
+%% scrlogo.dtx (with options: `logo')
%%
-%% Copyright (C) 1994-2004 Markus Kohm.
+%% Copyright (c) 1994-2002
+%% Markus Kohm and any individual authors listed elsewhere in this file.
%%
-%% All rights reserved. For further copyright information see the file
-%% LEGAL.TXT or LEGALDE.TXT.
+%% This file was generated from file(s) of the KOMA-Script bundle.
+%% ---------------------------------------------------------------
%%
-%% This file is part of the LaTeX2e KOMA-Script bundle.
-%% ----------------------------------------------------
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.2
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.2 or later is part of all distributions of LaTeX
+%% version 1999/12/01 or later.
%%
-%% The KOMA-Script bundle bases on the Script-family created by
-%% Frank Neukam 1993 and the standard documents classes created
-%% by the LaTeX3-Team 1994-1996.
-%% ------------------------------------------------------------------------
+%% This file may only be distributed together with the files
+%% `scrlogo.dtx', `scrlfile.dtx' and `scrlfile.ins'. You may however
+%% distribute the files `scrlogo.dtx', `scrlfile.dtx' and `scrlfile.ins'
+%% without this file. See also `scrlfile.dtx' for additional information.
%%
-%% This system is distributed in the hope that it will be useful,
-%% but WITHOUT ANY WARRANTY; without even the implied warranty of
-%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+%% If this file is a beta version, you are not allowed to distribute it.
%%
+%% English and German manuals are part of KOMA-Script bundle.
+%% ----------------------------------------------------------
%%
-%% IMPORTANT NOTICE:
+%% A short version of the english manual is at `scrlfile.dtx', too.
%%
-%% For error reports in case of UNCHANGED versions see documentation.
+%% The KOMA-Script bundle (but maybe not this file) was based upon the
+%% LaTeX2.09 Script family created by Frank Neukam 1993 and the LaTeX2e
+%% standard classes created by The LaTeX3 Project 1994-1996.
%%
-%% Please do not request updates from us directly. Distribution is
-%% done through Mail-Servers, Mailboxes and TeX organizations.
-%%
-%% You are not allowed to change this file.
-%%
-%% You are allowed to distribute this file under the condition that
-%% it is distributed together with all files mentioned in readme.txt
-%% and liesmich.txt. See LEGAL.TXT or LEGALDE.TXT for further
-%% information.
-%%
-%% If you receive only some of these files from someone, complain!
-%%
-%% You are NOT ALLOWED to distribute this file alone.
-%%
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{%
- scrlfile%
- }
- [2004/09/16 v2.9t LaTeX2e KOMA
- package]
+%%% From File: scrlfile.dtx
+\def\scrlfileversion{2006/03/28 v2.95}
+\ProvidesPackage{scrlfile}[%
+ \scrlfileversion\space KOMA-Script package (loading files)]
\typeout{Package scrlfile, \csname ver@scrlfile.sty\endcsname%
^^J\@spaces\@spaces\@spaces\@spaces\space\space
Copyright (C) Markus Kohm^^J}
@@ -103,6 +95,40 @@
\endgroup
{#1}%
}
+\AtEndDocument{%
+ \let\scr@saved@checkend=\@checkend
+ \renewcommand*{\@checkend}[1]{%
+ \def\reserved@a{#1}\def\reserved@b{document}%
+ \scr@saved@checkend{#1}%
+ \ifx\reserved@a\reserved@b
+ \let\scr@saved@clearpage=\clearpage
+ \renewcommand*{\clearpage}{\scr@saved@clearpage
+ \scr@hook@bcma\let\clearpage=\scr@saved@clearpage}%
+ \fi%
+ }%
+}
+\newcommand*{\scr@saved@checkend}{}
+\newcommand*{\scr@hook@bcma}{%
+ \renewcommand*{\BeforeClosingMainAux}[1]{##1}%
+ \renewcommand*{\newpage}{%
+ \PackageError{%
+ scrlfile%
+ }{%
+ \string\newpage\space at \string\BeforeClosingMainAux
+ }{%
+ You should never use \string\newpage\space or
+ \string\clear(double)page or other output material at the\MessageBreak
+ argument of \string\BeforeClosingMainAux!\MessageBreak
+ If you'll continue, the \string\newpage\space will be ignored to
+ avoid corruption of\MessageBreak
+ every prior use of \string\BeforeClosingMainAux.
+ }%
+ }%
+}
+\newcommand*{\BeforeClosingMainAux}{%
+ \g@addto@macro\scr@hook@bcma%
+}
+%%% From File: scrlogo.dtx
\@ifundefined{KOMAScript}{%
\DeclareRobustCommand{\KOMAScript}{\textsf{K\kern.05em O\kern.05em%
M\kern.05em A\kern.1em-\kern.1em Script}}}{}