diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/tocbasic.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/tocbasic.dtx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx b/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx index 8f25f2cd759..eae0e3ed917 100644 --- a/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx +++ b/Master/texmf-dist/source/latex/koma-script/tocbasic.dtx @@ -1,4 +1,3 @@ -% \CheckSum{1643} % \iffalse meta-comment % ====================================================================== % tocbasic.dtx @@ -55,7 +54,7 @@ % Right brace \} Tilde \~} % % \iffalse -%%% From File: $Id: tocbasic.dtx 3453 2020-02-25 07:33:30Z kohm $ +%%% From File: $Id: tocbasic.dtx 3508 2020-07-08 08:45:20Z kohm $ %<identify>%%% (run: identify) %<prepare>%%% (run: prepare) %<option>%%% (run: option) @@ -66,7 +65,7 @@ \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi \begingroup \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} - \filedate$Date: 2020-02-25 08:33:30 +0100 (Tue, 25 Feb 2020) $ + \filedate$Date: 2020-07-08 10:45:20 +0200 (Wed, 08 Jul 2020) $ \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} \filerevision$Revision: 1962 $ \endgroup @@ -134,11 +133,11 @@ \RecordChanges \GetFileInfo{tocbasic.dtx} \sloppy +\begin{document} \DocInput{\filename} \end{document} % \fi % -% \begin{document} % \title{\KOMAScript{} \partname\ \texttt{\filename}% % \thanks{Diese Datei ist Version \fileversion\ von \texttt{\filename}.}} % \date{\filedate} @@ -866,6 +865,8 @@ % of \cs{def}}%^^A % \changes{v3.28}{2019/11/19}{\cs{iftocfeature} replaced by % \cs{Iftocfeature}}%^^A +% \changes{v3.31}{2020/07/08}{use one time expansion of local +% \cs{list@fname}}%^^A % Command to handle the hole list of something. There are additional hooks % for this. The first optional argument is the title for this list. If the % optional argument was omitted \cs{listof\#2name} will be used. The star @@ -874,11 +875,11 @@ \newcommand*{\listoftoc}{% \kernel@ifstar \tocbasic@starttoc\@listoftoc } -\newcommand*{\@listoftoc}[2][\list@fname]{% +\newcommand*{\@listoftoc}[2][]{% \begingroup + \def\list@fname{#1}% \@ifundefined{listof#2name}{% - \let\list@fname\relax - \ifx\relax#1\relax + \ifx\list@fname\@empty \PackageWarning{tocbasic}{% You should either define \expandafter\string\csname listof#2name\endcsname\MessageBreak @@ -899,7 +900,7 @@ }% }{}% \Iftocfeature{\@currext}{numberline}{\def\nonumberline{\numberline{}}}{}% - \tocbasic@listhead{#1}% + \expandafter\tocbasic@listhead\expandafter{\list@fname}% \scr@ifundefinedorrelax{microtypesetup}{}{% \Iftocfeature{\@currext}{noprotrusion}{}{% \microtypesetup{protrusion=false}% |