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

## 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 Type setting mathematics for science and technology according to ISO 31/XI. Some of the main points are listed below:

• Variables and letters that represent values should be in italic.
• Multiletter variables are bad idea and should be avoided. If they are more like words (for example acronyms) use roman, otherwise use italic.
• Text should be in roman. Text variables are not exactly proper thing to do but they are fine in our wiki.
• Mathematical constants should be in roman. But this is often broken on things like $e$ and $\pi$.
• Constants that are not exactly constant are in italic. For example charge of electron is "constant" but it is a measuread value and the measured value is not absolute and can change and is therefore in italic $e$.
• 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$