diff --git a/presentation/presentation.md b/presentation/presentation.md index 4be7ea3..0c0df63 100644 --- a/presentation/presentation.md +++ b/presentation/presentation.md @@ -60,6 +60,103 @@ Types of content - Figures - Tables - Bibliography -- Appenices +- Appendices +## Document setup + +- Type of document: `\documentclass` +- Preamble with `\input` +- Document body with `\begin{document}` + - This is an **environment** +- Frontmatter with `\maketitle` +- Sections with `\input` +- Bibliography with `\bibliography` +- Appendices with `\appendix` + +## Part 0: Preamble + +Here you might stick: + +- `\usepackage`-directives +- Custom commands + - For instance those defined with `\newcommand` +- Setup for packages used in the document +- Directives for the presentation of the types of content in the document + +> Tip: Make you preamble self-contained and portable + +## Part 1: Content + +Since content and presentation is mostly separate: + +- Content type must be specified in the "raw content" +- Presentation will be defined "elsewhere" + +## Environments and displays define what you write means + +Types of environments: + +- Document, math, figure, table, list, quote, bold, italics + +Usually specified in the text with: + +```latex +\begin{content-type} +... what you write goes here +\end{content-type} +``` + +## Normal text: headings, paragraphs, lists + +- Headings + - `\section`, `\subsection`, `\subsubsection` +- Paragraphs + - Just add some linebreaks! + - An empty line signifies the boundary between paragraphs +- Lists + - `itemize`: bullet points + - `enumerate`: numbered list + - Can be nested + +> Tip: For better version control, stick to *one sentence, one line* + +## MATH + +- `equation`: a single line of math +- `gather`: multiple lines of math +- `align`: multiple lines that can be *lined up* +- `\(...\)`: inline math +- `\[...\]`: basically like `equation` + +We're talking inline \(F = ma\) versus full display: + +\[E = mc^2\]. + +## Figures and tables + +- `\begin{figure}`: figure environment + - `\includegraphics`: the graphics to be shown + - `\caption`: text under/over the figure, with number + - `\label`: name to remember the figure by in the raw latex +- `\begin{table}`: table environment + - `\begin{tabular}`: environment for tabulated data + - `\caption`: text over/under table, with number + - `\label`: allows you to refer to the table in the document + +## Referencing + +- `\usepackage{biblatex}` + - Reference list styling + - Many other options +- Needs a file containing available sources + - Put `\addbibresource` in the preamble +- `\printbibliography` + - Options are available for this one as well + +## Appendices + +- `\usepackage{appendix}` +- `\appendix`: changes context of the document to "appendices" + - Each `\section` now defines an appendix, not a "chapter" + - Should probably have been an environment, but alas