Difference between revisions of "Formula layout"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
Line 6: Line 6:
 
OOoMath knows nothing about order of operation. You must use brackets to state order of operations explicitly. Consider the following example:
 
OOoMath 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;"
−
| ||'''''Markup'''''||'''''Result'''''||
+
|-bgcolor=#EDEDED
 +
!Markup!!Result
 
|-
 
|-
−
| ||<tt>2 over  x + 1</tt>||inline:Object34.png||
+
| ||<tt>2 over  x + 1</tt>||[[Image:Object34.png]]
 
|-
 
|-
−
| ||<tt>2 over {x + 1}</tt>||inline:Object35.png||
+
| ||<tt>2 over {x + 1}</tt>||[[Image:Object35.png]]
 
|-
 
|-
 
|}
 
|}
−
 
  
 
== Equations over more than one line ==
 
== Equations over more than one line ==
Line 21: Line 21:
 
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.
 
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.
  
−
{|
+
{|border="1" cellpadding=4 style="border-collapse:collapse;"
−
| ||'''''Markup'''''||'''''Result'''''||
+
|-bgcolor=#EDEDED
 +
!Markup!!Result
 
|-
 
|-
−
| ||<tt>x = 3</tt><br/><tt>y = 1</tt>||inline:Object37.png||
+
| ||<tt>x = 3</tt><br/><tt>y = 1</tt>||[[Image:Object37.png]]
 
|-
 
|-
−
| ||<tt>x = 3 newline</tt><br/><tt>y = 1</tt>||inline:Object38.png||
+
| ||<tt>x = 3 newline</tt><br/><tt>y = 1</tt>||[[Image:Object38.png]]
 
|-
 
|-
 
|}
 
|}

Revision as of 09:52, 9 November 2007

Formula layout

The most difficult part of using OOoMath comes when writing complicated equations. This section provides some advice about writing complex formulas.


Brackets are your friends

OOoMath 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 File:Object34.png
2 over {x + 1} File:Object35.png

Equations over more than one line

Suppose you want to type an equation covering more than one line. For example: inline:Object36.png

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
File:Object37.png
x = 3 newline
y = 1
File:Object38.png
Personal tools