Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\locallistoffigures generates warnings #8

Open
jfbu opened this issue Jan 9, 2024 · 1 comment
Open

\locallistoffigures generates warnings #8

jfbu opened this issue Jan 9, 2024 · 1 comment
Labels
at-2024-01-05 2024-01-05 has the issue tagging Relative to support of the `LaTeX tagged PDF` project upstream Involves at least partially upstream issues

Comments

@jfbu
Copy link
Owner

jfbu commented Jan 9, 2024

\DocumentMetadata{
 uncompress,
 pdfversion=1.7,
 lang=en-US,
 testphase=phase-III
}

\documentclass{article}
\usepackage[lof]{etoc}

%\usepackage{hyperref}

\begin{document}

%\tableofcontents

%\listoffigures

\section{foo}

% \localtableofcontents

\locallistoffigures

\subsection{subfoo1}

\begin{figure}[htbp]
  \centering
  figure coucou
% non captioned figures do not make it to the lof file
  \caption{figure1}
\end{figure}

\end{document}

generates

Package tagpdf Warning: Parent-Child 'TOCI/' --> 'text-unit/user'.
(tagpdf)                Relation is not allowed (struct 10, /TOCI --> struct
(tagpdf)                11) on line 24

on second compilation.

@jfbu jfbu added tagging Relative to support of the `LaTeX tagged PDF` project at-2024-01-05 2024-01-05 has the issue labels Jan 9, 2024
jfbu added a commit that referenced this issue Jan 9, 2024
jfbu added a commit that referenced this issue Jan 9, 2024
We will have to handle the numerous generated warnings one by one

Extends testing for #8.

	new file:   issuetesting/test_tagging_lof_alltotoc.tex
	new file:   issuetesting/test_tagging_lof_body.txt
	new file:   issuetesting/test_tagging_lof_preamble.txt
@jfbu jfbu closed this as completed in 826cca4 Jan 9, 2024
@jfbu
Copy link
Owner Author

jfbu commented Jan 9, 2024

Reopening as there remains to track upstream latex3/tagging-project#55.

There is only at 826cca4 one warning (redirected as an error here) left:

! Package tagpdf Error: Destination  has no related structure.
(tagpdf)                /Ref for structure 10 not updated

Type <return> to continue.
 ...                                              
                                                  
l.37 \end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
at-2024-01-05 2024-01-05 has the issue tagging Relative to support of the `LaTeX tagged PDF` project upstream Involves at least partially upstream issues
Projects
None yet
Development

No branches or pull requests

1 participant