summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/etoc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-09-23 20:12:59 +0000
committerKarl Berry <karl@freefriends.org>2021-09-23 20:12:59 +0000
commit2ff72e851f8c73db1db4d2bc2d11714779abba5c (patch)
treeedb270cfc7931d3595fae3c85d3a7d2aabf0c555 /Master/texmf-dist/tex/latex/etoc
parentc28b3ae9697d36bc8fdf63a4dcf936996f182c8a (diff)
etoc (23sep21)
git-svn-id: svn://tug.org/texlive/trunk@60589 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/etoc')
-rw-r--r--Master/texmf-dist/tex/latex/etoc/etoc.sty16
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}%