Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (2024)


This book is about the Math Builder (officially called as Equation Editor) tool in Microsoft Word and Outlook 2007 and higher. It also applies to Microsoft PowerPoint and Excel 2010 and higher. Note that this is a different tool than the legacy tool Equation Editor 3.0 (which is still available on 32-bit Office versions until the January 2018 update[1]) and MathType.

Typesetting mathematics on a computer has always been a challenge. The mathematical community almost universally accepts a typesetting language called LaTeX. Math Builder is a much easier to use tool that has less functionality than LaTeX but more than typical document processing. Microsoft call this hybrid language the Office Math Markup Language, or OMML for short. It is an appropriate tool for:

  • Typing any document whose focus is not itself mathematics.
  • Typing a short math document quickly.
  • A stepping stone between word processing (MS Word) and typesetting (LaTeX)

Note that Math Builder does not perform any mathematics; it is a tool for displaying it.

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (1)

There is a serious bug on Word versions up to and including Word 2013 that causes the first letter of small equations to disappear randomly after some time. The only way to mitigate this problem is to upgrade to Word 2016, which does not have this problem. This has not been verified with Equation Editor or Word for Mac.

Contents

  • 1 Pros and Cons
  • 2 Inserting an equation
  • 3 Common Mathematics
    • 3.1 Fractions
    • 3.2 Parenthesis, brackets, and braces
    • 3.3 Exponents and subscripts
    • 3.4 Symbols: '"`UNIQ--postMath-00000005-QINU`"' etc
    • 3.5 Greek, Script, and Fraktur letters
    • 3.6 Blackboard Bold letters
    • 3.7 Mathematical Physics
      • 3.7.1 Vectors
      • 3.7.2 Newtonian Dot Notation
      • 3.7.3 Vector Products
    • 3.8 Matrices
    • 3.9 Multiple Aligned Equations
    • 3.10 Radicals
    • 3.11 Integrals
  • 4 Inline versus Display
  • 5 Modifying and creating shortcuts
  • 6 References

Pros and Cons[edit | edit source]

Pros:

  • Math Builder is WYSIWYG: after typing an equation you see immediately what it looks like.
  • It's easy to get started: it's already built in to Microsoft Word. Common symbols have point-and-click icons.
  • It's easy to use: Common symbols have keyboard shortcuts so that a veteran user need not use a mouse at all.
  • Nearly all symbols use the same commands as LaTeX.
  • The format used is non-proprietary and given in Unicode Technical Note #28.
  • It can be used in Outlook to easily write equations in emails; it renders as images to the recipent.

Cons:

  • Some uncommon symbols are not listed in the menu and require knowing the keyboard shortcut. Typically this is the LaTeX code for the symbol.
  • There are differences between Math Builder and LaTeX code: advanced functionality that requires more than just a symbol tend to follow the same flavor but have slightly different syntax. Math Builder code tends to be shorter than LaTeX code and disappears upon completion to the WYSIWYG output. Examples here are matrices, multiple aligned equations, and binomial coefficients.
  • No LaTeX typesetting tools such as labels and references are implemented.
  • No highly advanced LaTeX tools such as graphing, commutative diagrams, or geometric shapes are implemented. (Note:- Geometric shapes are otherwise available in the Insert ribbon)
  • Students studying mathematics might not be motivated to learn LaTeX because they might be able to get by with Equation Builder in Word to satisfy the vast majority of their needs. However, when such a student reaches the limits, unlike LaTeX there is absolutely no recourse to expand the program to satisfy it.

Inserting an equation[edit | edit source]

Microsoft Word has two different typing environments: text and math. To obtain the math environment, click on "Equation" on the "Insert" ribbon on Windows or Word for Mac '16, or in "Document Elements" on Word for Mac '11. The keyboard shortcut is "alt"+ "=". For a Mac system, the shortcut is "control" + "=" or "control" + "shift" + "+". Everything you type in this environment is considered math: all automatic formatting of text is disabled. To exit the math environment, click on any text outside the math environment. One easy way to do this is by pressing the right arrow key.

Common Mathematics[edit | edit source]

Fractions[edit | edit source]

There are multiple ways to display a fraction. The default is vertically aligned as illustrated below. Obtain this by typing the fraction and pressing space: 1/2

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (3)

Linear fraction (resp. skewed fraction) is obtained using \ldiv (resp. \sdiv) and pressing space (twice) or by typing 1 \ldiv 2 (resp. 1 \sdiv 2) and pressing space. While you can also do this by right-clicking on the equation and clicking Linear, this affects the whole equation and not just the fraction.

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (4)

Parenthesis, brackets, and braces[edit | edit source]

Grouping symbols will automatically size to the appropriate size. These symbols include "(), {}, [], ||". For instance, the expression below can be obtained with (1/2(x+1)):

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (5)

Be careful to press space after the "2" to render the fraction, otherwise Word might put "x+1" in the denominator. Also press space after typing every closing parenthesis ")", which will adjust both the opening and closing parentheses size to fit the group's contents. Because the 1/2 fraction is is quite tall, the outer parentheses need to be adjusted to enclose the fraction appropriately. To be exact, the key presses required to reproduce the equation above are ( 1 / 2 space ( x + 1 ) space(optional) ) space.

Exponents and subscripts[edit | edit source]

Exponents can be obtained by using "^" and subscripts by "_". The monomial below can be obtained by typing x_2^5 or x^5_2 and pressing space.

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (6)

Symbols: Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (7) etc[edit | edit source]

These are all common symbols. The easiest thing to do would be to find a LaTeX reference sheet. A few of those symbols are shown here:

codeoutput
\neq or /=Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (8)
\leq or <= (resp. \geq or >= )Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (9) (resp Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (10))
\subseteqTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (11)
\veeTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (12)
\rightarrow or ->Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (13)
\Rightarrow or =>Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (14)
\timesTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (15)
\divTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (16)
\pm or +- or -+Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (17)
\inftyTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (18)
\otimes (resp. \oplus)Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (19) (resp. Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (20))
\hbarTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (21)
\partialTyping Mathematics in Microsoft Word - Wikibooks, open books for an open world (22)

Greek, Script, and Fraktur letters[edit | edit source]

The math environment implements 3 fronts in addition to the default.

  • Greek letters can be obtained by typing a "\" followed by the name of symbol. Capitalizing it creates a capital letter. \delta \Delta produces Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (23)
  • Script letters can be obtained by typing "\" followed by "script" followed by the letter. \scriptd \scriptD produces Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (24)
  • Fraktur letters can be obtained by typing "\" followed by "fraktur" followed by the letter. Fraktur does not have capitals. \frakturd produces Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (25)

Blackboard Bold letters[edit | edit source]

Blackboard bold letters can be obtained by typing "\" followed by "double" followed by the letter. \doubled \doubleD produces Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (26)

Mathematical Physics[edit | edit source]

Vectors[edit | edit source]

A vector is often denoted by an overhead right arrow, which can be obtained by following a letter variable with "\vec": Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (27). Unit vectors (e.g. Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (28)) are denoted by a hat (circumflex), which can be obtained by following a letter variable with "\hat". The gradient (also known as del or nabla) operator Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (29) may be displayed using "\nabla".

Newtonian Dot Notation[edit | edit source]

Dot notation for time derivatives (e.g. Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (30))can be obtained by following a letter variable with "\dot" for a first derivative and "\ddot" for a second derivative.

Vector Products[edit | edit source]

The dot product (inner product) can be displayed using the centered dot symbol "\cdot" e.g. the divergence Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (31). The cross product can be displayed using "\times" e.g. the curl Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (32).

Matrices[edit | edit source]

Matrices are obtained with the "\matrix" symbol. Use parentheses to start and end the matrix. Use "@" to separate rows, and "&" to separate columns. The matrix below can be created by typing [\matrix(1&2&3@4&5&6)].

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (33)

Multiple Aligned Equations[edit | edit source]

Aligning equations can be obtained with the "eqarray" symbol. Use parentheses to start and end the matrix. Use "@" to separate equations. Use "&" to specify alignment and whitespace. The first "&" and then every other occurrence is alignment. The second and then every other occurrence is white space. The equations below can be obtained by typing the following text:

\eqarray(2&x+&3&y=5@&x+&&y=7)

Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (34)

(The math environment here seems to be adding excess space between the alignments that doesn't occur in Word)

Radicals[edit | edit source]

Radicals are obtained using the "\sqrt" symbol, followed by the index, then "&", then the radicand.

For example: \sqrt(a&b) will output Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (35).

Additionally, \sqrt(x) will simply output Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (36).

Integrals[edit | edit source]

codeoutput
\int
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (37)
\int_a^b
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (38)
\iint_a^b
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (39)
\iiint_a^b
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (40)
\oint_a
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (41)
\oiint_a
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (42)
Double oriented integral
(No corresponding Wikibooks math symbol)
\oiiint_a
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (43)
Triple oriented integral
(No corresponding Wikibooks math symbol)
\coint_a
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (44)
Clockwise oriented integral
(No corresponding Wikibooks math symbol)

Integrals are obtained by inserting the desired integral symbol (see above table), and then pressing space twice.[2]

For example: \int_a^b space space 1/x space dx will output Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (45)

Inline versus Display[edit | edit source]

Equations have two forms. Inline specifies that the equation is to be in line with text. This affects a few expressions to make them appear smaller. For instance fractions will use a smaller font. Summations and integrals will place the endpoints to the right of the symbol instead of below it.Display specifies to use as much space as needed. Display mode equations must appear on their own line.

Modifying and creating shortcuts[edit | edit source]

Everything in Math Builder requires special symbols that the computer knows how to interpret. These symbols are constructed with all the commands starting with "\" as illustrated in the above sections. This is implemented via math autocorrect which you can modify. For instance, you might like to use \ra instead of \rightarrow. You can do this by adding the command to the math autocorrect directory.

References[edit | edit source]

  1. https://support.office.com/en-us/article/Equation-Editor-6eac7d71-3c74-437b-80d3-c7dea24fdf3f
  2. Iztok Hozo. "Using Word 2007's new equation editor" (PDF). Indiana University Northwest. Retrieved 06-05-2019. {{cite web}}: Check date values in: |accessdate= (help); Unknown parameter |dateformat= ignored (help)
Typing Mathematics in Microsoft Word - Wikibooks, open books for an open world (2024)
Top Articles
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 5832

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.