| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
%% File: latex-lab-testphase.dtx |
| 4 |
% Copyright (C) 2021-2025 The LaTeX Project |
| 5 |
% |
| 6 |
% It may be distributed and/or modified under the conditions of the |
| 7 |
% LaTeX Project Public License (LPPL), either version 1.3c of this |
| 8 |
% license or (at your option) any later version. The latest version |
| 9 |
% of this license is in the file |
| 10 |
% |
| 11 |
% https://www.latex-project.org/lppl.txt |
| 12 |
% |
| 13 |
% |
| 14 |
% The development version of the bundle can be found below |
| 15 |
% |
| 16 |
% https://github.com/latex3/latex2e/required/latex-lab |
| 17 |
% |
| 18 |
% for those people who are interested or want to report an issue. |
| 19 |
% |
| 20 |
%<*driver> |
| 21 |
\DocumentMetadata{tagging=on,pdfstandard=ua-2} |
| 22 |
\documentclass[kernel]{l3doc} |
| 23 |
\usepackage{latex-lab-testphase-l3doc} |
| 24 |
\EnableCrossrefs |
| 25 |
\CodelineIndex |
| 26 |
\begin{document} |
| 27 |
\DocInput{latex-lab-testphase.dtx} |
| 28 |
\end{document} |
| 29 |
%</driver> |
| 30 |
% |
| 31 |
% \fi |
| 32 |
% |
| 33 |
|
| 34 |
% \title{The \texttt{latex-lab-testphase} code\thanks{}} |
| 35 |
% \author{Ulrike Fischer \LaTeX{} Project} |
| 36 |
% |
| 37 |
% \maketitle |
| 38 |
% |
| 39 |
% |
| 40 |
% \begin{abstract} |
| 41 |
% \end{abstract} |
| 42 |
% |
| 43 |
% \section{Introduction} |
| 44 |
% |
| 45 |
% This code implements small files which can be loaded with the |testphase| |
| 46 |
% key of \cs{DocumentMetadata} and which bundle various testphase modules. |
| 47 |
% This will be extended to allow user to load |
| 48 |
% well defined parts of the tagged PDF project. |
| 49 |
% |
| 50 |
% Currently the values |phase-I|, |phase-II|, |phase-III| and |new-or| (bundles |new-or-1| |
| 51 |
% and |new-or-2|) are provided. |
| 52 |
% |tagpdf| is an undocumented alias for |phase-II| which is kept for compatibility. |
| 53 |
% The value |math| combines various math related files. |
| 54 |
% |
| 55 |
% \StopEventually{\setlength\IndexMin{200pt} \PrintIndex } |
| 56 |
% |
| 57 |
% |
| 58 |
% \section{The Implementation} |
| 59 |
% |
| 60 |
% \begin{macrocode} |
| 61 |
%<*latest> |
| 62 |
\ProvidesPackage{latex-lab-testphase-latest} |
| 63 |
[2025-09-13 v0.1d latex-lab modules] |
| 64 |
\RequirePackage{tagpdf} |
| 65 |
\AddToDocumentProperties [document]{testphase/tagpdf}{loaded} |
| 66 |
\RequirePackage{latex-lab-testphase-names} |
| 67 |
\RequirePackage{latex-lab-testphase-new-or-2} |
| 68 |
\RequirePackage{latex-lab-testphase-block} |
| 69 |
\RequirePackage{latex-lab-kernel-changes} %generated by sec, toc |
| 70 |
\RequirePackage{latex-lab-testphase-sec} |
| 71 |
\RequirePackage{latex-lab-testphase-toc} |
| 72 |
\RequirePackage{latex-lab-testphase-minipage} |
| 73 |
\RequirePackage{latex-lab-testphase-graphic} |
| 74 |
\RequirePackage{latex-lab-testphase-float} |
| 75 |
\RequirePackage{latex-lab-testphase-bib} |
| 76 |
\RequirePackage{latex-lab-testphase-text} |
| 77 |
\RequirePackage{latex-lab-testphase-marginpar} |
| 78 |
\RequirePackage{latex-lab-testphase-title} |
| 79 |
\RequirePackage{latex-lab-testphase-table} |
| 80 |
\RequirePackage{latex-lab-testphase-math} |
| 81 |
\RequirePackage{latex-lab-testphase-firstaid} |
| 82 |
\RequirePackage{latex-lab-testphase-tikz} |
| 83 |
%</latest> |
| 84 |
% \end{macrocode} |
| 85 |
% |
| 86 |
% new-or-1 contains the code for header and footer (tagging and |
| 87 |
% suppressing links) and is always loaded |
| 88 |
|
| 89 |
% new-or combines all new-or parts (currently 1+2) |
| 90 |
% \begin{macrocode} |
| 91 |
%<*new-or> |
| 92 |
\ProvidesFile{new-or-latex-lab-testphase.ltx} |
| 93 |
[2023-06-15 v0.1b latex-lab wrapper new-or] |
| 94 |
%</new-or> |
| 95 |
% \end{macrocode} |
| 96 |
% \begin{macrocode} |
| 97 |
%<*phase-I> |
| 98 |
\ProvidesFile{phase-I-latex-lab-testphase.ltx} |
| 99 |
[2023-02-04 v0.1b latex-lab wrapper phase-I] |
| 100 |
%</phase-I> |
| 101 |
% \end{macrocode} |
| 102 |
% \begin{macrocode} |
| 103 |
%<*phase-II> |
| 104 |
\ProvidesFile{phase-II-latex-lab-testphase.ltx} |
| 105 |
[2023-06-15 v0.1b latex-lab wrapper phase-II] |
| 106 |
%</phase-II> |
| 107 |
% \end{macrocode} |
| 108 |
% \begin{macrocode} |
| 109 |
%<*phase-III> |
| 110 |
\ProvidesFile{phase-III-latex-lab-testphase.ltx} |
| 111 |
[2024-02-12 v0.1c latex-lab wrapper phase-III] |
| 112 |
\input{phase-II-latex-lab-testphase.ltx} |
| 113 |
\IfFormatAtLeastTF{2023-06-01} |
| 114 |
{ |
| 115 |
\RequirePackage{latex-lab-testphase-block} |
| 116 |
\RequirePackage{latex-lab-testphase-sec} |
| 117 |
\RequirePackage{latex-lab-testphase-toc} |
| 118 |
\RequirePackage{latex-lab-testphase-minipage} |
| 119 |
\RequirePackage{latex-lab-testphase-graphic} |
| 120 |
\RequirePackage{latex-lab-testphase-float} |
| 121 |
\RequirePackage{latex-lab-testphase-bib} |
| 122 |
\RequirePackage{latex-lab-testphase-text} |
| 123 |
\RequirePackage{latex-lab-testphase-marginpar} |
| 124 |
} |
| 125 |
{\PackageWarning{latex-lab}{Testphase III needs newer format}{}} |
| 126 |
%</phase-III> |
| 127 |
% \end{macrocode} |
| 128 |
% |
| 129 |
% this is only provided for compatibility |
| 130 |
% \begin{macrocode} |
| 131 |
%<*tagpdf> |
| 132 |
\ProvidesFile{tagpdf-latex-lab-testphase.ltx} |
| 133 |
[2022-11-04 v0.1a latex-lab wrapper tagpdf (deprecated)] |
| 134 |
%</tagpdf> |
| 135 |
% \end{macrocode} |
| 136 |
% \begin{macrocode} |
| 137 |
%<*tagpdf|phase-I|phase-II|new-or> |
| 138 |
\RequirePackage{latex-lab-testphase-new-or-1} |
| 139 |
%</tagpdf|phase-I|phase-II|new-or> |
| 140 |
% \end{macrocode} |
| 141 |
% Support for the new output routine code are loaded in phase-II and new-or: |
| 142 |
% \begin{macrocode} |
| 143 |
%<*tagpdf|phase-II|new-or> |
| 144 |
\RequirePackage{latex-lab-testphase-new-or-2} |
| 145 |
%</tagpdf|phase-II|new-or> |
| 146 |
% \end{macrocode} |
| 147 |
% \begin{macrocode} |
| 148 |
%<*tagpdf|phase-I|phase-II> |
| 149 |
% \end{macrocode} |
| 150 |
% |
| 151 |
% \begin{macrocode} |
| 152 |
\RequirePackage{tagpdf} |
| 153 |
\AddToDocumentProperties [document]{testphase/tagpdf}{loaded} |
| 154 |
%</tagpdf|phase-I|phase-II> |
| 155 |
%<tagpdf|phase-II>\tagpdfsetup{activate,para/tagging,activate/spaces} |
| 156 |
%<tagpdf|phase-II>\AddToDocumentProperties [document]{tagging/para}{active} |
| 157 |
%<phase-I>\tagpdfsetup{activate,activate/spaces} |
| 158 |
%<*tagpdf|phase-I|phase-II> |
| 159 |
\AddToDocumentProperties [document]{tagging}{active} |
| 160 |
\AddToDocumentProperties [document]{tagging/interwordspace}{active} |
| 161 |
% \end{macrocode} |
| 162 |
% |
| 163 |
% \begin{macrocode} |
| 164 |
%</tagpdf|phase-I|phase-II> |
| 165 |
% \end{macrocode} |
| 166 |
% testphase wrapper files for math: |
| 167 |
% \begin{macrocode} |
| 168 |
%<*math> |
| 169 |
\ProvidesFile{math-latex-lab-testphase.ltx} |
| 170 |
[2023-07-20 v0.8a latex-lab wrapper math] |
| 171 |
\RequirePackage{latex-lab-testphase-math} |
| 172 |
%</math> |
| 173 |
% \end{macrocode} |
| 174 |
% \begin{macrocode} |
| 175 |
%<*math-package> |
| 176 |
\ProvidesPackage{latex-lab-testphase-math} |
| 177 |
[2025-03-10 v0.8d code related to the math tagging] |
| 178 |
\input{latex-lab-math.ltx} |
| 179 |
\AddToHook{package/amsmath/after}{\input{latex-lab-amsmath.ltx}} |
| 180 |
\AddToHook{package/mathtools/after}{\input{latex-lab-mathtools.ltx}} |
| 181 |
\input{latex-lab-mathpkg.ltx} |
| 182 |
\input{latex-lab-mathintent.ltx} |
| 183 |
\AddToHook{package/unicode-math/after}{\input{latex-lab-unicode-math.ltx}} |
| 184 |
%</math-package> |
| 185 |
% \end{macrocode} |
| 186 |
% \Finale |
| 187 |
% |