diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/etoc/etoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/etoc/etoc.sty | 27 |
1 files changed, 14 insertions, 13 deletions
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 %% <jfbu at free dot fr> -%% Copyright (C) 2014-2020 Christine Roemer +%% Copyright (C) 2014-2015 Christine Roemer and collaborators %% <Christine_Roemer at t-online dot de> -%% 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'. |