Created attachment 183433 [details] Rendering comparison between MS Office and LO The equation tool is mainly used to represent mathematical formulas, but other common use cases are physics and chemistry; in this latter case, superscripts plus and minus signs are used to represent ions. When writing an equation in LO containing a plus or a minus as the exponent, the renderer shows an inverted red question mark, and further parsing of the equation is incorrect To reproduce: ppen Libreoffice Math and insert any equation with "+" or "-" as the exponent (e.g. "Cl^-") Expected rendering: attached is a comparison of a problematic equation rendering in Word vs Libreoffice.The formula used in LO Math is the following: r=d[Cl^-] over dt={k[OCl^-][I^-]} over [OH^-]
This is not a bug. Plus and minus are operators in Math; as such, they expect operands. If you need to use them as literals, put the lone signs into quotation marks: r=d[Cl^"-"] over dt={k[OCl^"-"][I^"-"]} over [OH^"-"] Alternatively, provide empty operands: r=d[Cl^-{}] over dt={k[OCl^-{}][I^-{}]} over [OH^-{}] Generally, see this FAQs: https://wiki.documentfoundation.org/Faq/Math/002 https://wiki.documentfoundation.org/Faq/Math/106
Thanks, seems like I should have searched more in the documentation before opening the bug. I discovered this behaviour opening a DOCX file in Libreoffice though, so it might still be useful to file a bug for DOCX import, what do you think? I could open a new bug, or edit and transfer this one to the right category
Attach a DOCX here, and make it an interoperability issue. Thank you!
Edited and moved
Created attachment 183434 [details] Problematic DOCX
Created attachment 183435 [details] Rendering comparison of the equation between MS Office and LO
Repro. My idea would be that we should make sure that the operators introduced in some context (e.g., inside OOXML's <m:sup>...</m:sup>) have all operands defined upon exiting the context, which would require to provide empty operands {} when none had been provided in the XML.
I agree. Many math documents I receive , typewritten with MS Word, include such bad typos and provoke errors when opened in Writer. Adding empty arguments when missing would certainly help.
Still reproducible in 7.6.3.2