Gulf Coast State College
Login to Lighthouse
 | Text Only | Employment/HR | Directory
 
GCSC Home About Us & Contact Us College Library Campuses & Maps Foundation & Giving to GCSC Continuing Education Online Learning/E-Campus

Equation Editor

Microsoft Word 2007 and PowerPoint 2007 and Equations
(Creating, Numbering, Cross Referencing)

Getting Started

Microsoft Word 2007 has a new built-in equation editor which is the default when you create equations. It no longer uses the Microsoft Equation 3.0 add-in by default, however you can still access and use it if you prefer. Using the Word 2007 equation editor, equations can only be inserted into Word 2007 and not into Excel 2007. However the previous Microsoft Equation Editor 3.0 is available in PowerPoint, or any application that supports OLE (Object Linking and Embedding). Course notes for the old equation editor are still available. Some PowerPoint specific notes can be found at the end of this document.

Comparison of options for equation editing

The following table gives an overview of the Word 2007 built-in equation editor compared to Microsoft Equation 3.0, which was included in prior versions of Microsoft Office.

Feature Office 2007
Built-in Equation editor
Microsoft Equation 3.0
(old version, but also in Office 2007)
Maturity Brand-new (version 1.0) Mature (version 3.0)
Ease of use Very intuitive
"builds-up" equations

Not as intuitive,
But many people already know how to use it

Keyboard Shorcuts

Standard math works

LaTeX symbols work

Custom (e.g. CTRL-H for superscript)
Equation Numbering

Display equations can't be on the same line as other text

Need to use tables to create equation numbers

Able to use tabs on same line as display equations

Adding equation numbers is simpler

Rendering Very high quality Moderate quality
Interoperability Not accepted by some journals, no workarounds! Commonly used and interoperable

When not to Use the Office 2007 Equation Editor

In Word 2007, when you try to convert a document that includes Office 2007 equations to the old ".doc" format, the equations are turned into graphics. They are visible, but not editable. We recommend that you do not use the Office 2007 Equation Editor if:

  • You need to submit to a journal that does not accept Office 2007 .docx files
  • You need to collaborate and share documents with people who do not have Office 2007
  • You use Office 2007 in Compatibility Mode (.doc files)

In these situations, the recipients of your documents will not be able to edit the equations. This would make collaborating difficult, and in the case of journals, would make submission problematic and revision impossible. This situation may change as more authors use Office 2007 and journals adapt their processes.

Why Use the Office 2007 Equation Editor

Word 2007's method of entering equations from the keyboard and building up equations is more natural, intuitive and efficient than previous approaches to typesetting equations. Word's representation of the equations resembles mathematics, and is much more readable. By comparison the MS Equation Editor approach takes a visual rather than mathematical approach. A markup language like LaTeX remains the best choice for complicated documents and for overall typesetting quality, yet the source code for an equation in LaTeX rarely looks like math.

Background - Office 2007's Equation Editor "Builds-up" Equations

The new Office 2007 equation editor works in a different way that the old equation editor. It uses the AutoCorrect feature of MS Word to do some of the formatting, and it introduces a concept of "Linear" vs. "Professional" formats. Linear format is what you might use in a programming language to write mathematics. E.g. y = (a*x+b)/(x^2+1).

As you type an equation, Word converts it on the fly (Microsoft calls this "building up") into professional format. In order to use the equation editor efficiently, you will need to get used to how Word builds up equations. A good way to learn is to carefully watch what happens on screen are you push each key.

Some symbols are inserted automatically by Word as you type using AutoCorrect. And some formatting is applied as you type. The rule is that the equation is built up when you type any character than makes what you've typed so far unambigious. As a result, AutoCorrect and building up are only triggered by certain keys. The spacebar always builds up and triggers autocorrect, and using it is a good way to force Word 2007 to interpret what you've typed so far.

Learning How to Use the Equation Editor

To insert an equation in a Word 2007 document, click on the "Insert" menu/tab to see the Insert Ribbon. In the Symbols section, choose Equation. You can also press ALT+= on your keyboard.

Insert Ribbon

Insert Equation

You will now see Equation Tools | Design Ribbon. There are three main sections.

Tools

Tools section of the equation ribbon

In the tools section you have access to the Equation Gallery, and you can select Professional, Linear or Normal Text modes. Professional format is rendered two-dimensional math, as you would write on paper or a blackboard. Linear format is the equation editor's internal format. Normal text is for non-mathematical text annotations within an equation.

Professional Format: Example of a professional mode equation

Linear Format: Example of a linear format equation

Notice that linear format has redundant brackets to make the mathematical interpretation unambiguous. When the equation is formatted, Word automatically removes these brackets. The square root symbol is a single character, and its operand is the bracketed expression immediately following the square root character. You can force Word to show an expression in brackets by using two sets of brackets around the expression.

Symbols

Symbols section of the Equation ribbon

The symbols section contains commonly-used mathematical symbols. You can screen with the two scroll buttons, or click the Icon to open symbol window icon to view all of the Basic Math symbols. Then click on "Basic Math" to see other sections of symbols:

  1. Basic Math
  2. Greek Letters
  3. Letter-like Symbols
  4. Operators
  5. Arrows
  6. Negated Relations
  7. Scripts
  8. Geometry

Exercise:

Explore the symbol palettes and find symbols that you will need in your manuscripts.

Structures

Structures part of the equation ribbon

The structures section contains the formatting tools you will use to create equations. Each section contains "structures" which are like a template with one or more symbols, and one or more placeholders for you to place your mathematical content into.

For example, to create a fraction, choose "Fraction" then the first template. You will see a fraction where the numerator and denominator are both boxes with dotted lines. You will place your content in the place of these boxes.

The Matrix structures are not only useful for true matrices and arrays, but can also be used to align certain types of equations and to place notes in and around equations.

Example of Structures

Example equation, definition of a stepwise function

The right hand side of the above equations consists of a Bracket structure. Inside the bracket's placeholder is a 3x2 matrix. In order for this to look right, the matrix has been modified for left alignment of the second column, and the word "if" has been changed to "Normal text".

Keyboard Entry of Equations

Standard characters that are on your keyboard you will type directly into the equation editor. The equation editor also recognizes many conventions of typing math on a keyboard:

Keyboard Result
^ Superscript
_ Subscript
/

Fraction

() {} [] Standard brackets
<, >

Inequalities

<=, >= Converted to standard less/greater than or equal to

In addition, there are a number of symbols that can be entered by typing backslash \ and the name of the character. (This is similar to LaTeX formatting codes.)

Keyboard Result
\alpha, \beta, \gamma, \delta Greek Letters
\Alpha, \Beta, \Gamma, \Delta Uppercase Greek Letters
\pm or +- Plus/Minus symbol
\sqrt Square root symbol
\le or <= Less than or equal to

As you type, the equation editor converts recognized symbols to its graphical characters. Sometimes this conversion is real-time, other times it does not get triggered. You can trigger an update of the last thing you typed by pressing the space bar. You can always choose "Professional" format to force the equation editor to render and interpret what you've typed so far.

Putting an Equation Button on the Tool Bar

Exercise 2:

If you are entering many equations, you may find it convenient to have an "Insert Equation" button right on the Quick Access Toolbar.

  1. Click on the arrow to the right of the Quick Access Toolbar
    Quick Access Toolbar
  2. Choose More Commands...
  3. Under Choose commands from, select "Insert Tab", choose "Equation" from the list and click "Add"
    Add equation to quick access tool bar
  4. Click "OK".

Moving Around the Equation

The cursor indicates where you are about to enter information on the equation. The equation editor highlights the region of the formula in which you are working, e.g. the placeholder of a bracket, a superscript, a numerator/denominator of a fraction. You can set the insertion point by clicking with the mouse, or with the keyboard. You can use the left arrow and right arrow keys to move through the equation. For more advanced editing, can you change the equation to "Linear Mode", make corrections, then switch back to "Professional Mode".

Exercise:

Enter the equation

Quadratic Formula

Method 1

Start the equation editor (Insert | Symbols | Equation or ALT+=) and:

  1. Type "x=" from the keyboard
  2. Choose a fraction from Structures | Fraction
  3. Click on the numerator, type -b from the keyboard
  4. Select "plus or minus" from the Symbols ribbon
  5. Select a radical from Structures | Radical
  6. Click in the placeholder
  7. Type b from the keyboard
  8. Select "b"
  9. Select a superscript from the Script palette
  10. Select the superscript, Type "2" from the keyboard
  11. Press the right arrow to come down a level, and type "-4ac"
  12. Click the denominator (or press the right arrow twice) Type 2a

Method 2, Keyboard Entry

Tip: You can use extra brackets to show Word how to interpret what you type.

Type "x=(-b+-\sqrt(b^2-4ac))/2a"

Notice:

  1. When you type the second "\" Word replaces +- with the plus or minus symbol. You could also type \pm.
  2. When you type the second "(" Word replace \sqrt with the square root symbol.
  3. When you type "-4ac" Word turns "^2" into a superscript.
  4. When you type the SECOND ")" Word expands the square root.
  5. Word automatically hides redundant parentheses, we entered these to show Word how to format the equation.
  6. Word puts "2a" in the denominator even though this is ambiguous the way we typed it.

Method 3, "Cheating"

Click on the Equation button, and you will find that the quadratic formula is available as a Building Block in the Equation Gallery. You can save your own equations to the Equation Gallery so that you will only have to typeset them once.

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 will automatically grow with the enclosed text. You can toggle this behave by right-clicking in the placeholder section of a bracket, and choose "Stretch Brackets".

Exercise: Typeset a continued fraction.

Continued Fraction

(To enter the above continued fraction from the keyboard, you can type: "1/(2+3/(4+5/(6+7/(8+9/10))))" then press the spacebar to format the final fraction.)

Matrices

Matrices of any size can be created from the Matrix section of the Structures ribbon. Once you have inserted a Matrix, you will be able to right click on it to add or delete columns and rows. You can also change the alignment settings for the rows and columns.

Exercise: Typeset a 4x4 matrix in square brackets.

4x4 Matrix

Formatting a Matrix

Aligning at the equals sign

When you are typing a derivation, you may want to show a calculation with your equals signs lining up. Compare Word's default of centering:

A group of equations centered the wrong way

to the more standard view:

Equations aligned at equals sign

Exercise: Typeset a calculation aligned at the equals sign.

Steps:

  1. Create an equation (Insert | Equation) or ALT+=
  2. Type y=(x-1)(x+1)(x^2+1)
  3. Press SHIFT-ENTER (this tells Word to create a new line, but to group it with the current equation)
  4. Type y=(x^2-1)(x^2+1)
  5. Press SHIFT-ENTER
  6. Type =(x^4-1)
  7. Your equations are now being centered as a group, but they are aligned on the left
  8. Select the equals sign (=) in each equation, right click and choose "Align at this character"

Aligning a set of equations

In system of several variables, you may have several equations in the same variables and want the coefficients lined up:

Equation Array

At this time, there is no way to create an equation array from the menu interface. You would not want to use a matrix for this type of alignment, because it would be difficult to get the spacing right. In addition, an equation array automatically aligns at the equals signs. Here is how to create an equation array using the keyboard:

  1. Create an equation (Insert | Equation) or ALT+=
  2. Type \eqarray
  3. Type (2&x + &3&y + &&z = &10& @
  4. Type 4&x + &&y -&&z = &3& @
  5. Type &x + &10&y+&&z = &25&)
  6. Press spacebar

How this works

The \eqarray symbol tells Word that this is an equation array. Everything in the brackets that follows it the equation array. A new row is started with @. The & symbols are used to line up the equation. The & before a number tells Word to insert space at that position if necessary. The & after the number is the alignment point. The first, third, fifth, and every odd ampersand is an alignment point. Each even ampersand is a spacer where Word can add space to line up the equations.

Functions

Properly typeset function names should be in roman text (not italic). Word has a built-in list of recognized functions and will make this change automatically for these. If you use other function names, you can manually change them to "Normal text" or add them to Word's list of recognized functions. In the piecewise function definition above, we manually changed "if" to normal text. But you would never have a variable called "if". Here's how you add "if" to Word's list of functions.

  1. Click on an equation, or create a new equation to display the Equation Tools | Design ribbon.
  2. In the Tools section, click the small arrow pointing down and to the right.
    Icon used to open options window
  3. Click on Recognized Function
  4. Type "if" and click Add
  5. Click OK on each window to return to your document

Inserting Spacing Into an Equation

You should not normally attempt to add space to an equation. The Equation Editor automatically adds space where appropriate and should produce results that match what is done in professional typesetting. However if you need to tweak the spacing, you can use these commands.

\zwsp 0 em (Zero-width space)
\hairsp 1/18 em
\thinsp 3/18 em
\medsp 4/18 em
\thicksp 5/18 em
\vthicksp 6/18 em
\ensp 9/18 em (en space)
\emsp 1 em (em space)
\nbsp Non-breaking space

The non-breaking space is used to insert space between words that will not be broken over a line. It is especially useful for function names that contain a space, such as "lim sup" or "lim inf".

Editing an Existing Equation from a Legacy document

"Microsoft Office Word 2007 includes built-in support for writing and editing equations. Previous versions used the Microsoft Equation 3.0 add-in or the Math Type add-in. Equation 3.0 was included in previous versions of Word and is available in Office Word 2007. Math Type was not included in previous versions of Word but was available for purchase. If an equation was written in a previous version of Word and you want to edit the equation by using Office Word 2007, you need to use the add-in that was used to write the equation. If you purchased Math Type, you need to have Math Type installed." (from Microsoft Word 2007's help)

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.

Positioning of Equations

Equations can appear in-line Example of an inline equationin a line of text. The line spacing will adjust accordingly (and will likely look better than in this web-based example). 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, click on the equation menu, and choose the appropriate alignment under Justification. You can also choose either "Change to Inline" or "Change to Display" to change the equation's size and display position.

Display equations in Word 2007 cannot have any other text on the same line. If you add text to the line containing your equation, Word 2007 will automatically change it to an inline equation. In most cases, you do not want this, it will make your equations too small, especially if they contain complicated fractions or subscripts. This makes numbering equations in Word 2007 more complicated than in previous versions, and the common practice of numbering equations on the right hand side requires a workaround.

Numbering Equations

Equations to be numbered are usually centered with the number at the right margin. Word 2007 does not have built-in support for equation numbering, and at this time, we do not have a preferred solution. What follows is a method of using tables suggested by Microsoft developers, but it is not perfect. There are also equation numbering macros available from a member of Microsoft Research, however they are unofficial and not supported by Microsoft.

Because of these limitations, we highly recommend that you check with your thesis supervisor, department, and any journals you are planning to submit to and determine what formatting will be required. You will want to ensure that you have set this up in Word before you start typesetting your work.

Equation Numbering using Tables

One technique is suggested by Jennifer Michelstein in Microsoft's Word Blog: http://blogs.msdn.com/microsoft_office_word/archive/2006/10/20/equation-numbering.aspx

In this approach, you create a 3x1 table, with the middle (2nd) column wide and centered. The equation goes in the middle column, and the equation number goes in the the right-most column. To use chapter numbers in your equation numbers with this technique, you will need to manually update the numbering at the beginning of each chapter.

  1. Insert a table with 3 columns and 1 row.
    Insert Table for Equation Number
  2. Click in the rightmost cell in your table. In Table Tools | Layout | Cell Size, click the dialog launcher icon to open Table Properties:
    Table Properties
  3. In Table, set Preferred width to 100%.
  4. In Column set width to 15%, 70% and 15% for columns 1, 2, and 3.
  5. In the Cell tab (for the rightmost cell) set vertical alignment to Center.
  6. Click OK and select your table.
  7. In Table Tools | Design, click the arrow for Borders then No Border.
  8. Click in the rightmost cell. In the Home Ribbon, click the arrow for lists, and choose Define new Multilevel List:
    Equation number
  9. Add brackets to the formatting string for level 1. This will be the format for equation numbers without chapter numbers. For equation numbers with chapter numbers, select level 2 and select Include level number from Level 1.
    Equatio Number format Level 2
  10. Now add a period between the 1 and the a and insert an open bracket at the beginning.Then change Number style to 1, 2, 3... (Leaving the "a" in place lets you see the difference between the numbers for levels 1 and 2.)
    Equation Number Format
  11. If necessary, change the List Level for your number to include or not include the chapter number.Right-click on the number, choose Numbering, then Change List Level then select the appropriate format.
    Change list level
  12. Click in the middle cell of your table and insert an equation (ALT+=).
  13. Select your table, and choose the Equation menu, then Save Selection to Equation Gallery:
    Equation Gallery
  14. Give your equation a name (e.g. Numbered Equation), under Category choose Create New Category and provide a name starting with AAA. (This makes your equation show up first, the category has to be alphabetically before "Built-in". Click OK.
  15. Now to insert a numbered equation, click on the equation button and choose Numbered Equation from the menu.
    Insert Numbered Equation
  16. If you include the chapter numbers in your equation numbers, you will need to update these manually. At the first equation number in a new chapter, right click on the equation number and choose Set Numbering Value. Click on Continue from previous list and check off Advance value. Then you will be able to set the value for both the chapter number and the equation number.
    Set Numbering value

Equation Numbering using Macros that create Tables

Another technique comes from Dong Yu of Microsoft Research. He has developed macros for equation numbering that create 2x1 tables with a tab in the first column to align the equations. You can choose whether to number with or without chapter numbers. There is also a mechanism to include a chapter increase indicator with your chapter headings so that chapter numbers increase properly. These methods should make equation numbering mostly automatic.

http://research.microsoft.com/~dongyu/Office2007EqnNumber.txt

Although these macros come from someone who works at Microsoft Research, they are not an official feature, so are not supported and may not work in future versions or updates of Office 2007. You should only use them if you are familiar with macros and have the confidence and ability to modify them to suit your needs.

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 Home | Editing | Select | Select All, and then press F9.

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..." While you could enter the equation number as text, this will quickly become out of date as you edit your document. 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 standard formatting.

You will need to use a Bookmark to reference the equation number.

Bookmarking an Equation Number

Exercise:

  1. Click on the equation number to select it, then issue the command Insert, Bookmark.
    Bookmark dialog
  2. 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:

  1. 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.
    Insert Cross Reference
  2. Under Reference Type select Bookmark, and from the presented list of bookmarks, choose the appropriate one. Under Insert reference to select Paragraph number (full context) 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.

Creating Equations in PowerPoint

You cannot insert a Word 2007 equation directly into PowerPoint. You can copy and paste an equation from a Word 2007 document into PowerPoint, however the equation will appear as a graphic. The equation will also not resize gracefully since it is a bitmap. In order to get around this, you can increase the font size of the equation in Word before copying it.

See the notes for the Microsoft Equation Editor 3.0 for instructions on how to use the previous version of the equation editor in PowerPoint.

Last updated October 2, 2007 by William Lewis, IST.

Last updated April 14, 2009

Visitors since 3/12/2009