# Difference between revisions of "User:Hirmuolio Pine/sandbox3"

From EVE University Wiki

(→Style) |
(→Style) |
||

(4 intermediate revisions by the same user not shown) | |||

Line 1: | Line 1: | ||

+ | UNI wiki allows adding equations in <math>\LaTeX</math> 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. | ||

== Useful <math>\LaTeX</math> knowledge == | == Useful <math>\LaTeX</math> knowledge == | ||

Line 36: | Line 38: | ||

Style guidelines for math vary by location and field. Don't worry about them too much. Being consistent, unambiguous and readable is more important than strictly following guidelines. | Style guidelines for math vary by location and field. Don't worry about them too much. Being consistent, unambiguous and readable is more important than strictly following guidelines. | ||

− | If you have time you can read [http://www.tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf%20www.tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf Type setting mathematics for science and technology according to ISO 31/XI]. Some of the main points are listed below: | + | If you have time you can read |

+ | * [http://www.tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf%20www.tug.org/TUGboat/Articles/tb18-1/tb54becc.pdf (pdf) Type setting 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] | ||

+ | |||

+ | Some of the main points are listed below: | ||

* Variables and letters that represent values should be in italic. | * Variables and letters that represent values should be in italic. | ||

− | ** Multiletter | + | ** Multiletter and text variables are not exactly proper thing to do but they are fine in our wiki. Generally speaking use roman letters for them. |

− | + | * Text should be in roman. | |

− | * Mathematical constants should be in roman. But this is often broken | + | * Mathematical constants should be in roman. But this is often broken (for example <math>e</math> and <math>\pi</math>). |

− | * | + | * Physical constants should be italic. |

* Sub and superscripts that represent quantities should be italic. Otherwise they should be roman. For example <math> V_{\rm max}</math> (max is roman) but <math> V_{n+1}</math> (n is italic). | * Sub and superscripts that represent quantities should be italic. Otherwise they should be roman. For example <math> V_{\rm max}</math> (max is roman) but <math> V_{n+1}</math> (n is italic). | ||

* Mathematical operators and special functions are in roman. Usually this happens automatically. For example <math> \sin\alpha </math> (<nowiki><math> \sin\alpha </math></nowiki>). But some operators will require manually setting. For example <math> \frac{ \mathrm{d} x }{ \mathrm{d} t} </math> (<nowiki><math> \frac{ \mathrm{d} x }{ \mathrm{d} t} </math></nowiki>) and <math> \mathrm{arcsinh}\,\alpha </math> (<nowiki><math> \mathrm{arcsinh}\,\alpha </math></nowiki>). | * Mathematical operators and special functions are in roman. Usually this happens automatically. For example <math> \sin\alpha </math> (<nowiki><math> \sin\alpha </math></nowiki>). But some operators will require manually setting. For example <math> \frac{ \mathrm{d} x }{ \mathrm{d} t} </math> (<nowiki><math> \frac{ \mathrm{d} x }{ \mathrm{d} t} </math></nowiki>) and <math> \mathrm{arcsinh}\,\alpha </math> (<nowiki><math> \mathrm{arcsinh}\,\alpha </math></nowiki>). | ||

* Single letter functions you define are italic. For example <math> f(x) </math>. | * Single letter functions you define are italic. For example <math> f(x) </math>. | ||

** But multi letter named functions are in roman. For example <math> \mathrm{func}(x) </math>. | ** But multi letter named functions are in roman. For example <math> \mathrm{func}(x) </math>. | ||

− | * Units are in roman and separated from numbers by a unbreakable thin space "\,". <math> h = \frac{ E }{ m \times 9.81 \ {\rm m/s^2} } </math> (<nowiki><math> h = \frac{ E }{ m \times 9.81 \ {\rm m/s^2} } </math></nowiki>) | + | * Units are in roman and separated from numbers by a unbreakable thin space "\,". <math> h = \frac{ E }{ m \times 9.81 \,{\rm m/s^2} } </math> (<nowiki><math> h = \frac{ E }{ m \times 9.81 \,{\rm m/s^2} } </math></nowiki>) |

* Do not use "*" symbol for multiplication. Use "\times" insted. <math> 3 \times 2 = 6 </math> | * Do not use "*" symbol for multiplication. Use "\times" insted. <math> 3 \times 2 = 6 </math> |

## Revision as of 15:29, 15 January 2020

UNI wiki allows adding equations in [math]\LaTeX[/math] by using SimpleMathJax. Just place the expression in between <math></math> 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.

## Useful [math]\LaTeX[/math] knowledge

- Spaces do not do anything. Use plenty of them to make the commands easy to read
- This here has 17 spaces in it (visible only in editor): <math> a = b + c </math> [math] a = b + c [/math]

- \text{} makes spaces visible and text into roman.
- <math> \text{This is like normal text} = This is math text </math> [math] \text{This is like normal text} = This is math text [/math]
- \mathrm is similar but does not remove spaces. <math> \mathrm{arc sinh} </math> [math] \mathrm{arc sinh} [/math]

- \rm will make the whole thing to be in roman instead of italic. Spaces will still be removed.
- <math> \rm Velocity = S p e e d </math> [math] \rm Velocity = S p e e d[/math]
- {} can be used to limit its scope. <math> { \rm Roman } = Italic</math> [math] { \rm Roman } = Italic[/math]

- "\ " adds single space.
- <math> abb \ b\ b\ b </math> [math] abb \ b\ b\ b [/math]

- "\," adds single thin space
- <math> abb \,b\,b\,b </math> [math] abb \,b\,b\,b [/math]

- \displaystyle makes tall equations bigger and more beautiful. Will apply on things like sums and fractions.
- <math> a= \frac{b}{c} + \sum_{k=1}^n a_k b_k </math> [math] a= \frac{b}{c} + \sum_{k=1}^n a_k b_k [/math]
- <math> \displaystyle a= \frac{b}{c} + \sum_{k=1}^n a_k b_k </math> [math] \displaystyle a= \frac{b}{c} + \sum_{k=1}^n a_k b_k [/math]

- \large, \Large and \LARGE make text bigger. Like with \rm use {} to limit their scope. These help with things nested in exponents as exponent makes things smaller.
- <math> a^{\Large \frac{b}{c} } </math> [math] a^{\Large \frac{b}{c} } [/math]. Compare to [math] a^{\frac{b}{c} } [/math]

- Long equations can be split to multiple separate <math> lines. It will look the same as if it was written in one go.
- <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> [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]
- <math> a+a+a+a+a+a+a+a+a+a+a++a+a+a+a </math>

<math> +b+b+b+b+b+b++b+b+b+b+b++b+b+b+b+b </math> [math] a+a+a+a+a+a+a+a+a+a+a++a+a+a+a [/math][math] +b+b+b+b+b+b++b+b+b+b+b++b+b+b+b+b [/math]

## Style

Style guidelines for math vary by location and field. Don't worry about them too much. Being consistent, unambiguous and readable is more important than strictly following guidelines.

If you have time you can read

- (pdf) Type setting mathematics for science and technology according to ISO 31/XI.
- (pdf) On the use of italic and roman fonts for symbols in scientific text

Some of the main points are listed below:

- Variables and letters that represent values should be in italic.
- Multiletter and text variables are not exactly proper thing to do but they are fine in our wiki. Generally speaking use roman letters for them.

- Text should be in roman.
- Mathematical constants should be in roman. But this is often broken (for example [math]e[/math] and [math]\pi[/math]).
- Physical constants should be italic.
- Sub and superscripts that represent quantities should be italic. Otherwise they should be roman. For example [math] V_{\rm max}[/math] (max is roman) but [math] V_{n+1}[/math] (n is italic).
- Mathematical operators and special functions are in roman. Usually this happens automatically. For example [math] \sin\alpha [/math] (<math> \sin\alpha </math>). But some operators will require manually setting. For example [math] \frac{ \mathrm{d} x }{ \mathrm{d} t} [/math] (<math> \frac{ \mathrm{d} x }{ \mathrm{d} t} </math>) and [math] \mathrm{arcsinh}\,\alpha [/math] (<math> \mathrm{arcsinh}\,\alpha </math>).
- Single letter functions you define are italic. For example [math] f(x) [/math].
- But multi letter named functions are in roman. For example [math] \mathrm{func}(x) [/math].

- Units are in roman and separated from numbers by a unbreakable thin space "\,". [math] h = \frac{ E }{ m \times 9.81 \,{\rm m/s^2} } [/math] (<math> h = \frac{ E }{ m \times 9.81 \,{\rm m/s^2} } </math>)
- Do not use "*" symbol for multiplication. Use "\times" insted. [math] 3 \times 2 = 6 [/math]