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.
| Markup | Result |
|---|---|
| sum from k = 1 to n a_k |
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 \sum_{k=1}^n a_k} |
| int from 0 to x f(t) dt or int_0^x f(t) dt |
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 \int\limits_0^x f(t) dt} or 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 \int_0^x f(t) dt} |
| int from Re f | 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 \int\limits_\Re f} |
| sum to infinity 2^{-n} | 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 \sum_{ }^{\infin} 2^{-n}} |
| For more details on integrals and sums, see the Math commands reference. |
Brackets with matrices look ugly!
For background, we start with an overview of the matrix command:
| Markup | Result |
|---|---|
| matrix { a # b ## c # d } | 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 \begin{smallmatrix} a&b \\ c&d \end{smallmatrix}} |
The first problem people have with matrices is that brackets do not “scale" with the matrix:
| Markup | Result |
|---|---|
| ( matrix { a # b ## c # d } ) | (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 \begin{smallmatrix} a&b \\ c&d \end{smallmatrix}} ) |
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.
| Markup | Result |
|---|---|
| left( matrix { a # b ## c # d } right) | 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 \left( \begin{smallmatrix} a&b \\ c&d \end{smallmatrix} \right)} |
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.
| Markup | Result |
|---|---|
| {df} over {dx} | 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 \frac{df}{dx}} |
| {partial f} over {partial y} | 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 \frac{\partial f}{\partial y}} |
| {partial^2 f} over {partial t^2} | 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 \frac{\partial^2 f}{\partial t^2}} |
Numbering equations
Equation numbering is one of OOoMath's best hidden features. The steps are simple, but obscure:
- Start a new line.
- Type “fn" and then press F3.
The “fn" is replaced by a numbered formula:
- 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 E=mc^2} (2)
Now you can double-click on the formula to edit it. For example, here is the Riemann Zeta function:
- 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 \zeta (z) = \sum_{n=1}^\infin \frac{1}{n^z}} (3)
You can reference an equation (“as shown in Equation (2)") with these steps:
- Insert > Cross-reference..
- Click on the References tab (Figure 15).
- Under Type, select Text.
- Under Selection, pick the equation number.
- Under Format, choose Reference.
- 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.
| To insert the equation number without parenthesis around it, choose Numbering under Format instead of Reference. |
| Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY). |
