Difference between revisions of "Documentation/FAQ/Formula/How do I number my equations?"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Numbering an equation manually and referencing it)
Line 9: Line 9:
 
documents can be numbered using a predefined AutoText:
 
documents can be numbered using a predefined AutoText:
  
Type <font color="brown">'''fn'''</Font> 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.
+
*Type <font color="brown">'''fn'''</Font> 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
+
:If you want to number the equations by chapter you should
  
#Doubleclick one of the equation numbers.
+
:#Doubleclick one of the equation numbers.
#In the listbox '''Level''' choose the chapter level you want to number by.
+
:#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.
+
:#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".
+
*If you want to modify the AutoText you should use the dialogue '''Edit-AutoText'''. You will find this AutoText in the group "Standard".
 +
 
 +
*You can also mimic the AutoText and number your equation manually by creating a table containing one row and two columns:
 +
:#in the first column you will insert the math object (your equation) and center it;
 +
:#in the right column, which will be reduced and right centered, you will place the equation number between two parentheses () by inserting a variable of type Text with the formula Text+1.
 +
 
 +
:*You can refer to this equation by inserting a field corresponding to the equation of the table.
 +
:* In addition, if you select both, the reference and the table,  you can make the selection an AutoText with the name ''Equation'' and abbreviation EQ (Ctrl_F3 AutoText New). Thus, if you type ''in the following Lotka's equation EQ'', click on F3, enter the formula:
 +
<pre>            1= int_{0}^{infty} exp(-%rho x) f(x) p lsub{x}rsub{0} dx</pre>
 +
:you will get both a numbered equation and the reference to it:
 +
:''in the following Lotka's equation (1)'':
 +
<center><math> 1= \int_0^\infty \exp(-\rho x) f(x) _{x}p_0 dx \qquad\qquad(1)</math></center>
 
<section end=answer/>
 
<section end=answer/>
  
 
[[Category:Documentation/FAQ/Formula]]
 
[[Category:Documentation/FAQ/Formula]]

Revision as of 11:13, 10 November 2009


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
  1. Doubleclick one of the equation numbers.
  2. In the listbox Level choose the chapter level you want to number by.
  3. 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".
  • You can also mimic the AutoText and number your equation manually by creating a table containing one row and two columns:
  1. in the first column you will insert the math object (your equation) and center it;
  2. in the right column, which will be reduced and right centered, you will place the equation number between two parentheses () by inserting a variable of type Text with the formula Text+1.
  • You can refer to this equation by inserting a field corresponding to the equation of the table.
  • In addition, if you select both, the reference and the table, you can make the selection an AutoText with the name Equation and abbreviation EQ (Ctrl_F3 AutoText New). Thus, if you type in the following Lotka's equation EQ, click on F3, enter the formula:
            1= int_{0}^{infty} exp(-%rho x) f(x) p lsub{x}rsub{0} dx
you will get both a numbered equation and the reference to it:
in the following Lotka's equation (1):
Personal tools