mathml/test_structelem.tex

32 lines
803 B
TeX
Raw Normal View History

% !Mode:: "TeX:DE:UTF-8:Main"
\PassOptionsToPackage{enable-debug,check-declarations}{expl3}
2022-12-04 08:38:32 +01:00
\DocumentMetadata{uncompress,pdfversion=2.0,testphase = phase-I}
\RequirePackage{expl3}
\documentclass{article}
\usepackage{unicode-math}
\usepackage{amsmath}
\usepackage{luamml}
% \RegisterFamilyMapping\symsymbols{oms}
% \RegisterFamilyMapping\symletters{oml}
% \RegisterFamilyMapping\symlargesymbols{omx}
\ExplSyntaxOn
\luamml_flag_structelem:
\int_new:N \g__my_mathml_int
\luamml_set_filename:n {
\immediateassignment \int_gincr:N \g__my_mathml_int
\jobname -formula- \int_use:N \g__my_mathml_int .xml
}
\ExplSyntaxOff
\begin{document}
\tagstructbegin{tag=Document}
\tagstructbegin{tag=Formula}
\[
ax^2+bx+c=0,\quad
\int_1^n f(x) = \sum_{i=1}^m x^4 dx
\]
\tagstructend
\tagstructend
\end{document}