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