8/3/2019 Equation Writing
1/14
Microsoft Word, 2007/2010 Equation Writing Shortcuts
Word 2007 included a new equation writer. This is incorporated into Excel in Office 2010
(see comments later).
To write an equation in Word 2007 or 2010 you need to be working on a docx file, not a doc
file. Select Equation (top right) from the Insert ribbon. The shortcut is Alt =.
The following box will appear:
You can write, e.g., x+y=z to get .At any stage you can edit an equation by just clicking on it like text.
You can select all the symbols you need from the Equation Tools Design ribbon, but equation
is much faster if you learn some shortcuts. Useful shortcut commands are given below. Most
are completed by typing a space. Often you need to type a space (or two) before leaving the
equation. For clarity spaces are shown here as
Command Example Result
Subscript x_y Superscript x^2 Brackets ( )
Unnecessary brackets are
removed automatically
y=(X^2/d2)
Fractions x/y Square root, cube root \sqrt x+ \cbrtx n
throot \sqrt(n&x)
plus/minus 10+-2 times 10 \times2 less than or equal =
Greek letters \gamma \Gamma
Integral \int \int_(x_0)^(x_1)ydy
Sum \sum_(i=1)^nx_i
8/3/2019 Equation Writing
2/14
product \prod_(i=1)^nx_i
hat, bar, tilde, dot, double
dot, triple dot, vector
x\hat = y\bar + z\tilde
w\dot+x\ddot-f\vec
plain text for any x_i array \matrix(a&b@c&d) matrix [\matrix(a&b&c@c&d&e)] [ ]Equation array \eqarray 2x+y=z@3x+4z=5 rectangle \rect(x=y) below above lim\below (n-> \infty) limsin sin(2t) () x->y Any of the characters in the Character map can be used (Start menu, All Programs,
Accessories, System Tools, Character Map). If a keystroke is shown in the bottom right you
can use Alt + the key number.
Examples Alt+0177 (using the numeric keypad) gives .
Alt+0176 gives (for C)
If no keystroke is given you can use the Unicode. Type the unicode in Hex then Alt+x.
Example: the Unicode for is 221E so type 221E then Alt+x.
Equation Examples
Type "x=(-b+-\sqrt(b^2-4ac))/2a " to get: (note the last space)
Notice how brackets are automatically removed when not required.
To produce
type V=2\pi/(\piR^2) \int_0^R ru_z dr
8/3/2019 Equation Writing
3/14
Special commands and notes
Open and Close
The \open and \close ( ) commands are used when only one bracket is required, e.g. toobtain the following
|| {
type |x| = {\eqarray(&x" if "x 0@&x" if "x < 0)
of
The ofoperator helps spacing of terms in function. It is motivated by phrases such as the
sin of 2x. Type the following to see how it works:
sin\of2x=sin2x+sin(2x) ()The of operator is also very useful for getting the correct representation of integral, sums
and products. Compare \int\ofdx/x and \int(dx/x) and \int dx/x
and . / Spaces
There are a range of spaces: zwsp (zero width), hairsp, thinsp, medsp, thicksp, vthicksp, ensp
(en), nbsp (no break).
To see some of the differences: type W_a W\zwsp_a W\hairsp_a W\thinsp_a W\medsp_a
W\thicksp_a W\vthicksp_a W\ensp_a
The spaces are not all as expected.
In line vs new line
The appearance of an equations depends on if it is an existing sentence line or in a new line.
For example type \int\of dx/x both in a line and in a new line to get or
As soon as another character is added to the line the equation is shrunk. This is annoying asthis will always happen when an equation number is added. To get over this problem use a
table as suggested byhttp://ist.uwaterloo.ca/ec/equations/equation2007.html. Instructions are
given on the next page.
Font size, colour, bold, and italics
The size of the equations can be changed using the font size. Just click on an equation and
change the font size. To change the colour, select all of the equation or the box surrounding
it and change the text colour, or background colour.
Use Ctrl+i and Ctrl+b to toggle italics and bold on and off, e.g.,
http://ist.uwaterloo.ca/ec/equations/equation2007.htmlhttp://ist.uwaterloo.ca/ec/equations/equation2007.htmlhttp://ist.uwaterloo.ca/ec/equations/equation2007.htmlhttp://ist.uwaterloo.ca/ec/equations/equation2007.html8/3/2019 Equation Writing
4/14
Creating a Numbered Equation Template in Word 2007/2010
(fromhttp://ist.uwaterloo.ca/ec/equations/equation2007.html)
It is intended that these instructions be followed with a copy of this document open in Word.
Once you carry out instructions 1 and 2, the numbered equation you create should be
available in any document.
(1.1)1. Select all of the equation table above, and choose
the Equation menu (from Insert, Equation down
arrow) then Save Selection to Equation Gallery:
2. Give your equation a name (e.g. NumberedEquation), under Category choose Create NewCategory 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.
3. Now to insert a numbered equation (inanother document perhaps), click on the
equation button and choose Numbered
Equation from the menu or use the
shortcut Alt N then Alt E .
4. In Word 2010 the table that has beencreated does not seem to show up. Clickon the equation and select the Layout tab
and then View Gridlines.
5. If you insert one equation after another they might join to form a single table. Youcan press after inserted one equation before the next. If necessary click on
your table and use Layout, Split Table (it splits above the selected row)
6. If you include the chapter numbers in yourequation numbers, you will need to update thesemanually. 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 offAdvance value.
Then you will be able to set the value for both the
chapter number and the equation number.
7. Close MS Word and click Yes to save the template(building block). It is recommended that you close Word now to save this change.
http://ist.uwaterloo.ca/ec/equations/equation2007.htmlhttp://ist.uwaterloo.ca/ec/equations/equation2007.htmlhttp://ist.uwaterloo.ca/ec/equations/equation2007.htmlhttp://ist.uwaterloo.ca/ec/equations/equation2007.html8/3/2019 Equation Writing
5/14
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...". This cannot be done as easily as expected in Microsoft.
The following method is a little clumsy.
You will need to use a Bookmark to reference the equation number.
Bookmarking an Equation Number
1. Click on the equation number to select it, then issue the command Insert, Bookmark.
2. Assign a meaningful name to the Bookmark (bookmark names should start with aletter and should not include any spaces), and clickAdd. Repeat this process for
any equation that you wish to reference.
Creating the Cross Reference
To create a cross reference to the equation
somewhere in your text, first type anyintroductory text, such as "As we saw in
Equation" and then issue the command Insert,
Reference, Cross Reference.
1. UnderReference Type selectBookmark, and from the presented list
of bookmarks, choose the appropriate
one. UnderInsert reference to select
Paragraph number (full context) and
clickInsert.
8/3/2019 Equation Writing
6/14
Updating Field Numbering
If you add or delete equations in the middle of the document, the numbers may not be
automatically updated. To update, press CTRL+A for Select All, then press F9.
NotesIn Insert Equation, right click on an equation to organise them. Delete unwanted equations.
There can be duplicates.
How Equation Works
Equation editor uses Maths autocorrect.
To see more, click on an equation, then from the Equation Tools
Design tab, click on Tools ,Then click on Math AutoCorrect and Recognised
Functions to learn more.
Equations in Excel 2010
The same equation editor can be used in Excel 2010
(but not 2007).
You can either insert an equation directly into a sheet orinto a text box. The shortcut Alt= does not work except
if you have already created a text box to put the
equation in. There does not seem to be a shortcut (not
even a ribbon shortcut).
Select Equation from the Insert Menu.
For Excel an object box is provided. This does not
autosize so needs to be extended if the equation is too
large. Equations options are not available on the equation editing box, but instead they can
be accessed by clicking on the equation and using the Equation Tools Design ribbon.
Equations in PowerPoint 2010
These seem to be similar to Excel 2010. The shortcut Alt = works within a text box.
8/3/2019 Equation Writing
7/14
Table of Maths AutoCorrect.
Below is a complete list of AutoCorrect words that can be used in equations. All of these are
case sensitive.
For each of these use \keywordthen a space. To make the spaces clear they are shown below
as
For simple cases no example is given. Where another word is shown in brackets, it indicates
the opposite keyword.
Keyword Example Result
above y\abovex acute y\acute aleph amalg angle approx aoint asmash asterix asymp atop Bar x\Bar bar x\bar because begin (end) \begin below z\belowx beth bot x\boty bigcap, bigcup. bigodot,bigoplus, bigotimes
bigsqcup, biguplus bigvee
bigwedge
bowtie bot bra (ket) breve x\breve
8/3/2019 Equation Writing
8/14
bullet \bulletx cap x\capy cbrt cdot x\cdoty cdots check x\check chi Chi circ close \close clubsuit
coint
cong cup daleth dashv y\dashvx dd \int x\dd x ddddot x\ddddot+y (or) x\ddddot or dddot x\dddot+y ddot x\ddot+y ddots degree delta Delta diamond diamondsuit
div dot x\dot
doteq dots doublea doubleZ etc Downarrow downarrow dsmash ell emptyset
8/3/2019 Equation Writing
9/14
end
enspace xy\enspacez epsilon, Epsilon eqarray \eqarray(2x+y=z@3x+z=5) equiv eta Eta \eta\Eta exists forall fraktura frakturZ gamma Gamma ge \ge or >= or \geq gets gg gimel grave e\grave hairsp xy\hairspz hat x\hat hbar
heartsuit hookleftarrow hookrightarrow hphantom hvec x\hvec iiint iint
int Im in inc (Delta) infty int iota Iota kappa Kappa
8/3/2019 Equation Writing
10/14
ket lambda Lambda langle lbrace
*
lbrack ,lceil ldiv x\ldivy ldots le leq \le \leq
8/3/2019 Equation Writing
11/14
oiint oint omega Omega ominus open oplus otimes over / x\overy overbar \overbar(x+y) overbrace \overbrace(x+y) overparen \overparen(x+y) parallel partial phantom phi Phi pi Pi pm +- \pm+- pppprime x\pppprime ppprime x\ppprime pprime x\pprime prec preceq prime x\prime prod propto
psi Psi qdrt \qdrt(x) rangle ratio x\ratioy rbrace +rbrack -rceil rddots
8/3/2019 Equation Writing
12/14
Re rect \rect(x+y) rfloor rho Rho Rightarrow rightarrow \Rightarrow\rightarrow -> rightharpoondown rightharpoonup scripta to scriptZ sdiv x\sdiv(y+z) searrow setminus
sigma Sigma sim simeq smash spadesuit sqcap sqcup
sqrt \sqrt(x) sqsubseteq sqsuperseteq star subset subseteq succ
succeq sum superset superseteq swarrow tau Tau therefore theta Theta
8/3/2019 Equation Writing
13/14
thicksp xy\thickspz thinsp xy\thinspz tilde x\tilde times x\timesy
to top x\topy tvec x\tvec underbar \underbar(x+y) underbrace \underbrace(x+y) underparen \underparen(x+y) Uparrow uparrow Updownarrow updownarrow uplus upsilon Upsilon varepsilon varphi varpi varrho
varsigma vartheta vbar x\vbary vdash vdots vec x\vec vee Vert vert |vphantom vthicksp x\vthickspy\thickspz wedge wp wr xi Xi
zeta Zeta
8/3/2019 Equation Writing
14/14
Terms that I dont understand yet are:
box \box(n&x) where n is a code non visible enclosure for
alignment