Skip to content

Commit

Permalink
update testfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Dec 3, 2024
1 parent eb4dd95 commit a3e7597
Show file tree
Hide file tree
Showing 3 changed files with 767 additions and 743 deletions.
27 changes: 16 additions & 11 deletions testfiles-lua/cases.mlt
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
\DocumentMetadata{
uncompress,
pdfversion = 2.0,
testphase = phase-I,
testphase = {phase-III,table,math},
}
\input{regression-test}
\documentclass{article}
\usepackage[l3build]{luamml-demo}
\usepackage{unicode-math}

\begin{document}
\tagstructbegin{tag=Document}
\LuaMMLTagAF{} {
\ExplSyntaxOn
\luamml_set_filename:n {
\jobname .mml
}
\luamml_process:
\luamml_begin_single_file:
\ExplSyntaxOff

\[
\left(\begin{matrix}
1 & 0 & 0 \\
Expand All @@ -22,18 +28,17 @@
2 & \mbox{else}
\end{cases}
\]
}
\LuaMMLTagAF{} {

\[
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.
\]
}
\LuaMMLTagAF{} {

\[
\sum_a\underline c\dot bc'
\]
}

Es gilt \LuaMMLTagAF{}{$\sin(x)-\sin(x+2\pi)=0$}.
\tagstructend
Es gilt $\sin(x)-\sin(x+2\pi)=0$.
\ExplSyntaxOn
\luamml_end_single_file:
\ExplSyntaxOff
\end{document}
26 changes: 7 additions & 19 deletions testfiles-lua/test_struct.pvt
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@
\DocumentMetadata{
uncompress,
pdfversion = 2.0,
testphase = phase-I,
testphase = {phase-III,math,table},
}
\input{regression-test}
\documentclass{article}
\usepackage[structelem]{luamml-demo}

\usepackage{unicode-math}

\tagpdfsetup{math/mathml/structelem}
\begin{document}
\tagstructbegin{tag=Document}

\tagstructbegin{tag=P}
\tagmcbegin{tag=P}
hello
\tagmcend
\tagstructend

\LuaMMLTagAF{} {
\[
\begin{pmatrix}
1 & 0 & 0 \\
Expand All @@ -34,26 +26,22 @@ hello
2 & \text{else}
\end{cases}
\]
}
\LuaMMLTagAF{} {

\[
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}.
\]
}
\LuaMMLTagAF{} {

\[
\sum_a\underline c\dot bc'
\]
}

\LuaMMLTagAF{} {
\begin{align}
abc&=def & e^{\mathrm{i}\pi}&=-1\\
\Big(1+2&=3\Big)\\
5
\end{align}
}

Es gilt \LuaMMLTagAF{}{$\sin(x)-\sin(x+2\pi)=0$}.
\tagstructend

Es gilt $\sin(x)-\sin(x+2\pi)=0$.

\end{document}
Loading

0 comments on commit a3e7597

Please sign in to comment.