mathml/README.md

15 lines
988 B
Markdown
Raw Normal View History

2024-08-14 20:10:21 +02:00
# LuaMML: Automated LuaLaTeX math to MathML conversion
2021-05-03 23:20:48 +02:00
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.
2024-08-14 20:10:21 +02:00
## Usage
Add `\usepackage[tracing]{luamml-demo}` to print MathML to the terminal or `\usepackage[files]{luamml-demo}` to generate separate files with MathML output.
Alternatively it can be used with latex-lab to automatically integrate with tagging infrastucture.
2021-05-03 23:20:48 +02:00
2024-08-14 20:10:21 +02:00
<!-- Also see a [`tagpdf` experiment using this to tag PDF formulas](https://github.com/u-fischer/tagpdf/blob/develop/experiments/exp-mathml-lua.tex). -->
2021-06-01 23:36:41 +02:00
2024-08-14 20:10:21 +02:00
<!-- 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. -->