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:53] – [Display Math] 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 ===== | ===== Display Math ===== | ||
| - | + | Wrap LaTex codes in '' | |
| - | To display math formulas on its own line: | + | <alert info>Use [[https:// |
| < | < | ||
| \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] | \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] | ||
| + | </ | ||
| + | or | ||
| + | < | ||
| + | < | ||
| </ | </ | ||
| The above will be rendered as: | The above will be rendered as: | ||
| - | \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] | + | < |
| A wide range of math environments will work as well: | A wide range of math environments will work as well: | ||