summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-11-19 02:08:50 +0000
committerKarl Berry <karl@freefriends.org>2008-11-19 02:08:50 +0000
commitd169595175488e9e35570df5f4b22214627896e0 (patch)
tree7c972ee007fdc28424facd99165f9db6845f3bf2 /Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
parent6b554ff2c8bc10e886bb75e7db3c1abbc2731019 (diff)
koma-script update
git-svn-id: svn://tug.org/texlive/trunk@11355 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.sty24
1 files changed, 14 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
index 2a7b81e1b32..1ff55e7203f 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{2008/10/06 v1.0}
+\def\tocbasicversion{2008/11/13 v3.01}
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{tocbasic}
[\tocbasicversion
@@ -58,17 +58,17 @@
}
\newcommand*{\addtotoclist}{%
\@ifnextchar [%]
- \@@addtotoclist\@addtotoclist
+ \scr@@addtotoclist\scr@addtotoclist
}
-\newcommand*{\@addtotoclist}{%
+\newcommand*{\scr@addtotoclist}{%
\ifx\@currname\@empty
- \def\reserved@a{\@@addtotoclist[]}%
+ \def\reserved@a{\scr@@addtotoclist[]}%
\else
- \edef\reserved@a{\noexpand\@@addtotoclist[\@currname.\@currext]}%
+ \edef\reserved@a{\noexpand\scr@@addtotoclist[\@currname.\@currext]}%
\fi
\reserved@a
}
-\newcommand*{\@@addtotoclist}[2][]{%
+\newcommand*{\scr@@addtotoclist}[2][]{%
\ifattoclist{#2}{%
\PackageError{tocbasic}{%
file extension `#2' cannot be used twice
@@ -256,10 +256,14 @@
}{%
\expandafter\let\expandafter\list@fname\csname listof#2name\endcsname
}%
- \if@twocolumn
- \aftergroup\twocolumne\onecolumn
- \fi
\def\@currext{#2}%
+ \iftocfeature{\@currext}{onecolumn}{%
+ \iftocfeature{\@currext}{leveldown}{}{%
+ \if@twocolumn
+ \aftergroup\twocolumn\onecolumn
+ \fi
+ }%
+ }{}%
\tocbasic@listhead{#1}%
\tocbasic@starttoc{#2}%
\endgroup
@@ -393,7 +397,7 @@
\BeforeStartingTOC{%
\let\@starttoc\tb@saved@starttoc
\expandafter\ifattoclist\expandafter{\@currext}{}{%
- \@addtotoclist[tocbasicautomode]{\@currext}%
+ \addtotoclist[tocbasicautomode]{\@currext}%
}%
}%
}