[latex3-commits] [latex3/latex2e] UF-latex-lab-math-options: start with examples (78bcc7f32)
github at latex-project.org
github at latex-project.org
Thu Oct 24 16:47:39 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : UF-latex-lab-math-options
Link : https://github.com/latex3/latex2e/commit/78bcc7f32e3a0fc6479de2c6eefe3bc3257f96fc
>---------------------------------------------------------------
commit 78bcc7f32e3a0fc6479de2c6eefe3bc3257f96fc
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Oct 24 16:47:39 2024 +0200
start with examples
>---------------------------------------------------------------
78bcc7f32e3a0fc6479de2c6eefe3bc3257f96fc
.../latex-lab/config-math-tagging-examples.lua | 10 ++++++
.../math-tagging-examples/math-20-default.lvt | 41 ++++++++++++++++++++++
.../math-tagging-examples/math-20-default.tlg | 3 ++
.../math-20-only-alt-noluamml.lvt | 41 ++++++++++++++++++++++
.../math-20-only-mathmlAF.lvt | 41 ++++++++++++++++++++++
.../math-20-only-texAF-noluamml.lvt | 41 ++++++++++++++++++++++
required/latex-lab/update-math-tagging-examples.sh | 6 ++++
7 files changed, 183 insertions(+)
diff --git a/required/latex-lab/config-math-tagging-examples.lua b/required/latex-lab/config-math-tagging-examples.lua
new file mode 100644
index 000000000..6daa4ff1a
--- /dev/null
+++ b/required/latex-lab/config-math-tagging-examples.lua
@@ -0,0 +1,10 @@
+-- Tests for math tagging examples
+
+stdengine = "luatex"
+checkengines = {"luatex"}
+checksearch = true
+testfiledir = "math-tagging-examples"
+
+checkruns = 2
+
+recordstatus=true
diff --git a/required/latex-lab/math-tagging-examples/math-20-default.lvt b/required/latex-lab/math-tagging-examples/math-20-default.lvt
new file mode 100644
index 000000000..4de30ff95
--- /dev/null
+++ b/required/latex-lab/math-tagging-examples/math-20-default.lvt
@@ -0,0 +1,41 @@
+% template for math reading.
+
+\DocumentMetadata
+ {
+ uncompress,testphase={phase-III,title,math},
+ %pdfversion=1.7,
+ pdfversion=2.0
+ }
+
+\documentclass{article}
+\makeatletter
+\ExplSyntaxOn
+\tl_put_right:Nn\cdp at list{\cdp at elt {TU}{lmr}{m}{n}}
+\ExplSyntaxOff
+\makeatother
+
+\usepackage{unicode-math}
+
+\title{Test math tagging}
+
+% setups
+% rolemap mathml to Span default false
+%\tagpdfsetup{role/mathml-tags}
+
+% alt text, default currently false, but better ensure it
+\tagpdfsetup{math/alt/use = false}
+%\tagpdfsetup{math/alt/use = true}
+
+% suppress tex source AF
+%\tagpdfsetup{math/tex/AF=false}
+
+% suppress loading of luamml
+%\tagpdfsetup{math/mathml/luamml=false} %
+\begin{document}
+
+inline $E=mc^2$
+
+display
+\[a^2+b^2=c^2\]
+
+\end{document}
\ No newline at end of file
diff --git a/required/latex-lab/math-tagging-examples/math-20-default.tlg b/required/latex-lab/math-tagging-examples/math-20-default.tlg
new file mode 100644
index 000000000..ea7dc4e5d
--- /dev/null
+++ b/required/latex-lab/math-tagging-examples/math-20-default.tlg
@@ -0,0 +1,3 @@
+***************
+Compilation 1 of test file completed with exit status 0
+Compilation 2 of test file completed with exit status 0
diff --git a/required/latex-lab/math-tagging-examples/math-20-only-alt-noluamml.lvt b/required/latex-lab/math-tagging-examples/math-20-only-alt-noluamml.lvt
new file mode 100644
index 000000000..ca12e61d2
--- /dev/null
+++ b/required/latex-lab/math-tagging-examples/math-20-only-alt-noluamml.lvt
@@ -0,0 +1,41 @@
+% template for math reading.
+
+\DocumentMetadata
+ {
+ uncompress,testphase={phase-III,title,math},
+ %pdfversion=1.7,
+ pdfversion=2.0
+ }
+
+\documentclass{article}
+\makeatletter
+\ExplSyntaxOn
+\tl_put_right:Nn\cdp at list{\cdp at elt {TU}{lmr}{m}{n}}
+\ExplSyntaxOff
+\makeatother
+
+\usepackage{unicode-math}
+
+\title{Test math tagging}
+
+% setups
+% rolemap mathml to Span default false
+%\tagpdfsetup{role/mathml-tags}
+
+% alt text, default currently false, but better ensure it
+%\tagpdfsetup{math/alt/use = false}
+\tagpdfsetup{math/alt/use = true}
+
+% suppress tex source AF
+\tagpdfsetup{math/tex/AF=false}
+
+% suppress loading of luamml
+\tagpdfsetup{math/mathml/luamml=false} %
+\begin{document}
+
+inline $E=mc^2$
+
+display
+\[a^2+b^2=c^2\]
+
+\end{document}
\ No newline at end of file
diff --git a/required/latex-lab/math-tagging-examples/math-20-only-mathmlAF.lvt b/required/latex-lab/math-tagging-examples/math-20-only-mathmlAF.lvt
new file mode 100644
index 000000000..458c51669
--- /dev/null
+++ b/required/latex-lab/math-tagging-examples/math-20-only-mathmlAF.lvt
@@ -0,0 +1,41 @@
+% template for math reading.
+
+\DocumentMetadata
+ {
+ uncompress,testphase={phase-III,title,math},
+ %pdfversion=1.7,
+ pdfversion=2.0
+ }
+
+\documentclass{article}
+\makeatletter
+\ExplSyntaxOn
+\tl_put_right:Nn\cdp at list{\cdp at elt {TU}{lmr}{m}{n}}
+\ExplSyntaxOff
+\makeatother
+
+\usepackage{unicode-math}
+
+\title{Test math tagging}
+
+% setups
+% rolemap mathml to Span default false
+%\tagpdfsetup{role/mathml-tags}
+
+% alt text, default currently false, but better ensure it
+\tagpdfsetup{math/alt/use = false}
+%\tagpdfsetup{math/alt/use = true}
+
+% suppress tex source AF
+\tagpdfsetup{math/tex/AF=false}
+
+% suppress loading of luamml
+%\tagpdfsetup{math/mathml/luamml=false} %
+\begin{document}
+
+inline $E=mc^2$
+
+display
+\[a^2+b^2=c^2\]
+
+\end{document}
\ No newline at end of file
diff --git a/required/latex-lab/math-tagging-examples/math-20-only-texAF-noluamml.lvt b/required/latex-lab/math-tagging-examples/math-20-only-texAF-noluamml.lvt
new file mode 100644
index 000000000..f98c1b071
--- /dev/null
+++ b/required/latex-lab/math-tagging-examples/math-20-only-texAF-noluamml.lvt
@@ -0,0 +1,41 @@
+% template for math reading.
+
+\DocumentMetadata
+ {
+ uncompress,testphase={phase-III,title,math},
+ %pdfversion=1.7,
+ pdfversion=2.0
+ }
+
+\documentclass{article}
+\makeatletter
+\ExplSyntaxOn
+\tl_put_right:Nn\cdp at list{\cdp at elt {TU}{lmr}{m}{n}}
+\ExplSyntaxOff
+\makeatother
+
+\usepackage{unicode-math}
+
+\title{Test math tagging}
+
+% setups
+% rolemap mathml to Span default false
+%\tagpdfsetup{role/mathml-tags}
+
+% alt text, default currently false, but better ensure it
+\tagpdfsetup{math/alt/use = false}
+%\tagpdfsetup{math/alt/use = true}
+
+% suppress tex source AF
+\tagpdfsetup{math/tex/AF=true}
+
+% suppress loading of luamml
+\tagpdfsetup{math/mathml/luamml=false} %
+\begin{document}
+
+inline $E=mc^2$
+
+display
+\[a^2+b^2=c^2\]
+
+\end{document}
\ No newline at end of file
diff --git a/required/latex-lab/update-math-tagging-examples.sh b/required/latex-lab/update-math-tagging-examples.sh
new file mode 100644
index 000000000..c67ccbbac
--- /dev/null
+++ b/required/latex-lab/update-math-tagging-examples.sh
@@ -0,0 +1,6 @@
+l3build save -cconfig-math-tagging-examples \
+ math-20-default \
+ math-20-only-mathmlAF \
+ math-20-only-alt-noluamml \
+ math-20-only-texAF-noluamml
+
More information about the latex3-commits
mailing list.