Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:formulas [2019/03/31 00:48] – ttzhou | wiki:formulas [2019/06/03 01:12] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== Inline formulas ===== | ===== Inline formulas ===== | ||
| - | Use '' | + | Simply place LaTex codes in '' |
| + | |||
| + | <alert info>Use [[https:// | ||
| For example, | For example, | ||
| Line 14: | Line 16: | ||
| < | < | ||
| \(E=MC^2\), equation in German-born physicist Albert Einstein’s theory of special relativity ...... | \(E=MC^2\), equation in German-born physicist Albert Einstein’s theory of special relativity ...... | ||
| + | </ | ||
| + | or | ||
| + | < | ||
| + | < | ||
| </ | </ | ||
| The above will be rendered as: | The above will be rendered as: | ||
| - | > \(E=MC^2\), equation in German-born physicist Albert Einstein’s theory of special relativity ...... | + | <m>E=MC^2</m>, equation in German-born physicist Albert Einstein’s theory of special relativity ...... |
| + | |||
| + | ===== 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] \] | ||
| + | </ | ||
| + | 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*} | ||