Skip to content

Commit

Permalink
Resolve tagging issue 711 (#1483)
Browse files Browse the repository at this point in the history
* disable paratagging in inline math too, latex3/tagging-project#711

* update test

* add test for latex/tagging-project#711
  • Loading branch information
u-fischer authored Oct 2, 2024
1 parent 948c666 commit 1fb7f97
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 28 deletions.
4 changes: 4 additions & 0 deletions required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-10-02 Ulrike Fischer <[email protected]>
* latex-lab-math.dtx (subsection{Sockets}):
disable paratagging in inline math (tagging/711)

2024-09-30 Ulrike Fischer <[email protected]>
* latex-lab-footnotes.dtx: remove unneeded NonStruct structure.

Expand Down
9 changes: 6 additions & 3 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
% for those people who are interested or want to report an issue.
%
%
\def\ltlabmathdate{2024-09-30}
\def\ltlabmathversion{0.6f}
\def\ltlabmathdate{2024-10-02}
\def\ltlabmathversion{0.6g}
%
%<*driver>
\documentclass{l3doc}
Expand Down Expand Up @@ -1192,7 +1192,10 @@
\socket_new_plug:nnn
{tagsupport/math/inline/formula/begin}
{default}
{
% \end{macrocode}
% \changes{v0.6g}{2024-10-02}{disable paratagging, issue \#711}
% \begin{macrocode}
{ \tagpdfparaOff
\tag_socket_use:n{math/content}
\tag_socket_use:n{math/struct/begin}
% \end{macrocode}
Expand Down
26 changes: 1 addition & 25 deletions required/latex-lab/testfiles-math/mathcapture-019.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,6 @@ x+\begin {minipage}[t]{1cm}some\\thing\end {minipage}
====>first-result=macro:->x+\begin {minipage}[t]{1cm}some\\thing\end {minipage}
====>first-tmpmathcontent=macro:->
====>formula has no subparts
Package tagpdf Warning: Parent-Child 'P/' --> 'Div/pdf2'.
(tagpdf) Relation is not allowed (struct 16, /text --> struct
(tagpdf) 18) on line ...
Package tagpdf Warning: Parent-Child 'P/' --> 'text-unit/user'.
(tagpdf) Relation is not allowed (struct 18, /Div --> struct
(tagpdf) 19) on line ...
Package tagpdf Warning: Parent-Child 'P/' --> 'text/user'.
(tagpdf) Relation is not allowed (struct 19, /text-unit -->
(tagpdf) struct 20) on line ...
Package tagpdf Warning: Parent-Child 'P/' --> 'text/user'.
(tagpdf) Relation is not allowed (struct 16, /text --> struct
(tagpdf) 21) on line ...
-----------------------------------
Math env math
\protect \shortstack {a\\b}
Expand All @@ -74,22 +62,10 @@ Math env math
====>first-result=macro:->\protect \parbox {2cm}{a\\b}Z
====>first-tmpmathcontent=macro:->
====>formula has no subparts
Package tagpdf Warning: Parent-Child 'P/' --> 'Div/pdf2'.
(tagpdf) Relation is not allowed (struct 16, /text --> struct
(tagpdf) 25) on line ...
Package tagpdf Warning: Parent-Child 'P/' --> 'text-unit/user'.
(tagpdf) Relation is not allowed (struct 25, /Div --> struct
(tagpdf) 26) on line ...
Package tagpdf Warning: Parent-Child 'P/' --> 'text/user'.
(tagpdf) Relation is not allowed (struct 26, /text-unit -->
(tagpdf) struct 27) on line ...
Package tagpdf Warning: Parent-Child 'P/' --> 'text/user'.
(tagpdf) Relation is not allowed (struct 16, /text --> struct
(tagpdf) 28) on line ...
[1
] (mathcapture-019.aux)
Package tagpdf Info: Finalizing the tagging structure:
(tagpdf) Writing out ~28 structure objects
(tagpdf) Writing out ~26 structure objects
(tagpdf) with ~29 'MC' leaf nodes.
(tagpdf) Be patient if there are lots of objects!
Package tagpdf Info: writing ParentTree
Expand Down
14 changes: 14 additions & 0 deletions required/latex-lab/testfiles-math/mtag-006-gh711.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
\DocumentMetadata{testphase={phase-III,math,table}}
\input{regression-test}
\RequirePackage{tagpdf-debug}
\documentclass{article}
\begin{document}

$
a =
\mbox{\LaTeX \begin{tabular}{l}a\end{tabular}}
\begin{tabular}{l}b\end{tabular}
\parbox{3cm}{some text}
$
\ShowTagging{debug/structures}
\end{document}
Empty file.

0 comments on commit 1fb7f97

Please sign in to comment.