Re: MathML in HTML export

2025-07-13 Thread Ihor Radchenko
"Jacob S. Gordon" writes: >> I think that I need to ask an important question here: what is your >> goal? Is it just a curiosity exercise or do you want to improve >> MathML support in Org? > > Fair question from the tone of my message! My goal is to improve > MathML support in Org. And to make t

Re: MathML in HTML export

2025-07-12 Thread Jacob S. Gordon
Hey Max, On 2025-07-12 06:55, Max Nikulin wrote: > Jacob, do you know anything about mathtoweb? Org manual and > docscrings recommend it, but I am unsure if it is still proper > suggestion. I managed to run it and the output looked reasonable, so it could still be viable. On the other hand, it ha

Re: MathML in HTML export

2025-07-12 Thread Jacob S. Gordon
Hey Ihor, On 2025-07-12 13:40, Ihor Radchenko wrote: > What would be the benefit of MathML if MathJax is _also_ loaded? I don’t think there’s much benefit of having MathML+MathJax *over* LaTeX+MathJax, as the results should be very close. Unconditionally loading MathJax would just put the MathML

Re: MathML in HTML export

2025-07-12 Thread Ihor Radchenko
"Jacob S. Gordon" writes: > Before going into details, why might you prefer `MathML' for equations > in `HTML'? > > ⁃ It “degrades” gracefully compared to `LaTeX' markup: > ⁃ in the absence of `MathJax', major browsers [support] `MathML' > (`MathML Core' at least), This is indeed a benefit

Re: MathML in HTML export

2025-07-12 Thread Max Nikulin
On 12/07/2025 04:40, Jacob S. Gordon wrote: On 2025-07-10, Max Nikulin wrote: I know about MathML almost nothing, so it is hard for me to reason if it is really necessary and what issues its absence may cause. Me neither. Based on what I understand from the spec, it can affect line breaking an

Re: MathML in HTML export

2025-07-11 Thread Jacob S. Gordon
Hey Max, On 2025-07-10, Max Nikulin wrote: > I know about MathML almost nothing, so it is hard for me to reason > if it is really necessary and what issues its absence may cause. Me neither. Based on what I understand from the spec, it can affect line breaking and semantics. If I get a chance I’l

Re: MathML in HTML export

2025-07-10 Thread Max Nikulin
On 10/07/2025 09:10, Jacob S. Gordon wrote: Good to know! I tried with all the latest versions, and I can confirm only `MathJaX` and `tex4ht` wrapped the nested subscript in an `` (excessively in the latter). Has this been reported upstream anywhere? I did not try to find existing bugs. I kno

Re: MathML in HTML export

2025-07-09 Thread Jacob S. Gordon
Hey Max, On 2025-07-09 07:23, Max Nikulin wrote: > Just a warning concerning corner cases: try > > $a_{b_c}$ > > Neither LaTeXML, nor katex, nor pandoc add "", see > Fraga, Eric. Re: MathML and ODT export: inline possible? > Thu, 18 Apr 2024 15:51:44 +. >

Re: MathML in HTML export

2025-07-09 Thread Max Nikulin
On 09/07/2025 12:09, Jacob S. Gordon wrote: Before going into details, why might you prefer `MathML' for equations in `HTML'? Just a warning concerning corner cases: try $a_{b_c}$ Neither LaTeXML, nor katex, nor pandoc add "", see Fraga, Eric. Re: MathML and ODT export: inline possible? Th

MathML in HTML export

2025-07-08 Thread Jacob S. Gordon
Hey everyone, At the [last meetup] on [2025-06-11 Wed] we discussed Karthik & Timothy’s new `LaTeX' preview feature ([repository]). One enhancement is an adjusted baseline of formulas rendered and embedded as `SVG' in `HTML' export, which makes it a viable `JavaScript'-free option. I asked about e