Skip NavigationDesign Science: How Science Communicates
Products Solutions Store Support Reference Company View Cart
 
 
TechNote #51: Last modified: 11/20/99
Last reviewed: 07/04/01

Using MathType with Corel WordPerfect 7.0


The information in this document applies to:

 

MathType 3.1 (Win)
MathType 3.5 (Win)
MathType 4.0 (Win)
Corel WordPerfect 7.0 (Win)

Issue

I'd like to be able to access MathType from Corel WordPerfect's toolbar, or by making a keyboard shortcut.  Also, how can I make sure that the equations line up properly with the text in the document?


Solution

Creating a Macro to Launch MathType

Within WordPerfect 7.0, it is possible to create a macro to launch MathType which you can later call from a toolbar button or keyboard shortcut. This will be discussed later in this notice. To build the macro file, do the following:

  1. Launch WordPerfect.
  2. Select Macro Bar from the Macro menu item located under WordPerfect's Tools menu.
  3. In a new document, type the following:
Application (WordPerfect; "WordPerfect"; Default; "US")
OLEInsertObject (ObjectType: "Equation"; DisplayMode: DisplayNormal!)
  1. Click the Options button located on the macro toolbar.
  2. Select Save As Macro.
  3. In the Name field, type MATHTYPE EQUATION.WCM.
  4. Press Save.
  5. Select Close from WordPerfect's File menu.

Creating a Toolbar Button to Launch MathType

With WordPerfect 7.0, it is possible to run macros via a user-defined toolbar button. If you have not yet made the macro file to launch MathType, please read Creating a Macro to Launch MathType above.

In order to launch MathType via a toolbar button, do the following:

  1. Launch WordPerfect.
  2. Right mouse click on the toolbar on which that you want the new button to appear.
  3. Select Edit... from the pop-up menu; this will produce a dialog with four tabs.
  4. Select the Macro tab.
  5. Click Add Macro.
  6. From the list of macro files, highlight the MATHTYPE EQUATION.WCM file by single clicking on it.
  7. Click Select.
  8. When prompted to 'Save macro with full path', select Yes.
  9. Click OK.

You will now see a button located at the end of the row of visible buttons on the toolbar you selected that looks like a tape cassette. When you move your mouse over the button, the tooltip window will display "MathType Equation". This button will now run the macro that launches MathType. For more information concerning the assignment of macros to a toolbar button, please consult your WordPerfect manual or help file.


Creating a Keyboard Shortcut to Launch MathType

With WordPerfect 7.0, it is possible to run macros via a user-defined keyboard shortcut. If you have not yet made the macro file to launch MathType, please read the section above Creating a Macro to Launch MathType.

To create a keyboard shortcut, do the following:

  1. Launch WordPerfect.
  2. Select Preferences from WordPerfect's Edit menu.
  3. Double-click on the Keyboard icon.

At this point you have the option of either editing one of your existing keyboard shortcut files or creating a new one. If you do not have a keyboard shortcut file created:

  1. Click Create.
  2. In the New keyboard name text field, type MathType.
  3. Click OK and proceed to step 4 below

If you wish to edit an existing keyboard shortcut file:

  1. Select the keyboard shortcut file that you wish to edit.
  2. Click Edit and proceed to step 4 below.
  1. From the list of keyboard shortcuts, select the one you wish to use (i.e. E-CTRL)
  2. On the macro tab, press Assign Macro to Key.
  3. From the list of macro files, highlight the MATHTYPE EQUATION.WCM file by single clicking on it.
  4. Click Select.
  5. When prompted to 'Save macro with full path', select Yes.
  6. Click OK; this will place you back on the Keyboard Preferences dialog.
  7. Select the new keyboard shortcut file from the list if it is not already highlighted.
  8. Click Select to Return to the main Preferences dialog.
  9. Click Close.

Whenever you use your select keyboard shortcut, it will run the macro that launches MathType. For more information concerning the assignment of macros to a keyboard shortcut, please consult your WordPerfect manual or help file.


Automatic Vertical Placement of Equation Objects

WordPerfect now places MathType objects in-line and attempts to automatically adjust the vertical position of the expression on the line. This feature only works when following the methods listed above or when inserting a MathType expression via the Insert Object dialog.

Using a manual paste procedure to insert MathType objects into WordPerfect produces a slightly different result:

  1. All objects will, by default, be page anchored, meaning that they will not be in-line and will not flow with the rest of your text but rather your text will flow around the object. You will need to change the anchoring to Character before the equation will sit in-line at all.
  2. WordPerfect will not attempt to automatically baseline the equation objects but rather will align them at the top of object. These objects will need to be adjusted manually through WordPerfect's Custom Positioning option. The procedure needed to do this is described in the section below.

Fine tuning equation alignment

If you find that your equations are not aligning with the text of the document correctly, it can be manually adjusted by doing the following:

  1. Using the right-side button on your mouse, click on the equation object; this will produce a pop-up menu.
  2. Select Position to display the Box Position dialog.
  3. If it is not already selected, select Custom to enable the numeric field located to the right of the option.
  4. Change the value in the numeric field. A value of 1.0 will align the object at the extreme bottom while a value of 0.0 will align the object at the extreme top. Changes will not display until you press OK so you may need to do this process more than once to get it perfectly aligned.


Top of page

TechNotes Home   |   TechNote Wizard   |   Contact us

Copyright © 1996-2018 Design Science. All rights reserved.
Privacy statement
Follow MathType: