Add section 5 Inline-Hervorhebungen
This commit is contained in:
parent
e58ba231d2
commit
12d1773f9c
@ -1,2 +1,5 @@
|
|||||||
# Wie funktioniert LaTeX?
|
# Wie funktioniert LaTeX?
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,2 +1,175 @@
|
|||||||
# All Features Welcome :)
|
# All Features Welcome :) 🐉
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Inline-Formatierung
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Hervorhebungen
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Tabelle
|
||||||
|
|Bezeichnung|Befehl|
|
||||||
|
|:----------|:--------------------------|
|
||||||
|
|fett (bold face)|\textbf{Very Important Stuff}|
|
||||||
|
|kursiv (italics)|\textit{Very Important Stuff}|
|
||||||
|
|Kapitälchen (small capitals)|\textsc{Very Important Stuff}|
|
||||||
|
|Schreibmaschinenschrift (teletypefont)|\texttt{Very Important Stuff}|
|
||||||
|
|geneigt (slanted)|\textsl{Very Important Stuff)|
|
||||||
|
|unterstrichen|\underline{Very Important Stuff}|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### unterstrichen
|
||||||
|
```tex
|
||||||
|
\underline{Very Important Stuff}
|
||||||
|
```
|
||||||
|
$\underline{Very Important Stuff}$
|
||||||
|
|
||||||
|
#### fett (bold face)
|
||||||
|
```tex
|
||||||
|
\textbf{Very Important Stuff}
|
||||||
|
```
|
||||||
|
$\textbf{Very Important Stuff}$
|
||||||
|
|
||||||
|
#### kursiv (italics)
|
||||||
|
```tex
|
||||||
|
\textit{Very Important Stuff}
|
||||||
|
```
|
||||||
|
$\textit{Very Important Stuff}$
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### geneigt (slanted)
|
||||||
|
```tex
|
||||||
|
\textsl{Very Important Stuff}
|
||||||
|
```
|
||||||
|
$\textsl{Very Important Stuff}$
|
||||||
|
|
||||||
|
#### Kapitälchen (small capitals)
|
||||||
|
```tex
|
||||||
|
\textsc{Very Important Stuff}
|
||||||
|
```
|
||||||
|
$\textsc{Very Important Stuff}$
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Schreibmaschinenschrift (teletypefont)
|
||||||
|
Lässt sich z.B. dafür nutzen, wenn man in der Informatik inline Codeschnipsel einfügen möchte.
|
||||||
|
```tex
|
||||||
|
\texttt{Very Important Stuff}
|
||||||
|
```
|
||||||
|
$\texttt{Very Important Stuff}$
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Hervorhebungen schachteln
|
||||||
|
Problemlos möglich:
|
||||||
|
```tex
|
||||||
|
\textbf{Very \textit{Important Stuff}}
|
||||||
|
```
|
||||||
|
$\textbf{Very \textit{Important Stuff}}$
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Hervorhebungen schachteln
|
||||||
|
Innerhalb kursiver Hervorhebung kann man auch den Befehl `\emph{text}` verwenden, um Passagen von der Kursivierung auszunehmen:
|
||||||
|
```tex
|
||||||
|
\texit{Very \emph{Important} Stuff}
|
||||||
|
```
|
||||||
|
$\texit{Very \emph{Important} Stuff}$
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Schriftgröße
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Ein gutgemeinter Rat: Better Call ~~Saul~~ LaTeX!
|
||||||
|
Vgl. Abschnitt zu Syntax und Semantik:
|
||||||
|
Konsistentes Aussehen über das gesamte Dokument hinweg gewünscht?
|
||||||
|
Voreinstellungen von LaTeX zur Schriftgröße verschiedener Textelemente (Titel, Fließtext, Fußnoten) vertrauen!
|
||||||
|
|
||||||
|
Das heißt im Umkehrschluss: Möglichst wenig manuell an Schriftgrößen herumschrauben
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### normalsize
|
||||||
|
|
||||||
|
Wird für den Fließtext verwendet.
|
||||||
|
Standard: 10pt.
|
||||||
|
|
||||||
|
Kann im Header folgendermaßen verwendet werden:
|
||||||
|
```tex
|
||||||
|
\documentclass[12pt]{article}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Voreingestellte Schriftgrößen
|
||||||
|
Syntax:
|
||||||
|
```tex
|
||||||
|
{\fontsize ein Textabschnitt}
|
||||||
|
```
|
||||||
|
|
||||||
|
Zur Auswahl: immer relativ zu normalsize
|
||||||
|
```tex
|
||||||
|
{\tiny Größe}
|
||||||
|
{\footnotesize Größe}
|
||||||
|
{\small Größe}
|
||||||
|
{\normalsize Größe}
|
||||||
|
{\large Größe}
|
||||||
|
{\Large Größe}
|
||||||
|
{\LARGE Größe}
|
||||||
|
{\huge Größe}
|
||||||
|
{\Huge Größe}
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Voreinstellungen
|
||||||
|
|
||||||
|
Zur Auswahl:
|
||||||
|
```tex
|
||||||
|
{\tiny Wenn}
|
||||||
|
{\footnotesize du}
|
||||||
|
{\small das}
|
||||||
|
{\normalsize lesen}
|
||||||
|
{\large kannst,}
|
||||||
|
{\Large brauchst}
|
||||||
|
{\LARGE du}
|
||||||
|
{\huge keine}
|
||||||
|
{\Huge Brille.}
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Manuelle Konfiguration
|
||||||
|
Syntax:
|
||||||
|
```tex
|
||||||
|
\fontsize{<Größe in pt, cm, ...>}{<Zeilenhöhe>)\selectfont
|
||||||
|
```
|
||||||
|
|
||||||
|
Beispiel:
|
||||||
|
```tex
|
||||||
|
Das ist Text in normaler Schriftgröße.
|
||||||
|
|
||||||
|
\fontsize{1cm}{1.25cm}\selectfont
|
||||||
|
Das ist eine Textpassage in wirklich riesiger Schrift.
|
||||||
|
|
||||||
|
\normalsize
|
||||||
|
Back to normal.
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
sections/german/05/hervorhebungen.png
Normal file
BIN
sections/german/05/hervorhebungen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
sections/german/05/schriftgroesse.png
Normal file
BIN
sections/german/05/schriftgroesse.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
sections/german/05/schriftgroesse_fontsize_befehl.png
Normal file
BIN
sections/german/05/schriftgroesse_fontsize_befehl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
sections/german/05/schriftgroesse_optiker.png
Normal file
BIN
sections/german/05/schriftgroesse_optiker.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Loading…
x
Reference in New Issue
Block a user