update chapter 6
This commit is contained in:
parent
9f96b5e6b9
commit
a5cdc26849
@ -41,36 +41,13 @@ legen genau fest, wie Text formatiert wird:
|
||||
<tr><td>kursiv (italics)</td><td>`\textit{wichtig}`</td></tr>
|
||||
<tr><td>Kapitälchen (small caps)</td><td>`\textsc{wichtig}`</td></tr>
|
||||
<tr><td>dicktengleich (teletype)</td><td>`\texttt{wichtig}`</td></tr>
|
||||
<tr><td>geneigt (slanted)</td><td>`\textsl{wichtig}`</td></tr>
|
||||
<tr><td>unterstrichen</td><td>`\underline{wichtig}`</td></tr>
|
||||
<tr><td>tiefgestellt</td><td>`\textsubscript{…}`</td></tr>
|
||||
<tr><td>hochgestellt</td><td>`\textsuperscript{…}`</td></tr>
|
||||
</table>
|
||||
|
||||
@preview
|
||||

|
||||
|
||||
|
||||
@slide(layout=content-and-preview)
|
||||
|
||||
@title
|
||||
Auszeichnungen schachteln
|
||||
|
||||
@content
|
||||
Möglich, solange die verwendete Schrift den entsprechenden Schnitt enthält:
|
||||
|
||||
``` {.lang-tex .hljs}
|
||||
\textbf{Sehr
|
||||
\textit{wichtiges
|
||||
\textsc{Zeug}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@preview
|
||||

|
||||
|
||||
|
||||
@slide(layout=content-only)
|
||||
|
||||
@title
|
||||
@ -88,81 +65,6 @@ Das heißt im Umkehrschluss: Möglichst wenig manuell an Schriftgrößen herumsc
|
||||
</div>
|
||||
|
||||
|
||||
@slide(layout=content-only)
|
||||
|
||||
@title
|
||||
Schriftgröße
|
||||
|
||||
@content
|
||||
### `normalsize`
|
||||
* Wird für den Fließtext verwendet
|
||||
* Standard: 10pt
|
||||
* Kann in der Präambel verändert werden:
|
||||
|
||||
``` {.lang-tex .hljs}
|
||||
\documentclass[12pt]{article}
|
||||
```
|
||||
|
||||
|
||||
@slide(layout=content-and-preview)
|
||||
|
||||
@title
|
||||
Schriftgröße
|
||||
|
||||
@content
|
||||
### Voreingestellte Schriftgrößen
|
||||
|
||||
``` {.hljs .lang-tex}
|
||||
{\<fontsize> ein Textabschnitt}
|
||||
```
|
||||
|
||||
Schriftgrößen relativ zu `normalsize`:
|
||||
|
||||
``` {.hljs .lang-tex}
|
||||
{\tiny Wenn}
|
||||
{\footnotesize du}
|
||||
{\small das}
|
||||
{\normalsize lesen}
|
||||
{\large kannst,}
|
||||
{\Large brauchst}
|
||||
{\LARGE du}
|
||||
{\huge keine}
|
||||
{\Huge Brille.}
|
||||
```
|
||||
|
||||
@preview
|
||||
{.thin-padding}
|
||||
|
||||
|
||||
@slide(layout=content-and-preview)
|
||||
|
||||
@title
|
||||
Schriftgröße
|
||||
|
||||
@content
|
||||
### Manuelle Konfiguration möglich
|
||||
|
||||
``` {.lang-tex .hljs}
|
||||
\fontsize{<schriftgröße>}{<zeilenhöhe>}
|
||||
\selectfont
|
||||
```
|
||||
|
||||
<p data-category="Beispiel"></p>
|
||||
|
||||
``` {.lang-tex .hljs}
|
||||
Das ist Text in normaler Schriftgröße.
|
||||
|
||||
\fontsize{1cm}{0.9cm}\selectfont
|
||||
Das ist wirklich riesige Schrift.
|
||||
|
||||
\normalsize
|
||||
Back to normal.
|
||||
```
|
||||
|
||||
@preview
|
||||
{.thin-padding}
|
||||
|
||||
|
||||
@slide(layout=content-and-preview)
|
||||
|
||||
@title
|
||||
@ -197,7 +99,35 @@ Text hervorheben
|
||||
@content
|
||||
* **Betont** in der Datei `exercises/text-markup/markup.tex` die Wörter *Recursion* und *recursive* mit `\emph{…}`.
|
||||
* Macht die **URL** im Text anklickbar.
|
||||
* Probiert euch gerne auch an den anderen Textauszeichnungs-Möglichkeiten, die ihr kennengelernt habt. Löscht diese aber wieder, wenn ihr ein sauberes Dokument haben wollt.
|
||||
|
||||
@slide(layout=extra-content-and-preview)
|
||||
|
||||
@title
|
||||
Schriftgröße
|
||||
|
||||
@content
|
||||
### Voreingestellte Schriftgrößen
|
||||
|
||||
``` {.hljs .lang-tex}
|
||||
{\<fontsize> ein Textabschnitt}
|
||||
```
|
||||
|
||||
Schriftgrößen relativ zu `normalsize`:
|
||||
|
||||
``` {.hljs .lang-tex}
|
||||
{\tiny Wenn}
|
||||
{\footnotesize du}
|
||||
{\small das}
|
||||
{\normalsize lesen}
|
||||
{\large kannst,}
|
||||
{\Large brauchst}
|
||||
{\LARGE du}
|
||||
{\huge keine}
|
||||
{\Huge Brille.}
|
||||
```
|
||||
|
||||
@preview
|
||||
{.thin-padding}
|
||||
|
||||
@slide(layout=extra-content-and-preview)
|
||||
|
||||
|
||||
@ -40,36 +40,13 @@ specifies exactly how to format the text:
|
||||
<tr><td>Italics (italics)</td><td>`\textit{important}`</td></tr>
|
||||
<tr><td>Small caps</td><td>`\textsc{important}`</td></tr>
|
||||
<tr><td>non-proportional (teletype)</td><td>`\texttt{important}`</td></tr>
|
||||
<tr><td>slanted</td><td>`\textsl{important}`</td></tr>
|
||||
<tr><td>underlined</td><td>`\underline{important}`</td></tr>
|
||||
<tr><td>subscript</td><td>`\textsubscript{…}`</td></tr>
|
||||
<tr><td>superscript</td><td>`\textsuperscript{…}`</td></tr>
|
||||
</table>
|
||||
|
||||
@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
|
||||
@ -87,81 +64,6 @@ This conversely means: Avoid fiddling around with font sizes manually.
|
||||
</div>
|
||||
|
||||
|
||||
@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}
|
||||
{\<fontsize> 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{<fontsize>}{<lineheight>}
|
||||
\selectfont
|
||||
```
|
||||
|
||||
<p data-category="Example"></p>
|
||||
|
||||
``` {.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
|
||||
@ -197,6 +99,36 @@ Emphasising text
|
||||
* Of course, you can also experiment with the other **text markup** possibilities. However, remove them afterwards, if you want to have a clean document.
|
||||
|
||||
|
||||
@slide(layout=extra-content-and-preview)
|
||||
|
||||
@title
|
||||
Font size
|
||||
|
||||
@content
|
||||
### Preset font sizes
|
||||
|
||||
``` {.hljs .lang-tex}
|
||||
{\<fontsize> 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=extra-content-and-preview)
|
||||
|
||||
@title
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user