diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/etoc/etoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/etoc/etoc.sty | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/etoc/etoc.sty b/Master/texmf-dist/tex/latex/etoc/etoc.sty index eec03052e22..365b6b148c8 100644 --- a/Master/texmf-dist/tex/latex/etoc/etoc.sty +++ b/Master/texmf-dist/tex/latex/etoc/etoc.sty @@ -23,10 +23,10 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{etoc} - [2021/07/13 v1.09d Completely customisable TOCs (JFB)] + [2021/09/23 v1.09e Completely customisable TOCs (JFB)] %% %% Package: etoc -%% Version: 1.09d +%% Version: 1.09e %% License: LPPL 1.3c %% Copyright (C) 2012-2021 Jean-Francois Burnol %% <jfbu at free dot fr> @@ -161,6 +161,10 @@ \long\def\Etoc@gobblefourorthree#1#2#3#4{}} {\def\Etoc@et@hop#1#2#3#4{#2{#3}{#4}#1}% \long\def\Etoc@gobblefourorthree#1#2#3{}}% +\@ifl@t@r\fmtversion{2021/11/15}{% + \def\Etoc@et@hop#1#2#3#4#5{#2{#3}{#4}{#5}#1}% + \let\Etoc@gobblefourorthree\@gobblefour + }{}% } \def\Etoc@setflags {% \ifcase \Etoc@level @@ -1390,10 +1394,14 @@ {\ifEtoc@hyperref \addtocontents {toc}{\protect\contentsline {#1}{#2}% - {\thepage }{\@currentHref }}% + {\thepage }{\@currentHref }% + \ifdefined\protected@file@percent\protected@file@percent\fi + }% \else \addtocontents {toc}{\protect\contentsline - {#1}{#2}{\thepage }}% + {#1}{#2}{\thepage }{}% + \ifdefined\protected@file@percent\protected@file@percent\fi + }% \fi} \def\Etoc@addcontentsline@ #1#2#3% {\@namedef{toclevel@#1}{#3}% |