# Some (La)TeX and MathML fails to translate

## Applicability

MathType for Windows

MathType for Mac

### Note

As the title indicates, this article applies to TeX, LaTeX, and MathML. The examples given are LaTeX, but the points mentioned in the article apply equally to all text languages into which MathType can translate equations.

## Issue

• You've typed this equation (below) in MathType and want to use MathType Toggle TeX feature in Word to convert it to LaTeX.

resulting LaTeX does not include the \color command. What you see is this:

\hat{f}\left( \omega \right)=}_{s=i\omega=\int_{-\infty }^{\infty }{e}^{-i\omega tf\left( t \right)dt}

• You figure not all is lost since you have this equation in a colleague's paper, written in LaTeX. You copy the equation from her paper and paste it into MathType, intending to include it in your Word document. Here's her equation, \fhat\left( \omega \right)=}_{s=i\omega=\int_{-\infty }^{\infty }{\color{red}{e}^{-i\omega tf\left( t \right)}}dt and this is what you see in MathType

rats. Now the colour is there, but you have two other errors. What's up?

## Reason

There are several reasons why MathType did not produce the result you were after in this case. Consider…

1. MathType is not a LaTeX editor. It processes commands internally in its own language then produces either graphical output or textual output. For textual output, such as LaTeX or MathML, MathType must translate its internal language into the desired output language, in this case, LaTeX. Like spoken languages, translation is subject to errors and is rarely perfect. Such is the case when using MathType to translate into LaTeX.

2. MathType does not support the whole gamut of what is possible in LaTeX. When you create an equation in MathType and want to translate to LaTeX, MathType will not solve many (perhaps most) LaTeX commands that are appearance attributes, such as \color in this example.

3. Another thing MathType does not understand it is customization. In the second example in the Issue section above, the author of the original equation had included these two lines:


There are a handful more things MathType can accept on the input than it will produce on output. You've seen one of those things in these examples — \color. There are more, but it's impossible to list them all here.

Generally, you can customize MathType translators, but such customization is limited. If there's a particular character MathType doesn't understand or a command you'd like to tweak, you might be able to figure out how to do it. The translator files are just text files, and the output translator files are not that difficult to understand. Give it a shot, and remember to always work with a backup copy.

Please keep in mind if you do try your own tweaks, we're probably not able to provide technical support. We'll help to the extent we can, but that will likely be limited to obvious errors you've made in the translator and won't include any detailed troubleshooting.