Open rgieseke opened 3 years ago
Maybe it's a possible approach for Stencila to include both representations as in the Pandoc output?
Yes, this seems the most appropriate. And would not require any schema changes: in the jats
codec. We are already encoding a <tex-math>
element if the mathLanguage
is tex
.
So this issue would just require us to always encode both a <tex-math>
and a <mml:math>
(via conversion from the source to the other)
Following up from #872
I think there are different representations to consider. In many workflows the MathML comes from TeX. This might be worth keeping around as the final rendering might happen with KaTeX/MathJax from the TeX (even though they might also use/create MathML).
LaTeXML includes alttext as an attribute with the original TeX like this:
Pandoc creates Jats-XML and includes a separate tex-math element:
In the JATS tag browser
alt-text
is described like this:https://jats.nlm.nih.gov/publishing/tag-library/1.2/element/alt-text.html
Maybe it's a possible approach for Stencila to include both representations as in the Pandoc output? While TeX is probably actually quite readable for many people i guess
alt-text
is probably not fully the right place.In general i think there is also a need for markup free representations of elements with math, e.g. in titles or abstracts which are used on the web where math rendering is not done.