diff options
author | Dr. Clea F. Rees <cfrees@imapmail.org> | 2008-12-10 20:53:15 +0000 |
---|---|---|
committer | Dr. Clea F. Rees <cfrees@imapmail.org> | 2008-12-10 20:53:15 +0000 |
commit | e580f05b6906cceb59c89211eb69c02b58b2d35d (patch) | |
tree | 66ecd115df66a84f35ac0458d18842214e42ba55 /Master/texmf-dist/tex/latex/koma-script/scrpage2.sty | |
parent | 2e59afec9907d090fa6cb3d54066333df8826741 (diff) |
koma-script update 2008/12/10
git-svn-id: svn://tug.org/texlive/trunk@11586 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrpage2.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/koma-script/scrpage2.sty | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrpage2.sty b/Master/texmf-dist/tex/latex/koma-script/scrpage2.sty index 794fdf1e80c..6ad7b156b24 100644 --- a/Master/texmf-dist/tex/latex/koma-script/scrpage2.sty +++ b/Master/texmf-dist/tex/latex/koma-script/scrpage2.sty @@ -40,12 +40,38 @@ %%% From File: scrpage.dtx \NeedsTeXFormat{LaTeX2e}[1995/06/01] \ProvidesPackage{scrpage2} - [2008/11/19 v2.2g LaTeX2e KOMA-Script + [2008/12/08 v2.3 LaTeX2e KOMA-Script package] -\DeclareOption{headinclude}{\PassOptionsToPackage{headinclude}{typearea}} -\DeclareOption{headexclude}{\PassOptionsToPackage{headexclude}{typearea}} -\DeclareOption{footinclude}{\PassOptionsToPackage{footinclude}{typearea}} -\DeclareOption{footexclude}{\PassOptionsToPackage{footexclude}{typearea}} +\newcommand*{\@Pass@Obsolete@Option@To@Typearea}[1]{% + \@expandtwoargs\in@{,\CurrentOption,}{,\@curroptions,}% + \ifin@ + \PackageWarningNoLine{scrpage2}{% + deprecated passing option `\CurrentOption' to scrpage2.\MessageBreak + If you are using package typearea or\MessageBreak + a KOMA-Script class since version 3.00\MessageBreak + you may use `\string\KOMAoptions{#1}' and\MessageBreak + remove passing `\CurrentOption' to scrpage2% + }% + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname KOMAoptions\endcsname\relax + \PassOptionsToPackage{#1}{typearea}% + \else + \KOMAoptions{#1}\csname relcalctypearea\endcsname + \fi + \fi +} +\DeclareOption{headinclude}{% + \@Pass@Obsolete@Option@To@Typearea{headinclude}% +} +\DeclareOption{headexclude}{% + \@Pass@Obsolete@Option@To@Typearea{headinclude=false}% +} +\DeclareOption{footinclude}{% + \@Pass@Obsolete@Option@To@Typearea{footinclude}% +} +\DeclareOption{footexclude}{% + \@Pass@Obsolete@Option@To@Typearea{footinclude=false}% +} \@ifundefined{@mincltrue}{\newif\if@mincl}{} \DeclareOption{mpinclude}{\@mincltrue} \DeclareOption{mpexclude}{\@minclfalse} |