LaTeX is a LICENSE licensed CATEGORY written in LANG.
- Website
- Source
- Documentation
- AlternativeTo
> QUOTE
# Notability
# Philosophy
# Platform Support
# Features
# Examples
# Tips
## Dedicated Subpages
- [[Math Notation Mathtex and LaTeX]]
- [[Chemical Formulas in LaTeX]]
## Fixing the Kerning for Multi-Letter Variables
Just putting letters together looks bad and disconnected:
$
VAR
$
`\mathit{}` improves the kerning:
$
\mathit{VAR}
$
`\mathrm{}` is similar to the above, but non-italic, the letter `V` still causes some kerning problems:
$
\mathrm{VAR}
$
`\mathsf{}` uses a standardized variable-width-kerning sans-serif font, which helps it stand out from single letter variables and allows for the best kerning:
$
\mathsf{VAR}
$
Don't use:
- `\text`, because it uses whatever is the current text-font, i.e. it changes it's appearance depending on the context.
- `\mathop`, because it increases the spacing _after_ the varname (and used alone does not help with the kerning)
- `\DeclareMathOperator` because (in the same way as `\mathop`) it affects spacing between the varname and subsequent things.
## Multi-Line and Alignment
To center-align a multi-line equation, you can use `gather`:
$
\begin{gather}
foo\\
bar
\end{gather}
$
Newlines are indicated with a double backslash: `\\`
Sometimes `split` will work (as it does here) but often it causes problems or changes alignment unpredictably:
$
\begin{split}
foo\\
bar
\end{split}
$
## Missing Fonts
If `Latin Modern` or `latinmodern-math` is missing from XeLatex, install `texlive-fonts-opentype` on [[Solus]].
# References
- https://tex.stackexchange.com/questions/482743/typesetting-multi-letter-variable-names-in-math-mode