• Please use real names.

    Greetings to all who have registered to OPF and those guests taking a look around. Please use real names. Registrations with fictitious names will not be processed. REAL NAMES ONLY will be processed

    Firstname Lastname

    Register

    We are a courteous and supportive community. No need to hide behind an alia. If you have a genuine need for privacy/secrecy then let me know!
  • Welcome to the new site. Here's a thread about the update where you can post your feedback, ask questions or spot those nasty bugs!

Mathematical equations in OPF posts

Doug Kerr

Well-known member
This equation:
1785078416030.png

is encoded in the LibreOffice equation editor input pane as:

nroot{3}{27}​

The basic LaTeX encoding for that equation is:

\sqrt[3]{27}​

The basic MathML encoding for that equation is:
[indent[<mroot><mn>27</mn><mn>3</mn></mroot>​

Best regards,

Doug
 
Last edited:

Doug Kerr

Well-known member
This equation:

1785080480965.png

is encoded in the input pane of LibreOffice as:

m = {y} over {x}​

(The spaces are gratuitous.)

The basic LaLeX encoding of that equation is:

{m}{=}\frac{y}{x}​

The basic MathML encoding is:

<mi>m</mi><mo>=</mo><mfrac><mi>y</mi><mi>x</mi>/mfrac>

Best regards,

Doug
 

Ted Cousins

Member
This equation:
View attachment 14296
is encoded in the LibreOffice equation editor as:

nroot{3}{27}​

The basic LaTeX encoding for that equation is:

\sqrt[3]{27}​

The basic MathML encoding for that equation is:
<mroot><mn>27</mn><mn>3</mn></mroot>​

Discovered today that in Open Office the Equation Editor can be opened by itself and used to save a formula as a standalone file of type .mml

Click on this:


or click on it and view the source code somehow ...​
 
Last edited:

Doug Kerr

Well-known member
Hi, Ted,

Some more poking around suggest that the Equation Editor in Open Office is almost (if not exactly) the same as the one in LibreOffice, and the "markup" language used to enter equations is also essentially the same as for LibreOffice.

In any case, if in fact an Open Office Writer document can be saved as HTML, this looks like a good route to generate MathML encoding for an equation.

I think.

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,
Discovered today that in Open Office the Equation Editor can be opened by itself and used to save a formula as a standalone file of type .mml​
Neat-O!
Click on this:​
or click on it and view the source code somehow ...​
Yes. Just about what I would expect.

That is good!

Your sample equation is just like the ISO 2720 exposure equation except upside down!

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,

It seems that the LibreOffice Equation module will not save a composed equation as an *.mml file.

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,

It turns out that if in LibreOffice we have an equation in a Writer document, we can right click on it, select Save Copy as, and choose to save the equation as a MathML 2.0 file (*.mml).

Best regards,

Doug
 

Doug Kerr

Well-known member
At present the only realistic way I have to generate LaTeX code from a "WYSIWYG" equation is MathMagic Personal, which I presently have running on a "free trial" basis.

I have not yet decided to buy this version in its "real" form.

I have no idea what features it will lose when it "ages out". Quite possibly the ability to output a LaTeX file. By then I may have no interest in LaTeX coding for equations!

Best regards,

Doug
 

Ted Cousins

Member
At present the only realistic way I have to generate LaTeX code from a "WYSIWYG" equation is MathMagic Personal, which I presently have running on a "free trial" basis.

I have not yet decided to buy this version in its "real" form.

I have no idea what features it will lose when it "ages out". Quite possibly the ability to output a LaTeX file. By then I may have no interest in LaTeX coding for equations!

Best regards,

Doug
Good luck with that, Doug,

best,

Ted.
 

Ted Cousins

Member
Good luck with that, Doug,

best,

Ted.

If you're interested in my version of Libre Office which can 'save as' mathML xxxx.mml it's free here:


Google sez:

LibreOffice Math: Forked from OpenOffice, LibreOffice is actively maintained and highly secure. Its formula editor retains backward compatibility, allowing it to read old StarMath markup and files smoothly.

best,

Ted.
 
Last edited:

Doug Kerr

Well-known member
Hi, Ted,
If you're interested in my version of Libre Office which can 'save as' mathML xxxx.mml it's free here:

Thanks so much. I might just do that.

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,

I was somehow confused. My LibreOffice Math module will of itself save a composed equation as MathML.

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,

My only real need for LaTeX code at present is that to include equations in email messages sent with Thunderbird (not as pictures) I need to "enter" the equation in LaTeX. (They end up in the messages as MathML code.)

Most equations I have occasion to include in email messages are simple enough that I can compose them in LaTeX "by hand".

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,
Interesting element in mine:

Code:
<annotation encoding="StarMath 5.0">( t over N^2 ) = {L times S} over K
</annotation>
This is to include in the "compiled" code the "source code" that was originally input to the generating application.

If the entire HTML file is opened in the originating application, and there is this "source code" annotation item, the application may choose to reconstitute the equation from that rather than by parsing the MathML code proper.

I think.

Best regards,

Doug
 

Ted Cousins

Member
Hi, Ted,

This is to include in the "compiled" code the "source code" that was originally input to the generating application.

If the entire HTML file is opened in the originating application, and there is this "source code" annotation item, the application may choose to reconstitute the equation from that rather than by parsing the MathML code proper.

I think.

Thinking of moving to LibreOffice:

Google AI said:
Both suites handle math formulas through a dedicated equation editor tool, but LibreOffice Math includes substantial syntax upgrades and modern font support that are entirely missing from Apache OpenOffice Math.

best,

Ted.
 

Doug Kerr

Well-known member
Hi, Ted,

Ah, yes - StarMath is seemingly the name of the markup language used to enter equations into the LibreOffice equation editor (and seemingly in the Open Office equation editor as well).

Best regards,

Doug
 

Ted Cousins

Member
Hi, Ted,

Ah, yes - StarMath is seemingly the name of the markup language used to enter equations into the LibreOffice equation editor (and seemingly in the Open Office equation editor as well).
Much older than Open Office ...
Google AI said:
StarOffice: A commercial office suite developed by Star Division starting in 1985, which Sun Microsystems bought in 1999
 

Ted Cousins

Member
Loaded LibreOffice yesterday. The earlier Apache Open Office is gone from my system.

image:
MML LibreOffice Jpeg.jpg


Formula Input: H sub mean = {pi over 4 times 0.828 times {L sub scene} times {t over {N ^ 2}}}

I like this input method ... but what happened to "pi" ... no symbol ... found it ... should be "H sub mean = {%ipi over ..."

best,

Ted.
 
Last edited:

Doug Kerr

Well-known member
Hi, Ted,

There is, by the way, an extension for LibreOffice that will make it able to export equations as LaTeX (import too probably). Its name is "Writer2LaTeX".

I have not yet been able to make it work as apparently I need to have some Java runtime stuff installed in my system.

I will probably pursue that farther.

Best regards,

Doug
 

Doug Kerr

Well-known member
In the interest of rigor, I feel obligated to mention that the mathematical constructs that I have uniformly called equations may in fact be equations, formulas, or expressions.

Unless somebody wants me to, I will not trouble the reader with a discussion of the difference among these.

In the interest of conciseness, here I will generally continue to speak of all these as equations.

Best regards,

Doug
 
Last edited:

Doug Kerr

Well-known member
Hi, Ted,

You may already have this, but this is a link to a nice guide to the LibreOffice Math functionality (as of version 7.2):


I note that it consistently refers to the constructs involved as formulas. Here is some language from the beginning:

Who is this book for?

LibreOffice Math is a formula (equation) editor that is an integral part of LibreOffice. Anyone who
wants to learn how to insert formulas and equations using Math will find this guide valuable.​


Best regards,

Doug
 

Ted Cousins

Member
Hi, Ted,

You may already have this, but this is a link to a nice guide to the LibreOffice Math functionality (as of version 7.2):


I note that it consistently refers to the constructs involved as formulas. Here is some language from the beginning:

Who is this book for?
LibreOffice Math is a formula (equation) editor that is an integral part of LibreOffice. Anyone who​
wants to learn how to insert formulas and equations using Math will find this guide valuable.​

Thanks Doug,

Looks seriously comprehensive!

My version is 26.2, so I'll look for that initially ...

best,

Ted.
 
Last edited:

Doug Kerr

Well-known member
Hi, Ted,

Ah, so it is Mac at your place.

******

After some of the usual difficulties, I have successfully installed the Writer2LaTex extension in my LibreOffice.

I have successfully generated various flavors of LaTex files from several test ODT files that only include an equation.

Supposedly that extension also should allow me to enter an equation in LaTex code, but I have not yet figgered how that works.

Best regards,

Doug
 

Doug Kerr

Well-known member
Hi, Ted,

It now appears (from several sources) that the Writer2LaTeX extension to LibreOffice will not allow Writer to receive descriptions of equations in LaTex code form. It seems only able to enable Writer to export in LaTeX code form.

I think.

But that ability will be very useful to me if I wish to include a complicated equation in an email message generated with Thunderbird. I can compose the equation on a quasi-WYSIWYG basis in LibreOffice, then export it as LaTex and move that code into the LaTeX input window in Thunderbird.

Best regards,

Doug
 
Top