Difference between revisions of "Formula layout"
m |
|||
| Line 1: | Line 1: | ||
| − | The most difficult part of using | + | The most difficult part of using OOo Math comes when writing complicated formulas. This section provides some advice. |
== Brackets are your friends == | == Brackets are your friends == | ||
| − | + | OOo Math knows nothing about order of operation. You must use brackets to state order of operations explicitly. Consider the following example: | |
{|border="1" cellpadding=4 style="border-collapse:collapse;" | {|border="1" cellpadding=4 style="border-collapse:collapse;" | ||
Revision as of 06:02, 1 January 2010
The most difficult part of using OOo Math comes when writing complicated formulas. This section provides some advice.
Brackets are your friends
OOo Math knows nothing about order of operation. You must use brackets to state order of operations explicitly. Consider the following example:
| Markup | Result |
|---|---|
| 2 over x + 1 | Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle {2 \over x} + 1} |
| 2 over {x + 1} | Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 2 \over {x + 1}} |
Equations over more than one line
Suppose you want to type an equation covering more than one line. For example:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x = 3\,\!}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y = 1\,\!}
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.
| Markup | Result |
|---|---|
| x = 3 y = 1 |
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x = 3 \ y = 1} |
| x = 3 newline y = 1 |
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x = 3\,\!}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle y = 1\,\!} |