Skip to main content

MathFlow Import/Export

Overview - Import/Export

MathFlow Import/Export works together with Arbortext Import/Export (formerly Interchange) to import Word Documents containing MathType and Word 2007 or later (OMML) equations into XML MathML aware documents.

Microsoft Word needs certain .dot files that are distributed with MathFlow. Refer to the MathFlow Installation section for more details.

This feature is available only for Windows and requires a license to be enabled. It also requires that Microsoft Word and Design Science MathType are installed on the system.

Here is a basic outline of the import procedure; refer to the next section for more details:

  • You choose the document to import, as well as the map and template files to use, via the standard Arbortext Import dialog.

  • The preimport callback methods in <custom-path>\init\ipmt5.acl open Microsoft Word in the background, and execute a series of macros, translating the equations into MathML and creating a temporary doc file that has extra styles surrounding the MathML markup.

  • The map file is processed against this temporary doc file, and the resulting xml document is opened in the Arbortext Editor.

  • If you are using concurrent licensing for MathFlow Import/Export while importing Microsoft Word documents, a license is checked out to perform the conversion. For more information on concurrent licensing, see MathFlow licensing.

Import from Word

If you are using MathFlow Import/Export, you may import your Word documents that contain MathType and Word 2007 or later (OMML) equations.

Arbortext Import/Export

To import a Word document, select File | Import | Import a Document… in the Arbortext Editor.


In the document Import dialog, besides selecting the source document and the name of the output xml file, you'll need to select the map file to be used.


There is a sample map file included in the MathFlow distribution: <custom-path>\importexport\STDTemplates\word2axdocbook_math.std. This is probably a good starting point for creating a map file for your own doctypes; see Setting up a custom doctype for more details.

After choosing source, output and map files and clicking the "Import" button, there is a short delay while Word and MathType are opened in the background and execute the translation macros. After the delay, the imported document is displayed.

For more information on Arbortext's import mechanism, please refer to Arbortext's own documentation.

Export to Word

If you are using MathFlow Import/Export, you may export your XML content to Word. Any MathML equations in the content will be converted to MathType equations in the Word document. Using this feature requires having Microsoft Word and MathType installed.

To export a document to Word, you should use the RTF format. From the Arbortext Editor File menu, choose Publish | RTF File.


In the Publish to RTF dialog, you can choose the name and where to save the RTF document, and which stylesheet to use for formatting it.


There will be a short delay while the XML document is transformed to RTF. In the Export dialog, if the "View Exported RTF Document" was checked, Word should open with the new document.