summaryrefslogtreecommitdiff
path: root/macros/latex/required/latex-lab/latex-lab-testphase.dtx
blob: d8d9c671c3906921be419341e2ce6651438c56ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
% \iffalse meta-comment
%
%% File: latex-lab-testphase.dtx
% Copyright (C) 2021-2022 The LaTeX Project
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
% license or (at your option) any later version.  The latest version
% of this license is in the file
%
%    https://www.latex-project.org/lppl.txt
%
%
% The development version of the bundle can be found below
%
%    https://github.com/latex3/latex2e/required/latex-lab
%
% for those people who are interested or want to report an issue.
%
%<*driver>
\documentclass{l3doc}
\EnableCrossrefs
\CodelineIndex
\begin{document}
  \DocInput{latex-lab-testphase.dtx}
\end{document}
%</driver>
%
% \fi
%

% \title{The \texttt{latex-lab-testphase} code\thanks{}}
% \author{Ulrike Fischer \LaTeX{} Project}
%
% \maketitle
%
%
% \begin{abstract}
% \end{abstract}
%
% \section{Introduction}
%
%    This code implements small files which can be loaded with the |testphase|
%    key of \cs{DocumentMetadata}. This will be extended to allow user to load
%    well defined parts of the tagged PDF project.
%    Currently the values |phase-I|, |phase-II| and |new-or| are provided.
%    |tagpdf| is an undocumented alias for |phase-II| which is kept for compability.
%
%
% \StopEventually{\setlength\IndexMin{200pt}  \PrintIndex  }
%
%
% \section{The Implementation}
%  New output routine code is loaded in phase-II and new-or:
%    \begin{macrocode}
%<*tagpdf|phase-II|new-or>
\IfFileExists{latex-lab-testphase-new-or.sty}
 {
   \RequirePackage{latex-lab-testphase-new-or}
 }
 {}
%</tagpdf|phase-II|new-or>
%    \end{macrocode}
%    \begin{macrocode}
%<*tagpdf|phase-I|phase-II>
%    \end{macrocode}
%
%    \begin{macrocode}
\RequirePackage{tagpdf}
\AddToDocumentProperties [document]{testphase/tagpdf}{loaded}
%</tagpdf|phase-I|phase-II>
%<tagpdf|phase-II>\tagpdfsetup{activate,paratagging,interwordspace}
%<phase-I>\tagpdfsetup{activate,interwordspace}
%<*tagpdf|phase-I|phase-II>
\AddToDocumentProperties [document]{tagging}{active}
\AddToDocumentProperties [document]{tagging/para}{active}
\AddToDocumentProperties [document]{tagging/interwordspace}{active}
%    \end{macrocode}
%
%    \begin{macrocode}
%</tagpdf|phase-I|phase-II>
%    \end{macrocode}
% \Finale
%