From 7b77ab821c907312978cb7cf901d042d3ce272b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?= <2589111+jfbu@users.noreply.github.com> Date: Sun, 14 Jan 2024 16:42:26 +0100 Subject: [PATCH] The #18 due to borrowed \@starttoc hooks incompatible with figure --- test_snippets/errorsummary | 16 ++-------------- test_snippets/etocsnippet-11.txt | 11 ++++++++--- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/test_snippets/errorsummary b/test_snippets/errorsummary index 0674a31..97c134b 100644 --- a/test_snippets/errorsummary +++ b/test_snippets/errorsummary @@ -1,4 +1,4 @@ -!!!! PROBLÈMES AVEC 9/18 TESTS: +!!!! PROBLÈMES AVEC 8/18 TESTS: testsnippet-01.tex ! Package tagpdf Error: Parent-Child 'TOC/' --> 'enumerate/user'. @@ -32,17 +32,6 @@ Type to continue. l.5 \chapter{Test chapter one} -testsnippet-11.tex - -! Package tagpdf Error: Parent-Child 'Note/' --> 'TOC/pdf'. -(tagpdf) Relation is not allowed (struct 4, /float --> struct -(tagpdf) 5) on line 81 - -Type to continue. - ... - -l.81 \end - {figure} testsnippet-12.tex ! Package tagpdf Error: Parent-Child 'TOC/' --> 'footnotemark/user'. @@ -98,11 +87,10 @@ Type to continue. l.6 ...ed\MyQuasiStandardTOC\MyQuasiStandardTOC{1} \else -FAIL=9, PASS=9, TOTAL=18 +FAIL=8, PASS=10, TOTAL=18 fail: testsnippet-01.tex fail: testsnippet-02.tex fail: testsnippet-04.tex -fail: testsnippet-11.tex fail: testsnippet-12.tex fail: testsnippet-14.tex fail: testsnippet-19.tex diff --git a/test_snippets/etocsnippet-11.txt b/test_snippets/etocsnippet-11.txt index 3b99412..0cc2531 100644 --- a/test_snippets/etocsnippet-11.txt +++ b/test_snippets/etocsnippet-11.txt @@ -2,8 +2,11 @@ %% LaTeX2e file `etocsnippet-11.tex' %% generated by the `filecontentshere' environment %% from source `etoc' on 2024/01/12. -%% EDITED (\ref) -\begin{figure}[htbp!]\centering +%% EDITED (\ref) removed figure env + +%%%%%%%%\begin{figure}[htbp!] +\begingroup +\centering \colorlet{subsecnum}{black} \colorlet{secbackground}{green!30} \colorlet{tocbackground}{red!20!green!20} @@ -78,5 +81,7 @@ %%%%%%%%\vspace{-\baselineskip} %%%%%%%%\centeredline{|\tableofcontents \ref{toc:part:styling}| %%%%%%%%(\emph{cf.} \hyperref[toc:clone]{this other toc})} -\end{figure} +%%%%%%%%\end{figure} + +\endgroup \endinput