Move more content to extra

This commit is contained in:
Knoch 2022-09-26 11:14:29 +02:00
parent 0ef774b72a
commit d0b28f79fb
5 changed files with 138 additions and 133 deletions

View File

@ -172,7 +172,7 @@ body .layout-preview img {
box-shadow: 0.2em 0.2em 0.5em 0 rgba(0, 0, 0, 0.3);
object-fit: cover;
margin: calc(0.05 * var(--square));
background-color: var(--background, white);
background-color: white;
box-sizing: border-box;
}
body .layout-preview img.thin-padding {
@ -193,7 +193,7 @@ body .layout-preview img[src$="-crop.svg"].thin-padding {
padding: calc(0.35 * var(--margin) * var(--square));
}
body .layout-preview img[src$="-orig.svg"] {
background: var(--background, white);
background: white;
object-fit: contain;
}
body .layout-preview figcaption {
@ -202,7 +202,7 @@ body .layout-preview figcaption {
bottom: 0;
width: 100%;
text-align: center;
color: var(--background, white);
color: white;
padding: 0.5em;
box-sizing: border-box;
}

View File

@ -200,7 +200,7 @@ body {
box-shadow: .2em .2em .5em 0 rgba(0, 0, 0, .3);
object-fit: cover;
margin: calc(.05 * var(--square));
background-color: var(--background, white);
background-color: white;
box-sizing: border-box;
&.thin-padding {
@ -224,7 +224,7 @@ body {
}
}
&[src$="-orig.svg"] {
background: var(--background, white);
background: white;
object-fit: contain;
}
}
@ -234,7 +234,7 @@ body {
bottom: 0;
width: 100%;
text-align: center;
color: var(--background, white);
color: white;
padding: .5em;
box-sizing: border-box;
}

View File

@ -0,0 +1,9 @@
<div class="layout-content-and-preview extra-content">
<div class="layout-content">
<h2 data-category="Extra">@title(inline)</h2>
@content
</div>
<div class="layout-preview">
@preview(inline)
</div>
</div>

View File

@ -32,25 +32,6 @@ einer Zeile zu halten: Dr.~Fooboar.
![](svg/chapter-05/leerzeichen-crop.svg)
@slide(layout=content-and-preview)
@title
English spacing
@content
In englischsprachigen Dokumenten verwendet LaTeX das traditionelle *English&nbsp;spacing,* also&nbsp;doppelte Leerzeichen nach dem Satzende.
++ Das kann mit `\frenchspacing` vor dem ersten Absatz verhindert werden. `\nonfrenchspacing` schaltet wieder zurück.
++ Bei *English&nbsp;spacing* versucht LaTeX, nach Abkürzungen trotzdem normale Wortzwischenräume zu setzen. Das sollte aber kontrolliert werden. Eingreifen können wir mit
* ++ erzwungenen Wortzwischenräumen: `.\␣`
* ++ erzwungenen Satzenden: `\@.␣`
@preview
![](svg/chapter-05/french-spacing-crop.svg)
@slide(layout=content-and-preview)
@title
@ -88,50 +69,6 @@ Striche
![](svg/chapter-05/striche-crop.svg)
@slide(layout=content-and-preview)
@title
Silbentrennung
@content
LaTeX trennt Wörter im Normalfall automatisch richtig, wenn die richtige Sprache konfiguriert ist. Manchmal muss aber auch manuell eingegriffen werden. Die verschiedenen Arten von Bindestrichen werden im Skript beschrieben.
<!--
<table>
<tr>
<td>Ausschließliche Trennung</td>
<td>`\-`</td>
</tr>
<tr>
<td>Zusätzliche Trennstelle</td>
<td>`"-`</td>
</tr>
<tr>
<td>Bindestrich (verbietet andere Trennstellen)</td>
<td>`-`</td>
</tr>
<tr>
<td>Bindestrich (erlaubt andere Trennstellen)</td>
<td>`"=`</td>
</tr>
<tr>
<td>Trennstelle ohne Strich</td>
<td>`""`</td>
</tr>
<tr>
<td>Strich ohne Trennstelle</td>
<td>`"~`</td>
</tr>
</table>
<p data-category="Achtung!">Einige der Codes funktionieren nur mit eingebundenem `babel`-Paket.</p>
-->
@preview
![](svg/chapter-05/silbentrennung-crop.svg)
@slide(layout=content-and-preview)
@title
@ -187,6 +124,68 @@ Kompiliert von nun an immer die Datei `main.tex`, um eure Änderungen im Skript
* Nutzt den Befehl `\enquote`, um die Wörter *Studi-Ticket* und *Studi-Karte* in **Anführungszeichen** zu setzen.
@slide(layout=extra-content-and-preview)
@title
English spacing
@content
In englischsprachigen Dokumenten verwendet LaTeX das traditionelle *English&nbsp;spacing,* also&nbsp;doppelte Leerzeichen nach dem Satzende.
Das kann mit `\frenchspacing` vor dem ersten Absatz verhindert werden. `\nonfrenchspacing` schaltet wieder zurück.
Bei *English&nbsp;spacing* versucht LaTeX, nach Abkürzungen trotzdem normale Wortzwischenräume zu setzen. Das sollte aber kontrolliert werden. Eingreifen können wir mit
* erzwungenen Wortzwischenräumen: `.\␣`
* erzwungenen Satzenden: `\@.␣`
@preview
![](svg/chapter-05/french-spacing-crop.svg)
@slide(layout=extra-content-and-preview)
@title
Silbentrennung
@content
LaTeX trennt Wörter im Normalfall automatisch richtig, wenn die richtige Sprache konfiguriert ist. Manchmal muss aber auch manuell eingegriffen werden.
<table>
<tr>
<td>Ausschließliche Trennung</td>
<td>`\-`</td>
</tr>
<tr>
<td>Zusätzliche Trennstelle</td>
<td>`"-`</td>
</tr>
<tr>
<td>Bindestrich (verbietet andere Trennstellen)</td>
<td>`-`</td>
</tr>
<tr>
<td>Bindestrich (erlaubt andere Trennstellen)</td>
<td>`"=`</td>
</tr>
<tr>
<td>Trennstelle ohne Strich</td>
<td>`""`</td>
</tr>
<tr>
<td>Strich ohne Trennstelle</td>
<td>`"~`</td>
</tr>
</table>
<p data-category="Achtung!">Einige der Codes funktionieren nur mit eingebundenem `babel`-Paket.</p>
@preview
![](svg/chapter-05/silbentrennung-crop.svg)
@slide(layout=extra-content-only)
@title

View File

@ -30,25 +30,6 @@ line: Dr.~Fooboar.
![](svg/chapter-05/spaces-crop.svg)
@slide(layout=content-and-preview)
@title
English and French spacing
@content
In English, LaTeX uses the old-fashioned *English&nbsp;spacing,* i.&thinsp;e., double sentence spacing.
++ If you want to be more modern, you can use `\frenchspacing` above your first paragraph. `\nonfrenchspacing` goes back to default.
++ If you actually use *English&nbsp;spacing,* LaTeX will still try and put normal word spacing after abbreviations. However, you should check the results and intervene where needed by
* ++ forcing normal spaces: `.\␣`
* ++ manually ending sentences: `\@.␣`
@preview
![](svg/chapter-05/french-spacing-crop.svg)
@slide(layout=content-and-preview)
@title
@ -86,51 +67,6 @@ Hyphens and dashes
![](svg/chapter-05/hyphens-and-dashes-crop.svg)
@slide(layout=content-and-preview)
@title
Hyphenation
@content
Most of the time, LaTeX hyphenates words correctly, if the correct language is configured.
Sometimes, however, manual intervention is necessary.
The different kinds of hyphens that LaTeX offers are described in our script.
<!--
<table>
<tr>
<td>Exclusive hyphenation</td>
<td>`\-`</td>
</tr>
<tr>
<td>Additional hyphenation</td>
<td>`"-`</td>
</tr>
<tr>
<td>Hyphen (suppressing other hyphenation)</td>
<td>`-`</td>
</tr>
<tr>
<td>Hyphen (allowing other hyphenation)</td>
<td>`"=`</td>
</tr>
<tr>
<td>Possible separation without hyphen</td>
<td>`""`</td>
</tr>
<tr>
<td>Non-breaking hyphen</td>
<td>`"~`</td>
</tr>
</table>
<p data-category="Caution!">Some of the codes only work when you use the `babel` package.</p>
-->
@preview
![](svg/chapter-05/hyphenation-crop.svg)
@slide(layout=content-and-preview)
@title
@ -186,6 +122,67 @@ From now on, compile the file `main.tex` to see your changes appear in the scrip
* Add **quotation marks** around the words *Studi-Ticket* and *Studi-Karte* using the `\enquote` command.
@slide(layout=extra-content-and-preview)
@title
English and French spacing
@content
In English, LaTeX uses the old-fashioned *English&nbsp;spacing,* i.&thinsp;e., double sentence spacing.
If you want to be more modern, you can use `\frenchspacing` above your first paragraph. `\nonfrenchspacing` goes back to default.
If you actually use *English&nbsp;spacing,* LaTeX will still try and put normal word spacing after abbreviations. However, you should check the results and intervene where needed by
* forcing normal spaces: `.\␣`
* manually ending sentences: `\@.␣`
@preview
![](svg/chapter-05/french-spacing-crop.svg)
@slide(layout=extra-content-and-preview)
@title
Hyphenation
@content
Most of the time, LaTeX hyphenates words correctly, if the correct language is configured.
Sometimes, however, manual intervention is necessary.
<table>
<tr>
<td>Exclusive hyphenation</td>
<td>`\-`</td>
</tr>
<tr>
<td>Additional hyphenation</td>
<td>`"-`</td>
</tr>
<tr>
<td>Hyphen (suppressing other hyphenation)</td>
<td>`-`</td>
</tr>
<tr>
<td>Hyphen (allowing other hyphenation)</td>
<td>`"=`</td>
</tr>
<tr>
<td>Possible separation without hyphen</td>
<td>`""`</td>
</tr>
<tr>
<td>Non-breaking hyphen</td>
<td>`"~`</td>
</tr>
</table>
<p data-category="Caution!">Some of the codes only work when you use the `babel` package.</p>
@preview
![](svg/chapter-05/hyphenation-crop.svg)
@slide(layout=extra-content-only)
@title