Operation Manual

Formulas over multiple lines
Suppose you want to create a formula that requires more than one line, for example
x=3
y=1
and
your first reaction would normally be to press the Enter key. However, if you press the Enter key,
the markup language in the Formula Editor goes to a new line, but the resulting formula does not
have two lines. You must type the macro command newline each time you want to create and
display a new line in a formula.
Example
x = 3
y = 1
gives the incorrect result
x=3 y=1
x = 3 newline y = 1 gives the correct result
x=3
y=1
It is not possible in Math to create multiple-line formulas when a line ends with an equals sign and
you want to continue the calculation on a new line without completing the term on the right side of
the equals sign. If you require a multiple line formula to have an equals sign at the end of a line
without a term after the equals sign, then use either empty quotes “” or empty braces {} or the
space characters grave ` or tilde ˜.
By default, the alignment of a multiple line formula is center aligned. For more information on
alignment using the equals sign, see the Math Guide.
Spacing between the elements in a formula is not set by using space characters in the markup
language. If you want to add spaces into the formula, use one of the following options:
Grave ` to add a small space.
Tilde ~ for a large space.
Add space characters between quotes “ ”. These spaces will be considered as text.
Any spaces at the end of a line in the markup language are ignored by default. For more
information, see the Math Guide.
Adding limits to sum/integral commands
The sum and integral commands can take the parameters from and to if you want to set the
lower and upper limits respectively. The parameters from and to can be used singly or together
as shown by the following examples. For more information on the sum and integral commands,
see the Math Guide.
Examples
sum from k = 1 to n a_k gives the result
k=1
n
a
k
int from 0 to x f(t) dt gives the result
0
x
f (t)dt
int_0^x f(t) dt gives the result
0
x
f (t)dt
int from Re f gives the result
f
sum to infinity 2^{-n} gives the result
2
n
274 | Getting Started with LibreOffice 5.0