Professional Documents
Culture Documents
I need to store equations in a text file, in a source format that can be converted to
something that can be rendered (e.g. mathML). I like the format used in OpenOffice. I
don't want to use TeX, or at least I don't want to pull in all the baggage of interpreting
TeX. What format does OpenOffice Equation Editor use, and are there 3rd party
command-line converters that will process this format? I don't want to have to run
OpenOffice every time I need to render/convert my equations.
Related Question
Best Answer
What format does OpenOffice Equation Editor use?
LibreOffice Math (and OpenOffice Math) both use MathML to represent mathematical
markup.
Just save any equation using Math and simply unpack it (it is ZIP packed). For example if
you create famous [E=mc²] and save it, then in content.xml inside your .odt file you will
find something like this:
As you see, Math stores equation in own format annotation section, but you can use
plain MathML as input format.
I believe, you can use Python API for Libre (Open) Office.
You can put your own equation in annotation (in StarMath's format). Looks like Math
builds equation based on how it is represented in annotation and the rest of MathML file
is just for representation/compatibility.
If MathML doesn't look like made from StartMath it will propose to "repair" the file and it
will work just fine after this.
https://itectec.com/superuser/math-equation-formats/ 1/1