summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-02-17 01:13:08 +0000
committerKarl Berry <karl@freefriends.org>2010-02-17 01:13:08 +0000
commitfc452419467f73cbbe9e7748ac266442487b75c4 (patch)
tree9f2cc4858705479715feb886723ffd6361cbfc29 /Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
parent5323eaeeb7b140b77a69f88dba6a5ef38f12f60e (diff)
koma-script update (16feb10)
git-svn-id: svn://tug.org/texlive/trunk@17067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/tocbasic.sty')
-rw-r--r--Master/texmf-dist/tex/latex/koma-script/tocbasic.sty36
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{%