Difference between revisions of "Documentation/UserGuide/Math/Syntax"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 15: Line 15:
 
{{Documentation/Note|Any text that it is not a command (function, operator, etc) ''will be considered as variable''. By default, variables are shown on italics.}}
 
{{Documentation/Note|Any text that it is not a command (function, operator, etc) ''will be considered as variable''. By default, variables are shown on italics.}}
  
 +
= Commands that Needs Parameters =
  
 +
Some commands needs to be applied to other object because alone do not have sense. For example, the "decorations" like a vector arrow:
 +
 +
  vec a
 +
 +
will give <math>\vec a</math> while
 +
 +
  widevec a
 +
 +
will give <math>\overrightarrow a</math>
 +
 +
This second command can be used to put the arrow over more than one element, to obtain for example <math>\overrightarrow {AB}</math>
 +
 +
There are also instructions that need the use of parameters to define their action, for example the command "color"
 +
 +
  A color red {BC} D
 +
 +
will give
 +
 +
<math>A {\color{red}{BC}} D</math>
  
 
[[Category:Documentation]] [[Category:Documentation/Math]]
 
[[Category:Documentation]] [[Category:Documentation/Math]]

Revision as of 23:28, 3 February 2013

Template:Documentation/DraftPage


On this section some basic elements about how to build a mathematical expression on Apache OpenOffice Math will be provided.

Simple Commands and Functions

As seen on the section about inserting a Math object, the Math editor works on "text mode".

There are several kinds of Math instructions, all of them represented by text with a particular meaning. For example, writing %gamma a Greek character will be obtained, cos will be interpreted as the cosine function while newline will insert a new line on the expression.

Template:Documentation/Note

Template:Documentation/Note

Commands that Needs Parameters

Some commands needs to be applied to other object because alone do not have sense. For example, the "decorations" like a vector arrow:

 vec a

will give while

 widevec a

will give

This second command can be used to put the arrow over more than one element, to obtain for example

There are also instructions that need the use of parameters to define their action, for example the command "color"

 A color red {BC} D

will give

Personal tools