Wrote section on presentation

This commit is contained in:
Bjornar Orjansen Kaarevik 2025-02-14 00:20:39 +01:00
parent 0e3d4b4a49
commit 974e5033ea

View File

@ -160,3 +160,58 @@ We're talking inline \(F = ma\) versus full display:
- Each `\section` now defines an appendix, not a "chapter"
- Should probably have been an environment, but alas
## Part 2: Presentation
> I used to fight all the time with my typesetter about where
> the images should be placed. Now I use \LaTeX and have accepted
> that I'll never win.
. . .
The \TeX typesetting engine is really powerful and will probably make
better choices than you.
## Linebreaks and pagebreaks
- Empty line: separates paragraphs
- Depending on settings, this may not produce empty lines in the compiled document
- `\\`: forces linebreak
- Used in tables, matrices and multiline math
- Can *force air* between paragraphs, but be careful
- `\newpage`: forces the rest of the page to be empty
- `\mbox`: forces words to "stay together", no hyphenation
- `~`: non-breaking space
## vspace and hspace
- `\vspace`: vertical spacing
- `\hspace`: horizontal spacing
- Valid lengths are:
- `cm, mm, em, ex, pt, mu, sp`
- ... and some more
- Lengths may be **negative**
## Defualt/documentwide lengths and widths
- `\parskip`: space when skipping to next paragraph
- `\parindent`: indent space on the first line of a paragraph
- `\baselinestretch`: how tall is a line?
- `\setstretch` and `\itemsep`: line height in itemize/enumerate environments
## MATH - but displaystyle this time
- `\textstyle`: inline math, when using `\(...\)`
- `\displaystyle`: math in *it's own box*
- With `equation`, `gather`, `align` and `\[...\]`
- `\scriptstyle`: when showing in sub/superscript
- `\scriptscriptstyle`: when sub/superscript is nested!
## Figures and tables
- Width, height and angle:
- `[width=\textwidth, height=100mm, angle=45]`
- `[!htbp]`
- Here, top, bottom and "special page"
- Floats
- They *float around* and cannot be broken up