summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-05 23:06:06 +0000
committerKarl Berry <karl@freefriends.org>2011-04-05 23:06:06 +0000
commit024228db99693079b2ebbc9aff20e89811eb8810 (patch)
tree8e8882ca17c8963d54f2abffdeeed1322cbdde66 /Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
parent4e8d3cd79b79589e4265bb196afe87ebaa3cc5cc (diff)
koma-script (5apr11)
git-svn-id: svn://tug.org/texlive/trunk@21983 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.sty52
1 files changed, 35 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
index c93fc431187..cb4c3c93e70 100644
--- a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
+++ b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
@@ -39,7 +39,7 @@
%% standard classes created by The LaTeX3 Project 1994-1996.
%%
%%% From File: tocbasic.dtx
-\def\tocbasicversion{2010/10/01 v3.07a}
+\def\tocbasicversion{2011/03/23 v3.09}
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{tocbasic}
[\tocbasicversion\space KOMA-Script package
@@ -230,7 +230,7 @@
\setlength{\parskip}{\z@}%
\setlength{\parindent}{\z@}%
\setlength{\parfillskip}{\z@\@plus 1fil}%
- \def\@currext{#1}%
+ \edef\@currext{#1}%
\csname tocbasic@@before@hook\endcsname
\csname tb@#1@before@hook\endcsname
\@starttoc{#1}%
@@ -283,7 +283,7 @@
}{%
\expandafter\let\expandafter\list@fname\csname listof#2name\endcsname
}%
- \def\@currext{#2}%
+ \edef\@currext{#2}%
\iftocfeature{\@currext}{onecolumn}{%
\iftocfeature{\@currext}{leveldown}{}{%
\if@twocolumn
@@ -495,6 +495,12 @@
\define@key{tocbasic}{floatpos}{%
\tb@ifvalueisnotempty{floatpos}{#1}{\edef\tb@nt@floatpos{#1}}%
}
+\define@key{tocbasic}{atbegin}{%
+ \tb@ifvalueisnotempty{atbegin}{#1}{\def\tb@nt@atbegin{#1}}%
+}
+\define@key{tocbasic}{atend}{%
+ \tb@ifvalueisnotempty{atend}{#1}{\def\tb@nt@atend{#1}}%
+}
\newcommand*{\DeclareNewTOC}[2][]{%
\tb@floatfalse
\tb@nonfloatfalse
@@ -510,7 +516,9 @@
\def\tb@nt@level{1}%
\def\tb@nt@indent{1em}%
\def\tb@nt@hang{1.5em}%
- \let\tb@nt@counterwithin\@empty%
+ \let\tb@nt@counterwithin\@empty
+ \let\tb@nt@atbegin\@empty
+ \let\tb@nt@atend\@empty
\setkeys{tocbasic}{#1}%
\expandafter\newcommand\csname ext@\tb@nt@type\endcsname{}%
\expandafter\let\csname ext@\tb@nt@type\endcsname\tb@nt@ext
@@ -553,19 +561,23 @@
\expandafter\newcommand\expandafter*\csname ftype@\tb@nt@type\expandafter
\endcsname{\tb@nt@floattype}%
\begingroup
- \edef\@tempa{%
- \noexpand\endgroup
- \noexpand\newenvironment{\tb@nt@type}{%
- \noexpand\@float{\tb@nt@type}%
- }{%
- \noexpand\end@float
- }%
- \noexpand\newenvironment{\tb@nt@type*}{%
- \noexpand\@dblfloat{\tb@nt@type}%
- }{%
- \noexpand\end@dblfloat
- }%
- }%
+ \edef\@tempa{%
+ \noexpand\endgroup
+ \noexpand\newenvironment{\tb@nt@type}{%
+ \noexpand\@float{\tb@nt@type}%
+ \noexpand\csname \tb@nt@type @atbegin\noexpand\endcsname
+ }{%
+ \noexpand\csname \tb@nt@type @atend\noexpand\endcsname
+ \noexpand\end@float
+ }%
+ \noexpand\newenvironment{\tb@nt@type*}{%
+ \noexpand\@dblfloat{\tb@nt@type}%
+ \noexpand\csname \tb@nt@type @atbegin\noexpand\endcsname
+ }{%
+ \noexpand\csname \tb@nt@type @atend\noexpand\endcsname
+ \noexpand\end@dblfloat
+ }%
+ }%
\@tempa
\@tempswatrue
\fi
@@ -577,7 +589,9 @@
\noexpand\trivlist\noexpand\item\noexpand\relax
\noexpand\minipage{\noexpand\linewidth}%
\noexpand\def\noexpand\@captype{\tb@nt@type}%
+ \noexpand\csname \tb@nt@type @atbegin\noexpand\endcsname
}{%
+ \noexpand\csname \tb@nt@type @atend\noexpand\endcsname
\noexpand\endminipage\noexpand\endtrivlist
}%
}%
@@ -617,6 +631,10 @@
}%
}%
\@tempa
+ \expandafter\newcommand\expandafter*\csname \tb@nt@type @atbegin\expandafter
+ \endcsname\expandafter{\tb@nt@atbegin}%
+ \expandafter\newcommand\expandafter*\csname \tb@nt@type @atend\expandafter
+ \endcsname\expandafter{\tb@nt@atend}%
\fi
}
\newcommand*{\tb@ifvalueisnotempty}[2]{%