1 person found this helpful
I'm struugling a lot in this issue. Please prove me some advice to achieve this. I want to create a empty .eps file with automation while running ID js codes. I googled a lot to do it. But can't able to find it.
What can't you find? How to create "an empty file", or "an empty EPS file", or "an empty MathType EPS file"? Save that empty MathType somewhere on a known, fixed location, and then use your "ID js codes" to copy the file to the location where you want it.
Actually, this is bothering me far more:
(no variables, i.e I can add equation variables further when I want)
Are you aware that the EPS part in a MathType EPS file is totally irrelevant for the 'actual' equation as it appears in the MathType Equation editor, and that changing it does not influence the equation? For all practical intents and purposes, the EPS part is just a preview. Maybe you are fluent in MTEF? ("MTEF is MathType's binary equation format. MTEF is embedded in OLE equation objects produced by MathType, as well as in all the file formats in which MathType can save equations.")
Hi Mr. Jongware,
Thank you for your kind reply. Actually, What I wish to do is, I want to place a new equation in ID Doc. I'm trying to write a script in js and when running the script, the Math Type.exe have to trigger and after creation and editing the equation, and saving, the saved eqn(in .eps) have to be placed in the insertionPoint of my Indd file while I start the script. For this only I'm struggling. While mathtype ended, there is no function to place the eqn na!!! That's the pblm. Advice Needed Experts...
I'm out of the city for 2 days. So I take look on this issue on monday only. So don't mind for my late response on monday for ur response.
Thanks and Regards,
Did you got any solution to your request. Can you share it to me.
Not exactly sure why I didn't reply to this a year ago, but for Gopal's benefit, we provide the MathType SDK for free. It contains all the hooks you should need for this type of project. https://www.dessci.com/en/reference/sdk/
Thanks for your reply.
I downloaded the Mathtype SDK and found lot of tools related to Word, but find it difficult to get the documents related to EGO. If there is a complete manual for this specificaiton, please direct me to that.
I am relatively new to the SDK development.
Could you provide me the details of software/application which is used for development (both in Windows and Mac OS). Can i use Xcode for Mathtype development.
Can I get any suggesion for my above question.
Gopal, sorry for the delay. Our developer with the most knowledge in this area has been out for a few days, but I can say the MathType SDK has been updated to include more doc, and a sample app for working with EGO. If you're using the latest version of the SDK, that should get you where you need to be. I don't know about a full spec of EGO. You can't use Xcode for MathType development.
I have downloaded the SDK just for curiosity (I don't know much about programing) but I can see that the SDK contains an executable called ConvertEquations.exe.
I think this can be used to batch convert between several file formats of MathType equations (for example: .wmf to .eps). Am I right?
I have created the 2 folders mentioned in the respective doc file (GetInputFolder) and (GetOutputFolder) but I am not able to get ConverEquations.exe to work in Windows 8. (I need to batch convert a lot of wmf MT equations to eps equations).
Can you show us how do this?
Thank you in advance,
This should work in Windows 8. Can you be more specific than "I am not able to get [it] to work"? Are you getting any error messages?
Hi, Mr. MathTtype, thank you for your interest.
If I select the file ConvertEquations.exe with the Windows File Manager and double click on it, nothing hapens (a command windows opens and closes very quickly).
If I open a Command Window and navigate to the folder where that executable is and run it with the command prompt, nothing happens. Even if i run it in command prompt with an argument like «?» or «/Help» expecting to find what are the possible arguments to feed to the executable nothing happens too. I am running the executable in this folder:
and I have made this 2 subfolders (GetInputFolder) and (GetOutputFolder)
We work in a lot a books with maths and a quick batch conversion from MT wmf to MT eps whould be an invaluable plus to our workflow in Indesign. We are doing this conversions using an command language (AutoHotKey) but this solution its not the best one.
Thank you in advance,
Maria, I watch this InDesign forum every day, and somehow missed your reply from last week. ConvertEquations.exe wasn't intended to be run separately; it was intended as an example of how you can program your own applications to interface with MathType's API.
To convert from MT WMF to MT EPS -- are the MT WMFs in Word? If so, that's what the Export Equations command (on the MathType menu in Word) is for.
I think it may be best if we continue the discussion by email. Can you email us at firstname.lastname@example.org?