MathType Translation data in TeX

2009-03-02
2013-04-29
  • I'm writing math books in MathType 6.5 and i'm copying equatin from math type. Mathtype gives an output this look like below.
    There is an TeX editor url
    http://www.math.union.edu/~dpvc/jsMath/jsMath-input.html

    I'm testing copied TeX codes in mozilla firefox 2+ code works well and jsmath renders it. But in Internet Explorer code don't work. IE don't show anything. Problem causes from
    % symbola started mathtype data.

    How can we use % started data and TeX equations in internet explorer.
    You can see mathtype data and TeX below.

    % MathType!Translator!2!1!LaTeX.tdl!TeX -- LaTeX 2.09 and later!
    % MathType!MTEF!2!1!+-
    % feaaguart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn
    % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr
    % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9
    % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x
    % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGceaqabeaadaWdba
    % qaamaabmaabaGaamiEamaaCaaaleqabaGaaG4maaaakiabgUcaRiaa
    % dIhaaiaawIcacaGLPaaacaWGKbGaamiEaiabg2da9maabmaabaWaaS
    % aaaeaacaWG4bWaaWbaaSqabeaacaaI0aaaaaGcbaGaaGinaaaacqGH
    % RaWkdaWcaaqaaiaadIhadaahaaWcbeqaaiaaikdaaaaakeaacaaIYa
    % aaaaGaayjkaiaawMcaaaWcbeqab0Gaey4kIipaaOqaamaapehabaWa
    % aeWaaeaacaWG4bWaaWbaaSqabeaacaaIZaaaaOGaey4kaSIaamiEaa
    % GaayjkaiaawMcaaiaadsgacaWG4baaleaacaaIXaaabaGaaGOmaaqd
    % cqGHRiI8aOGaeyypa0ZaaCbmaeaacaGG8baaleaacaaIXaaabaGaaG
    % OmaaaakmaabmaabaWaaSaaaeaacaWG4bWaaWbaaSqabeaacaaI0aaa
    % aaGcbaGaaGinaaaacqGHRaWkdaWcaaqaaiaadIhadaahaaWcbeqaai
    % aaikdaaaaakeaacaaIYaaaaaGaayjkaiaawMcaaaqaaiabg2da9maa
    % bmaabaWaaSaaaeaacaaIYaWaaWbaaSqabeaacaaI0aaaaaGcbaGaaG
    % inaaaacqGHRaWkdaWcaaqaaiaaikdadaahaaWcbeqaaiaaikdaaaaa
    % keaacaaIYaaaaaGaayjkaiaawMcaaiabgkHiTmaabmaabaWaaSaaae
    % aacaaIXaaabaGaaGinaaaacqGHRaWkdaWcaaqaaiaaigdaaeaacaaI
    % YaaaaaGaayjkaiaawMcaaaqaaiabg2da9iaaisdacqGHRaWkcaaIYa
    % GaeyOeI0YaaSaaaeaacaaIZaaabaGaaGinaaaacqGH9aqpcaaIYaGa
    % aGymaiaac+cacaaI0aaaaaa!77B6!
    \[\begin{array}{l}
    \int {\left( {{x^3} + x} \right)dx = \left( {\frac{{{x^4}}}{4} + \frac{{{x^2}}}{2}} \right)}  \\
    \int\limits_1^2 {\left( {{x^3} + x} \right)dx}  = \mathop |\limits_1^2 \left( {\frac{{{x^4}}}{4} + \frac{{{x^2}}}{2}} \right) \\
      = \left( {\frac{{{2^4}}}{4} + \frac{{{2^2}}}{2}} \right) - \left( {\frac{1}{4} + \frac{1}{2}} \right) \\
      = 4 + 2 - \frac{3}{4} = 21/4 \\
    \end{array}\]
    % MathType!End!2!1!

     
    • Well, it turns out that Internet Explorer is broken in yet another way:  it replaces line breaks with spaces so that it is impossible for jsMath to determine the end of the comments,  and the whole math element becomes the comment (one long line).

      I have tried some experiments, but don't see any way around this short of requiring you to insert some sort of non-standard comment terminator.  My only suggestion would be to not include the comments, or to put the comments outside the jsMath SPAN or DIV (say in an HTML comments before and after the jsMath math elements).  I know this is not very satisfying, but this is really an IE bug, and I'm afraid I can't fix that.

      Davide