Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:formulas [2019/03/18 00:32] – ttzhou | wiki:formulas [2019/06/03 01:12] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Formulas ====== | ====== Formulas ====== | ||
| - | The functionality is provided by [[doku> | ||
| - | The followings are syntax defined for different formulas. | + | The functionality is provided by [[doku> |
| - | ===== Typical commands ===== | + | <alert info>Use [[https:// |
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | | '' | ||
| - | ===== Parenthesis | + | ===== Inline formulas |
| - | ^ Code ^ Output ^ Description ^ | + | Simply place LaTex codes in '' |
| - | | '' | + | |
| - | | '' | + | |
| - | ===== Space ===== | + | <alert info>Use [[https:// |
| - | ^ Code ^ Output | + | |
| - | | '' | + | For example, |
| + | |||
| + | < | ||
| + | \(E=MC^2\), equation in German-born physicist Albert Einstein’s theory of special relativity ...... | ||
| + | </ | ||
| + | or | ||
| + | < | ||
| + | <m>E=MC^2</ | ||
| + | </ | ||
| + | |||
| + | The above will be rendered as: | ||
| + | |||
| + | <m>E=MC^2</ | ||
| + | |||
| + | ===== Display Math ===== | ||
| + | Wrap LaTex codes in '' | ||
| + | <alert info>Use [[https:// | ||
| + | |||
| + | < | ||
| + | \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] | ||
| + | </code> | ||
| + | or | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | The above will be rendered as: | ||
| + | |||
| + | < | ||
| + | |||
| + | A wide range of math environments will work as well: | ||
| + | |||
| + | < | ||
| + | \begin{align*} | ||
| + | e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ | ||
| + | & = \sum_{n\geq 0} \frac{x^n}{n!} | ||
| + | \end{align*} | ||
| + | </ | ||
| + | |||
| + | \begin{align*} | ||
| + | e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ | ||
| + | & = \sum_{n\geq 0} \frac{x^n}{n!} | ||
| + | \end{align*} | ||