Example 1

From Apache OpenOffice Wiki
Jump to: navigation, search



Example 1:

For this example we will enter a simple formula:. On the Elements window:

  1. Select the top-left button of the categories (top) section.
  2. Click on the multiplication symbol.
AOO41GS09 003.png
Figure 204. Selecting the multiplication symbol

When you select the multiplication symbol on the Elements window, two things happen:

  • The equation editor shows the markup: <?> times <?>
  • The body of the document shows a gray box like this: ❑×❑
AOO41GS09 004.png
Figure 205. Result of selecting the multiplication symbol

The <?> symbols shown in Figure 205 are placeholders that you can replace by other text, for example 5 and 4. The equation will update automatically, and the result should resemble Figure 206.

Tip.png To keep the equation from updating automatically, choose View → AutoUpdate Display from the menu bar. To update a formula manually, press  F9  or pick View → Update.


AOO41GS09 005.png
Figure 206. Result of entering 5 and 4 next to the times operator

Right-click (Context) Menu

Another way to access mathematical symbols is to right-click on the equation editor. This pops up the menu shown in Figure 207. The items in this menu correspond exactly to those in the Elements window.

AOO41GS09 006.png
Figure 207. Right-click (Context) Menu

Markup

You can type the markup directly in the equation editor. For example, you can type 5 times 4 to obtain . If you know the markup, this can be the fastest way to enter a formula.

Tip.png The formula markup resembles the way the formula reads in English.


Below is a short list of common equations and their corresponding markup.

Display Command Display Command
a = b sqrt {a}
a^2 a_n
f(x)dx int f(x) dx sum a_n
a <= b infinity
a times b x cdot y

Greek Characters

Greek characters (, and so on) are common in mathematical formulas. These characters are not available in the Elements window or on the right-click menu. Fortunately, the markup for Greek characters is simple: Type a % sign followed by the name of the character, in English. (In localized versions of OpenOffice, these names are localized.)

  • 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.

A complete table of Greek characters is provided in the Math Guide. See the table below for some examples.

Lowercase Uppercase
 %alpha  %ALPHA →
 %beta  %BETA →
 %gamma  %GAMMA
 %psi  %PSI
 %phi  %PHI
 %theta  %THETA

Another way to enter Greek characters is by using the Symbols catalog window. Choose Tools → Catalog. Under Symbol set, select Greek and double-click on a Greek letter from the list. The markup name of the character is shown below the list window.

AOO41GS09 007.png
Figure 208. Symbols catalog used for entering Greek characters and some special symbols.
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools