summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx
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/source/latex/koma-script/tocbasic.dtx
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/source/latex/koma-script/tocbasic.dtx')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/tocbasic.dtx46
1 files changed, 39 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx b/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx
index ec055861e4b..089ea227032 100644
--- a/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx
@@ -1,8 +1,8 @@
-% \CheckSum{656}
+% \CheckSum{706}
% \iffalse meta-comment
% ======================================================================
% tocbasic.dtx
-% Copyright (c) Markus Kohm, 2008-2009
+% Copyright (c) Markus Kohm, 2008-2010
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -23,7 +23,7 @@
% of TeX would generate the implementation documentation.
% ----------------------------------------------------------------------
% tocbasic.dtx
-% Copyright (c) Markus Kohm, 2008-2009
+% Copyright (c) Markus Kohm, 2008-2010
%
% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
% Version 1.3c, verteilt und/oder veraendert werden.
@@ -66,7 +66,7 @@
%%% From File: tocbasic.dtx
%<*dtx|package|driver|doc|load>
% \fi
-\def\tocbasicversion{2009/06/08 v3.03b}
+\def\tocbasicversion{2010/01/05 v3.04b}
% \iffalse
%</dtx|package|driver|doc|load>
%<*dtx>
@@ -158,7 +158,7 @@
\preamble
-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.
@@ -1483,17 +1483,37 @@ be defined and used in \Macro{tocbasic@listhead}.
% \end{macro}
% \end{macro}
% \begin{macro}{\BeforeStartingTOC}
+% \changes{3.04b}{2010/01/05}{fix: define the hook if not already defined}
% \begin{macro}{\AfterStartingTOC}
+% \changes{3.04b}{2010/01/05}{fix:define the hook if not already defined}
% These are the commands to add code to the general or individual hooks. If
% the first, optional argument was given, the second, mandatory argument
% will be added to the individual hook, otherwise the general hook will be
% extended.
% \begin{macrocode}
\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
}
% \end{macrocode}
% \end{macro}
@@ -1638,16 +1658,28 @@ be defined and used in \Macro{tocbasic@listhead}.
}
% \end{macrocode}
% \begin{macro}{\BeforeTOCHead}
+% \changes{3.04b}{2010/01/05}{fix: define the hook if not already defined}
% \begin{macro}{\AfterTOCHead}
+% \changes{3.04b}{2010/01/05}{fix: define the hook if not already defined}
% These are the commands to add code to the general or individual hooks. If
% the first, optional argument was given, the second, mandatory argument
% will be added to the individual hook, otherwise the general hook will be
% extended.
% \begin{macrocode}
\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}%
}
% \end{macrocode}