Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Jan 14, 2024
1 parent 3f7e97b commit ad2f33e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 15 additions & 2 deletions etoc.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,20 @@
\newcommand*\etocframedstyle[2][\etocdefaultnbcol]{%
\etocsettocstyle{%
\addvspace{\etocabovetocskip}%
\sbox\z@{#2}% title (horizontal material)
%% same problem as fixed below with the minipage, one can
%% not enclose not only a minipage but also a \csa{parbox}
%% in an \csa{hbox},
%% cf \url{https://github.com/latex3/tagging-project#54}
%% The location of these things is provisory.
\sbox\z@{%
\ifEtoc@tagactive
\AssignSocketPlug{tagsupport/minipage/before}{noop}%
\AssignSocketPlug{tagsupport/minipage/after}{noop}%
\AssignSocketPlug{tagsupport/parbox/before}{noop}%
\AssignSocketPlug{tagsupport/parbox/after}{noop}%
%% ... others ?
\fi
#2}% title (horizontal material)
\dimen\z@\dp\z@
\ifdim\wd\z@<\linewidth \dp\z@\z@ \else \dimen\z@\z@ \fi
%% attention should I use kernel \sbox which has an \endgraf added
Expand Down Expand Up @@ -1808,7 +1821,7 @@
\kern\dimen\z@
\vskip\etocinnertopsep
\hbox\bgroup
%% as per Ulrike's advice,
%% as per @u-fischer advice at
%% \centeredline{\url{https://github.com/latex3/tagging-project/issues/54}}
\ifEtoc@tagactive
\AssignSocketPlug{tagsupport/minipage/before}{noop}%
Expand Down
16 changes: 2 additions & 14 deletions test_snippets/errorsummary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!!! PROBLÈMES AVEC 10/18 TESTS:
!!!! PROBLÈMES AVEC 9/18 TESTS:
testsnippet-01.tex

! Package tagpdf Error: Parent-Child 'TOC/' --> 'enumerate/user'.
Expand Down Expand Up @@ -32,17 +32,6 @@ Type <return> to continue.

l.5 \chapter{Test chapter one}

testsnippet-10.tex

! Package tagpdf Error: Parent-Child 'StructTreeRoot/pdf' --> 'Div/pdf2'.
(tagpdf) Relation is not allowed (struct 0, /StructTreeRoot
(tagpdf) --> struct 4) on line 47

Type <return> to continue.
...

l.47 \par

testsnippet-11.tex

! Package tagpdf Error: Parent-Child 'Note/' --> 'TOC/pdf'.
Expand Down Expand Up @@ -109,11 +98,10 @@ Type <return> to continue.

l.6 ...ed\MyQuasiStandardTOC\MyQuasiStandardTOC{1}
\else
FAIL=10, PASS=8, TOTAL=18
FAIL=9, PASS=9, TOTAL=18
fail: testsnippet-01.tex
fail: testsnippet-02.tex
fail: testsnippet-04.tex
fail: testsnippet-10.tex
fail: testsnippet-11.tex
fail: testsnippet-12.tex
fail: testsnippet-14.tex
Expand Down

0 comments on commit ad2f33e

Please sign in to comment.