[BlindMath] Fwd: Mathpix - found solution

Rich Caloggero rjc at mit.edu
Wed Jul 12 17:49:04 UTC 2023


In my previous message, I stated that the cli tool (node.js app) that 
mathpix publishes does not properly generate mathML output when it is 
instructed to produce an HTML file from a pdf; all output is svg, and 
there is no way to change this via the cli app.

At the time, I also had similar issue with the webapp, but I noticed 
when looking at the markup that many output formats were included, but 
were not being exposed to NVDA+Mathcat.

So, I did two things which seems to have mitigated this problem. Here is 
how to get the webapp to export mathML from a pdf.


1. upload your pdf to the webapp. It should then show up in the list of 
files.
2. Click / activate that file from the list.
3. near the end of the page there is an "export pdf"; activate that.
4. Once activated, there will be some choices of export formats further 
down the page; choose HTML.
5. Open the HTML file in a text editor, and add the following line just 
before the style element, save and open the file in your browser.

<script id="MathJax-script" async 
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-chtml.js"></script>
You should now have a file which loads mathjax from the cdn and, 
assuming you have NVDA+Mathcat, or jaws, or similar math reading 
capability, you should be able to both read the math inline and browse 
expressions. THe math expressions are focusable via tab, and you can 
configure things to your liking via the mathjax menu by focusing an 
expression and hitting the applications key, or equivalent action.
See the attached...

-- HTH
Rich Caloggero
Accessibility Specialist
Disability and Access Services
Massachusetts Institute of Technology




More information about the BlindMath mailing list