LaTeX Style Math
1 Writing Equations
Siafoo reStructured Text supports LaTeX-style mathematical expressions. You can display expressions inline 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 Siafoo currently supports LaTeX in math mode only, we suggest concentrating your efforts on the the Mathematics Part I and Part II sections.
Note that when you write an equation in Siafoo, we will wrap it for you in $, for inline math or \begin{equation|equation*|align|align*}, for separate blocks. So don't worry about that part of the syntax.
You can follow along using the Siafoo reST demo if you'd like.
1.1 Inline
To create inline equations, use the interpreted text role :math:`equation`. Fr example, :math:`E=mc^2` creates .
1.2 In Blocks
To get an equation block outside of the text use the math directive .. math::, followed by the equation(s) as the directive content (indented and separated by a blank space). For example:
.. math::
\nabla \cdot E = \frac{1}{\epsilon_0} \rho
This code will produce:
1.3 Multiple Equations
For multiple equations you can use the align option. The equations will be aligned at the & symbol:
.. math:: align
\nabla \cdot E &= \frac{1}{\epsilon_0} \rho\\
\nabla \cdot B &= 0\\
\nabla \times E &= -\frac{\partial B}{\partial t}\\
\nabla \times B &= \mu_0 J + \mu_0 \epsilon_0 \frac{\partial E}{\partial t}
This produces:
You can use align* instead of align to remove the equation numbers. This graph is exactly the same as the previous except for that asterisk:
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. We support all of these. (!)
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 |