Does Writer use Mathematical Markup Language (MathML) to represent equations?

I did NOT ask how to export formulas. I tried to import the above-pictured formula which contains correct MathML and it neither imports from a file nor the clipboard. The functionality you describe does not work.
What does importing from a file have to do with a saved file? Why would I want to save a file? You mean save a file from the program I’m exporting from?
I don’t know what kludges you are suggesting but I don’t use kludges in my engineering.
I am well aware of how the Libre Office Math editor works - it can save as ODF or MML file types. But a person doing math in another application doesn’t first do the math in the application he wants to import into - correct?
I don’t know who did the Attributes and Relations modules, but the vectors are drawn too close to the underlying variables and parts of the vectors become obfuscated. It takes a long time to write one vector equation. There are bugs. I should also add that the bug occurs when defining a vector NEXT to another variable.

I can see from this exported equation what the format is so I guess I need to try to change all of my imported formulas to that but I had thought that the Import process would do that, that’s all. And the bug of the adjacent variable might be a show-stopper unless I can figure a work-around. I’ll experiment for another day.
TestOfMML
Another issue is how it handles multiple formulas - I can’t keep going in the UI of the Math editor. It stops after 1 formula. I have to hit new formula.
The important thing I had wanted to test was can Libre Office represent the formulas - if it can, I can edit my odt files and perhaps use the files I had wanted to include. I can see that it CAN render the formulas and vectors so I will have to hand edit each formula and see if I can finish the document I have.
I now realize that the import and editing is HIGHLY sensitive to the font and perhaps the version of Libre Office. I get different results between LO Writer 5.2.7.2 and LO Writer 6.2.8.2. I will be forced to try it on 6.2.8.2 where I have Liberation font and simply a later version. This might cause problems but I’m willing to try to edit the document on another machine.
It’s a major bug: if you create an empty writer document, the formula displays with a nice-looking vector over the variables. But if you insert it into a document with other text surrounding it, the vectors get chopped into ugly, thin arrows. It’s either a bug or some very particular font issue. It’s a constant wrestling match to use the technique. And why is the GUI for editing the fonts in the equation disabled? But after I scroll some, the problem seems to go away so maybe there is hope? It’s just that adjacent variable issue in the Math Writer now. I’ll test it out again. Maybe I can find a solution. The problem is that the equations cannot be entered in the fashion that I want - with variables and operators near the vectors. As soon as you put more than one variable or operator near a vector, it doesn’t render properly. It’s a bug or design issue.

The equation is cropped.
EquationCropped
Below I will show what I was forced to do:
TestOfMML2
It’s too tedious to edit all of the equations and change them.
I have posted a bug to Bugzilla. I cannot have documents with errors in them.

The font I’m using which is Deja Vu Serif does NOT support Math apparently - I looked in the CTAN documentation where it said that.

Unless I’m wrong, Math, the formula editor, needs OpenSymbols font. Is it installed?

1 Like

I’ll check, I believe it IS installed. Usually, Computer Modern is a good math font. I’ll try once again, but it’s getting really tiring to try to get the vectors to display properly. And why limit it to only one font, like OpenSymbols? I’m willing to try but why the strange dialogs in the Math editor for setting the font differently for variables, functions, …, . Awfully cryptic not to just be able to highlight the math text and change it’s font as if it was regular text. The interface is hard to understand.

I tried OpenSymbol as the font - it doesn’t display anything at all. The font doesn’t even work.
I don’t see anything in the documentation that mentions a particular font. They use markup to do the equations, the font matters, but it should at least display in any font. The arrows on vectors are cut off if there are variables or operators next to the variable with the vector over it. It seems like a bug. The font might be part of the problem but I have to reinstall OpenSymbol, not sure why it doesn’t work.

If you mean OpenSymbol font, it doesn’t have any characters, it would be impossible to use it.

There is installed one font only what is similar to the name OpenSymbol on my Windows 10 x64; the name is : “opens___.ttf” And the Math editor of the LO works fine.

https://downloads.sourceforge.net/portableapps/LibreOfficePortable_7.4.3_fonts.zip

Fonts for LibreOffice are listed on this page, Fonts - The Document Foundation Wiki

If font is damaged you might be able to extract a copy from the installation file to replace it.

That set of fonts downloads to a Linux machine but not to Windows. On Linux, it becomes a 29MB zip file, on Windows, it becomes a 0 byted file for some reason so I guess I have to transfer the file via my Mediafire or Google Drive. I don’t know why the download fails - maybe it fails to detect the operating system. I even logged into my account on SourceForge, still no go. I will test it out once I get the fonts into my C:\Windows\fonts directory.

I have that font on my Windows machines by default. But the vector equations I have shown above do not display properly in any font unless the equation is only one variable where the vector arrow is drawn. I reported a bug many days ago in Bugzilla - it needs to be fixed or I cannot use Writer and will have to use Tex. And editing the equation doesn’t help.
I show clearly in the pictures above what the problem is with the software.

It works for me on my Windows 10 x64. The size of the zip file is 29 MiB and it contains the “opens___.ttf” font.

Which bug report? Give a reference to it in the form tdf#bug_report_number. This will help us to understand the context.
If you feel at ease with TEX, use it. Math is good enough for the rest of us not academics.

Can you explain with common plain words what is not as expected? Is the arrow not wide enough? Is it the integration of the formula in the Writer document itself? This can be fixed quite easily because all formulas are frame-styled Formula. Perhaps the geometric constraints on the frame are too stringent.

Over all, I feel that you’re struggling in a wrong direction. If I understand right, you converted LATEX equations into MathML and fed the result to Math. Can you show what Math understood? I.e. a view of the editor window with one of your equations loaded. I am sure that the formula description is different from MathML and perhaps some primitives have been badly translated. But, once again, explain with clear words what you expect and what you unfortunately get. We are not in your head and we can’t even begin to guess what you what to do.

I removed the jpg of the bug I had posted on Bugzilla. The conversation is at the link below:

https://bugs.documentfoundation.org/show_bug.cgi?id=152621

DON’T DO THAT! You already have difficulty to synthesise your thought and multiply short usually not useful comments. Pasting an image is wrong! It wastes space and leads to the TL;DR syndrome. You were told to encode the bug report as tdf#152621 which allows to browse it in various ways. In additions it “costs” only 10 characters instead of the multi-K bytes of your image. Please follow the rules. It is difficult to understand your problem, don’t add up with unorganised complaints. We are willing to help but there are limits.

@vsfoote rightly requests the source of your expression to be able to diagnose the issue. You attached only a jpeg which is a “dead” and frozen format from which nothing can be deduced.

My original Latex equations (yes, from Latex) have been transformed by various processes into rightarrows. The process is as follows:

  1. latex filename.tex
  2. bibtex filename.aux
  3. mk4ht oolatex filename.tex

I then handpick my way through the document and redo the incorrect equations using Math of LibreOffice or within Writer. I have not experimented with the frame - I would have to investigate how to modify the frame as I am unable to resize it or drag it. It’s another issue that needs to be dealt with. No, I am not translating the tex into LibreOffice other than with the above-mentioned batch processes which lead me to an odt file from the original tex file. I have another batch process which leaves me with a beautiful HTML file that I do a small edit to and it’s perfect, summarized below (I haven’t had much luck yet though with the pandoc part so I skip it, but I’m just trying to show you the original author’s intent here):

  1. Use htlatex to produce HTML code, with the following options:

htlatex document.tex “xhtml,mathml” " -cunihtf -utf8"

  1. Convert the html with pandoc:

pandoc -s document.html -o document.docx

Does Writer use Mathematical Markup Language (MathML) to represent equations?

No, it converts to internal DOM and saved odf-Standard

Wanderer has answered the question, it appears that Writer is not using the MathML 3 or 4 markup engine to process math and vectors. It might be nice if it did, perhaps that can be added as a feature. I am the one who needs to know this so I should do some of the research myself and not rely on others as it’s just laziness.

Thank you to Ivan Oseledets, I will definitely try the import feature out!