Changes

Jump to navigation Jump to search
579 bytes added ,  19:46, 24 February 2007
m
→‎Introduction: Added examples for the Main Math page
To tell TeX that an expression needs to be typeset using conventions for math, type the expression in <code>$</code>...<code>$</code>. For examples <code>$x$</code> gives
<context>\setuplayout[scale=0.8]$x$</context>, while <code>$2$</code> gives <context>\setuplayout[scale=0.8]$2$</context>. Notice that the ''x'' is in italic while the ''2'' is upright. This is the usual mathematic convention. You can also write in the math mode using the command <cmd>math</cmd> or <cmd>mathematics</cmd>.
 
Thus, the following three are equivalent. Use the style that you prefer.
 
<texcode>
Pythagoras formula, stating $a^2 + b^2 = c^2$ was one of the first trigonometric results
</texcode>
 
<texcode>
Pythagoras formula, stating \math{a^2 + b^2 = c^2} was one of the first trigonometric results
</texcode>
 
<texcode>
Pythagoras formula, stating \mathematics{a^2 + b^2 = c^2} was one of the first trigonometric results
</texcode>
and gives
<context>
\setuplayout[scale=0.8,width=13cm]
Pythagoras formula, stating $a^2 + b^2 = c^2$ was one of the first trigonometric results
</context>
== Binary Operators Relations==

Navigation menu