On Sun, 10 Oct 2021, Jason Ross via ntg-context wrote: > On 10/10/21 3:23 AM, Hans Hagen wrote: > > These are just a couple examples, but in general it's not enough to do > naive string substitution in LaTeX and get valid ConTeXt back, and my > patchwork solutions are starting to smell. You can use pandoc to parse latex and convert it to mathml: $ cat math.tex \documentclass{amsart} \begin{document} \begin{align} a &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, b &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, \\ c &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, d &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, \end{align} \end{document} $ pandoc -f latex -t html --mathml math.tex

a=(123123123),b=(123123123),c=(123123123),d=(123123123),\begin{aligned} a &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, b &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, \\ c &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, d &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix},\end{aligned}

Processing this in context (see attached files), gives a partially working solution. It doesn't look okay, but should be easily fixable. Do note that this is almost same as compiling latex output to PDF because editing presentation mathml by hand is no fun. Aditya