Go to file
2023-12-01 17:52:46 +01:00
testfiles-lua Recreate tests 2023-03-18 00:01:27 +01:00
testfiles-pdf Use l3build for testing 2021-10-31 16:06:29 +01:00
.gitignore Rename and rewrite pdfTeX stuff 2021-05-31 12:52:44 +02:00
algorithm.tex Beginning of draft for algorithm description 2021-11-01 07:44:40 +01:00
build.lua Use l3build for testing 2021-10-31 16:06:29 +01:00
config-lua.lua l3build for Lua testing 2021-10-31 17:18:23 +01:00
config-pdf.lua Use l3build for testing 2021-10-31 16:06:29 +01:00
luamml-amsmath.lua {smallmatrix} 2021-06-25 04:21:48 +02:00
luamml-array.lua Opportunistic inclusion of MathML in text content 2021-05-03 21:57:58 +02:00
luamml-convert.lua Some mathord elements are operators 2021-06-26 05:15:58 +02:00
luamml-data-combining.lua Reorganize and add missing file 2021-04-23 02:59:35 +02:00
luamml-data-stretchy.lua Reorganize and add missing file 2021-04-23 02:59:35 +02:00
luamml-demo.sty Adapt to tagpdf's push/pop mc commands 2021-12-16 18:18:31 +01:00
luamml-legacy-mappings.lua Note potential mismatch in legacy mappings 2023-12-01 17:48:31 +01:00
luamml-lr.lua Generate nested <math> in <mtext> 2021-06-23 18:49:13 +02:00
luamml-patches-amsmath.sty Move {cases} patch to amsmath patches since it patches the amsmath definition 2022-12-04 07:51:36 +01:00
luamml-patches-amstext.sty Adapt to L3PL naming change of \use(_i):n 2022-12-04 07:33:13 +01:00
luamml-patches-array.sty Add labels to saved formulas 2021-06-27 00:50:13 +02:00
luamml-patches-kernel.sty Don't try to use expl3 box functions to access old 2e boxes in patches 2023-12-01 17:52:46 +01:00
luamml-pdf-demo.sty Add luamml-pdf-demo 2021-07-04 03:17:37 +02:00
luamml-structelemwriter.lua Use Attribute NameSpace and add missing test files 2021-10-31 23:12:42 +01:00
luamml-table.lua {multline} support (without labels on the left) 2021-06-23 11:05:45 +02:00
luamml-tex-annotate.lua Patch \text 2021-11-01 06:54:06 +01:00
luamml-tex.lua l3build for Lua testing 2021-10-31 17:18:23 +01:00
luamml-xmlwriter.lua Fix XML writer 2021-06-23 18:48:30 +02:00
luamml.dtx Patch \text 2021-11-01 06:54:06 +01:00
pdfmml-emulate-node.lua Prepare for better pdfTeX support 2021-06-26 19:49:28 +02:00
pdfmml-logreader.lua More reliable pdfTeX annotations 2021-06-27 05:39:42 +02:00
pdfmml-showlists.lua Normalize parser 2021-07-04 03:18:36 +02:00
pdfmml.lua Fix style flag handling 2021-06-28 06:38:55 +02:00
README.md Reference demo package in README 2021-12-17 08:37:21 +01:00
test_structelem.tex Update preambles 2022-12-06 07:21:59 +01:00
test_tex.tex Update preambles 2022-12-06 07:21:59 +01:00

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[tracing]{luamml-demo} (to print MathML to the terminal) or \usepackage[files]{luamml-demo} to generate separate files with MathML output. 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.