[latex3-commits] [latex3/latex2e] latexlab/uf-review-math: correct math grabbing of \(..\), issue latex3/tagging-project#19 (e94f0caa)
github at latex-project.org
github at latex-project.org
Fri Oct 13 18:24:24 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : latexlab/uf-review-math
Link : https://github.com/latex3/latex2e/commit/e94f0caa2d7d74a504396b0fad87fbd11914d87a
>---------------------------------------------------------------
commit e94f0caa2d7d74a504396b0fad87fbd11914d87a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Oct 13 18:24:24 2023 +0200
correct math grabbing of \(..\), issue latex3/tagging-project#19
>---------------------------------------------------------------
e94f0caa2d7d74a504396b0fad87fbd11914d87a
required/latex-lab/changes.txt | 1 +
required/latex-lab/latex-lab-math.dtx | 2 --
.../latex-lab/testfiles-math/mathcapture-018.lvt | 10 ++++++
.../latex-lab/testfiles-math/mathcapture-018.tlg | 10 ++++++
required/latex-lab/testfiles-math/mtag-003.tlg | 42 +++++++++++++++-------
5 files changed, 50 insertions(+), 15 deletions(-)
diff --git a/required/latex-lab/changes.txt b/required/latex-lab/changes.txt
index a643c06d..842bafe4 100644
--- a/required/latex-lab/changes.txt
+++ b/required/latex-lab/changes.txt
@@ -1,6 +1,7 @@
2023-10-13 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
* latex-lab-graphic.dtx: fix handling of scale factor, tagging issue #16
* latex-lab-graphic.dtx, latex-lab-footnote.dtx: switch to new property referencing code.
+ * latex-lab-math.dtx: fix grabbing of \(..\), tagging issue #19
2023-09-04 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
* latex-lab-math.dtx: fix below display skip, tagging issue #11
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 54db6b9d..285471ad 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -164,7 +164,6 @@
% presumably)\\
% - Math environments created with \pkg{ltcmd} [commands] should not be copied, . . .\\
% - Package authors should be able to manually set up math environments with a public boolean.}
-% \item The content of inline math using |\(..\)| is currently not grabbed (perhaps useful??).
% \end{enumerate}
%
%
@@ -716,7 +715,6 @@
{ $ }
}
{
- \bool_set_true:N \l_@@_collected_bool
\@@_grab_inline:w
}
} % \(
diff --git a/required/latex-lab/testfiles-math/mathcapture-018.lvt b/required/latex-lab/testfiles-math/mathcapture-018.lvt
new file mode 100644
index 00000000..67fe0ce7
--- /dev/null
+++ b/required/latex-lab/testfiles-math/mathcapture-018.lvt
@@ -0,0 +1,10 @@
+%https://github.com/latex3/tagging-project/issues/19
+\DocumentMetadata{testphase={phase-III,math}}
+\input{regression-test}
+\documentclass{article}
+\begin{document}
+\START
+$a=a$
+
+\(a=b\)
+\end{document}
\ No newline at end of file
diff --git a/required/latex-lab/testfiles-math/mathcapture-018.tlg b/required/latex-lab/testfiles-math/mathcapture-018.tlg
new file mode 100644
index 00000000..20b70753
--- /dev/null
+++ b/required/latex-lab/testfiles-math/mathcapture-018.tlg
@@ -0,0 +1,10 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+====>first-result=macro:->a=a
+====>first-tmpmathcontent=macro:->
+====>formula has no subparts
+====>first-result=macro:->a=b
+====>first-tmpmathcontent=macro:->
+====>formula has no subparts
+[1
+] (mathcapture-018.aux)
diff --git a/required/latex-lab/testfiles-math/mtag-003.tlg b/required/latex-lab/testfiles-math/mtag-003.tlg
index 37ba04cd..6cd25c79 100644
--- a/required/latex-lab/testfiles-math/mtag-003.tlg
+++ b/required/latex-lab/testfiles-math/mtag-003.tlg
@@ -82,6 +82,22 @@ Math env math
x
-----------------------------------
Math env math
+x
+Package tagpdf Info: Parent-Child 'P' --> 'Formula'.
+(tagpdf) Relation is 1 (='0..n')
+(tagpdf) Rolemapped from 'P/pdf2' --> 'Formula/pdf2' on line ..
+====>first-result=macro:->x
+====>first-tmpmathcontent=macro:->
+====>formula has no subparts
+Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
+(tagpdf) Relation is 1 (='0..n')
+(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
+Package tagpdf Info: closing structure 12 tagged /Formula
+Package tagpdf Info: Parent-Child 'P' --> 'MC'.
+(tagpdf) Relation is 1 (='0..n')
+(tagpdf) Rolemapped from 'P/pdf2' --> 'MC' on line ...
+-----------------------------------
+Math env math
y
Package tagpdf Info: Parent-Child 'P' --> 'Formula'.
(tagpdf) Relation is 1 (='0..n')
@@ -92,7 +108,7 @@ Package tagpdf Info: Parent-Child 'P' --> 'Formula'.
Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
-Package tagpdf Info: closing structure 12 tagged /Formula
+Package tagpdf Info: closing structure 13 tagged /Formula
Package tagpdf Info: Parent-Child 'P' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'P/pdf2' --> 'MC' on line ...
@@ -108,7 +124,7 @@ Package tagpdf Info: Parent-Child 'P' --> 'Formula'.
Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
-Package tagpdf Info: closing structure 13 tagged /Formula
+Package tagpdf Info: closing structure 14 tagged /Formula
Package tagpdf Info: Parent-Child 'P' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'P/pdf2' --> 'MC' on line ...
@@ -131,7 +147,7 @@ Package tagpdf Info: Parent-Child 'P' --> 'MC'.
-----------------------------------
Math env equation*
a<b
-Package tagpdf Info: closing structure 15 tagged /text
+Package tagpdf Info: closing structure 16 tagged /text
Package tagpdf Info: Parent-Child 'Document' --> 'Formula'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Document/pdf2' --> 'Formula/pdf2' on
@@ -142,7 +158,7 @@ Package tagpdf Info: Parent-Child 'Document' --> 'Formula'.
Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
-Package tagpdf Info: closing structure 16 tagged /Formula
+Package tagpdf Info: closing structure 17 tagged /Formula
==> @endpe=true on input line ...
==> increment P on input line ...
Package tagpdf Info: Parent-Child 'Document' --> 'P'.
@@ -153,8 +169,8 @@ Package tagpdf Info: Parent-Child 'P' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'P/pdf2' --> 'MC' on line ...
==> increment /P on input line ...
-Package tagpdf Info: closing structure 17 tagged /text
-Package tagpdf Info: closing structure 14 tagged /text-unit
+Package tagpdf Info: closing structure 18 tagged /text
+Package tagpdf Info: closing structure 15 tagged /text-unit
==> @endpe=false on input line ...
Package tagpdf Info: Parent-Child 'Document' --> 'Part'.
(tagpdf) Relation is 1 (='0..n')
@@ -171,7 +187,7 @@ Package tagpdf Info: Parent-Child 'P' --> 'MC'.
-----------------------------------
Math env eqnarray
a & = & b \\ & < & c
-Package tagpdf Info: closing structure 19 tagged /text
+Package tagpdf Info: closing structure 20 tagged /text
Package tagpdf Info: Parent-Child 'Document' --> 'Formula'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Document/pdf2' --> 'Formula/pdf2' on
@@ -192,7 +208,7 @@ Package tagpdf Info: Parent-Child 'Formula' --> 'Lbl'.
Package tagpdf Info: Parent-Child 'Lbl' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Lbl/pdf2' --> 'MC' on line ...
-Package tagpdf Info: closing structure 22 tagged /Lbl
+Package tagpdf Info: closing structure 23 tagged /Lbl
Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
@@ -202,12 +218,12 @@ Package tagpdf Info: Parent-Child 'Formula' --> 'Lbl'.
Package tagpdf Info: Parent-Child 'Lbl' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Lbl/pdf2' --> 'MC' on line ...
-Package tagpdf Info: closing structure 23 tagged /Lbl
+Package tagpdf Info: closing structure 24 tagged /Lbl
Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
+Package tagpdf Info: closing structure 22 tagged /Formula
Package tagpdf Info: closing structure 21 tagged /Formula
-Package tagpdf Info: closing structure 20 tagged /Formula
==> @endpe=true on input line ...
==> increment P on input line ...
Package tagpdf Info: Parent-Child 'Document' --> 'P'.
@@ -220,7 +236,7 @@ Package tagpdf Info: Parent-Child 'P' --> 'MC'.
-----------------------------------
Math env eqnarray*
a & = & b \\ & < & c \\ & \leq & d
-Package tagpdf Info: closing structure 24 tagged /text
+Package tagpdf Info: closing structure 25 tagged /text
Package tagpdf Info: Parent-Child 'Document' --> 'Formula'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Document/pdf2' --> 'Formula/pdf2' on
@@ -235,11 +251,11 @@ Package tagpdf Info: Parent-Child 'Formula' --> 'Formula'.
Package tagpdf Info: Parent-Child 'Formula' --> 'MC'.
(tagpdf) Relation is 1 (='0..n')
(tagpdf) Rolemapped from 'Formula/pdf2' --> 'MC' on line ...
+Package tagpdf Info: closing structure 27 tagged /Formula
Package tagpdf Info: closing structure 26 tagged /Formula
-Package tagpdf Info: closing structure 25 tagged /Formula
==> flattened=false on input line ...
==> Structure-end text-unit after displayblock on input line ...
-Package tagpdf Info: closing structure 18 tagged /text-unit
+Package tagpdf Info: closing structure 19 tagged /text-unit
The sequence \g__tag_mc_main_marks_seq is empty
> .
[1
More information about the latex3-commits
mailing list.