170 lines
5.8 KiB
Markdown
170 lines
5.8 KiB
Markdown
<div class="layout-content-only">
|
|
<div class="layout-content">
|
|
<h1>Text­auszeichnung</h1>
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-and-preview">
|
|
<div class="layout-content">
|
|
<h2>Hervorhebungen</h2>
|
|
<p>Für Hervorhebungen im Fließtext eignet sich am besten der semantische Befehl `\emph{}` *(emphasis)*, der sich auch schachteln lässt:</p>
|
|
<pre class="lang-tex hljs"><code>\emph{Wenn man in einem ganzen Haufen
|
|
von wichtigem Text \emph{noch
|
|
wichtigeren Text} verstecken will,
|
|
hilft die Verschachtelung von
|
|
Emphasen.}</code></pre>
|
|
</div>
|
|
<div class="layout-preview">
|
|
<img src="sections/german/06/hervorhebungen-crop.svg">
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-and-preview">
|
|
<div class="layout-content">
|
|
<h2>Optische Auszeichnungen</h2>
|
|
<p>… legen genau fest, wie Text formatiert wird:</p>
|
|
<table>
|
|
<tr><th>Bezeichnung</th><th>Befehl</th></tr>
|
|
<tr><td>fett (bold face)</td><td><code>\textbf{important}</code></td></tr>
|
|
<tr><td>kursiv (italics)</td><td><code>\textit{important}</code></td></tr>
|
|
<tr><td>Kapitälchen (small caps)</td><td><code>\textsc{important}</code></td></tr>
|
|
<tr><td>dicktengleich (teletype)</td><td><code>\texttt{important}</code></td></tr>
|
|
<tr><td>geneigt (slanted)</td><td><code>\textsl{important}</code></td></tr>
|
|
<tr><td>unterstrichen</td><td><code>\underline{important}</code></td></tr>
|
|
<tr><td>tiefgestellt</td><td><code>\textsubscript{…}</code></td></tr>
|
|
<tr><td>hochgestellt</td><td><code>\textsuperscript{…}</code></td></tr>
|
|
</table>
|
|
</div>
|
|
<div class="layout-preview">
|
|
<img src="sections/german/06/optische-auszeichnungen-crop.svg">
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-and-preview">
|
|
<div class="layout-content">
|
|
<h2>Auszeichnungen schachteln</h2>
|
|
<p>Möglich, solange die verwendete Schrift den entsprechenden Schnitt enthält:</p>
|
|
<pre class="lang-tex hljs"><code>\textbf{Very
|
|
\textit{Important
|
|
\textsc{Stuff}
|
|
}
|
|
}</code></pre>
|
|
</div>
|
|
<div class="layout-preview">
|
|
<img src="sections/german/06/auszeichnungen-schachteln-crop.svg">
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-only">
|
|
<div class="layout-content">
|
|
<h2>Schriftgröße</h2>
|
|
<div class="box warning">
|
|
<p><strong>Ein gutgemeinter Rat: Better Call ~~Saul~~ LaTeX!</strong></p>
|
|
<p>Konsistentes Aussehen über das gesamte Dokument hinweg gewünscht?</p>
|
|
<p>Voreinstellungen von LaTeX zur Schriftgröße verschiedener Textelemente (Titel, Fließtext, Fußnoten) vertrauen!</p>
|
|
<p>Das heißt im Umkehrschluss: Möglichst wenig manuell an Schriftgrößen herumschrauben.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-only">
|
|
<div class="layout-content">
|
|
<h2>Schriftgröße</h2>
|
|
<h3>`normalsize`</h3>
|
|
<ul>
|
|
<li>Wird für den Fließtext verwendet</li>
|
|
<li>Standard: 10pt</li>
|
|
<li>Kann in der Präambel folgendermaßen verändert werden:</li>
|
|
</ul>
|
|
<pre class="lang-tex hljs"><code>\documentclass[12pt]{article}</code></pre>
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-and-preview">
|
|
<div class="layout-content">
|
|
<h2>Schriftgröße</h2>
|
|
<h3>Voreingestellte Schriftgrößen</h3>
|
|
<pre class="lang-tex hljs"><code>{\fontsize ein Textabschnitt}</code></pre>
|
|
<p>Zur Auswahl: immer relativ zu `normalsize`</p>
|
|
<pre class="lang-tex hljs"><code>{\tiny Wenn}
|
|
{\footnotesize du}
|
|
{\small das}
|
|
{\normalsize lesen}
|
|
{\large kannst,}
|
|
{\Large brauchst}
|
|
{\LARGE du}
|
|
{\huge keine}
|
|
{\Huge Brille.}</code></pre>
|
|
</div>
|
|
<div class="layout-preview">
|
|
<img class="thin-padding" src="sections/german/06/schriftgroesse-optiker-crop.svg">
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-and-preview">
|
|
<div class="layout-content">
|
|
<h2>Schriftgröße</h2>
|
|
<h3>Manuelle Konfiguration möglich</h3>
|
|
<pre class="lang-tex hljs"><code>\fontsize{<schriftgröße>}{<zeilenhöhe>}
|
|
\selectfont</code></pre>
|
|
<p>Beispiel:</p>
|
|
<pre class="lang-tex hljs"><code>Das ist Text in normaler Schriftgröße.
|
|
|
|
\fontsize{1cm}{1.25cm}\selectfont
|
|
Das ist eine Textpassage in
|
|
wirklich riesiger Schrift.
|
|
|
|
\normalsize
|
|
Back to normal.</code></pre>
|
|
</div>
|
|
<div class="layout-preview">
|
|
<img class="thin-padding" src="sections/german/06/schriftgroesse-fontsize-befehl-crop.svg">
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-and-preview">
|
|
<div class="layout-content">
|
|
<h2>URLs</h2>
|
|
<p>Das Paket `hyperref` stellt den Befehl `\url{}` bereit, der URLs</p>
|
|
<ul>
|
|
<li>zeichentreu</li>
|
|
<li>mit bindestrichlosen Umbrüchen</li>
|
|
<li>mit gut unterscheidbaren Zeichen</li>
|
|
<li>im PDF anklickbar</li>
|
|
</ul>
|
|
<p>wiedergibt.</p>
|
|
<pre class="lang-tex hljs">`\url{https://www.latex-project.org/}`</pre>
|
|
</div>
|
|
<div class="layout-preview">
|
|
<img src="sections/german/06/url-crop.svg">
|
|
</div>
|
|
</div>
|
|
|
|
---
|
|
|
|
<div class="layout-content-only">
|
|
<div class="layout-content">
|
|
<h2 data-category="Aufgabe" data-task="5">Text hervorheben</h2>
|
|
<ul>
|
|
<li>**Betont** das Wort »Pakete« in Abschnitt 1.1.2 mit `\emph{…}`.</li>
|
|
<li class="fragment">Probiert auch an beliebigen Stellen **optische Hervorhebungen** aus, entfernt sie aber wieder, wenn ihr ein aufgeräumtes Dokument erhalten wollt.</li>
|
|
<li class="fragment">Auf der zweiten Seite des Dokuments steht ein Absatz zum LaTeX-Wochenende. Ergänzt dort einen **Link** zum VC-Kurs.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|