From d169595175488e9e35570df5f4b22214627896e0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 19 Nov 2008 02:08:50 +0000 Subject: koma-script update git-svn-id: svn://tug.org/texlive/trunk@11355 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/koma-script/scrreprt.cls | 82 +++++++++------------- 1 file changed, 32 insertions(+), 50 deletions(-) (limited to 'Master/texmf-dist/tex/latex/koma-script/scrreprt.cls') diff --git a/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls b/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls index fcd7a998153..303b0d0c715 100644 --- a/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls +++ b/Master/texmf-dist/tex/latex/koma-script/scrreprt.cls @@ -6,7 +6,7 @@ %% %% scrkvers.dtx (with options: `class,report') %% scrkbase.dtx (with options: `load') -%% tocbasic.dtx (with options: `load') +%% tocbasic.dtx (with options: `load,chapter') %% scrkcomp.dtx (with options: `class,report,option') %% scrkmisc.dtx (with options: `class,report,option') %% scrklang.dtx (with options: `class,report,option') @@ -92,7 +92,7 @@ \fi } \fi - \@CheckKOMAScriptVersion{2008/11/03 v3.00 KOMA-Script}% + \@CheckKOMAScriptVersion{2008/11/14 v3.01 KOMA-Script}% \endgroup \newcommand*{\KOMAClassName}{% scrreprt% @@ -106,9 +106,11 @@ %%% From File: scrkbase.dtx \RequirePackage{scrkbase}[\KOMAScriptVersion] %%% From File: tocbasic.dtx -\def\tocbasicversion{2008/10/06 v1.0} +\def\tocbasicversion{2008/11/13 v3.01} \edef\@tempa{\noexpand\RequirePackage{tocbasic}[\tocbasicversion]} \@tempa +\AtAddToTocList[\@currname.\@currext]{\setuptoc{\@currext}{onecolumn}}% +\AtAddToTocList[float]{\setuptoc{\@currext}{onecolumn}}% \addtotoclist{toc} \addtotoclist[float]{lof} \addtotoclist[float]{lot} @@ -157,6 +159,7 @@ \@namedef{scr@v@2.98b}{6} \@namedef{scr@v@2.98c}{7} \@namedef{scr@v@3.00}{8} +\@namedef{scr@v@3.01}{8} \@namedef{scr@v@last}{8} %%% From File: scrkmisc.dtx \KOMA@key{draft}[true]{% @@ -2013,14 +2016,7 @@ }{}% }% \@ifundefined{float@addtolists}{}{% - \ClassWarning{\KOMAClassName}{% - Usage of deprecated \string\float@addtolists!\MessageBreak - You should use the features of package `tocbasic'\MessageBreak - instead of \string\float@addtolists.\MessageBreak - Definition of \string\float@addtolists\space may be removed - from\MessageBreak - KOMA-Script soon, so it should not be used - }% + \scr@float@addtolists@warning \scr@ifundefinedorrelax{@currentHref}{% \float@addtolists{% \protect\contentsline{chapteratlist}{% @@ -2043,14 +2039,7 @@ }{}% }% \@ifundefined{float@addtolists}{}{% - \ClassWarning{\KOMAClassName}{% - Usage of deprecated \string\float@addtolists!\MessageBreak - You should use the features of package `tocbasic'\MessageBreak - instead of \string\float@addtolists.\MessageBreak - Definition of \string\float@addtolists\space may be removed - from\MessageBreak - KOMA-Script soon, so it should not be used - }% + \scr@float@addtolists@warning \scr@ifundefinedorrelax{@currentHref}{% \float@addtolists{% \protect\contentsline{chapteratlist}{#1}{\thepage}% @@ -2071,14 +2060,7 @@ }{}% }% \@ifundefined{float@addtolists}{}{% - \ClassWarning{\KOMAClassName}{% - Usage of deprecated \string\float@addtolists!\MessageBreak - You should use the features of package `tocbasic'\MessageBreak - instead of \string\float@addtolists.\MessageBreak - Definition of \string\float@addtolists\space may be removed - from\MessageBreak - KOMA-Script soon, so it should not be used - }% + \scr@float@addtolists@warning \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% }% \fi @@ -2162,14 +2144,7 @@ }{}% }% \@ifundefined{float@addtolists}{}{% - \ClassWarning{\KOMAClassName}{% - Usage of deprecated \string\float@addtolists!\MessageBreak - You should use the features of package `tocbasic'\MessageBreak - instead of \string\float@addtolists.\MessageBreak - Definition of \string\float@addtolists\space may be removed - from\MessageBreak - KOMA-Script soon, so it should not be used - }% + \scr@float@addtolists@warning \scr@ifundefinedorrelax{@currentHref}{% \float@addtolists{% \protect\contentsline{chapteratlist}{#1}{\thepage}% @@ -2189,14 +2164,7 @@ }{}% }% \@ifundefined{float@addtolists}{}{% - \ClassWarning{\KOMAClassName}{% - Usage of deprecated \string\float@addtolists!\MessageBreak - You should use the features of package `tocbasic'\MessageBreak - instead of \string\float@addtolists.\MessageBreak - Definition of \string\float@addtolists\space may be removed - from\MessageBreak - KOMA-Script soon, so it should not be used - }% + \scr@float@addtolists@warning \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% }% \fi @@ -3328,13 +3296,7 @@ \begingroup\let\if@dynlist\if@tocleft\listoftoc{toc}\endgroup } \newcommand*{\float@listhead}[1]{% - \ClassWarning{\KOMAClassName}{% - usage of deprecated \string\float@listhead!\MessageBreak - You should use the features of package `tocbasic'\MessageBreak - instead of \string\float@listhead.\MessageBreak - Definition of \string\float@listhead\space my be removed from\MessageBreak - KOMA-Script soon, so it should not be used - }% + \scr@float@listhead@warning \float@@listhead{#1}% \@mkboth{#1}{#1}% \if@dynlist% @@ -3345,6 +3307,26 @@ }% \fi } +\newcommand*{\scr@float@listhead@warning}{% + \ClassWarning{\KOMAClassName}{% + Usage of deprecated \string\float@listhead!\MessageBreak + You should use the features of package `tocbasic'\MessageBreak + instead of \string\float@listhead.\MessageBreak + Definition of \string\float@listhead\space my be removed from\MessageBreak + `\KOMAClassName' soon, so it should not be used + }% +} +\newcommand*{\scr@float@addtolists@warning}{% + \ClassWarningNoLine{\KOMAClassName}{% + \string\float@addtolists\space detected!\MessageBreak + You should use the features of package `tocbasic'\MessageBreak + instead of \string\float@addtolists.\MessageBreak + Support for \string\float@addtolists\space may be removed + from\MessageBreak + `\KOMAClassName' soon + }% + \global\let\scr@float@addtolists@warning\relax +} \newcommand*\listfigurename{List of Figures} \newcommand*\listoflofname{\listfigurename} \newcommand*\listtablename{List of Tables} -- cgit v1.2.3