summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-03-31 00:25:41 +0000
committerKarl Berry <karl@freefriends.org>2009-03-31 00:25:41 +0000
commitd9a28f240927d595970990e323f189f3ed45bdaf (patch)
tree7ccf4eea17aed62ba6dcc4639b67832a863782b4 /Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
parent088ae35fa451f7492dec5997ba5f8d53df17f47e (diff)
koma-script update (30mar09)
git-svn-id: svn://tug.org/texlive/trunk@12579 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.sty21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
index a696bbe8914..b186dabe9e4 100644
--- a/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
+++ b/Master/texmf-dist/tex/latex/koma-script/tocbasic.sty
@@ -14,10 +14,10 @@
%% ---------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the conditions of
-%% the LaTeX Project Public License, version 1.3b of the license.
+%% the LaTeX Project Public License, version 1.3c of the license.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
-%% and version 1.3b or later is part of all distributions of LaTeX
+%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later and of this work.
%%
%% This work has the LPPL maintenance status "author-maintained".
@@ -246,13 +246,16 @@
\newcommand*{\@listoftoc}[2][\list@fname]{%
\begingroup
\@ifundefined{listof#2name}{%
- \PackageWarning{tocbasic}{%
- You should either define \expandafter\string\csname
- listof#2name\endcsname\MessageBreak
- or use the optional argument of \string\listoftoc\space\MessageBreak
- to set the term to be used for the\MessageBreak
- heading of list of #2}%
- \def\list@fname{\listofname~#2}%
+ \let\list@fname\relax
+ \ifx\relax#1\relax
+ \PackageWarning{tocbasic}{%
+ You should either define \expandafter\string\csname
+ listof#2name\endcsname\MessageBreak
+ or use the optional argument of \string\listoftoc\space\MessageBreak
+ to set the term to be used for the\MessageBreak
+ heading of list of #2}%
+ \def\list@fname{\listofname~#2}%
+ \fi
}{%
\expandafter\let\expandafter\list@fname\csname listof#2name\endcsname
}%