Skip to content

Commit

Permalink
Fix #8, it was same as for #2 whose fix forgot \Etoc@@startlocallistof
Browse files Browse the repository at this point in the history
There remains a warning from tagpdf but it is the upstream issue
latex3/tagging-project#55
  • Loading branch information
jfbu committed Jan 9, 2024
1 parent 4418cf3 commit 826cca4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions etoc.sty
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,13 @@
%% dtx comment deliberately left in sty
%% \etocrelease{1.2e} locates this here and not before \csbc{Etoc@toctoc} else
%% \csbc{etocetoclocaltocmaketitle} could have kicked in and typeset a chapter
%% title creating a Parent-Child tagging problem.
%% title creating a Parent-Child tagging problem. jfbu/etoc#2
%%
%% Could this originate a problem perhaps if the toc file contents generate
%% a |\begingroup/\endgroup| so that the group will be closed before the
%% |\@starttoc@cfgpoint@after{toc}| is done?
%% |\@starttoc@cfgpoint@after{toc}| (located in \csbc{Etoc@toctoc}) is done?
%%
%% The same addition is made to \csbc{Etoc@@startlocallistof}.
\ifEtoc@tagging
%%\ifEtoc@tagactive % do I need this here
\@starttoc@cfgpoint@before{toc}%
Expand Down Expand Up @@ -847,6 +849,12 @@
\ifEtoc@etocstyle
\csname etocetoclistof#1smaketitle\endcsname
\fi
%% Same tagging related (jfbu/etoc#2) addition as in \csbc{Etoc@@startlocaltoc}
\ifEtoc@tagging
%%\ifEtoc@tagactive % do I need this here
\@starttoc@cfgpoint@before{toc}%
%%\fi
\fi
\fi
\fi
}
Expand Down

0 comments on commit 826cca4

Please sign in to comment.