Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

MathType Equation - Get mathml equations from MathType EPS

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/td-p/10585522
Jul 25, 2019
Jul 25, 2019

Copy link to clipboard

Copied

Hi,

I want to get the MathML equation from eps image. When reading image file, getting text like as below screenshot.

But the image has used fonts style like bold, bold-italic etc. when reading this MathML text from image that styles are missing.

How can i retaining that styles with MathML?

TOPICS

Scripting

Community Guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

6
Replies
6

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/m-p/10585523#M151717
Jul 26, 2019
Jul 26, 2019

Copy link to clipboard

Copied

Typefaces and styles aren't part of MathML. You might be able to match the Postscript part of the EPS to the MathML, but that's a Herculian task. And why bother: MathTools does a great job converting MathType EPSs to its own MatrhZone format, which is pure InDesign text, formatted and formattable.

P.

Community Guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Sudha_K
AUTHOR

Participant
,

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/m-p/10585524#M151718
Jul 26, 2019
Jul 26, 2019

Copy link to clipboard

Copied

Hi,

Thank you for your reply.

How can i convert eps to mathml in indesign? can you please explain.

Community Guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/m-p/10585525#M151719
Jul 26, 2019
Jul 26, 2019

Copy link to clipboard

Copied

Community Guidelines

Sudha_K
AUTHOR

Participant
,

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/m-p/10585526#M151720
Jul 31, 2019
Jul 31, 2019

Copy link to clipboard

Copied

Hi,

Yes i want to get the MathML equation from EPS image which i have posted.

If i opened the image file in textedit it have font details but not occurate place and don't know how to retain that font style in mathml equation.

Community Guidelines

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/m-p/10585527#M151721
Aug 01, 2019
Aug 01, 2019

Copy link to clipboard

Copied

Community Guidelines

MrMathType
LATEST

Engaged
,

/t5/indesign/mathtype-equation-get-mathml-equations-from-mathtype-eps/m-p/11840960#M415009
Feb 18, 2021
Feb 18, 2021

Copy link to clipboard

Copied

I realize this question is a year and a half old, so either you haven't gotten an answer yet, you've gotten an answer elsewhere, or you've just moved on. Whatever the case, I'm answering it in case someone else finds this question on a search.

As you said, you can find the MathML inside an EPS created with MathType. (Actually you didn't mention MathType, but there it is in the first row of your MathML, saying it came from MathType.)

There are 3 things you can do:

- You can take the MathML from the EPS:

```
%<?xmlversion="1.0"?><!--MathType@Translator@5@5@Ma
%thML2(Clipboard).tdl@MathML2.0(Clipboard)@--><math
%display='block'xmlns='http://www.w3.org/1998/Math/
%MathML'><mrow><mi>V</mi><mi>A</mi><mtext> <
%/mtext><mn>5</mn><mtext> </mtext><munderove
%r><mstylemathsize='140%'displaystyle='true'><mo>&#
%x2211;</mo></mstyle><mrow><mi>t</mi><mtext> 
%;</mtext><mn>5</mn><mtext> </mtext><mn>1</m
%n></mrow><mi>n</mi></munderover><mfencedclose="}"o
%pen="{"><mrow><mfrac><mrow><mi>E</mi><mostretchy='
%false'>(</mo><mi>C</mi><msub><mi>F</mi><mrow><mi>&
%#x0024;</mi><mo>,</mo><mi>t</mi></mrow></msub><mos
%tretchy='false'>)</mo></mrow><mrow><msup><mrow><mo
%stretchy='false'>(</mo><mstylemathvariant='bold'ma
%thsize='normal'><mn>1</mn></mstyle><mtext> 
%</mtext><mn>1</mn><mtext> </mtext><mi>k</mi
%><mostretchy='false'>)</mo></mrow><mi>t</mi></msup
%></mrow></mfrac></mrow></mfenced></mrow></math><!-
%-MathType@End@5@5@-->!
```

But once you get it, what do you do with it? You can't just copy it and paste it into MathType, because it doesn't look like MathML to MathType. Even if you find & replace to remove all the comment characters (%) and copy everything between <math> and </math> and paste *that* into MathType, it still won't work. So basically this chunk of commented EPS that looks like MathML isn't very useful to you.

- There is also "MTEF" (i.e., MathType Equation Format) code inside the EPS. It looks like this:

```
%MathType!MTEF!1!1!+-
%feaahqart1ev3aaatCvAUfeBSjuyZL2yd9gzLbvyNv2Caerbqf
%gBHrxAU9gimLMBVrxEWvgarmWu51MyVXgaruavP1wzZbItLDhi
%s9wBH5garqqtubsr4rNCHbGeaGqiFu0Je9sqqrpepC0xbbL8F4
%rqqrFfpeea0xe9Lq-Jc9vqaqpepm0xbba9pwe9Q8fs0-yqaqpe
%pae9pg0FirpepeKkFr0xfr-xfr-xb9adbaqaaeGaciGaaiaabe
%qaaiqadaabaaGcbaaeaaaaaaaaa8qacaWGwbGaamyqaiaabcka
%caaI1aGaaeiOamaawahabeWcpaqaa8qacaWG0bGaaeiOaiaaiw
%dacaqGGcGaaGymaaWdaeaapeGaamOBaaqdpaqaa8qacqGHris5
%aaGcdaGadaWdaeaapeWaaSaaa8aabaWdbiaadweacaGGOaGaam
%4qaiaadAeapaWaaSbaaSqaa8qacaGGKaGaaiilaiaadshaa8aa
%beaak8qacaGGPaaapaqaa8qacaGGOaGaaCymaiaabckacaaIXa
%GaaeiOaiaadUgacaGGPaWdamaaCaaaleqabaWdbiaadshaaaaa
%aaGccaGL7bGaayzFaaaaaa!55FD!
```

You *can* copy all of that and paste it into MathType and you'll have your equation. It works, but why not just do the easiest thing? That's next...

- Since the EPS was created with MathType, you can open it with MathType. So just open it:

So there it is. In a comment you said your goal "is to get the MathML equation from EPS image which i have posted". So there's the equation. You want the MathML with styling, so go to MathType's *Preferences* menu, then *Cut and Copy Preferences*. Set thusly:

Now copy the equation and you have the MathML with styling:

`<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mrow><mi>V</mi><mi>A</mi><mtext> </mtext><mn>5</mn><mtext> </mtext><munderover><mstyle mathsize='140%' displaystyle='true'><mo>∑</mo></mstyle><mrow><mi>t</mi><mtext> </mtext><mn>5</mn><mtext> </mtext><mn>1</mn></mrow><mi>n</mi></munderover><mfenced close="}" open="{"><mrow><mfrac><mrow><mi>E</mi><mo stretchy='false'>(</mo><mi>C</mi><msub><mi>F</mi><mrow><mi>$</mi><mo>,</mo><mi>t</mi></mrow></msub><mo stretchy='false'>)</mo></mrow><mrow><msup><mrow><mo stretchy='false'>(</mo><mstyle mathvariant='bold' mathsize='normal'><mn>1</mn></mstyle><mtext> </mtext><mn>1</mn><mtext> </mtext><mi>k</mi><mo stretchy='false'>)</mo></mrow><mi>t</mi></msup></mrow></mfrac></mrow></mfenced></mrow></math>`

Community Guidelines

Using the Community
Experience League
Terms of Use
Privacy Policy
Cookie preferences
AdChoices
Language:

- Deutsch
- English
- Español
- Français
- 日本語コミュニティ
- Português

Copyright © 2021 Adobe. All rights reserved.