More actions
Created page with " UniWiki iki allows adding equations using <math>\LaTeX</math> markup by using [https://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax]. Just place the expressio..." |
m Add link. |
||
| (9 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 28: | Line 30: | ||
* Units are in roman and separated from numbers by an unbreakable thin space <code>\,</code>. Example: <math> g = 9.81 \,{\rm m/s^2} </math> | * Units are in roman and separated from numbers by an unbreakable thin space <code>\,</code>. Example: <math> g = 9.81 \,{\rm m/s^2} </math> | ||
* Do not use "*" symbol for multiplication. Use <code>\times</code> insted. Example: <math> 3 \times 2 = 6 </math> | * Do not use "*" symbol for multiplication. Use <code>\times</code> insted. Example: <math> 3 \times 2 = 6 </math> | ||
* Equations on their own line should be indented with single ":". | |||
== Useful <math>\LaTeX</math> knowledge == | == Useful <math>\LaTeX</math> knowledge == | ||
| Line 37: | 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 48: | 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 62: | 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 74: | 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 84: | 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> | ||