I want to learn the correct way of writing a tagged math book.
Is my current structure sufficient? If not, how can I improve this skeleton?
What packages must I sacrifice in the name of tagging?
In my actual practise, I have a source file like this:
\DocumentMetadata{ pdfstandard = UA-2 ,tagging = on ,lang = en } \documentclass[letterpaper]{book} \usepackage{preamble} \title{Jasper's Book} \author{Jasper} \date{\today} % \includeonly{chapter_4} \begin{document} \frontmatter \input{half-title} \maketitle \input{copyright} \input{dedication} \input{epigraph} \include{preface} \include{notation} \include{acknowledgements} \tableofcontents \listoftables \listoffigures \mainmatter \part{Blah} \include{chapter_1} \include{chapter_2} \include{chapter_4} \part{Blah blah} \include{chapter_5} \include{chapter_6} \include{chapter_7} \part{Blah blah, blah} \include{chapter_8} \include{chapter_9} \include{chapter_10} \include{chapter_11} \part{Blah blah, blah. Blah.} \include{chapter_12} \appendix \include{appendix_1} \include{appendix_2} \include{appendix_3} \backmatter \printbibliography \printindex \end{document} It expands to something like this:
\DocumentMetadata{ pdfstandard = UA-2 ,tagging = on ,lang = en } \documentclass[letterpaper]{book} \makeatletter \PassOptionsToPackage{ backend=biber ,style=alphabetic ,sorting=nyt }{biblatex} \PassOptionsToPackage{colorlinks = true}{hyperref} \RequirePackage{ mathtools ,amsthm ,unicode-math ,siunitx ,microtype ,tikz ,booktabs ,tabularx ,enumext ,extarrows ,unicode-math ,subcaption ,nicematrix ,extarrows ,biblatex ,makeidx ,old-arrows ,xpatch ,hyperref } \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} \setmainfont{Libertinus Serif} \setsansfont{Libertinus Sans} \setmonofont{Libertinus Mono} \setmathfont{Libertinus Math} \addbibresource{bibliography.bib} \makeindex \makeatother \title{Jasper's Book} \author{Jasper} \date{\today} % \includeonly{chapter_4} \begin{document} \frontmatter % half-title \clearpage \thispagestyle{empty} \par\vspace*{.35\textheight}{% \centering Jasper's Book \par } \clearpage \thispagestyle{empty} \maketitle % copyright \clearpage \thispagestyle{empty} \par\vspace*{.35\textheight}{% \copyright~2025 Jasper. This work may not be reproduced, distributed, or transmitted in any form or by any means without the prior written permission of the author. } % dedication \clearpage \thispagestyle{empty} \par\vspace*{.35\textheight}{% This book is deticated to the existence of peanut butter. } % epigraph \clearpage \thispagestyle{empty} \par\vspace*{.35\textheight}{% ``I hate Mondays'' ---Garfield } \chapter*{Preface} This book is meant for people who are interested in reading it. \chapter*{Notation} This book is full of notation, which we will not explain. \chapter*{Acknowledgements} \addcontentsline{toc}{chapter}{Acknowledgements} This work was typeset using \TeX{}, the typesetting system created by Donald~E.~Knuth, along with various extensions and packages developed by the \TeX{} community. I am grateful to the vibrant \TeX{} Stack Exchange community for their ongoing support and resources. \par \vspace{2em} \hfill\textit{Jasper} \tableofcontents \listoftables \listoffigures \mainmatter \part{Part 1} \chapter{Chapter 1} \chapter{Chapter 2} \chapter{Chapter 3} \part{Part 2} \chapter{Chapter 4} \chapter{Chapter 5} \chapter{Chapter 6} \appendix \chapter{Appendix 1} \chapter{Appendix 2} \chapter{Appendix 3} \backmatter \printbibliography \printindex \end{document}
unicode-mathandextarrowstwice in your extended example. And if you loadmathtoolsyou don't have to explicitly loadamsmath.unicode-mathloadsfontspecautomatically.subcaptionloadscaption. but I don't see where you loadbiblatextwice - @DavidCarlisle?media9.