Getting Started Guide
Getting Started Guide
Chapter 9
Getting Started with
Math
OpenOffice.org's Equation Editor
Copyright
This document is Copyright © 2005–2008 by its contributors as listed
in the section titled Authors. You may distribute it and/or modify it
under the terms of either the GNU General Public License, version 3 or
later, or the Creative Commons Attribution License, version 3.0 or
later.
All trademarks within this guide belong to their legitimate owners.
Authors
Agnes Belzunce
Daniel Carrera
Peter Kupfer
Ian Laurenson
Janet M. Swisher
Jean Hollis Weber
Feedback
Please direct any comments or suggestions about this document to:
authors@user-faq.openoffice.org
Acknowledgments
This chapter is extracted from Chapter 16, “Math Objects: The
OpenOffice.org Equation Editor” in the Writer Guide.
df x −1 2
=ln x tan x (1)
dx
Getting started
To insert an equation, go to Insert > Object > Formula.
The equation editor opens at the bottom of the screen, and the floating
Selection window appears. You will also see a small box (with a gray
border) in your document, where the formula will be displayed, as
shown in Figure 1.
Entering a formula
There are three ways to enter a formula:
• Select a symbol from the Selection window.
• Right-click on the equation editor and select the symbol from the
context menu.
• Type markup in the equation editor.
The context menu and the Selection window insert the markup
corresponding to a symbol. Incidentally, this provides a convenient way
to learn the OOoMath markup.
Categories
Symbols
Entering a formula 5
You can hide (or unhide) the Selection window with View >
Tip Selection.
Example 1: 5×4
For this example we will enter a simple formula: 5×4 On the Selection
window:
1) Select the top-left button of the categories (top) section
(Figure 3).
2) Click on the multiplication symbol (shown in Figure 3).
Unary/binary operators
Multiplication
The <?> symbols (Figure 4) are placeholders that you can replace by
other text. The equation will update automatically, and the result
should resemble Figure 5.
Right-click menu
Another way to access mathematical symbols is to right-click on the
equation editor. This produces a menu as shown in Figure 6.
Entering a formula 7
Markup
You can type the markup directly on the equation editor. For example,
you can type 5 times 4 to obtain 5×4 . If you know the markup, this
can be the fastest way to enter a formula.
a2 a^2 an a_n
Greek characters
Greek characters ( , , , , etc) are common in mathematical
formulas. These characters are not available in the selection box or the
right-click menu. Fortunately, the markup for Greek characters is
simple: Type a % sign followed the name of the character, in English.
• To write a lowercase character, type the name of the character in
lowercase.
• To write an uppercase character, type the name of the character
in uppercase.
See the table below for some examples.
Lowercase Uppercase
%alpha %ALPHA A
%beta %BETA B
%gamma %GAMMA
%psi %PSI
%phi %PHI
%theta %THETA
Example 2: ≃ 3.14159
For this example we will suppose that:
• We want to enter the above formula (the value of pi rounded to 5
decimal places).
• We know the name of the Greek character (pi).
• But we do not know the markup associated with the ≃ symbol.
Step 1: Type % followed by the text pi. This displays the Greek
character .
Step 2: Open the Selection window (View > Selection).
Step 3: The ≃ symbol is a relation, so we click on the relations button
. If you hover the mouse over this button you see the tooltip
Relations (Figure 8).
Entering a formula 9
Figure 8. Tooltip indicates
the "Relations" button.
Step 4: Delete the <?> text and add 3.14159 at the end of the
equation. Hence we end up with the markup %pi simeq 3.14159. The
result is shown in Figure 9.
Customizations
Figure 11 shows the result. You can make the floating window back
into an embedded frame, using the same steps. Hold down the Control
key and double-click the window frame.
Customizations 11
Figure 12. Changing the font size for a formula
2) Select a larger font size under Base size (top-most entry), as
shown in Figure 12.
Formula layout 13
Common problem areas
int from Re f ∫f
ℜ
∞
sum to infinity 2^{-n} ∑ 2−n
Rows are separated by two #’s and entries within each row are
Note separated by one #.
The first problem people have with matrices is that brackets do not
scale with the matrix:
Markup Result
( matrix { a # b ## c # d } ) a b
c d
Numbering equations
Equation numbering is one of OOoMath’s best hidden features. The
steps are simple, but obscure:
1) Start a new line.
2) Type fn and then press F3.
The fn is replaced by a numbered formula:
2
E=mc (2)