Equations

To display equations in your app you must wrap the LaTeX commands in dollar signs ($) inside of paragraph or equation tags. After that, you can insert any LaTeX mathematics commands and the document should typeset the formulas. If you are unfamiliar with LaTeX, see the LaTeX/Mathematics Wikibook and the LaTeX/Advanced Mathematics Wikibook

Example 1

You can copy this example into your document as-is.

<equation>
    $ y = mx + b $
</equation>
 
simple-equation.jpg
 
 

Example 2

You can copy this example into your document as-is.

<equation>
    $ y =\tan(\theta) \cdot x - \frac{g}{2v^2_{0}\cos^2 \theta} \cdot x^2 $
</equation>
 
tan-equation.jpg
 
 

Example 3

You can copy this example into your document as-is.

<equation>
  $ \int_0^\infty \mathrm{e}^{-x}\,\mathrm{d}x $
</equation>
 
integral-equation.jpg
 
 

Example 4

You can copy this example into your document as-is.*

<p>
  This sentence contains an equation right here: $ y = mx + b $
</p>
inline-equation.jpg
 
 

Example 5

This example shows how using CDATA allows for the insertion of illegal characters.

You can copy this example into your document as-is.

<equation>
  <![CDATA[
    $ A_{m,n} =
        \begin{pmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
        a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
        \vdots & \vdots & \ddots & \vdots  \\
        a_{m,1} & a_{m,2} & \cdots & a_{m,n}  
    \end{pmatrix} $ 
    ]]>
</equation>
 
matrix-equation.jpg