-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extended math options for luamml (#1511)
* start documentation for math options * review math option, WIP * move luamml loading, trim spacing * start with examples * add option for structelem * correct test * correct alt attribute if luamml is not used * more docu * rename plug * adapt key for luamml writing * more examples * enable alt for ua-1, docu, typo * update test * update test (alt + attribute change) * more doku and a bit support for ignore flag * clean up examples * add jobname to title, tlg * note about tests * change version, add changes.txt * test with newest luamml * add version test * add test files * comments from review
- Loading branch information
Showing
55 changed files
with
3,710 additions
and
712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Tests for math tagging examples | ||
|
||
stdengine = "luatex" | ||
checkengines = {"luatex"} | ||
checksearch = true | ||
testfiledir = "math-tagging-examples" | ||
|
||
checkruns = 2 | ||
|
||
recordstatus=true |
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
required/latex-lab/math-tagging-examples/math-17-alt+mathmlAF+texAF.lvt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
% template for math reading. | ||
\DocumentMetadata | ||
{ | ||
uncompress,testphase={phase-III,title,math}, | ||
pdfversion=1.7, | ||
pdfstandard=ua-1 | ||
%pdfversion=2.0, | ||
%pdfstandard=ua-2 | ||
} | ||
|
||
|
||
\documentclass{article} | ||
\makeatletter | ||
\ExplSyntaxOn | ||
\tl_put_right:Nn\cdp@list{\cdp@elt {TU}{lmr}{m}{n}} | ||
\ExplSyntaxOff | ||
\makeatother | ||
|
||
\usepackage{unicode-math} | ||
|
||
\title{Test math tagging \jobname} | ||
|
||
% global setups | ||
% rolemap mathml to Span default false (probably senseless) | ||
%\tagpdfsetup{role/mathml-tags} | ||
|
||
% suppress loading of luamml | ||
%\tagpdfsetup{math/mathml/luamml/load=false} % | ||
|
||
% suppress writing of luamml-mathml | ||
%\tagpdfsetup{math/mathml/luamml/write=false} % | ||
|
||
% suppress mathml-AF reading | ||
%\tagpdfsetup{math/mathml/sources=} % | ||
|
||
% enable structure elements | ||
%\tagpdfsetup{math/mathml/structelem} % | ||
|
||
\begin{document} | ||
% local settings. Can also be in the preamble but used here for clarity | ||
|
||
% alt text, default currently false if not ua-1 | ||
%\tagpdfsetup{math/alt/use = true} | ||
|
||
% suppress tex source AF | ||
% \tagpdfsetup{math/tex/AF=false} | ||
|
||
% suppress attaching of mathml-AF (local setting) | ||
% \tagpdfsetup{math/mathml/AF=false} | ||
|
||
inline $E=mc^2$ | ||
|
||
display | ||
\[a^2+b^2=c^2\] | ||
|
||
\end{document} |
3 changes: 3 additions & 0 deletions
3
required/latex-lab/math-tagging-examples/math-17-alt+mathmlAF+texAF.tlg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*************** | ||
Compilation 1 of test file completed with exit status 0 | ||
Compilation 2 of test file completed with exit status 0 |
57 changes: 57 additions & 0 deletions
57
required/latex-lab/math-tagging-examples/math-17-alt+structelem+rolemap+mathmlAF+texAF.lvt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
% template for math reading. | ||
|
||
\DocumentMetadata | ||
{ | ||
uncompress,testphase={phase-III,title,math}, | ||
pdfversion=1.7, | ||
pdfstandard=ua-1 | ||
%pdfversion=2.0, | ||
%pdfstandard=ua-2 | ||
} | ||
|
||
\documentclass{article} | ||
\makeatletter | ||
\ExplSyntaxOn | ||
\tl_put_right:Nn\cdp@list{\cdp@elt {TU}{lmr}{m}{n}} | ||
\ExplSyntaxOff | ||
\makeatother | ||
|
||
\usepackage{unicode-math} | ||
|
||
\title{Test math tagging \jobname} | ||
|
||
% global setups | ||
% rolemap mathml to Span default false (probably senseless) | ||
\tagpdfsetup{role/mathml-tags} | ||
|
||
% suppress loading of luamml | ||
%\tagpdfsetup{math/mathml/luamml/load=false} % | ||
|
||
% suppress writing of luamml-mathml | ||
%\tagpdfsetup{math/mathml/luamml/write=false} % | ||
|
||
% suppress mathml-AF inclusion | ||
%\tagpdfsetup{math/mathml/sources=} % | ||
|
||
% enable structure elements | ||
\tagpdfsetup{math/mathml/structelem} % | ||
|
||
\begin{document} | ||
|
||
% local settings. Can also be in the preamble but used here for clarity | ||
|
||
% alt text, default currently false if not ua-1 | ||
% \tagpdfsetup{math/alt/use = true} | ||
|
||
% suppress tex source AF | ||
% \tagpdfsetup{math/tex/AF=false} | ||
|
||
% suppress attaching of mathml-AF (local setting) | ||
% \tagpdfsetup{math/mathml/AF=false} | ||
|
||
inline $E=mc^2$ | ||
|
||
display | ||
\[a^2+b^2=c^2\] | ||
|
||
\end{document} |
3 changes: 3 additions & 0 deletions
3
required/latex-lab/math-tagging-examples/math-17-alt+structelem+rolemap+mathmlAF+texAF.tlg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*************** | ||
Compilation 1 of test file completed with exit status 0 | ||
Compilation 2 of test file completed with exit status 0 |
56 changes: 56 additions & 0 deletions
56
required/latex-lab/math-tagging-examples/math-17-alt-noluamml.lvt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
% template for math reading. | ||
\DocumentMetadata | ||
{ | ||
uncompress,testphase={phase-III,title,math}, | ||
pdfversion=1.7, | ||
pdfstandard=ua-1 | ||
%pdfversion=2.0, | ||
%pdfstandard=ua-2 | ||
} | ||
|
||
|
||
\documentclass{article} | ||
\makeatletter | ||
\ExplSyntaxOn | ||
\tl_put_right:Nn\cdp@list{\cdp@elt {TU}{lmr}{m}{n}} | ||
\ExplSyntaxOff | ||
\makeatother | ||
|
||
\usepackage{unicode-math} | ||
|
||
\title{Test math tagging \jobname} | ||
|
||
% global setups | ||
% rolemap mathml to Span default false (probably senseless) | ||
\tagpdfsetup{role/mathml-tags} | ||
|
||
% suppress loading of luamml | ||
\tagpdfsetup{math/mathml/luamml/load=false} % | ||
|
||
% suppress writing of luamml-mathml | ||
%\tagpdfsetup{math/mathml/luamml/write=false} % | ||
|
||
% suppress mathml-AF reading | ||
\tagpdfsetup{math/mathml/sources=} % | ||
|
||
% enable structure elements | ||
%\tagpdfsetup{math/mathml/structelem} % | ||
|
||
\begin{document} | ||
% local settings. Can also be in the preamble but used here for clarity | ||
|
||
% alt text, default currently false if not ua-1 | ||
%\tagpdfsetup{math/alt/use = true} | ||
|
||
% suppress tex source AF | ||
\tagpdfsetup{math/tex/AF=false} | ||
|
||
% suppress attaching of mathml-AF (local setting) | ||
% \tagpdfsetup{math/mathml/AF=false} | ||
|
||
inline $E=mc^2$ | ||
|
||
display | ||
\[a^2+b^2=c^2\] | ||
|
||
\end{document} |
3 changes: 3 additions & 0 deletions
3
required/latex-lab/math-tagging-examples/math-17-alt-noluamml.tlg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*************** | ||
Compilation 1 of test file completed with exit status 0 | ||
Compilation 2 of test file completed with exit status 0 |
56 changes: 56 additions & 0 deletions
56
required/latex-lab/math-tagging-examples/math-17-default.lvt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
% template for math reading. | ||
|
||
\DocumentMetadata | ||
{ | ||
uncompress,testphase={phase-III,title,math}, | ||
pdfversion=1.7, | ||
pdfstandard=ua-1 | ||
%pdfversion=2.0, | ||
%pdfstandard=ua-2 | ||
} | ||
|
||
\documentclass{article} | ||
\makeatletter | ||
\ExplSyntaxOn | ||
\tl_put_right:Nn\cdp@list{\cdp@elt {TU}{lmr}{m}{n}} | ||
\ExplSyntaxOff | ||
\makeatother | ||
|
||
\usepackage{unicode-math} | ||
|
||
\title{Test math tagging \jobname} | ||
|
||
% global setups | ||
% rolemap mathml to Span default false (probably senseless) | ||
%\tagpdfsetup{role/mathml-tags} | ||
|
||
% suppress loading of luamml | ||
%\tagpdfsetup{math/mathml/luamml/load=false} % | ||
|
||
% suppress writing of luamml-mathml | ||
%\tagpdfsetup{math/mathml/luamml/write=false} % | ||
|
||
% suppress mathml-AF reading | ||
%\tagpdfsetup{math/mathml/sources=} % | ||
|
||
% enable structure elements | ||
%\tagpdfsetup{math/mathml/structelem} % | ||
|
||
\begin{document} | ||
% local settings. Can also be in the preamble but used here for clarity | ||
|
||
% alt text, default currently false if not ua-1 | ||
% \tagpdfsetup{math/alt/use = true} | ||
|
||
% suppress tex source AF | ||
% \tagpdfsetup{math/tex/AF=false} | ||
|
||
% suppress attaching of mathml-AF (local setting) | ||
% \tagpdfsetup{math/mathml/AF=false} | ||
|
||
inline $E=mc^2$ | ||
|
||
display | ||
\[a^2+b^2=c^2\] | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*************** | ||
Compilation 1 of test file completed with exit status 0 | ||
Compilation 2 of test file completed with exit status 0 |
57 changes: 57 additions & 0 deletions
57
required/latex-lab/math-tagging-examples/math-20-alt+structelem+mathmlAF+texAF.lvt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
% template for math reading. | ||
|
||
\DocumentMetadata | ||
{ | ||
uncompress,testphase={phase-III,title,math}, | ||
%pdfversion=1.7, | ||
%pdfstandard=ua-1 | ||
pdfversion=2.0, | ||
pdfstandard=ua-2 | ||
} | ||
|
||
\documentclass{article} | ||
\makeatletter | ||
\ExplSyntaxOn | ||
\tl_put_right:Nn\cdp@list{\cdp@elt {TU}{lmr}{m}{n}} | ||
\ExplSyntaxOff | ||
\makeatother | ||
|
||
\usepackage{unicode-math} | ||
|
||
\title{Test math tagging \jobname} | ||
|
||
% global setups | ||
% rolemap mathml to Span default false (probably senseless) | ||
%\tagpdfsetup{role/mathml-tags} | ||
|
||
% suppress loading of luamml | ||
%\tagpdfsetup{math/mathml/luamml/load=false} % | ||
|
||
% suppress writing of luamml-mathml | ||
%\tagpdfsetup{math/mathml/luamml/write=false} % | ||
|
||
% suppress mathml-AF inclusion | ||
%\tagpdfsetup{math/mathml/sources=} % | ||
|
||
% enable structure elements | ||
\tagpdfsetup{math/mathml/structelem} % | ||
|
||
\begin{document} | ||
|
||
% local settings. Can also be in the preamble but used here for clarity | ||
|
||
% alt text, default currently false if not ua-1 | ||
\tagpdfsetup{math/alt/use = true} | ||
|
||
% suppress tex source AF | ||
% \tagpdfsetup{math/tex/AF=false} | ||
|
||
% suppress attaching of mathml-AF (local setting) | ||
% \tagpdfsetup{math/mathml/AF=false} | ||
|
||
inline $E=mc^2$ | ||
|
||
display | ||
\[a^2+b^2=c^2\] | ||
|
||
\end{document} |
3 changes: 3 additions & 0 deletions
3
required/latex-lab/math-tagging-examples/math-20-alt+structelem+mathmlAF+texAF.tlg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*************** | ||
Compilation 1 of test file completed with exit status 0 | ||
Compilation 2 of test file completed with exit status 0 |
57 changes: 57 additions & 0 deletions
57
required/latex-lab/math-tagging-examples/math-20-alt-noluamml.lvt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
% template for math reading. | ||
|
||
\DocumentMetadata | ||
{ | ||
uncompress,testphase={phase-III,title,math}, | ||
%pdfversion=1.7, | ||
%pdfstandard=ua-1 | ||
pdfversion=2.0, | ||
pdfstandard=ua-2 | ||
} | ||
|
||
|
||
\documentclass{article} | ||
\makeatletter | ||
\ExplSyntaxOn | ||
\tl_put_right:Nn\cdp@list{\cdp@elt {TU}{lmr}{m}{n}} | ||
\ExplSyntaxOff | ||
\makeatother | ||
|
||
\usepackage{unicode-math} | ||
|
||
\title{Test math tagging \jobname} | ||
|
||
% global setups | ||
% rolemap mathml to Span default false (probably senseless) | ||
%\tagpdfsetup{role/mathml-tags} | ||
|
||
% suppress loading of luamml | ||
\tagpdfsetup{math/mathml/luamml/load=false} % | ||
|
||
% suppress writing of luamml-mathml | ||
%\tagpdfsetup{math/mathml/luamml/write=false} % | ||
|
||
% suppress mathml-AF reading | ||
\tagpdfsetup{math/mathml/sources=} % | ||
|
||
% enable structure elements | ||
%\tagpdfsetup{math/mathml/structelem} % | ||
|
||
\begin{document} | ||
% local settings. Can also be in the preamble but used here for clarity | ||
|
||
% alt text, default currently false if not ua-1 | ||
\tagpdfsetup{math/alt/use = true} | ||
|
||
% suppress tex source AF | ||
\tagpdfsetup{math/tex/AF=false} | ||
|
||
% suppress attaching of mathml-AF (local setting) | ||
% \tagpdfsetup{math/mathml/AF=false} | ||
|
||
inline $E=mc^2$ | ||
|
||
display | ||
\[a^2+b^2=c^2\] | ||
|
||
\end{document} |
3 changes: 3 additions & 0 deletions
3
required/latex-lab/math-tagging-examples/math-20-alt-noluamml.tlg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*************** | ||
Compilation 1 of test file completed with exit status 0 | ||
Compilation 2 of test file completed with exit status 0 |
Oops, something went wrong.