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

Typesetting material injected via "start" or "finish" parts of etoc line style are directly under <TOC> struct, not <TOCI> and then \emph in particular causes problem #25

Open
jfbu opened this issue Jan 15, 2024 · 0 comments
Labels
at-2024-01-12 2024-01-12 has the issue tagging Relative to support of the `LaTeX tagged PDF` project

Comments

@jfbu
Copy link
Owner

jfbu commented Jan 15, 2024

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

\begin{document}
    
\etocsetlinestyle{section}
  {This is not in a TOCI}
  {}
  {}
  {this neither thus \emph{CAUSES A PROBLEM}}

\tableofcontents

\section{One}

\section{Two}

\section{Three}

\section{Four}

\end{document}

raises on second compilation

Package tagpdf Warning: Parent-Child 'TOC/' --> 'Em/pdf2'.
(tagpdf)                Relation is not allowed (struct 6, /TOC --> struct 15)
(tagpdf)                on line 19

Very tempting to add a wont-fix. On the other hand it may be occasion to use the existing etoc internal stack of begins and ens to completely change current tagging strategy and invoke the contentsline upstream hooks from these begins and ends (starts and finishes) parts rather than from where they are currently.

@jfbu jfbu added tagging Relative to support of the `LaTeX tagged PDF` project at-2024-01-12 2024-01-12 has the issue labels Jan 15, 2024
jfbu added a commit that referenced this issue Jan 15, 2024
jfbu added a commit that referenced this issue Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
at-2024-01-12 2024-01-12 has the issue tagging Relative to support of the `LaTeX tagged PDF` project
Projects
None yet
Development

No branches or pull requests

1 participant