diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/tocbasic.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/koma-script/tocbasic.sty | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty index b94b548d2af..0a68e5881b1 100644 --- a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty +++ b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty @@ -7,7 +7,7 @@ %% tocbasic.dtx (with options: `package') %% scrlogo.dtx (with options: `logo') %% -%% Copyright (c) 2007-2009 +%% Copyright (c) 2007-2010 %% Markus Kohm and any individual authors listed elsewhere in this file. %% %% This file was generated from file(s) of the KOMA-Script bundle. @@ -39,7 +39,7 @@ %% standard classes created by The LaTeX3 Project 1994-1996. %% %%% From File: tocbasic.dtx -\def\tocbasicversion{2009/06/08 v3.03b} +\def\tocbasicversion{2010/01/05 v3.04b} \NeedsTeXFormat{LaTeX2e}[1995/06/01] \ProvidesPackage{tocbasic} [\tocbasicversion\space KOMA-Script package @@ -235,10 +235,28 @@ \newcommand*{\tocbasic@@before@hook}{} \newcommand*{\tocbasic@@after@hook}{} \newcommand{\BeforeStartingTOC}[2][]{% - \expandafter\g@addto@macro\csname tb@#1@before@hook\endcsname{#2}% + \ifx\relax#1\relax + \g@addto@macro\tocbasic@@before@hook{#2}% + \else + \scr@ifundefinedorrelax{tb@#1@before@hook}{% + \PackageInfo{tocbasic}{defining new hook before starting `#1'}% + \expandafter\global\expandafter\let\csname tb@#1@before@hook\endcsname + \@empty + }{}% + \expandafter\g@addto@macro\csname tb@#1@before@hook\endcsname{#2}% + \fi } \newcommand{\AfterStartingTOC}[2][]{% - \expandafter\g@addto@macro\csname tb@#1@after@hook\endcsname{#2}% + \ifx\relax#1\relax + \g@addto@macro\tocbasic@@after@hook{#2}% + \else + \scr@ifundefinedorrelax{tb@#1@after@hook}{% + \PackageInfo{tocbasic}{defining new hook after starting `#1'}% + \expandafter\global\expandafter\let\csname tb@#1@after@hook\endcsname + \@empty + }{}% + \expandafter\g@addto@macro\csname tb@#1@after@hook\endcsname{#2}% + \fi } \newcommand*{\listoftoc}{% \@ifstar \tocbasic@starttoc\@listoftoc @@ -342,9 +360,19 @@ \csname tb@@afterhead@hook\endcsname } \newcommand{\BeforeTOCHead}[2][]{% + \scr@ifundefinedorrelax{tb@#1@beforehead@hook}{% + \PackageInfo{tocbasic}{defining new hook before heading of `#1'}% + \expandafter\global\expandafter\let\csname tb@#1@beforehead@hook\endcsname + \@empty + }{}% \expandafter\g@addto@macro\csname tb@#1@beforehead@hook\endcsname{#2}% } \newcommand{\AfterTOCHead}[2][]{% + \scr@ifundefinedorrelax{tb@#1@afterhead@hook}{% + \PackageInfo{tocbasic}{defining new hook after heading of `#1'}% + \expandafter\global\expandafter\let\csname tb@#1@afterhead@hook\endcsname + \@empty + }{}% \expandafter\g@addto@macro\csname tb@#1@afterhead@hook\endcsname{#2}% } \AtBeginDocument{% |