Creating, Numbering and Cross
Referencing Equations With Microsoft Word
Videos Available With This Document
This document is supported by a series of video files that demonstrate the concepts that are described. The videos are referenced in the text, and you may watch them directly over the web.
The videos were created with Word 97. The Equation Editor has not changed since then, but the positioning of certain things in Word has. For example, the Insert Fields dialog box looks a little different, and the Style maintenance panel is a little different than the old Styles box. However all concepts are identical.
Getting Started
Using the equation editor that comes with Microsoft Word, equations can be inserted into Word, PowerPoint, or any application that supports OLE (Object Linking and Embedding). Although most of this document provides instructions pertaining to Word, the procedures for inserting and editing equations in Word are the same as for PowerPoint. Some PowerPoint specific notes can be found at the end of this document.
Learning How to Use the Equation Editor
Please watch 01_intro.wmv.
A complete description about using the equation editor is available under Help in the equation editor window.
Inserting an Equation
Please watch 02_create.wmv. (The examples in this video are slightly different than those in this text.)Exercise 1:
- Open Microsoft Word.
- To insert an equation, choose Insert, Object, Microsoft Equation 3.0, and click OK . One of 2 things will happen:
- A highlighted area will appear, along with equation editing
palettes. This is known as in-place editing. It can be very difficult to see
what is being entered.
OR - A separate window will open, with the palettes on top. This is much easier for entering equations. This looks like the following.
- To exit and return to your Word document you may choose File/Exit and Return to (DocumentName); to update the Word document but remain in the equation editor you may choose File/Update.
- In-place editing is the default, but it is possible to make window editing the default.
Putting an Equation Button on the Tool Bar
Please watch 05_automate.wmv.
Exercise 2:
If you are entering many equations, you may find it convenient to have an "Insert Equation" button right on the toolbar. This can be done by:
- right clicking on the tool bar (or opening the Tools menu) and choosing Customize
- A window will open. Click on the Commands tab if it is not already selected.
- Select Insert on the left and then Equation Editor on the right.
- Click and drag the button beside Equation Editor (a square root symbol with an alpha in it) to the toolbar. From now on, clicking on that button will insert an equation.
Typing the Equation
To enter the equation, just start typing. All keyboard characters can be entered directly. (Parentheses, brackets and braces can be entered from the keyboard, but these are fixed in size. Brackets that will "grow" must be selected from the appropriate template).
Entering Symbols
There are 10 symbol palettes, the entire top row of buttons. The symbols printed on the buttons provide a clue to the characters available under each button. The two rightmost symbol palettes
are the lower case Greek letters, and upper case Greek letters . To select an item from a symbol palette, click on the palette button, and then click on the desired character.
Entering Templates
The second row of palette buttons are template palettes. They provide place holders for entering information. For example provides a number of integration palettes. Some of these have a placeholder only for the integrand, some for the integrand plus lower limit, some for the integrand plus lower plus upper limits. The palette contains templates for fractions and radicals. To insert a template, select the desired template from the appropriate palette button. Then fill in the template place holders. Place holders can contain keyboard characters, characters from symbol palettes, or other templates. For example an integrand can be a fraction template, and the numerator of the fraction can be a square root template.
Moving Around the Equation
A flashing right angled cursor indicates where you are about to enter information on the equation. The horizontal bar of the cursor marks the base line of the symbols to be entered. The vertical bar indicates the height. You can set the insertion point by clicking with the mouse, or with the keyboard.
Positioning the insertion point in an equation using
keys
Pressing |
Moves the insertion point |
TAB | To the end of the slot. If the insertion point is at the end of a slot, it moves to the next logical slot. |
SHIFT+TAB | To the end of the previous slot. |
RIGHT ARROW | Right one unit within the current slot or template. |
LEFT ARROW | Left one unit within the current slot or template. |
UP ARROW | Up one line. |
DOWN ARROW | Down one line. |
HOME | To the beginning of the current slot. |
END | To the end of the current slot. |
Note To insert a tab character in a slot, press CTRL+TAB. |
Exercise 3:
To enter the equation
start the equation editor and:
- Type "x=" from the keyboard
- Choose a fraction from the template.
- Select parentheses from the . (Actually in this equation it would work to type parentheses from the keyboard).
- Type "-b" from the keyboard.
- Select "plus or minus" from the palette.
- Select a radical from the palette.
- Type "b" from the keyboard.
- Select the superscript from the palette.
- Type a "2".
- Tab to come down a level, and type "-4ac".
- Tab 3 times to move to the denominator, and type "2a".
Deleting From Equations
As you are entering the equation, you can backspace at any time. You can also select parts of the equation with the mouse, and delete.
Growing Brackets
Brackets, parentheses and braces that grow with the enclosed text should be selected from the template.
Matrices
Matrices of any size can be created from the template.
Stacking and Aligning Equations
Please watch 03_stack&matrix.wmv.Equations can be stacked in a pile. To do this, simply press the Return key to begin a new line. To align this pile at a character, such as an equal sign, choose "align at" from the Format menu.
Exercise 4:
- Try entering the following matrix:
-
Enter the following equations and align them at the = sign by choosing Format/Align At = after typing them. Also try using the alignment symbol, to align equations.
Inserting Spacing Into an Equation
Spaces can be inserted into an equation in the following way.
Zero space | SHIFT+SPACEBAR |
1-point space | CTRL+ALT+SPACEBAR |
Thin space (one-sixth em) | CTRL+SPACEBAR |
Thick space (one-third em) | CTRL+SHIFT+SPACEBAR |
Em space (quad) | No shortcut key |
Editing an Existing Equation
Please watch 04_equationedit.wmv.An existing equation can be edited either by double clicking on it, or by right clicking on it and selecting Equation Object, and either Open or Edit.
Keyboard Shortcuts
Most people do not want to move their hands from the keyboard to the mouse all the time to select palettes. A number of keyboard shortcuts are available. To find out more about keyboard shortcuts for equations, open the equation editor and choose Help/Equation Editor Help Topics, choose the Index tab, type keyboard in the space provided and in the bottom section, double click on keyboard shortcuts.
Inserting templates in an equation using keys
Templates can be inserted using a CTRL+character combination.
Inserting symbols in an equation using keys
Inserting Embellishments Into an Equation Using Keys
Inserting Greek Letters Using Keys
CTRL G followed by a letter of the alphabet (shifted or not) will insert the corresponding Greek letter.
Keyboard Access to Any Symbol or Template Palette
To access any palette, press the F2 function key, and then use left and right cursor arrow keys to move to the appropriate palette. When you reach the desired palette, press the down arrow key to open the palette. Now cursor to the desired item, and press Return to enter it.
Exercise 5:
- Experiment with inserting spacing in equations, editing existing equations and working with keyboard shortcuts as described above.
Positioning of Equations
Equations can appear in-line in a line of text. The line spacing will adjust accordingly. If you wish to have equations appear in a paragraph by themselves, simply press Return before and after the equation. To align an equation, click on the equation to select it, and then click on the appropriate alignment button. You can also right click on the equation in Word and choose Format Object to control somewhat how the equation works with the text (from the Layout tab).
Numbering Equations
Equations to be numbered are usually centered with the number at the right margin. Numbering can be done by inserting sequencing fields.
Exercise 6:
- First, change the measurement units in Word to inches: Tools/Options, General tab, choose Inches from the Measurement units: drop down list and click OK.
- Set a centering tab, and a right aligning tab (Format, Tabs menu, Clear All, and then set a centre tab in the centre (~3.25") and a right tab at the far right ( ~6.5"); remember to click Set after each one, and then click OK).
- Now press tab, and enter the equation. Then press tab again, type "(" and insert the sequence that will number the equation:
- Choose Insert, Field
- Then choose Numbering from the Categories: dropdown menu, and Seq from the Field names: list
- Click on the Field Codes button
- Type the string Eq beside SEQ and press OK.
- Type a closing ")".
- This will produce an equation and number that looks like the following.
- The next time you carry out this set of instructions the number will be 2, the next time 3, and so on.
Note: The italicized paragraph below applies to Word 97 and 2000, but not to Word XP.
Word is now in a position to be extremely helpful and do something you don't want. If the "Automatic Bulleted List" autoformatting option is turned on, and you enter an equation in the manner described below, Word will think you are starting a bulleted list with the equation as the bullet character. (I know this sounds far fetched, but it is true. To change this, select Tools, Autocorrect. In both the Autoformat and "Autoformat as you type" tabs, make sure that "Automatic bulleted lists" is NOT checked.
(1) |
Updating Field Numbering
If you add equations in the middle of the document, or delete equations, the numbers will not automatically be updated. To have them updated, choose Edit, Select All, and then press F9.
Creating an Equation Style
It is probable that you may not want to have that centering and right aligning tab for your complete document, but only for your equations. In that case you may find it awkward to set the tabs each time you enter an equation. To get around that, the easiest way would be to create a Style called possibly, Equation.
Exercise 7:
- To do this, select Format, Styles and Formatting, and click the New Style button on the right.
- Fill in the box similarly to the one below (name it Equation, 'Style based on' and 'Style for following...' should both be Normal).
- Be sure to check the Add to Template box if you want this style to be available in documents other than the current one.
- Then under Format pick Tabs. Clear all existing tabs, and add a centering tab in the middle of the page, and a right aligning tab at the right margin; then click OK.
- It would be helpful to assign a shortcut key. Under Format, choose Shortcut Key and make an assignment, possibly CTRL G. Be sure to click Assign; then click Close and OK.
- Now, pressing CTRL G, TAB, entering the equation, TAB and inserting a sequence will enter an equation in its appropriate format.
Creating an Equation Macro
This process can be automated even further with a macro.
Exercise 8:
- To create a macro, go to a new line in your document, and choose Tools, Macro, Record New Macro.
- Assign a name to the macro, such as Equation.
- You can add items to the menus or keyboard to access the
macro. You might want to add a key sequence, such as ALT
E:
- Click on the Keyboard button
- Click under Press new shortcut key, then hold down the Alt key on your keyboard while you press the letter e.
- Click on the Assign button and then the Close button.
- Now go through all steps of entering an equation:
- Choose the equation Style
- press TAB
- do an Insert Equation (with the toolbar button)
- close the equation editor
- press TAB
- type the open bracket "("
- Insert Field, SEQ with the eq option added
- type the closing bracket ")"
- press Return
- press Stop recording
- The macro is now available by pressing the ALT E key sequence. The equation editor window will open, type your equation, and close the window. Everything else is automatic.
- If the macro is not quite right, simply record it again.
Printing Your Custom Keyboard Shortcuts
Once you have assigned keyboard shortcuts to your equation style and equation macro (and possibly other things), it is nice to have a list of them in case you forget. To do this choose File/Print and beside Print what: choose Key assignments and then click OK.
Cross Referencing an Equation
You may wish to create a cross reference to an equation, a statement in your document such as "As was shown in Equation 3...", but you want Word to insert the appropriate equation number, and update it if the number of the equation should change. At first glance it would appear that you could do an Insert,Cross-reference and select "Equation" as the reference type. However, this will only work if you let Word caption your equations, and Word will only caption an equation above or below the equation, which is not acceptable. The only way to cross reference an entity that you have numbered yourself via a seq Field, is to Bookmark the sequence number.Bookmarking an Equation Number
Exercise 9:
- Carefully drag through the equation number to select it, then issue the command Insert, Bookmark.
- Assign a meaningful name to the Bookmark (bookmark names should start with a letter and should not include any spaces), and click Add. Repeat this process for any equation that you wish to reference.
Creating the Cross Reference
Exercise 10:
- To create a cross reference to the equation somewhere in your text, first type any introductory text, such as "As we saw in Equation" and then issue the command Insert, Reference, Cross Reference. (In Word 2000, it is Insert, Cross Reference.)
- Under Reference Type select Bookmark, and from the presented list of bookmarks, choose the appropriate one, and click Insert.
Updating References
If you add or delete equations, cross reference numbers will not be updated automatically, but forcing an update is easy. Simple choose Select All from the Edit menu, and press the F9 key.Forcing the Equation Editor to Always Open in a Window
Please watch 06_openwindow.wmv.Word 97, Word 2000 or Word XP
Use the RegOptions macro to change the Windows Registry settings that control this behaviour:
- Open the file called Support.dot that you will find in the Macros folder in the Office directory (usually C:\Program Files\Microsoft Office\Office10\Macros\SUPPORT.DOT). (Support9.dot on Word 2000).
- If prompted with a Security Warning window, click on the Enable Macros button.
- Scroll down and click on the Registry Options button to activate this macro.
- Select the Equation Editor Options tab.
- Pick Force Open, and under Settings:, change the value to 1.
- Click on the Change button (and click on OK if prompted with a Microsoft Word window) and then click the Close button.
- Choose File, Close to close support.dot.
Word for Macintosh
1. Quit Equation Editor if it is running.
2. Using a text editor such as TeachText or SimpleText, open the Equation Editor Preference file, which is located in the Preferences folder.
3. Find the [General] section. If this section is missing, add the following to the end of the file.
[General]
ForceOpen=0
4. Change the 0 to 1, so that the entry resembles the following:
[General]
ForceOpen=1
5. Save the file.
Creating Equations in PowerPoint
As mentioned at the beginning of this document, the procedures for inserting and editing equations in Word are the same as for PowerPoint. The differences lie in the aligning of the equations and referencing. These similarities and differences are noted below:
- Equations cannot be inserted or edited 'in-place' in PowerPoint (this is an option in Word); the equation editor window will always open.
- Equations float over text in PowerPoint and can be dragged to the correct position beside text. You can right click on the equation and choose Format Object to change some options, but you cannot change the way it floats over text.
- You can do the following in PowerPoint the same way you would
in Word:
- Insert the equation in the same way using the Insert, Object , Equation Editor 3 menu items
- Edit and Update the equation within the Equation Editor
- Put the Equation Editor button on the toolbar via the Tools, Customize menu
- You cannot number the equations and cross reference them like you can in Word. If you had to do this in PowerPoint, you would have to do it manually.