.gitignore | ||
build.lua | ||
luamml-amsmath.lua | ||
luamml-array.lua | ||
luamml-convert.lua | ||
luamml-data-combining.lua | ||
luamml-data-stretchy.lua | ||
luamml-demo.sty | ||
luamml-legacy-mappings.lua | ||
luamml-lr.lua | ||
luamml-patches-amsmath.sty | ||
luamml-patches-array.sty | ||
luamml-patches-kernel.sty | ||
luamml-structelemwriter.lua | ||
luamml-table.lua | ||
luamml-tex-annotate.lua | ||
luamml-tex.lua | ||
luamml-xmlwriter.lua | ||
luamml.dtx | ||
pdfmml-emulate-node.lua | ||
pdfmml-logreader.lua | ||
pdfmml-showlists.lua | ||
pdfmml.lua | ||
README.md | ||
test_pdf.tex | ||
test_structelem.tex | ||
test_tex.tex |
Automated LuaLaTeX math to MathML conversion
Highly experimental! At this point all interfaces may change without prior warning and many features aren't implemented yet. It is not ready for anything beyond simple experiments.
This is an attempt to implement automatic conversion of LuaLaTeX inline and display math expressions into MathML code to aid with tagging.
It works best with unicode-math
, but it can also be used with traditional math fonts if mappings to Unicode are provided.
Installation
Run l3build install
to install luamml
into your local texmf
tree.
Demo
Run lualatex test_tex
to see all equations from our example file converted into MathML.
To test it on your own files, add \usepackage{luamml}
and \tracingmathml=2
to your preamble.
Also see a tagpdf
experiment using this to tag PDF formulas.
If you are very brave you can also try running pdflatex test_pdf
and afterwards run ./pdfmml.lua test_pdf.lua
to get pdflatex formulas converted.