summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tableof
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-05 20:50:36 +0000
committerKarl Berry <karl@freefriends.org>2021-07-05 20:50:36 +0000
commit9715f1527c5152cccd38f7064161def1f06d9446 (patch)
treebb2998f5d25823ac1358db86d068cda721ea4891 /Master/texmf-dist/tex/latex/tableof
parent9b590bc743e1f2c75697633735ddffb1008f2c8f (diff)
tableof (5jul21)
git-svn-id: svn://tug.org/texlive/trunk@59837 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tableof')
-rw-r--r--Master/texmf-dist/tex/latex/tableof/tableof.sty18
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/tableof/tableof.sty b/Master/texmf-dist/tex/latex/tableof/tableof.sty
index 4986bd9f94c..0af308c5eca 100644
--- a/Master/texmf-dist/tex/latex/tableof/tableof.sty
+++ b/Master/texmf-dist/tex/latex/tableof/tableof.sty
@@ -22,12 +22,12 @@
%% in the same archive or directory.)
%%
\ProvidesPackage{tableof}
- [2018/10/02 v1.4b Tables of tagged contents (JFB)]
+ [2021/07/05 v1.4c Tables of tagged contents (JFB)]
%%
%% Package: tableof
-%% Version: 1.4b (2018/10/02)
+%% Version: 1.4c (2021/07/05)
%% License: LPPL 1.3c
-%% Copyright (C) 2012-2018 Jean-Francois Burnol <jfbu at free dot fr>
+%% Copyright (C) 2012, 2013, 2015, 2018, 2021 Jean-Francois Burnol <jfbu at free dot fr>
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{atveryend}
@@ -35,7 +35,7 @@
\ProcessOptions\relax
\newtoks\tof@toctoks
\def\tof@readtoc {%
- \ifeof \tof@tf
+ \ifeof\tof@tf
\else
\read\tof@tf to \tof@buffer
\tof@toctoks\expandafter\expandafter\expandafter
@@ -47,8 +47,9 @@
\makeatletter
\newread\tof@tf
\openin\tof@tf\@filef@und
+ \tof@toctoks{\tof@begingroup}%
\tof@readtoc
- \global\tof@toctoks=\expandafter{\the\tof@toctoks}%
+ \global\tof@toctoks=\expandafter{\the\tof@toctoks\tof@endgroup}%
\closein\tof@tf}}{}}
\AtBeginDocument{
\addtocontents{toc}{\string\@ifundefined{tof@begin}%
@@ -57,7 +58,7 @@
\global\let\string\tof@starttags\string\@gobble
\global\let\string\tof@stoptags\string\@gobble
\global\let\string\tof@tagthis\string\@gobble
- \global\let\string\tof@untagthis\string\@gobble}{}}
+ \global\let\string\tof@untagthis\string\@gobble}\relax}
\addtocontents{toc}{\string\tof@begin}
\@ifpackageloaded{hyperref}
{\def\tof@gobblethree@orfour#1#2#3#4{}%
@@ -69,13 +70,12 @@
\let\tof@begingroup \begingroup
\let\tof@endgroup \endgroup
\def\tof@@finish {\tof@global\let\contentsline\tof@savedcontentsline
- \tof@endgroup\global\let\tof@begin\relax
- \global\let\tof@tags\@empty }
+ \global\let\tof@begin\relax
+ \global\let\tof@tags\@empty }
\def\tof@@tagthis #1{\def\tof@tags@tmp{#1}}
\def\tof@@untagthis #1{\def\tof@untags@tmp{#1}}
\def\tof@init#1{%
\def\tof@begin{%
- \tof@begingroup
\tof@global\let\tof@tagthis \tof@@tagthis
\tof@global\let\tof@untagthis\tof@@untagthis
\tof@global\let\tof@starttags\tof@@starttags