Bug 56467

Summary: Formula exported to svg result in formula loss
Product: LibreOffice Reporter: Heinrichmeyer <fritz.heinrichmeyer>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact: Jorendc <jorendc>
Severity: normal    
Priority: medium CC: bfo.bugmail
Version: 3.6.2.2 release   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=65765
Whiteboard:
i915 platform: i915 features:
Attachments: correctly exported formula with pdf option (workaround)
SVG file with missing formula elements
sample file

Description Heinrichmeyer 2012-10-27 17:22:04 UTC
Created attachment 69158 [details]
correctly exported formula with pdf option (workaround)

i try to insert a formula in a webpage for an epub document. My Idea:

Write formula with writer, copy it to draw, export to svg. It works, but some elements are missing in svg file.

[Workaround]: export to pdf, read with inkscape, store from inkscape, insert inkscape in html file.

Attached is the pdf-file from workaround method, i also will atach the svg file. The workaround has an additional rectangle as my first idea was to avoid the error by providing an additional surrounding box, but it made no difference.
Comment 1 Heinrichmeyer 2012-10-27 17:23:50 UTC
Created attachment 69159 [details]
SVG file with missing formula elements
Comment 2 bfoman 2013-03-04 13:48:55 UTC
(In reply to comment #0)
> Write formula with writer, copy it to draw, export to svg. It works, but
> some elements are missing in svg file.

Could you attach original LibreOffice document to allow others to check on different system/build?

BTW: you can create formulas directly in Draw.
Comment 3 Jorendc 2013-06-27 20:47:06 UTC
I can confirm this using Mac OSX 10.8.4 with LibreOffice Version: 4.1.0.1
Build ID: 1b3956717a60d6ac35b133d7b0a0f5eb55e9155

It is even worse, no formula is exported in SVG. No need to copy from writer or so.

What I did:
* Open Draw
* Insert > Object > Formula
* type a formula like: {bla over bla} = {rho over rho} = sqrt(test)
* File > Export > as SVG

Opening file using Safari, Firefox and Chrome result in an empty page.
I'll attach a sample document.

Kind regards,
Joren
Comment 4 Jorendc 2013-06-27 20:47:43 UTC
Created attachment 81585 [details]
sample file

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.