# Mathtype Libreoffice

- ChemType is a flavour of MathType Web designed to help you work with chemical notation. A personalized toolbar with the common chemical symbols but also a different user experience adapted to chemical notation needs. Look for the ChemType icon. Add-in capabilities.
- 15 best mathtype alternatives for Windows, Mac, Linux, iPhone, Android and more. Mathtype alternative list source: dessci.com.

MathType is a powerful interactive equation editor for Windows and Macintosh that lets you create mathematical notation for word processing, web pages, desktop publishing, presentations, elearning, and for TeX, LaTeX, and MathML documents. Application & Website Compatibility Database.

*, allowing you to insert equations into documents, presentations, and spreadsheets. See below for LibreOffice/OpenOffice for Mac.*

**for Windows**## Add an equation to LibreOffice

These general techniques will work for LibreOffice Writer, Impress, and Calc. Where there are differences or special considerations for one of these applications, these are covered in the separate section below for the particular application.

- Choose
**Further objects**, then click**OK**. - In the Insert Object dialog, choose
**MathType 7.0 Equation**, then click**OK**. - MathType will open up in a separate window. Create your equation the way you want it to appear in your document, close the MathType window, and your equation will appear in LibreOffice.
- You can also copy & paste or drag & drop an equation from an open MathType window, however,
because the equation will be inserted as a picture, not an 'object'. It will look OK, but**we do not recommend using copy & paste or drag & drop**.**you cannot edit it** - Using the mouse, move the equation near where you want it. You can then make finer adjustments by using the keyboard's arrow keys while it's still selected. If it 'jumps around' too much, hold down the Alt key as you press the appropriate arrow key to move it smoothly into position.

### Edit equations in LibreOffice

Since OLE remembers MathType is what you used to create the equation, double-clicking it opens the equation in MathType for editing. After you have finished your changes, closing the window will update the equation in LibreOffice.

## Special considerations: Writer

### Moving the equation into position

- Writer's default is for the equation you inserted to be 'floating', with 'Optimal Page Wrap' text wrapping. This means you can move the equation anywhere you want on the page, except you cannot place it in the middle of a sentence. Text will wrap left or right (but not both), as well as above and below.
- To convert an equation to 'inline', right-click the equation — with or without selecting it first — and choose
**Anchor > As Character**from the contextual menu.) - You can move the equation by using the keyboard's arrow keys while it's still selected. Once it gets close to where you want it, hold down the Alt key as you press the appropriate arrow key to move it smoothly into position.

### Edit an equation in Writer

Editing an equation is as simple as double-clicking it. After you make your edits, close the MathType window and your revised equation will appear in your document. ** Remember**, as stated above, if you use copy & paste or drag & drop to get your equations from MathType into LibreOffice, you will not be able to edit them. If you find an error, you'll need to replace the old equation with a new one.

**Note:**You

**copy a MathType equation from a LibreOffice document and paste it into another place in the document. Equations placed in this manner will be editable, but be advised this may cause problems later on if the 'OLE' information (i.e., the information used by LibreOffice to know the equation was created by MathType) gets corrupted.**

*can*### Saving the LibreOffice document in Word docx format

If you choose to save the document as a Word document, there are some things you should know:

- Equations that were inserted as 'objects' as described above can be edited in the normal way in Word, i.e., by double-clicking them.
- Equation objects will not respond kindly to the use of most commands on the MathType tab in Word, such as Format Equations or Convert Equations.
*We do not recommend using these commands on documents created in LibreOffice.* - If there are equations you inserted as LibreOffice Formulas in your document, they will be OMML equations (i.e., Word equations) when you save as .docx and open the document in Word. MathType can edit these equations, but only if you use the Convert Equations command first, converting them into MathType objects. If you do this, we recommend selecting the part of the document containing the equations (i.e., dragging the mouse across it or otherwise selecting the text and equations), and using the
*Current selection*Range in the Convert Equations dialog.

## Special considerations: Impress

### Inline equations

There's no such thing as a true inline equation in Impress. You must insert equations as described above, and move it into position, making enough room for text after the equation by manually inserting spaces.

### Sizing equations

MathType maintains a connection with Impress when you add equations as we recommended, but that connection doesn't allow MathType to know what font or what size font you're using in Impress. We *do not recommend* sizing the equation by dragging a corner. Instead, please size the equation correctly by letting MathType set the size for you means of the *Define Sizes dialog* in MathType. There are at least 2 advantages of setting the size this way. One, you set it once and forget it (until you need a different size, such as using MathType in Writer). If you drag a corner, you have to do it for every equation. Two, if you drag a corner, no two equations are exactly the same size nor are they the same size as the text of your slide. By using *Define Sizes*, you will have consistently-sized equations.

## Special considerations: Calc

The main consideration in using MathType with Calc is the same as using it with any spreadsheet: *MathType will not produce formulas you can compute with*. They are labels only.

Our recommendation for inserting MathType equations into Calc is no different from what we stated above — we recommend not using copy & paste or drag & drop.

**If you do use copy & paste,** the equation will, as described above, look fine but will be a non-editable picture.

**If you use drag & drop,** the equation will not only be a non-editable picture, but it will be distorted:

Further, if you insert an equation with drag & drop, then try to edit it by double-clicking, you'll get an error:

## LibreOffice for Mac

For all practical purposes, ** MathType does not work with LibreOffice for Mac**. (Actually it's more correct to say

*LibreOffice for Mac does not allow MathType to work with it*, but the end result is the same — the 2 applications don't work together.)

- You cannot insert MathType equations into LibreOffice for Mac in the 'normal' way (that is, the way described above), because there is no option to insert 'Further OLE objects' as there is in the Windows version.
- You
*can*insert equations by copying & pasting or dragging & dropping them from an open MathType window, but if you do, not only are they non-editable pictures, but they don't look any good: - If you have a LibreOffice document that was created on Windows and you open it on a Mac, you will be able to view the equations but not edit them. If you try to edit them by double-clicking, you'll get an error:

In a previous post I mentioned some general aspects oftechnical writing. In this one, I would like to talk about includingmathematical expressions in technical documents.

There are two main ways to include math in your documents:

using text; and

using a graphic interface.

Using a graphic interface, such as the equation editor inLibreOffice Writer or MS Word, orMathType is convenient.You don't need to memorize anything and you can look at your expressionswhile creating them. Nevertheless, it can be slow compared to using textinput — once you are comfortable with the syntax.

There are two main flavors of equations used over the internet:

### Mathtype Libreoffice

MathML is aW3C standardfor equations and it is included in HTML5, so it would work in allmodern browsers. The problem with it is that it is not designed to bewritten by hand. So one can use it if have some automatic way of generatingthe code.

LaTeXis my suggested way to write equations. The learning curve might be alittle bit steep at the beginning but it pays off.

One tool that helps with equations is MathPix Snipthat automatically generates LaTeX or MathML code from an image, even ahandwritten one. Another tool that is really useful isDetexify that let youdraw a symbol and gives you the LaTeX syntax for it.

In the remaining of the posts I will show my suggestions for workingwith equations in LibreOffice and MS Word. If you are using LaTeX orMarkDown/ReStructuredText for your documents you are already usingLaTeX for your equations.

## LibreOffice

LibreOffice has its own math editor with its own syntax and it worksfine for small expressions, but it gets complicated for large equations orlong algebraic manipulations. For LibreOffice I would suggest to useTexMaths, it is simple touse and works for the word processor (Writer) and presentations (Impress).I suppose it also works for spreadsheets (Calc), but I don't rememberusing equations in one.

## MS Office

MS Office has its own math editor as well, it works fine and is easy to use.Nevertheless, the same problem appears when you want long expressions.One option is to directly useLaTeX in Officebut I prefer to use IguanaTex.It is a complement that allows to input equations similarly to TexMaths inLibreOffice.

You could also directly paste MathML equations into MS Word (>2013 and Windows).

## Use a SymPy

Indepent of the tool that you use to write your documents I strongly suggestto use a CAS(Computer Algebra System), such as Mathematica or SymPy. These programshave automatic generation of LaTeX and MathML from expression and that canease the process a lot.

Let's check an example. Suppose that we have the function

and we want to compute its second derivative

The following code gives us the LaTex code

that is

That corresponds to the code that I used above to render the equation

If, we wanted the MathML code of that expression we could usethe following snippet

notice the extra argument `printer='presentation'`

. If we want to addthis to MS Word, for example, we could add the output (that I will notshow because is really long) inside the following

### Libreoffice Math

When using Jupyter Notebook this can be done graphically with aright click over the expression. Then, the following menu isshown

### Indesign Mathtype

## References

### Mathtype Libreoffice Vs

“How to Insert Equations in Microsoft Word.” WikiHow,https://www.wikihow.com/Insert-Equations-in-Microsoft-Word.Accessed 3 Aug. 2020.

“Copy MathML into Word to Use as Equation.” Stack Overflow,https://stackoverflow.com/questions/25430775/copy-mathml-into-word-to-use-as-equation.Accessed 3 Aug. 2020.

“Python - Output Sympy Equation to Word Using Mathml.” Stack Overflow,https://stackoverflow.com/questions/40921128/output-sympy-equation-to-word-using-mathml.Accessed 3 Aug. 2020.

OERPUB (2016), “Mathconverter”, https://github.com/oerpub/mathconverter,Accesed 3 Aug. 2020.