# Math formula is empty

Hi there,

I am using Ubuntu 20 with lo 6.4.6.2. While working on a document build under an older lo version I encounter a strange behaviour:

I can view all my embedded math formula, but when I try to open and reddit it, the formula clears. This cannot be recovered.

Any help is appreciated.

Lars Peer

See example file: (most formulas behave like told)

C:\fakepath\FormelLeer.odt

edit retag close merge delete

Edit your question and attach a sample file still exhibiting the problem. To attach, click on edit link, scroll to bottom, type two Enter and use the paperclip tool.

( 2021-04-11 20:15:10 +0200 )edit

Please see edited question above, Thx

( 2021-04-12 07:55:25 +0200 )edit

While working on a document build under an older lo version I encounter a strange behaviour

I see the problem locally, using Version: 7.1.2.2 (x64) / LibreOffice Community Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4 CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL.

But examining the formula data in the document, it has totally wrong XML - starting with wrong root element name.

E.g., /Object 158/content.xml:

<?xml version="1.0" encoding="UTF-8"?>
<matrix-covered xmlns="http://www.w3.org/1998/Math/MathML"
display-details="block">
<sender-city>
...


must have been:

<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML"
display="block">
<semantics>
...


It was generated using a broken generator.

( 2021-04-12 08:12:59 +0200 )edit

I remember we had a problem like this once - a bug made some XML elements "shifted". I suppose that this document can only be recovered by opening the ODT, and manually replacing relevant element names with correct names.

( 2021-04-12 08:17:22 +0200 )edit

I used 4.1.6.2 (I hope this is an old enough version) to display your file. Same issue. The XML shows the description of the formula is empty or contains varying number of {. Writer uses the embedded equivalent picture to display the formula.

( 2021-04-12 08:28:08 +0200 )edit

Sort by » oldest newest most voted

I see the same on y Windows 10 machine with your file.

To retrieve the formulas without retyping all, make a copy of the file and open it with an archive manager. Then go to the /Object xxx folders and open the contents.xml file. At the end, you can copy the formula code (highlighted below) and paste it in a new formula to replace the former one:

To be done for each formula...

It may be worth a bug report to highlight this retro-compatibility issue.

more

1

Unfortunately, this is not a retro-compatibility issue, it is a bug in the version used for generation of the document... It created a file broken for both earlier and later versions.

I wrote "unfortunately", because this way, it's impossible to "fix" the bug in a way that the file would read correctly in current versions. But I seem to remember that that bug was in a "early adopter" version (like X.Y.0 or X.Y.1); yet, I may be mistaken.

( 2021-04-12 08:19:04 +0200 )edit

Thanks for the clarification!

Another point against the use of fresh versions for production work.

( 2021-04-12 08:38:58 +0200 )edit