Using the Command Line (Windows)
To illustrate the use of the Equation Composer, there are two files located in the samples directory that demonstrate how to call it from command line:
<path-to-mathflow-sdk>/windows/samples/equation_composer32_cmd.bat (for 32-bit systems)
<path-to-mathflow-sdk>/windows/samples/equation_composer64_cmd.bat (for 64-bit systems)
About the Script
The equation_composer32_cmd.bat (or equation_composer64_cmd.bat) file calls EquationComposer32 (or EquationComposer64), which is located in the bin directory, with several options. The bat script contains the following commands (formatted for clarity):
"../bin/EquationComposer<32 or 64>"
-license "dessci.lic"
-mathmlfile "test.mml"
-imagename "test"
-imagetype "png"
IMPORTANT NOTES:
- Your license,
dessci.lic, is a FlexNet license file that is located in the same directory as equation_composer32_cmd.bat (or equation_composer64_cmd.bat). This option is always required. - MathML is read from a file named
test.mml, also located in the same directory as the .bat file. Either a mathml or mathmlfile option is always required. If both are supplied, mathmlfile will take precedence over the mathml value. - The name of the image file will be
test.png (imagename.imagetype). If this file already exists, it will be overwritten.
For a complete list of the command line options, see Command Line Parameters.
|