<style>
code.orange {
color: #F7A004 !important;
}
.reveal section img { border: none; box-shadow: none; background: none; }
</style>
# $$\LaTeX$$
<span>... på fem minuter<!-- .element: class="fragment" data-fragment-index="1" --></span>
---
### $$\LaTeX$$
- Typsättningssystem
- Plain text vs Formatted text
- Markup language
<span><code class="orange">\documentclass[12pt]{article}</code>
<code class="orange">\usepackage[a4paper, margin=1in]</code>
<code class="orange">\bibliographystyle{apalike}</code>
<code class="orange">\tableofcontents \newpage</code>
<!-- .element: class="fragment" data-fragment-index="1" --></span>
---
<iframe width="100%" height="600" src="https://en.wikipedia.org/wiki/LaTeX" frameborder="30" alt="LaTeX wikipedia"></iframe>
---
<code class="orange">\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}</code>
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$
<code class="orange">\sigma^2 = \frac{1}{n} \sum_{i=1}^{n}(x_i - \mu)^2</code>
$$\sigma^2 = \frac{1}{n} \sum_{i=1}^{n}(x_i - \mu)^2$$
---
```
\begin{figure}[ht]
\centering
\includegraphics[scale=0.6]{figures/skapa_referens.png}
\caption{Exempel på att ladda ner referens i bibtex-format från artikelsökning.}
\label{fig:bib-referens}
\end{figure}{}
```
<code class="orange">\ref{fig:bib-referens}</code>: Figur 2

---
```
@article{warmup-rowing,
issn = {1555-0265},
abstract = {The warm-up procedure in traditional rowing usually involves continuous low-intensity rowing and short bouts of intense exercise, lasting about 60 min.},
journal = {International journal of sports physiology and performance},
pages = {186},
volume = {7},
number = {2},
year = {2012},
title = {Warm-up intensity and duration's effect on traditional rowing time-trial performance},
language = {eng},
author = {Mujika, Iñigo and de Txabarri, Rafa González and Maldonado-Martín, Sara and Pyne, David B},
keywords = {Athletic Performance ; Muscle Contraction ; Muscle, Skeletal -- Physiology},
}
```
<code class="orange">\citep{warmup-rowing}</code>: (Mujika et al., 2012)

---
[Latex demo](https://www.overleaf.com/read/wqhbgxpstqdn)
---
{"metaMigratedAt":"2023-06-15T01:31:58.302Z","metaMigratedFrom":"YAML","title":"Latex demo","breaks":true,"description":"5 minuter demo av Latex","slideOptions":"{\"transition\":\"slide\",\"theme\":\"white\",\"allottedMinutes\":5,\"spotlight\":{\"enabled\":false,\"size\":80,\"useAsPointer\":false}}","contributors":"[{\"id\":\"c00ee202-db0f-4620-be92-3b4992ff94a0\",\"add\":2738,\"del\":3081}]"}