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

UNI wiki allows adding equations in $\LaTeX$ by using SimpleMathJax. Just place the expression in between  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 $\LaTeX$ 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): $a = b + c$ $a = b + c$
• \text{} makes spaces visible and text into roman.
• $\text{This is like normal text} = This is math text$ $\text{This is like normal text} = This is math text$
• \mathrm is similar but does not remove spaces. $\mathrm{arc sinh}$ $\mathrm{arc sinh}$
• \rm will make the whole thing to be in roman instead of italic. Spaces will still be removed.
• $\rm Velocity = S p e e d$ $\rm Velocity = S p e e d$
• {} can be used to limit its scope. ${ \rm Roman } = Italic$ ${ \rm Roman } = Italic$
• "\ " adds single space.
• $abb \ b\ b\ b$ $abb \ b\ b\ b$
• "\," adds single thin space
• $abb \,b\,b\,b$ $abb \,b\,b\,b$
• \displaystyle makes tall equations bigger and more beautiful. Will apply on things like sums and fractions.
• $a= \frac{b}{c} + \sum_{k=1}^n a_k b_k$ $a= \frac{b}{c} + \sum_{k=1}^n a_k b_k$
• $\displaystyle a= \frac{b}{c} + \sum_{k=1}^n a_k b_k$ $\displaystyle a= \frac{b}{c} + \sum_{k=1}^n a_k b_k$
• \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.
• $a^{\Large \frac{b}{c} }$ $a^{\Large \frac{b}{c} }$. Compare to $a^{\frac{b}{c} }$
• Long equations can be split to multiple separate $lines. It will look the same as if it was written in one go. • [itex] 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$ $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$
• $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$ $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$

## 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

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 $e$ and $\pi$).
• Physical constants should be italic.
• Sub and superscripts that represent quantities should be italic. Otherwise they should be roman. For example $V_{\rm max}$ (max is roman) but $V_{n+1}$ (n is italic).
• Mathematical operators and special functions are in roman. Usually this happens automatically. For example $\sin\alpha$ ($\sin\alpha$). But some operators will require manually setting. For example $\frac{ \mathrm{d} x }{ \mathrm{d} t}$ ($\frac{ \mathrm{d} x }{ \mathrm{d} t}$) and $\mathrm{arcsinh}\,\alpha$ ($\mathrm{arcsinh}\,\alpha$).
• Single letter functions you define are italic. For example $f(x)$.
• But multi letter named functions are in roman. For example $\mathrm{func}(x)$.
• Units are in roman and separated from numbers by a unbreakable thin space "\,". $h = \frac{ E }{ m \times 9.81 \,{\rm m/s^2} }$ ($h = \frac{ E }{ m \times 9.81 \,{\rm m/s^2} }$)
• Do not use "*" symbol for multiplication. Use "\times" insted. $3 \times 2 = 6$