Hide Siafoo is here to make coding less frustrating and to save you time. Learn More Join Siafoo

LaTeX Style Math

1   Writing Equations

Siafoo supports LaTeX based mathematical expression inside reST based content. There are two ways to display equations: inline with the text or in a separate block.

If you are unfamiliar with LaTeX we recommend reading through Andrew Robert's, Getting to Grips with Latex for a general idea of what LaTeX is and how to effectively use it in your work. Because [currently] Siafoo supports LaTeX in math mode only, we suggest concentrating your efforts on the the Mathematics Part I and Part II sections.

When you write an equation Siafoo will enclose it in either $, for inline math, or \begin{equation|equation*|align|align*}, for math blocks.

1.1   Inline

To place equations inline with your text paragraphs, , use the math interpreted text role like :math:`E=mc^2`.

1.2   In Blocks

To get an equation block outside of the text use the math directive .. math:::

# 's
1.. math::
2
3 \nabla \cdot E = \frac{1}{\epsilon_0} \rho

which will produce:

For multiple equations you can use the align option:

# 's
1.. math:: align
2
3 \nabla \cdot E &= \frac{1}{\epsilon_0} \rho\\
4 \nabla \cdot B &= 0\\
5 \nabla \times E &= -\frac{\partial B}{\partial t}\\
6 \nabla \times B &= \mu_0 J + \mu_0 \epsilon_0 \frac{\partial E}{\partial t}

The equations will be aligned at the & symbol

or use align* to remove the numbers from the equations like...

Note that in order to indent the equation block you must indent everything including the .. math:: directive itself. Indenting only the equations will have no effect.

You can play with equations at the Siafoo reST demo

2   Symbols

The following table of symbols was taken from The Not So Short Introduction to LaTeX 2e and is provided here for your convenience.

2.1   Accents

Syntax Symbol
\hat{a}
\grave{a}
\bar{a}
\acute{a}
\mathring{a}
\check{a}
\dot{a}
\vec{a}
\breve{a}
\tilde{a}
\ddot{a}
\widehat{AAA}
\widetilde{AAA}

2.2   Greek

Syntax Symbol
\alpha
\beta
\gamma
\delta
\epsilon
\varepsilon
\zeta
\eta
\Gamma
\Delta
\Theta

2.3   Binary Relations

Syntax Symbol
<
\leq or \le
\ll
\prec
\preceq
\subset
\subseteq
\sqsubset
\sqsubseteq
\in
\vdash
\mid
\smile

2.4   Binary Operations

Syntax Symbol
+
\pm
\cdot
\times
\cup
\sqcup
\vee or lor
\oplus
\odot
\otimes
\bigtriangleup
\lhd
\unlhd
-
\mp
\div
\setminus
\cap
\sqcap
\wedge or land
\ominus
\oslash
\bigcirc
\bigtriangledown
\rhd a
\unrhd a
\triangleleft
\triangleright
\star
\ast
\circ
\bullet
\diamond
\uplus
\amalg
\dagger
\ddagger
\wr

2.5   BIG Operators

Syntax Symbol
\sum
\prod
\coprod
\int
\bigoplus
\bigcup
\bigcap
\bigsqcup
\oint
\bigotimes
\bigvee
\bigwedge
\biguplus
\bigodot

2.6   Arrows

Syntax Symbol
\leftarrow or gets
\rightarrow or to
\leftrightarrow
\Leftarrow
\Rightarrow
\Leftrightarrow
\mapsto
\hookleftarrow
\leftharpoonup
\leftharpoondown
\rightleftharpoons
\uparrow
\updownarrow
\Downarrow
\nearrow
\swarrow
\leadsto
\longleftarrow
\longrightarrow
\longleftrightarrow
\Longleftarrow
\Longrightarrow
\Longleftrightarrow
\longmapsto
\hookrightarrow
\rightharpoonup
\rightharpoondown
\iff (bigger spaces)
\downarrow
\Uparrow
\Updownarrow
\searrow
\nwarrow

2.7   Accent Arrows

Syntax Symbol
\overrightarrow{AB}
\overleftarrow{AB}
\overleftrightarrow{AB}
\underrightarrow{AB}
\underleftarrow{AB}
\underleftrightarrow{AB}

2.8   Delimiters

Syntax Symbol
(
[ or lbrack
\{ or lbrace
\langle
or vert
/
\lfloor
\rceil
)
] or rbrack
\} or rbrace
\rangle
\| or \Vert
\backslash
\rfloor
\lceil
\uparrow
\downarrow
\updownarrow
\Uparrow
\Downarrow
\Updownarrow

2.9   Large Delimiters

Syntax Symbol
\lgroup
\arrowvert
\rmoustache
\rgroup
\Arrowvert
\lmoustache
\bracevert

2.10   Misc Symbols

Syntax Symbol
\dots
\hbar
\Re
\forall
\nabla
\bot
\diamondsuit
\neg or lnot
\cdots
\imath
\Im
\exists
\prime
\triangle
\top
\heartsuit
\flat
\vdots
\jmath
\aleph
\mho
\emptyset
\Box
\angle
\clubsuit
\natural
\ddots
\ell
\wp
\partial
\infty
\Diamond
\surd
\spadesuit
\sharp