Wednesday, December 12, 2007

Formula Editor in Open Office Part 4

Link from a blog


Creating and Editing Mathematical Formulas with OpenOffice.org

Math is the OpenOffice.org equation editor, which may be used to create and edit a wide variety of mathematically-oriented information.

Creating attractively formatted algebraic expressions has never been easier, and you can incorporate the resulting equations into technical reports, spreadsheets, or presentations. You can even export formulas in PDF form, publish them on the Web, or save your work in MathML format (an XML-based standard produced by the W3C).

Creating Simple Formulas

Although Math is a separate OpenOffice.org application, you can also create mathematical expressions directly inside most other OOo applications, including Writer, Calc, Impress and Draw. The formula is created as an OLE object, which may then be edited by double-clicking on the formula object.

Creating a formula directly in Writer is probably the most common scenario of all, which is achieved by first typing the required expression, then highlighting the text and finally selecting the Insert > Object > Formula command from the pull-down menu. For example, the original text {a + b} over 2 produces the formula:

A Simple Formula

Equations are actually created and edited by using a mathematical description language, which has a similar syntax to natural language. This means that if you are able to read a mathematical expression out loud, you are very close to being able to create that expression as a formula in Math. As an example, Figure 1 shows a selection of formulas, together with the expressions used to create them.

Creating Simple Mathematical Expressions

Figure 1. Creating simple mathematical expressions.

Looking at these examples, a few of the features of the mathematical description language may be observed:

  1. Basic operators such as addition and subtraction are generally written exactly as they will appear in the final equation.
  2. Math recognizes certain keywords in the formula. Thus, for example, the keyword over creates a fraction with a numerator and denominator, sqrt is replaced by a square root symbol, while sin, cos and tan are recognized as trigonometric functions.
  3. Anything which is not recognized as either a keyword, a function, or an operator is assumed to be a variable, and is shown using an italic font.
  4. Brackets are used to group terms—either visibly or invisibly. Curly brackets { ... } (called group brackets) do not actually appear in the final equation, but instead are used to logically group terms together, as seen with the second example in Figure 1. Round brackets ( ... ) also group terms together, but do appear in the final equation, as seen in the third example of Figure 1.
  5. Raising a number to a power is indicated by using a caret (^) symbol, thus a2 is written as a^2.

Further Examples

I think that's enough theory for one article, but just to show you the power of the Math application, Figure 2 demonstrates some of the more advanced formula types available.

Further Examples of Formulas

Figure 2. Further examples of Math formulas.

Don't worry if advanced mathematical concepts like calculus mean nothing to you—at least the capability is always there if you need it!

Additional Math Features

Math has a number of additional capabilities, in addition to the creation of simple formulas:
  1. Math can help you to create a series of sequentially numbered formulas, which is very useful if you need to produce a report containing mathematical expressions. Simply type fn and then press function key F3 to create a numbered equation in a Writer document.
  2. You can import or export formulas in MathML format (Mathematical Markup Language), which is the accepted standard for the representation of mathematical expressions. MathML is a W3C standard, details of which are available at www.w3c.org/Math
  3. The default appearance of a formula may be overridden by applying custom fonts, colors and text sizes.
  4. OpenOffice.org can export documents containing formulas in Adobe PDF form, which enables them to be read by anyone having the free Adobe Reader application, or browser plug-in.
  5. Documents may also be saved as HTML files, which will cause any embedded formulas to be saved as bitmap images.

The Sales Pitch

This article is based on material taken from Chapter 34 of the eBook Learning OpenOffice.org for Windows--the FREE Application Suite for Home and Office.

If you have found this article interesting then why not download the eBook? At only $18.50 USD and with more than 900 full-color pages it represents tremendous value for money.

You will find this eBook packed with insights into OpenOffice.org, enabling you to get the most out of this superb and FREE alternative to Microsoft Office. Please click here for more details.

See Also

  1. eBook: Learning OpenOffice.org for Windows (ToC) / About
    Chapter 34: Using Math to Create and Edit Formulas > Further Examples of Formula Syntax > Automatically Numbering Equations
  2. Hints and Tips: How do I create automatically numbered formulas?
  3. Hints and Tips: How do I use chapter numbers with automatically numbered formulas?

Formula Editor in Open Office Part 3

Lots more from Wikipedia

This is Chapter 11 of Getting Started with OpenOffice.org 2.x (Third edition), produced by the OOoAuthors group. A PDF of this chapter is available from the OOoAuthors Guides page at OpenOffice.org.

Introduction

OpenOffice.org (OOo) has a component for mathematical equations. It is most commonly used as an equation editor for text documents, but it can also be used with other types of documents or stand-alone. When used inside Writer, the equation is treated as an object inside the text document.

Image:documentation_note.pngThe equation editor is for writing equations in symbolic form (as in equation 1). If you want to evaluate a numeric value, see the Calc Guide.
inline:Object52.png (1)


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.

Equation Editor: Selection window and locations of resulting equation.
Enlarge
Equation Editor: Selection window and locations of resulting equation.

The equation editor uses a markup language to represent formulas. For example, %beta creates the Greek character beta (β). This markup is designed to read similar to English whenever possible. For example, a over b produces a fraction:

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.

Image:documentation_note.pngClick on the document body to exit the formula editor.
Double-click on a formula to enter the formula editor again.

The Selection window

The simplest method for entering a formula is the Selection window, shown below.

Symbols are divided into categories.
Enlarge
Symbols are divided into categories.

The Selection window is divided into two main portions.

  • The top shows the symbol categories. Click on these to change the list of symbols.
  • The bottom shows the symbols available in the current category.
Image:Tip.pngYou can hide (or unhide) the Selection window with View > 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.
  2. Click on the multiplication symbol.
Unary/binary operators.
Enlarge
Unary/binary operators.

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

  • The equation editor shows the markup: times
  • The body of the document shows a gray box with the figure: Object58.png
The multiplication symbol.
Enlarge
The multiplication symbol.

The symbols are placeholders that you can replace by other text. The equation will update automatically, and the result should resemble the figure below.

Result of multiplication
Result of entering "5" and "4" next to the "times" operator.

Image:Tip.pngTo keep the equation from updating automatically, select View > AutoUpdate display. To update a formula manually, press F9 or select View > Update.

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.

Right-click menu.
Enlarge
Right-click menu.
Image:documentation_note.pngThe entries in this menu correspond exactly to those in the Selection window.

Markup

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

Image:Tip.pngAs a mnemonic, the formula markup resembles the way the formula reads in English.

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

DisplayCommandDisplayCommand
a=ba = basqrt {a}
a2a^2ana_n
f(x)dxint f(x) dxansum a_n
a≤ba <= binfinity
a×ba times bx·yx cdot y

Greek characters

Greek characters ( inline:Object5.png , 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 type a lowercase character, write the name of the character in lowercase.
  • To type an uppercase character, write the name of the character in uppercase.

See the table below for some examples.

LowercaseUppercase
%alpha α%ALPHA Α
%beta β%BETA Β
%gamma γ%GAMMA Γ
%psi ψ%PSI Ψ
%phi φ%PHI Φ
%theta θ%THETA Θ
Image:documentation_note.pngA complete table of Greek characters is included in the Writer Guide.

Another way to enter Greek characters is by using the catalog window. Go to Tools > Catalog. The catalog window is shown below. Under “Symbol Set" select “Greek" and double-click on a Greek letter from the list.

Catalog, used for entering Greek characters.
Enlarge
Catalog, used for entering Greek characters.

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 Image:MathRelBtn.png. If you hover the mouse over this button you see the tooltip "Relations".

Tooltip indicates the "Relations" button.
Enlarge
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 below.

Final result.
Enlarge
Final result.

Customizations

Formula editor as a floating window

As seen in Figure 1, the formula editor can cover a large part of the Writer window. To turn the formula editor into a floating window, do this:

  1. Hover the mouse over the editor frame, as shown below.
  2. Hold down the Control key and double-click.
Hold down the Control key and double-click on the border of the math editor to turn it into a floating window.
Enlarge
Hold down the Control key and double-click on the border of the math editor to turn it into a floating window.

The figure below 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.

Equation editor as a floating window.
Enlarge
Equation editor as a floating window.

How can I make a formula bigger?

This is one of the most common questions people ask about OOoMath. The answer is simple, but not intuitive:

  1. Start the formula editor and go to Format > Font size.
  2. Changing font size for a formula.
    Enlarge
    Changing font size for a formula.
  3. Select a larger font size under “Base Size" (top-most entry), as shown below.
  4. Edit Base Size
    Enlarge
    Edit Base Size

    Edit "Base size" (top) to make a formula bigger.

The result of this change is illustrated below.

Result of changing the base font size.
Enlarge
Result of changing the base font size.

Formula layout

The most difficult part of using OOoMath comes when writing complicated equations. This section provides some advice about writing complex formulas.


Brackets are your friends

OOoMath knows nothing about order of operation. You must use brackets to state order of operations explicitly. Consider the following example:

MarkupResult
2 over x + 1Image:Object34.png
2 over {x + 1}Image:Object35.png

Equations over more than one line

Suppose you want to type an equation covering more than one line. For example: Image:Object36.png

Your first reaction would be to simply press the Enter key. However, if you press the Enter key, though the markup goes to a new line, the resulting equation does not. You must type the newline command explicitly. This is illustrated in the table below.

MarkupResult
x = 3
y = 1
Image:Object37.png
x = 3 newline
y = 1
Image:Object38.png


Common problem areas

How do I add limits to my sum/integral?

The “sum" and “int" commands can (optionally) take in the parameters “from" and “to". These are used for lower and upper limits respectively. These parameters can be used singly or together. Limits for integrals are usually treated as subscripts and superscripts.

MarkupResult
sum from k = 1 to n a_k
Image:Object21.png
int from 0 to x f(t) dt
or
int_0^x f(t) dt
Image:Object22.png or Image:Object267.png
int from Re fImage:Object24.png
sum to infinity 2^{-n}Image:Object28.png
Image:documentation_note.pngFor more details on integrals and sums, see the Writer Guide.

Brackets with matrices look ugly!

For background, we start with an overview of the matrix command:

MarkupResult
matrix { a # b ## c # d }Image:Object69.png
Image:documentation_note.pngRows are separated by two #'s and entries within each row are separated by one #.

The first problem people have with matrices is that brackets do not “scale" with the matrix:

MarkupResult
( matrix { a # b ## c # d } ) Image:Object217.png

OOoMath provides “scalable" brackets. That is, the brackets grow in size to match the size of their contents. Use the commands left( and right) to make scalable brackets.

MarkupResult
left( matrix { a # b ## c # d } right)Image:Object218.png

{{Documentation/Tip|Use left[ and right] to obtain square brackets.]]

How do I make a derivative?

Making derivatives essentially comes down to one trick: Tell OOo it's a fraction.

In other words, you have to use the “over" command. Combine this with either the letter “d" (for a total derivative) or the “partial" command (for a partial derivative) to achieve the effect of a derivative.

MarkupResult
{df} over {dx}Image:Object219.png
{partial f} over {partial y}Image:Object264.png
{partial^2 f} over {partial t^2}Image:Object265.png]]
Image:documentation_note.pngNotice that we had to use squiggly brackets to make the derivative.

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:

[[Image:Objekt4.png (2)

Now you can double-click on the formula to edit it. For example, here is the Riemann Zeta function:

[[Image:Object266.png (3)

You can reference an equation (“as shown in Equation (2)") with these steps:

  1. Insert > Cross-reference..
  2. Click on the References tab (Figure 15).
  3. Under Type, select Text.
  4. Under Selection, pick the equation number.
  5. Under Format, choose Reference.
  6. Click Insert.

Done! If you later add more equations to the paper before the referenced equation, all the equations will automatically renumber and the cross-references will update.

Image:Frame15.png
Image:Tip.pngTo insert the equation number without parenthesis around it, choose Numbering under Format instead of Reference.



Formula Editor in Open Office Part 2

Link from forum

Content:

Mail reader

View mailing list archive | Search mailing list archive

start:

users@openoffice.org

Subject [users] math formula: integral with a range
Response to [users] math formula: integral with a range (Martin Köbele)
Standard display Raw display
From: CPH 
Date: Fri, 28 Nov 2003 18:16:53 +0000
Content-Type: text/plain;
charset="utf-8"
Subject: [users] math formula: integral with a range

Please note that users@openoffice.org is a mailing list and the best email
address you can use when you have a users problem or question about
OpenOffice.
However please note that it is a moderated email list and most replies *only*
go to the mailing list so you should really consider sending an email to
users-subscribe@openoffice.org.

On Friday 28 November 2003 00:18, Martin Köbele wrote:
> [ MODERATED ] ***************************************************
> Hi,
>
> can I set a range (interval) of an integral somehow?
>
> Any help is appreciated!
>
> Thanks!!
>
> Martin
>
> PS: Please cc me, I'm not subscribed to the mailinglist

And on the list :
On Friday 28 November 2003 18:16, Alexander S. Koning wrote:
> Quoting Alexander Rabtchevich on Re: [users] math formula: integral with a
>
> range (Friday 28 November 2003 11:26):
> > I've just tried to input something like
> > from a to b {int{x}}
> > or
> > from {a} {int{x}} to {b}
> >
> > This resulted in an error. What is correct syntax?
>
> int from {a} to {b} {x}
>
> for those who know, it is just like in LaTeX which uses int_{a}^{b}{x}
> (subscript and superscript where OOo uses 'from' and 'to')

Please respond to users@openoffice.org only

CPH

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@openoffice.org
For additional commands, e-mail: users-help@openoffice.org



Formula Editor in Open Office

Link from Wikipedia

Documentation/FAQ/Formula

From OpenOffice.org Wiki

Jump to: navigation, search
doc OOo
[[{{{PrevPage}}}|<>
[[{{{NextPage}}}|Next Page >]]


This article needs to be checked for technical accuracy, up-to-dateness, and style.

How can I get a left bracket without a right bracket?

Since brackets have a grouping function they must always match and be correctly nested.

To get a single bracket without a matching bracket partner you have to escape the bracket with a backslash. For example to get a "[" without a corresponding "]" you should enter "\[".

Thus to typeset the interval [3;8) you should enter \[3 ";" 8\). The quotation marks around the semicolon ensures that it is not typeset in italic. (You're right, this has nothing to do with brackets!)

For scalable brackets it is essential that left and right matches, since the content that the brackets encloses must be well defined.

In this case you can use the invisible bracket none to get a single bracket. For example to get a scalable "[" without a corresponding "]" you should enter left [ ... right none.

Thus to typeset Image:001a.gifyou should enter x=left lbrace binom -5 3 right none.

I enter x^* to typeset x*, but get an error message. Why?

The problem is that * is a binary operator, that is there has to be an expression on both sides of the symbol.

You either have to enter the expression x^{{}*{}} to avoid the error message, or you could type x^"*" as well, where the quotes will interprete the asterisk not as a binary operator but as a "standalone" symbol.

If you use this construction a lot you might want to define the symbol as a userdefined symbol. See I need a symbol that Math does not provide. What can I do?. If you have defined the * as a userdefined symbol, say %ast, you can enter x^%ast.

This answer applies to a lot of other symbols as well. Some operators, such as +, are unary, that is there only has to be an expression to the right of the symbol. To typeset x+ you can enter x^{+{}}< or, of course, x^"+".

When I enter one of the symbols #, & ,|,^ or _ I get an unexpected result or an error message. How can I use these symbols?

These symbols all have a special meaning in Math:

  • The symbol # is used in stacks and matrices.
  • The symbols & and | are used for logical and and logical or.
  • The symbols ^ and _ are used for

subscripts and superscripts.


To use them in your formula you can put them in quotation marks, which means that you insert them as text.

If you want to use the symbol "|" you should consider whether the construction you need is one of the the following:

  • a divides b is used to typeset a| b.
  • abs a is used to typeset |a|.

When I enter 3xy the number 3 comes out in italics. Is this a bug?

Not really. What happens here is, that Math uses multi-letter variables, which are common in some disciplines, like economy. The rule is that a variable consists of a sequence of letters, numbers and dots (the first character can not be a dot).

So when you enter 3xy this is considered a variable - and variables are typeset in italics. The only odd thing here is, that a variable can start with a number.

The correct way to enter the expression if you mean 3 times x times y is 3 x y (with spaces between the characters).

How do I align my equations at the equality sign?

Currently Math does not have an alignment construction. Instead you can use a matrix.

For example to typeset the equation Image:005a.gif

you should enter the following:

matrix{
alignr x+y # {}={} # alignl 2 ##
alignr x # {}={} # alignl 2-y
}

The empty braces around = are necessary because = is a binary operator and thus needs an expression on each side.

You can reduce the spacing around = if you change the inter-column spacing of the matrix:


  • Select Format-Spacing
  • Click 'Category' and chooseMatrixes in the pop-up menu.
  • Now enter 0% under 'Column spacing'.


Here is another example using a different solution:

To typeset the equation

Image:005b.gif

the trick is to use phantom as follows:

""3(x+4)-2(x-1)=3 x+12-(2 x-2) newline
""phantom {3(x+4)-2(x-1)}=3 x+12-2 x+2 newline
""phantom {3(x+4)-2(x-1)}=x+14

The effect of the empty quotation marks is to left justify the line - a line starting with text (even an empty text) will always be left justified.

You can replace "" with alignl.

I want to use a binary operator (like union or otimes) as a large operator (like int or sum). How can I do that?

You have to define the symbol you want to use as a user-defined symbol first. See FAQ #012 for instructions; most of the symbols used by Math are part of the StarMath font.

Let's say you have defined the union symbol as the user-defined symbol %union. You can then enter for example

oper%union from i in I A_i

in order to typeset the formula

Image:006a.gif

Note: In build 633 this doesn't work if there is a space before %union (this is a bug in the parser).

Any user-defined symbol can be used as a large operator if it is preceded with oper as in the example.

How do I typeset functions, such as max, det, that Math does not know about?

Math has a number of standard functions built-in, such as cos, log etc.

These functions are typeset in an upright shape according to typographical traditions.

To typeset other functions this way you can simply preceed the function with func. Example:

  • To typeset max(a,b) you should enter func max(a,b).

How do I change the fonts used in my formula?

Math uses 7 different text fonts to typeset formulas - in addition to symbol fonts (mainly the StarMath font).

The basic fonts are:

  • Variables. Variables (such as x, a etc.) are usually typeset in italics; the default is Times New Roman, italics.
  • Functions. Functions (such as cos, log etc.) are usually typeset in upright shape; the default is Times New Roman.
  • Numbers. Numbers (such as 217 are usually typeset in upright shape; the default is Times New Roman.
  • Text. Text (such as "abc") is usually typeset in upright shape; the default is Times New Roman.
  • Serif is an additional, serifed font. The default is Times New Roman.
  • Sans is an additional, sans serif font. The default is Helvetica/Arial.
  • Fixed is an additional fixed with font. The default is Courier.


You can read about how to use these fonts in FAQ:Formula#How_do_I_change_the_font of a subformula?.

To change one of the fonts follow these steps:

  • Select Format-Fonts....
  • Click 'Modify' and select the font you wish to modify in the pop-up menu.
  • Select the font in the list. You can also check one or both the checkboxes 'Bold' and 'Italic'.
  • Close the dialog with 'OK'.


This will change the font for the current formula. The next time you want to use the same font it will already be in the list box; you don't have to click modify again.

To change the default fonts follow these steps:

  • Select Format-Fonts.
  • Choose the seven fonts as described above.
  • Click 'Default'.

This will save your settings as the default fonts to be used in a new formula.

To change the base size of the formula select Format-Font Size... and enter the size you want. All other font sizes are relative to the base size. The default is 12 pt.

This will change the base size for the current formula. To change the default base size you should click 'Default' before you close the dialog.

How do I change the font of a subformula?

You can use one of the following font attributes:


  • italic a typesets a in italic shape.
  • so does ital a>.
  • nitalic a typesets a in upright shape (abbreviation for not italic).
  • bold a typesets a in boldface.
  • nbold a typesets a with normal weight (abbreviation for not bold).


In addition Math uses a set of three generic font families, which are used as follows:

  • font serif a typesets a in a serifed font, usually Times.
  • font sans a typesets a in a sans serif font, usually Helvetica or Arial.
  • font fixed a typesets a in a fixed font, usually Courier.


Font attributes can be combined as in this example:

  • Enter bold font sans A to get A.

You can apply font attributes to an entire subformula if you group it with { } or other brackets. Example:


  • Enter a b bold {c d} e to typeset abcde.

When several font attributes are applied, the innermost takes precedence as shown in this example:

  • Enter bold {a b nbold c d} to get abcd.


To change the fonts used in Math see How do I change the fonts used in my formula?

How do I change the size of a subformula?

There are five variants of the size-changing command:

  • size 20 a typesets a with the font size 20 pt.
  • size +5 a typesets a with current font size plus 5pt.
  • size -5 a typesets a with current font size minus 5pt.
  • size *1.5 a typesets a with current font size times 1.5.
  • size /1.5 a typesets a with current font size divided by 1.5.

You can change the font size of an entire subformula if you group it with { } or other brackets. Example:

  • Enter a b size *2 {c d} e to typeset abcde.

When several font size changes are applied, the innermost takes precedence as shown in this example:

  • Enter size *1.5 {a size 12 b size *1.5 c d} to get abcd.


To change the base font size used in Math see How do I change the fonts used in my formula?

How do I change the color of a subformula?

You can use the color command as follows:


  • color red ABC typesets ABC.

There are eight different colors to choose from:

  • white, black, cyan, magenta, red, blue, green, yellow.


You can apply a color to an entire subformula if you group it with { } or other brackets. Example:

  • Enter A B color green {C D} E to typeset ABCDE.

When several colors are applied, the innermost takes precedence as shown in this example:

  • Enter color blue {A B color yellow C D} to get

ABCD.


You cannot select the background color; a Math formula is always transparent. This means that it inherits the background color from the document (for example a writer document) it is contained in.

I need a symbol that Math does not provide. What can I do?

If you have a font containing the symbol you can define a userdefined symbol.

Follow these steps:

  • Open the Symbols dialog (Tools-Catalog...).
  • Click 'Edit'.
  • Type a name for the new symbol in the combobox 'Symbol'.
  • Type a new name or select

an existing name in the combobox 'Symbol set. This is the symbol set you want your symbol to appear in.

  • Select the font in the listbox 'Font', for example the

StarMath font.

  • Select the formatting (normal, bold, bold-italic or italic)

in the listbox 'Typeface'.

  • Click on the symbol in the table.
  • Click 'Add' to add your symbol.

You can now use your symbol like any other symbol by selecting it in the Symbols dialog or entering %thenameofthesymbol directly.

If you don't have the symbol try looking in the StarMath font first; it contains about 25 additional symbols.

Another source of symbols is the so-called AMS fonts of the American Mathematical society.

You can download these in Postscript type 1 format from www.ams.org/tex/amsfonts.html.

If you use Microsoft Windows you might prefer to download the unofficial BaKoMa Truetype versions from www.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/.

Refer to the documentation distributed with the fonts for conditions of use.

Can I find all the constructions of Math in the selection window?

There are a few constructions without a corresponding template in the selection window:

Additional binary operators:

a oplus b
a ominus b
a otimes b middle
a odot b
a odivide b
a wideslash b
a widebslash b middle

In addition, if %symbol is a userdefined symbol you can use it as a unary or binary operator as follows:

  • uoper %symbol a uses %symbol as a unary operator.
  • a boper %symbol b uses %symbol as a binary operator.

Additional relations:

a <<>
a >> b
a def b
a transl b
a transr b

Additional operators:

liminf f lim inf f
limsub f lim sub f


In addition, if %symbol is a userdefined symbol you can use it as an operator as follows:

  • oper %symbol a uses %symbol as an operator.

You can read more about this in I want to use a binary operator like union or otimes as a large operator like int or sum. How can I do that?

Additional brackets:

lfloor a rfloor
lceil a rceil

Since brackets have a grouping function they must always match and be correctly nested. For scalable brackets it is essential that left and right matches, but the brackets can be freely combined. Example:

  • You can enter left ( a right [ to typeset (a[.

You can read more about single brackets in How can I get a left bracket without a right bracket?

Additional symbols:



backepsilon


Additional functions:

In addition to the functions that Math knows, you can typeset other functions if you preceed the function name with func, such as func max. You can read more about this in How do I typeset functions such as max, det, that Math does not know about?

Additional font changing commands:

  • nitalic a typesets a in upright shape (abbreviation for not italic).
  • nbold a typesets a with normal weight (abbreviation for not bold).
  • phantom a typesets a invisible.

The command color is used to change the color of a subformula, see How do I change the color of a subformula? for details.

A complete reference on the Math input language is being worked on.


The fractions are too large for inline formulas. How can I make them smaller?

Select Format-Text Mode.

This will change the formatting of your formula such that fractions and large operators (such as integral signs) are smaller. Furthermore the limits of large operators are placed to the right of the operator rather than above and below.

Example: Image:014a.gifbecomes Image:014b.gifin textmode.

This setting is reversed if you select Format-Text Mode again.


Why are my formulas jumping up and down on the textline?

This is one of the major issues with the current version of Math.

What happens is, that your formulas always are inserted vertically centered with respect to the textline. If the formula is not symmetrical vertically the baselines of the text and the formula will not be aligned.

You can correct this by dragging the formula up or down using the mouse.

How do I change the spacing around my formula?

If you have embedded your formula in a Writer document you can do as follows.

If you want to change the spacing around a single formula follow these steps:

  • Select the formula.
  • Select Format-Object.
  • Select the tab page 'Wrap'.
  • In the group 'Spacing' on this page you can adjust the spacing around the formula.

If you want to change the spacing around all formulas follow these steps:

  • Open the stylist (Format-Stylist).
  • Click on the icon for frame styles (the third icon from the left).
  • Click on 'Formula' and then right click in the stylist.
  • Select Modify... in the pop-up menu.
  • Select the tab page Wrap.
  • In the group 'Spacing' on this page you can adjust the spacing around the formulas.

In addition Math inserts some spacing around your formula. Follow these steps to change this:

  • Open your formula.
  • Select Format-Spacing.
  • Click 'Category' and select Borders in the pop-up menu.
  • You can now change the left and right margins of your formulas.

How do I number my equations?

Displayed equations in Writer documents can be numbered using a predefined AutoText:

Type fn at the beginning of a paragraph and press F3. This will insert an AutoText containing a dummy formula and a sequence number. Now doubleclick the formula to edit it. If you want to number the equations by chapter you should

  • Doubleclick on one of the equation numbers.
  • In the listbox 'Level' choose the chapter level you want to number by.
  • In the textbox 'Separator' type a character to separate the chapter number from the formula number.

If you want to modify the AutoText you should use the dialogue Edit-AutoText. You will find this AutoText in the group Standard.

I have inserted a formula in a HTML document and now I cannot edit it. Why not?

There is currently no standard for embedding mathematical formulas in HTML documents. For this reason OpenOffice.org saves formulas in HTML documents as bitmap pictures (in GIF format), which every browser can display.

This has the consequence that you when you close and reopen your document the formulas are no longer editable, because they cannot be reconstructed from the bitmap.

This solution has a number of other problems, for example the formulas doesn't look good when printed; in fact they look ugly.

A standard as to how MathML formulas can be embedded in HTML (or XHTML) pages is expected to appear in the future. Since OpenOffice.org can export HTML as well as MathML it would be reasonable to expect that it will support this standard when it arrives.

Another issue here, however, is that this also requires that browsers support MathML. The Mozilla project is working on this, see www.mozilla.org/projects/mathml/.

I have written a document containing a formula. I gave it to a friend and when she opened it the user-defined symbols didn't work. What's the matter?

This is a known issue with Math. The user-defined symbols are part of the user settings and are not saved with the formula.

Furthermore the predefined user-defined symbols have localized names, for example %alpha might be %alfa in other languages, so that even these symbols can cause trouble. There is currently no solution to the problem, but it is being worked on.

Note: When you export formulas to MathML the user-defined symbols using the StarMath font are correctly exported, other user-defined symbols are currently not.

Is Math compatible with the equation editor of Microsoft Word?

Math provides import and export filters for MathType from Design science. (The equation editor of Microsoft Word is a limited version of MathType.)

When exporting from Writer to Microsoft Word, OpenOffice.org converts embedded Math formulas to MathType. When importing from Microsoft Word to Writer, OpenOffice.org does the reverse conversion. As with any file type conversion you should of course be aware that Math and MathType have different capabilities and this will affect the results.

If you prefer to keep the formulas in the original format, you can change this behavior in the configuration:

  • Select Tools-Options.
  • Select Load/Save-Microsoft Office.
  • Remove the check marks from MathType to OpenOffice.org Math and OpenOffice.org Math to MathType.

How can I start the equation editor as an individual application rather than within Writer?

You can start the equation editor by running the command 'soffice -math'. To know about all options that are accepted here, type 'soffice.exe -help'.