# Export formulas to mathml ?

Luc.Tartier
3 1

Is there somebody working on exporting documents to html and keep working formulas ?

The conversion to .gif images is a loss of information, uselessly makes a lot of small files that look bad on the web.

One must export again to make any changes...

Why isn't html export made to mathml code? Has anyone written a macro? Will future version of libreoffice export that way?

delete close retag edit

Sort by » oldest newest most voted

David Carlisle
26

I just tried Libre Office Version 3.6.1.2 (Build ID: e29a214) and if you export a document using export/ xhtml from the file menu, formulae are exported as MathML.

Luc.Tartier
3 1

Thank you very much, BUT it doesn't work!!! I tried some very simple formulae (using Dmaths that I recommend): %alpha +{5}=sqrt{x+{1}}

left lbrace stack{{ x+{1}={2} } # { y+x={3} }} right none

S lsub{32}lsup{16}rsup{{2}"-"}

but it works only on firefox but on chrome and on IE it looks like that:

The mathml isn't at all interpreted and a space there is a space for an image that doesn't show. I had a look on the .html file generated and found and embedded image via data URL scheme. The problem might be that the image doesn't have a type like png in <img src="data:image/png;base64,.... but instead you get a star like in <img src="data:image/*;base64,...

I tried gif, png, jpg, nothing worked. Anyway, I want mathml to work so that the html file can be modified and not an image (embedded or not). That image is only making the html code longer.

My question now is: is it possible to get only mathml and to have it work on chrome and IE? How can I get in touch with the developing team?

## Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!