# General techniques for using MathType with other applications and websites

## Working with Insert Object

Many Windows applications support Object Linking and Embedding (OLE). Most of them have an Insert Object command (or an Object… command on its Insert menu or elsewhere). If your application doesn't have such a command, look up Object Linking and Embedding or OLE in the index of its user documentation. The Insert Object command brings up a dialogue containing a list of all the kinds of objects that may be inserted. Choose "MathType 7.0 Equation", and MathType will open an equation editing window. Create your equation, close the window when you are done, and the new equation will appear in the document. Any time you want to edit the equation, just double-click it. If your favourite application does not support OLE, request it from the vendor. Most software vendors like to get feedback from their customers, just like we do.

## Copy and paste (or drag and drop)

At its core, a MathType equation is a graphical image (but a WMF or PICT/PDF vector image, rather than a bitmap image, such as GIF). Suppose your application accepts graphics via the clipboard. In that case, you can run MathType 7 from the Windows Start menu or Mac Applications folder, create an equation, and paste it into your application. Your application may also support drag and drop, but that will generally give the same result. When using MathType this way, you don't have to restart it for each new equation. Just leave its editing window open for your entire session. When you need to create a new equation, bring the MathType window to the front, choose the Select All command on the Edit menu ( Ctrl+A / Command+A ), hit the Delete key to clear out the last equation, and create your new equation ready to paste. Later, if you need to edit an equation, you can usually use Cut or Copy, then Paste it back into a MathType editing window. After making your edits, just copy and paste it over the old one.

### Cut and Copy Preferences dialogue

This dialogue allows you to specify what kind of information will be placed on the clipboard whenever you use the Cut or Copy commands on the Edit menu or when you drag & drop an equation from the MathType editing window. (For the remainder of this topic, when we use the terms cut, copy, and/or paste, the same behaviour applies to drag & drop, but we will not explicitly state such.) Usually, Cut or Copy will place a graphic image of the selected part of the equation onto the clipboard, ready to be pasted into a document. However, using the options in this dialogue, you can have the selected equation or fragment translated into text in one of the computer languages or for one of the applications or websites for which a translator is available.

#### Equation object (Windows OLE graphic)

Click this option to place an equation object on the clipboard. This is the default and is usually used to transfer equation material between one MathType window and another, or between a MathType window and another application, such as a word processor. When you paste an equation into another application's window, handling it depends on that application. If the application is OLE-compatible, it will be treated as a new OLE object. If the application is not OLE-compatible, it will be treated as a graphic image.

#### MathML or TeX

MathType is supplied with several translators that allow equations to be translated into other computer languages, TeX and MathML. Click this option to cause MathType to translate the selected equation whenever you use the Cut or Copy command.

Use this list box to choose from one of the translators currently available to MathType 7 The text of each list item describes the computer language (or variant) that the translator can translate equations into. In addition to the translators installed as part of MathType, other translators may be available from third-party sources. It is also possible to create your own translator or modify an existing one. See Working with MathML and Working with TeX for information on the installed translators with MathType 7.

Include translator name in translation

This option instructs the translator software to place the translator's name in the translation. This is used by MathType integration with Microsoft Word to allow its Convert Equations command to find the equations in the document. If you use MathType 7 with a TeX application instead of Word, you should leave this option unchecked. Some translators may ignore this option.

Include MathType data in translation

This option instructs the translator software to place MathType 7 equation representation in the translation. This allows the equation to be pasted back into MathType for later editing and should be checked. Some translators may ignore this option.

### Note

Note: It is possible to paste raw TeX into MathType, and usually MathType 7 will understand it and produce the equation you want. Be aware that, if you clear this option, you might not be able to completely edit the resulting text equation in MathType or convert it back to a MathType 7 equation object using Convert Equations in Word. Therefore, you should use care when clearing this option.

#### Equation for application or website

Many applications and websites accept TeX or MathML but may mark it up in a special way or with special delimiters. For example, instead of $\frac{1}{2}$, some applications want $\frac{1}{2}$. By selecting the appropriate application or website from this list and copying the equation from MathType, you don't have to worry about specific formats for your favourite applications & sites.

## Working with MathML

Some applications support a standard for using MathML as an exchange format for Copy and Paste (or drag and drop). The type of MathML used is controlled by choosing one of the MathML translators from the Cut and Copy Preferences dialogue. There may already exist in MathType 7 list of translators one specifically tailored to your intended target. If not, by experimenting, you may obtain better results with Copy and Paste.

### MathML translators

MathType provides output translators for MathML, a recommendation from the World Wide Web Consortium for encoding mathematics for the Web. MathML is a worldwide standard, but its implementation is not standard, so there are differences in the support for MathML in other software. Therefore, MathType includes translators to generate MathML 2.0. These translators are packaged in slightly different ways for the various browsers, browser plug-ins, and software applications that support MathML.

The MathML translators provided with MathType are:

• MathML 2.0 (m namespace): All MathML tags are prefixed with an m: namespace.

#### MathJax

All browsers have a common contextual (right-click/ctrl+click) menu for MathJax equations:

MathJax equations may be in LaTeX format, or they may be in MathML format. Either way, by clicking Show Math As, you can copy the code and paste it into MathType to use the equation in your work. Choose the Original MathML option for MathML, not the MathML Code one.

#### Images

If you are using Chrome or Safari browsers, the contextual menu will be similar to Firefox's.

 Firefox for Windows Internet Explorer

To use equations from the web, there are a couple of techniques to try:

• The image may have "alt text" that MathType 7 can use. Most of the usable equation images on the web fall into this category. To use these equations, click and drag it over to MathType or select it and copy it, then paste it into MathType (It's better to use the Ctrl+C / Command+C shortcut to copy, rather than to use the right-click menu at this point.)

• If that doesn't work and you're using Internet Explorer, right-click the equation and choose Copy from the menu. If you're using any other browser, select Copy Image Location, Copy image URL, Copy Image Address, or a similar command. Paste into MathType

If these techniques don't work, the equation isn't usable by MathType 7 If this capability is essential, it may be worthwhile to contact the editor of the website and mention how important it is to you that the equations be in one of the formats mentioned above.