We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
0

Math formula is empty

asked 2021-04-11 20:05:58 +0200

lpfinke gravatar image

updated 2021-04-12 07:54:11 +0200

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 flag offensive close merge delete

Comments

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.

Please do not use Add Answer but edit your original question to enhance the details of your question (answers are reserved for solutions to a problem on this Q&A site).

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

Please see edited question above, Thx

lpfinke gravatar imagelpfinke ( 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.

Mike Kaganski gravatar imageMike Kaganski ( 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.

Mike Kaganski gravatar imageMike Kaganski ( 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.

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

1 Answer

Sort by » oldest newest most voted
2

answered 2021-04-12 08:15:39 +0200

updated 2021-04-12 08:17:10 +0200

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:

C:\fakepath\Formula.png

To be done for each formula...

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

To show the community your question has been answered, please tag the best answer (), and/or vote for any helpful answer. Else, please edit your question or use comments to add information (answers are for solutions only).

edit flag offensive delete link more

Comments

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.

Mike Kaganski gravatar imageMike Kaganski ( 2021-04-12 08:19:04 +0200 )edit

Thanks for the clarification!

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

Hagar Delest gravatar imageHagar Delest ( 2021-04-12 08:38:58 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-04-11 20:05:58 +0200

Seen: 50 times

Last updated: Apr 12