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

The etoc framed style as global style generates "relation is not allowed" warnings #4

Closed
jfbu opened this issue Jan 4, 2024 · 1 comment
Labels
at-2024-01-03 2024-01-03 has the issue fixed-at-2024-01-05 Fixed at 2024-01-05 tag tagging Relative to support of the `LaTeX tagged PDF` project

Comments

@jfbu
Copy link
Owner

jfbu commented Jan 4, 2024

This test file generates warnings starting with (on first compilation)

Package tagpdf Warning: Parent-Child 'P/' --> 'Sect/pdf2'.
(tagpdf)                Relation is not allowed (struct 22, /text --> struct
(tagpdf)                23) on line 31

This happens on the first local TOC using tagging plus the etoc "framed" style.

EDIT: thus this warning is raised on first \section after \localtableofcontents, the latter not doing much on first compilation as the toc file is still empty.

@jfbu jfbu added the at-2024-01-03 2024-01-03 has the issue label Jan 4, 2024
@jfbu jfbu changed the title The package framed style as global style "generates relation is not allowed" warnings The etoc framed style as global style "generates relation is not allowed" warnings Jan 4, 2024
@jfbu jfbu added the tagging Relative to support of the `LaTeX tagged PDF` project label Jan 4, 2024
@jfbu jfbu changed the title The etoc framed style as global style "generates relation is not allowed" warnings The etoc framed style as global style generates "relation is not allowed" warnings Jan 5, 2024
jfbu added a commit that referenced this issue Jan 5, 2024
Also, reformat the source code of \etocframedstyle for readability and
start using `\Etoc@tagrule` therein (very tentative, untested as #4
shadows this currently).

	modified:   README.md
	modified:   etoc.sty
@jfbu
Copy link
Owner Author

jfbu commented Jan 5, 2024

The advice by @u-fischer latex3/tagging-project#54 (comment) appears to have solved this. The root cause was indeed the embedding of the minipage inside an \hbox, took me some time to figure it out! Miraculously no more problems seem to arise even allowing multicols to kick in as in the original test file (the default of \etocframedstyle is indeed with a 2-columns rendering, but I did my detective work having this deactivated for simplicity sake).

@jfbu jfbu closed this as completed in 9d1634d Jan 5, 2024
jfbu added a commit that referenced this issue Jan 5, 2024
The minipage is here inserted in a different manner, from inside the
section toc line style, rather than from code executed by etoc when
it first hits a subsection after a section.

Relates #4.
@jfbu jfbu added the fixed-at-2024-01-05 Fixed at 2024-01-05 tag label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
at-2024-01-03 2024-01-03 has the issue fixed-at-2024-01-05 Fixed at 2024-01-05 tag tagging Relative to support of the `LaTeX tagged PDF` project
Projects
None yet
Development

No branches or pull requests

1 participant