On Wed, 1 Jan 2025 at 20:18, Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote:
> Le 26/12/2024 à 13:54, yigiter yuksel a écrit : > > Hello Lyx-Developers, > > > > I noticed that the mathml conversion for bracketed matrices with under/ > > overbraces generates excessive mathml tags which generally causes > > mathjax to generate an error. I attached a sample lyx file to depict the > > situation. (the preamble has the mathjax cdn built in). My lyx version > > is 2.4.1, but I could not see a related changelog in the newer versions. > > That is why I decided to report it. > > Hello, > > Could you be more precise about the extra tags? What is the code you > would expect to obtain? > > The best would be to open a ticket on www.lyx.org/trac/. I can create an > account for you there. We do not want such reports to be lost. > I have studied the current output of LyX 2.5 (which includes many changes from 2.4 regarding extraneous tags, thanks Roberto/lynx!). MathType generates the same thing for all your formulae: \underbrace{2}_{3} <m:math display='block'> <m:semantics> <m:munder> <m:munder> <m:mn>2</m:mn> <m:mo stretchy='true'>︸</m:mo> </m:munder> <m:mn>3</m:mn> </m:munder> </m:annotation> </m:semantics> </m:math> \underbrace{\begin{bmatrix}2\end{bmatrix}}_{3} <m:math display='block'> <m:semantics> <m:munder> <m:munder> <m:mrow> <m:mfenced close="]" open="["> <m:mrow> <m:mtable equalrows='true' equalcolumns='true'> <m:mtr> <m:mtd> <m:mn>2</m:mn> </m:mtd> </m:mtr> </m:mtable></m:mrow> </m:mfenced></m:mrow> <m:mo stretchy='true'>︸</m:mo> </m:munder> <m:mn>3</m:mn> </m:munder> </m:semantics> </m:math> 2=\begin{bmatrix}3 & 4\end{bmatrix}^{t} I think that this problem went away in master (again, thanks to Roberto). Still, MathML underwent quite a bit of refactoring and I don't think it would be safe to backport to 2.4 (especially parts like 9e6b810b).
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel