From 4f68b2cb2223d50b93817b7e5a15c62ce6a24429 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 13 Jul 2021 20:02:42 +0000 Subject: etoc (13jul21) git-svn-id: svn://tug.org/texlive/trunk@59917 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/etoc/etoc.sty | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'Master/texmf-dist/tex/latex/etoc') diff --git a/Master/texmf-dist/tex/latex/etoc/etoc.sty b/Master/texmf-dist/tex/latex/etoc/etoc.sty index a03cea08a64..eec03052e22 100644 --- a/Master/texmf-dist/tex/latex/etoc/etoc.sty +++ b/Master/texmf-dist/tex/latex/etoc/etoc.sty @@ -23,17 +23,16 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{etoc} - [2020/05/15 v1.09c Completely customisable TOCs (JFB)] + [2021/07/13 v1.09d Completely customisable TOCs (JFB)] %% %% Package: etoc -%% Version: 1.09c-2020/05/15 +%% Version: 1.09d %% License: LPPL 1.3c -%% Copyright (C) 2012-2020 Jean-Francois Burnol +%% Copyright (C) 2012-2021 Jean-Francois Burnol %% -%% Copyright (C) 2014-2020 Christine Roemer +%% Copyright (C) 2014-2015 Christine Roemer and collaborators %% -%% and collaborators for the translation into German of the documentation -%% +%% (translation into German of the documentation) \RequirePackage{multicol} \DeclareOption*{\PackageWarning{etoc}{Option `\CurrentOption' is unknown.}} \ProcessOptions\relax @@ -782,19 +781,16 @@ \Etoc@openouttoc \Etoc@tocdepthset % new with 1.08h (\etocsetnexttocdepth) \begingroup % closed in \Etoc@t@bleofcontents or \Etoc@localtableofcontents - \let\tof@begingroup\@empty - \let\tof@endgroup \@empty \@ifstar {\let\Etoc@aftertitlehook\@empty\Etoc@table@fcontents} {\def\Etoc@aftertitlehook{\etocaftertitlehook}\Etoc@table@fcontents}% }% \etoctableofcontents +\let\etocoriginaltableofcontents\tableofcontents \let\tableofcontents\etoctableofcontents \newcommand*\localtableofcontents{% \Etoc@openouttoc \Etoc@tocdepthset % new with 1.08h (\etocsetnexttocdepth) \begingroup % closed in \Etoc@t@bleofcontents or \Etoc@localtableofcontents - \let\tof@begingroup\@empty - \let\tof@endgroup \@empty \@ifstar {\let\Etoc@aftertitlehook\@empty\Etoc@localtable@fcontents} {\def\Etoc@aftertitlehook{\etocaftertitlehook}\Etoc@localtable@fcontents}% @@ -836,10 +832,13 @@ #2\@nobreakfalse % 1.07d: \@nobreakfalse moved here \Etoc@restoretocdepth % 1.07g. moved here from before #2 by 1.08 \ifx\Etoc@global\global - \ifx\tof@finish\@empty - \else + \@ifundefined{tof@finish} + {} + {\ifx\tof@finish\@empty + \else \global\let\contentsline\Etoc@savedcontentsline - \fi + \fi + }% \fi \@gobble\etoc@ }% end of \Etoc@tableofcontents definition by \etocsettocstyle @@ -1548,6 +1547,8 @@ \etocobeydepthtags \let\etocaftertochook \@empty % public for end user. \let\etocbeforetitlehook \@empty % new with 1.07m +\def\etockeeporiginaltableofcontents + {\let\tableofcontents\etocoriginaltableofcontents}% \endinput %% %% End of file `etoc.sty'. -- cgit v1.2.3