Skip to content

Commit

Permalink
update pdfmanagement and tagpdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Feb 23, 2024
1 parent e4b46c9 commit 3ad9ead
Show file tree
Hide file tree
Showing 68 changed files with 1,367 additions and 270 deletions.
10 changes: 5 additions & 5 deletions required/latex-lab/documentmetadata-support.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@
% \item[\texttt{phase-I}]
% This value loads code implementing the first phase of the project~\cite{blueprint}, i.e., it
% will load the tagpdf package. It will also activate tagging by issuing
% |\tagpdfsetup{activate,interwordspace}|. This phase
% |\tagpdfsetup{activate,activate/spaces}|. This phase
% is frozen.
% \item[\texttt{phase-II}]
% It differs from \texttt{phase-I} only in one point: It will
% additionally activate tagging of paragraphs with
% |\tagpdfsetup{paratagging}|. In the upcoming months it will
% |\tagpdfsetup{para/tagging}|. In the upcoming months it will
% also enable automatic tagging of other basic document elements.
% \item[\texttt{phase-III}]
% This is the current development phase.
Expand Down Expand Up @@ -446,7 +446,7 @@
{
\RequirePackage{tagpdf}
\AddToDocumentProperties [document]{testphase/tagpdf}{loaded}
\tagpdfsetup{activate,paratagging,interwordspace}
\tagpdfsetup{activate,para/tagging,activate/spaces}
\AddToDocumentProperties [document]{tagging}{active}
\AddToDocumentProperties [document]{tagging/para}{active}
\AddToDocumentProperties [document]{tagging/interwordspace}{active}
Expand Down Expand Up @@ -483,7 +483,7 @@
package/tagpdf/after
}
{
\tagpdfsetup{paratagging-show}
\tagpdfsetup{debug/show=para}
}
}
,debug / log .code:n =
Expand All @@ -493,7 +493,7 @@
package/tagpdf/after
}
{
\tagpdfsetup{log=#1}
\tagpdfsetup{debug/log=#1}
}
}
,debug / tagpdf .code:n =
Expand Down
2 changes: 1 addition & 1 deletion required/latex-lab/latex-lab-amsmath.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
% \end{macrocode}
% We are already in a par so we change now to text:
% \begin{macrocode}
\tagpdfsetup{paratag=P}%
\tagpdfsetup{para/tag=P}%
% \end{macrocode}
% TODO why \cs{tagpdfparaOn} needed?
% \begin{macrocode}
Expand Down
16 changes: 8 additions & 8 deletions required/latex-lab/latex-lab-block.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -3348,10 +3348,10 @@
{
\tagpdfsetup
{
newattribute = {justify} {/O /Layout /TextAlign/Justify},
newattribute = {center} {/O /Layout /TextAlign/Center},
newattribute = {raggedright}{/O /Layout /TextAlign/Start},
newattribute = {raggedleft} {/O /Layout /TextAlign/End},
role/new-attribute = {justify} {/O /Layout /TextAlign/Justify},
role/new-attribute = {center} {/O /Layout /TextAlign/Center},
role/new-attribute = {raggedright}{/O /Layout /TextAlign/Start},
role/new-attribute = {raggedleft} {/O /Layout /TextAlign/End},
}
}
% \end{macrocode}
Expand Down Expand Up @@ -3808,10 +3808,10 @@
\tagpdfsetup
{
% default if unknown
newattribute = {list}{/O /List /ListNumbering/None},
newattribute = {itemize}{/O /List /ListNumbering/Unordered},
newattribute = {enumerate}{/O /List /ListNumbering/Ordered},
newattribute = {description}{/O /List /ListNumbering/Description},
role/new-attribute = {list}{/O /List /ListNumbering/None},
role/new-attribute = {itemize}{/O /List /ListNumbering/Unordered},
role/new-attribute = {enumerate}{/O /List /ListNumbering/Ordered},
role/new-attribute = {description}{/O /List /ListNumbering/Description},
}
}
% \end{macrocode}
Expand Down
4 changes: 2 additions & 2 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@
% \begin{macrocode}
\tl_new:N\l_@@_attribute_class_tl
\tagpdfsetup
{newattribute = {inline} {/O /Layout /Placement/Inline},
newattribute = {display} {/O /Layout /Placement/Block},
{role/new-attribute = {inline} {/O /Layout /Placement/Inline},
role/new-attribute = {display} {/O /Layout /Placement/Block},
}
% \end{macrocode}
%
Expand Down
6 changes: 3 additions & 3 deletions required/latex-lab/latex-lab-mathtools.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
% \end{macrocode}
% We are already in a par so we change now to Span:
% \begin{macrocode}
\tagpdfsetup{paratag=Span}
\tagpdfsetup{para/tag=Span}
\noindent\ignorespaces##1\par
% \end{macrocode}
% Restart the MC
Expand Down Expand Up @@ -169,7 +169,7 @@
\parshape\@ne \@totalleftmargin \linewidth
\MH_fi:
\tag_mc_end_push:
\tagpdfsetup{paratag=Span}
\tagpdfsetup{para/tag=Span}
\tagpdfparaOn
\noindent\ignorespaces#1\par
\tag_mc_begin_pop:n{}}
Expand Down Expand Up @@ -198,7 +198,7 @@
\parshape\@ne \@totalleftmargin \linewidth
\MH_fi:
\tag_mc_end_push:
\tagpdfsetup{paratag=P}
\tagpdfsetup{para/tag=P}
% \end{macrocode}
% Why is it needed to enable paratagging??
% \begin{macrocode}
Expand Down
8 changes: 4 additions & 4 deletions required/latex-lab/latex-lab-table.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -927,17 +927,17 @@
{
\tagpdfsetup
{
newattribute =
role/new-attribute =
{TH-col}{/O /Table /Scope /Column},
newattribute =
role/new-attribute =
{TH-row}{/O /Table /Scope /Row},
newattribute =
role/new-attribute =
{TH-both}{/O /Table /Scope /Both},
}
% \end{macrocode}
%
% And we put all three into the class map (perhaps the next tagpdf
% should do that directly with newattribute):
% should do that directly with role/new-attribute):
%
% \begin{macrocode}
\seq_gput_left:Ne\g__tag_attr_class_used_seq
Expand Down
4 changes: 2 additions & 2 deletions required/latex-lab/latex-lab-testphase.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
\RequirePackage{tagpdf}
\AddToDocumentProperties [document]{testphase/tagpdf}{loaded}
%</tagpdf|phase-I|phase-II>
%<tagpdf|phase-II>\tagpdfsetup{activate,paratagging,interwordspace}
%<tagpdf|phase-II>\tagpdfsetup{activate,para/tagging,activate/spaces}
%<tagpdf|phase-II>\AddToDocumentProperties [document]{tagging/para}{active}
%<phase-I>\tagpdfsetup{activate,interwordspace}
%<phase-I>\tagpdfsetup{activate,activate/spaces}
%<*tagpdf|phase-I|phase-II>
\AddToDocumentProperties [document]{tagging}{active}
\AddToDocumentProperties [document]{tagging/interwordspace}{active}
Expand Down
2 changes: 1 addition & 1 deletion required/latex-lab/testfiles-block/ptag-001.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

\makeatletter

\tagpdfsetup{add-new-tag={tag=theorem,role=L}}
\tagpdfsetup{role/new-tag={tag=theorem,role=L}}

\def\@begintheorem#1#2{\trivlist[tag-name=theorem]%
\item[\hskip \labelsep{\bfseries #1\ #2}]\itshape}
Expand Down

0 comments on commit 3ad9ead

Please sign in to comment.