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 | 24 |
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}% }% }% } |