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

\mainmatter can not close Sect correctly #777

Open
u-fischer opened this issue Jan 5, 2025 · 0 comments
Open

\mainmatter can not close Sect correctly #777

u-fischer opened this issue Jan 5, 2025 · 0 comments
Labels
fixed in release issue is fixed and will be deployed in the next release of package or kernel

Comments

@u-fischer
Copy link
Member

If \mainmatter is used without a previous \par the tagging gets confused:

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={latest},
  }

\documentclass{book}

\begin{document}
\chapter{abc}
blub
\frontmatter
\chapter{abc}
blub
\mainmatter 
\chapter{main}
blub
\backmatter 
\chapter{main}
blub
\appendix
\chapter{main}
blub
\end{document}

gives warnings like

Package tagpdf Warning: The structure Sect can not be closed.
(tagpdf)                It is not equal to the current structure text on the
(tagpdf)                main stack

reason is a missing \par in the patching code.

u-fischer added a commit to latex3/latex2e that referenced this issue Jan 16, 2025
* handle tagging/777 (par for \mainmatter)

* Âtestfiles,changes.txt for latex3/tagging-project#777 and latex3/tagging-project#778

* add luatex testfile

* use ARIA role for presentation tables.

* update changes.txt text

* reenable the div option for presentation tables, WIP

* correct docu

* extend test file

* forgot lvt

* update changes.txt

* from review

* better command name
@u-fischer u-fischer added the fixed in release issue is fixed and will be deployed in the next release of package or kernel label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in release issue is fixed and will be deployed in the next release of package or kernel
Projects
None yet
Development

No branches or pull requests

1 participant