Difference between revisions of "Documentation/OOoAuthors User Manual/Writer Guide/Common problem areas"

From Apache OpenOffice Wiki
Jump to: navigation, search
(needs rework)
Line 3: Line 3:
 
|Prev=Documentation/OOoAuthors User Manual/Writer Guide/Formula layout
 
|Prev=Documentation/OOoAuthors User Manual/Writer Guide/Formula layout
 
|Next=Documentation/OOoAuthors_User_Manual/Writer Guide/Math commands - Reference}}__notoc__
 
|Next=Documentation/OOoAuthors_User_Manual/Writer Guide/Math commands - Reference}}__notoc__
 +
{{documentation/NeedsRework}}<!-- formulae are all stuffed up -->
 +
 
== How do I add limits to my sum/integral? ==
 
== 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.
 
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.

Revision as of 01:26, 11 November 2008


Template:Documentation/NeedsRework

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
inline:Object21.png
int from 0 to x f(t) dt
or
int_0^x f(t) dt
inline:Object22.png or inline:Object267.png
int from Re f inline:Object24.png
sum to infinity 2^{-n} inline:Object28.png


Note: For 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:

Markup Result
matrix { a # b ## c # d } inline:Object69.png

Note: Rows 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:

Markup Result
( matrix { a # b ## c # d } ) inline: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.

Markup Result
left( matrix { a # b ## c # d } right) inline:Object218.png

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.

Markup Result
{df} over {dx} inline:Object219.png
{partial f} over {partial y} inline:Object264.png
{partial^2 f} over {partial t^2} inline:Object265.png

Note: Notice 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:

inline:Objekt4.png (2)

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

inline: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.

inline:Frame15.png

Tip: 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).
Personal tools