Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-14 Thread Jason Ross via ntg-context
On 10/12/21 8:31 PM, Aditya Mahajan wrote: This is an issue with ConTeXt, but most of these issues are minor are easy to fix. Just send minimal examples showing the incorrect rendering. Aditya An example is attached. MathML generated with pandoc -f latex -t html --mathml

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-12 Thread Aditya Mahajan via ntg-context
On Tue, 12 Oct 2021, Jason Ross wrote: > > > On 10/11/21 4:02 PM, Aditya Mahajan wrote: > > You can use pandoc to parse latex and convert it to mathml: > > > > Processing this in context (see attached files), gives a partially working > > solution. It doesn't look okay, but should be easily

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-12 Thread Jason Ross via ntg-context
On 10/11/21 4:02 PM, Aditya Mahajan wrote: You can use pandoc to parse latex and convert it to mathml: 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

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-11 Thread Aditya Mahajan via ntg-context
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

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Jason Ross via ntg-context
On 10/10/21 3:23 AM, Hans Hagen wrote: what do you mean with 'quite different' Hans Hi Hans, My current stumbling block is dealing with the `align` environment. I replace `\begin{align}/\end{align}` with `\startmathalignment/\stopmathalignment`, and replace all `&` characters with `\NC` and

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Hans Hagen via ntg-context
On 10/10/2021 5:45 AM, Jason Ross via ntg-context wrote: Hello, I'm trying to provide more support for LaTeX math for an Org Mode exporter for ConTeXt. LaTeX is the de facto standard for mathematics in Org Mode. However, the syntax is quite different between LaTeX and ConTeXt. I have a few

[NTG-context] Converting LaTeX math to ConTeXt

2021-10-09 Thread Jason Ross via ntg-context
Hello, I'm trying to provide more support for LaTeX math for an Org Mode exporter for ConTeXt. LaTeX is the de facto standard for mathematics in Org Mode. However, the syntax is quite different between LaTeX and ConTeXt. I have a few ideas, but none that I'm happy about. 1. Export LaTeX to