More actions
m Add link. |
|||
| (8 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{Update| With the update to MediaWiki 1.43.0 UniWiki changed from using SimpleMathJax to [[:Mediawikiwiki:Extension:Math|Math]]. Due to there being some differences in the mark-up this article need some attention. }} | |||
UniWiki | {{UMoS guideline}} | ||
UniWiki allows adding equations using <math>\LaTeX</math> markup by using [https://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax]. Just place the expression in between <nowiki><math></math></nowiki> and it will be rendered. | |||
You will be expected to learn to use Latex from other sources. This page contains only some useful information and formatting guidelines for use on this wiki. | You will be expected to learn to use Latex from other sources. This page contains only some useful information and formatting guidelines for use on this wiki. | ||
For more in depth reading you can read the [ | For more in depth reading you can read the [https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Mathematics Wikipedia:Manual of Style/Mathematics]. But do note that UniWiki uses different math extension than Wikipedia. | ||
== Style == | == Style == | ||
| Line 11: | Line 13: | ||
If you have time you can read these two: | If you have time you can read these two: | ||
* [ | * [https://tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf (pdf) Typesetting mathematics for science and technology according to ISO 31/XI]. | ||
* [https://iupac.org/wp-content/uploads/2015/12/italic-roman_dec99.pdf (pdf) On the use of italic and roman fonts for symbols in scientific text] | * [https://iupac.org/wp-content/uploads/2015/12/italic-roman_dec99.pdf (pdf) On the use of italic and roman fonts for symbols in scientific text] | ||
| Line 38: | Line 40: | ||
Example: | Example: | ||
<math> \sum_{k=1}^n a_k </math> | :<math> \sum_{k=1}^n a_k </math> | ||
<code> \sum_{k=1}^n a_k</code> | <code> \sum_{k=1}^n a_k</code> | ||
<math> \displaystyle\sum_{k=1}^n a_k </math> | :<math> \displaystyle\sum_{k=1}^n a_k </math> | ||
<code> \displaystyle\sum_{k=1}^n a_k</code> | <code> \displaystyle\sum_{k=1}^n a_k</code> | ||
| Line 49: | Line 51: | ||
Examples: | Examples: | ||
<math> \color{red} a = c </math> | :<math> \color{red} a = c </math> | ||
<code> \color{red} a = c</code> | <code> \color{red} a = c</code> | ||
<math> { \color{red} a } = c </math> | :<math> { \color{red} a } = c </math> | ||
<code> { \color{red} a } = c</code> | <code> { \color{red} a } = c</code> | ||
| Line 63: | Line 65: | ||
Examples: | Examples: | ||
<math> \text{This thing} = x + y </math> | :<math> \text{This thing} = x + y </math> | ||
<code>\text{This thing} = x + y</code> | <code>\text{This thing} = x + y</code> | ||
<math> \rm vel = spd + d</math> | :<math> \rm vel = spd + d</math> | ||
<code>\rm vel = spd + dir</code> | <code>\rm vel = spd + dir</code> | ||
| Line 75: | Line 77: | ||
Examples: | Examples: | ||
<math> abb \ b\ b\ b </math> <code>abb \ b\ b\ b</code> | :<math> abb \ b\ b\ b </math> <code>abb \ b\ b\ b</code> | ||
<math> abb \,b\,b\,b </math> <code>abb \,b\,b\,b</code> | :<math> abb \,b\,b\,b </math> <code>abb \,b\,b\,b</code> | ||
| Line 85: | Line 87: | ||
Example: | Example: | ||
<math> a^{\frac{b}{c} } </math> <code>a^{\frac{b}{c} }</code> | :<math> a^{\frac{b}{c} } </math> <code>a^{\frac{b}{c} }</code> | ||
<math> a^{\Large \frac{b}{c} } </math> <code>a^{\Large \frac{b}{c} }</code> | :<math> a^{\Large \frac{b}{c} } </math> <code>a^{\Large \frac{b}{c} }</code> | ||
Long equations can be written on multiple lines | Long equations can be written on multiple lines and they will be rendered as one continuous equation. This is good for long equations that would be hard to edit otherwise. | ||
Example: | Example: | ||
<math> a+a+a+a+a+a+a+a+a+a+a++a+a+a+ | :<math> a+a+a+a+a+a+a+a+a+a+a+a+a+a+a + | ||
b+b+b+b+b+b++b+b+b+b+b++b+b+b+b+b </math> | |||
<nowiki><math> a+a+a+a+a+a+a+a+a+a+a++a+a+a+ | <nowiki><math> a+a+a+a+a+a+a+a+a+a+a+a+a+a+a+</nowiki><br> | ||
<nowiki> | <nowiki>b+b+b+b+b+b++b+b+b+b+b++b+b+b+b+b </math></nowiki> | ||