@slide(layout=chapter-slide)
@title
Emphases
@slide(layout=content-and-preview)
@title
Emphases
@content
The easiest way of emphasising in continuous text is the semantic command `\emph{}` that can also be nested:
``` {.lang-tex .hljs}
\emph{If you have a whole bunch of
important text with some \emph{even more
important Text} hidden inside it,
you can use nested emphases.}
```
@preview

@slide(layout=content-and-preview)
@title
Optical highlighting
@content
specifies exactly how to format the text:
| Name | Befehl |
| Bold (bold face) | `\textbf{important}` |
| Italics (italics) | `\textit{important}` |
| Small caps | `\textsc{important}` |
| non-proportional (teletype) | `\texttt{important}` |
| slanted | `\textsl{important}` |
| underlined | `\underline{important}` |
| subscript | `\textsubscript{…}` |
| superscript | `\textsuperscript{…}` |
@preview

@slide(layout=content-and-preview)
@title
Nesting emphases
@content
Possible if the font contains the exact font style:
``` {.lang-tex .hljs}
\textbf{Very
\textit{Important
\textsc{Stuff}
}
}
```
@preview

@slide(layout=content-only)
@title
Font size
@content
**A well-meant advice: Better Call ~~Saul~~ LaTeX!**
You want the entire document to look consistent?
Trust LaTeX’s defaults (font sizes of title, paragraphs, footnotes, etc.)!
This conversely means: Avoid fiddling around with font sizes manually.
@slide(layout=content-only)
@title
Font size
@content
### `normalsize`
* used for continuous text paragraphs
* default: 10pt
* can be modified in the preamble:
``` {.lang-tex .hljs}
\documentclass[12pt]{article}
```
@slide(layout=content-and-preview)
@title
Font size
@content
### Preset font sizes
``` {.hljs .lang-tex}
{\ some text}
```
Font sizes relative to `normalsize`:
``` {.hljs .lang-tex}
{\tiny If}
{\footnotesize you}
{\small can}
{\normalsize read}
{\large this,}
{\Large you}
{\LARGE don’t}
{\huge need}
{\Huge glasses.}
```
@preview
{.thin-padding}
@slide(layout=content-and-preview)
@title
Font size
@content
### Manual configuration possible
``` {.lang-tex .hljs}
\fontsize{}{}
\selectfont
```
``` {.lang-tex .hljs}
This is text in normal font size.
\fontsize{1cm}{0.9cm}\selectfont
This is a ginormous passage.
\normalsize
Back to normal.
```
@preview
{.thin-padding}
@slide(layout=content-and-preview)
@title
URLs
@content
The `hyperref` package provides an `\url{}` command that reproduces URLs
* letter by letter
* using line breaks without hyphens
* using a font with well-distinguishable characters
* as a clickable link in the PDF
``` {.lang-tex .hljs}
\url{https://www.latex-project.org/}
```
@preview

@slide(layout=task)
@task-number
5
@title
Emphasising text
@content
* **Emphasise** the word “Pakete” in section 1.1.2 using `\emph{…}`.
* ++ Experiment with **optical highlighting** wherever you like, but remove them afterwards if you want to get a clean document.
* ++ The second page of the document contains a paragraph about the LaTeX weekend. Add a **link** to the VC course ().