diff --git a/presentation/presentation.md b/presentation/presentation.md index 0c0df63..3ffa0ee 100644 --- a/presentation/presentation.md +++ b/presentation/presentation.md @@ -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