diff --git a/sections/german/11/11.md b/sections/german/11/11.md deleted file mode 100644 index 571d8e5..0000000 --- a/sections/german/11/11.md +++ /dev/null @@ -1,88 +0,0 @@ -
Um Grafiken darzustellen, muss das Paket graphicx eingebunden werden.
\begin{figure}
- \includegraphics{<dateipfad>}
- \caption[<kurztitel>]
- {<bildunterschrift>}
-\end{figure}
- Bildgröße angeben:
-\includegraphics[width=0.5\textwidth,
-height=5cm]{<dateipfad>}
- \begin{figure}[<positionskürzel>]
- LaTeX positioniert Grafiken automatisch. Durch Kürzel können wir unsere Präferenzen (auch in Kombination) angeben.
-| Kürzel | -Position | -
|---|---|
| h | -(bitte) hier | -
| t | -oberer Seitenrand | -
| b | -unterer Seitenrand | -
| p | -auf einer eigenen Seite | -
| H | -(definitiv) hier (benötigt Paket float) |
-
\begin{figure}[<position>]
- \begin{center}
- \includegraphics{<dateipfad>}
- \end{center}
-\end{figure}
- Alternativ:
-\begin{figure}[<position>]
- \centering
- \includegraphics{<dateipfad>}
-\end{figure}
- bilder.tex ein.pdflatex -syntex=1 -interaction=nonstopmode **\-\-shell-escape** %.tex
@slide(layout=content-and-preview)
@@ -124,4 +127,4 @@ Quelltext einbinden
* ++ Bindet zunächst das **Paket `minted`** an der richtigen Stelle ein.
* ++ Nutzt die **`minted`-Umgebung**, um das erste Listing mit Syntax Highlighting zu versehen.
* ++ Lagert das zweite Listing in eine **neue Datei** aus und bindet sie mit `\inputminted` ein.
-* ++ Ändert das **Farbschema** zu `borland`.
\ No newline at end of file
+* ++ Ändert das **Farbschema** zu `borland`.
diff --git a/slides/chapter-10.en.md b/slides/chapter-10.en.md
index 451ff0b..dd454b1 100644
--- a/slides/chapter-10.en.md
+++ b/slides/chapter-10.en.md
@@ -23,6 +23,9 @@ Add the LaTeX package and we are good to go:
\usepackage{minted}
```
+@todo
+Update source code?
+
@preview
{ .thin-padding }
@@ -36,9 +39,9 @@ Compiler settings
We need to pass the additional flag `--shell-escape` to our compiler in order to use `minted`.
-In TeXstudio, go to **`Options > Configure TeXstudio > Commands`** and add the flag in the PdfLaTeX row before `%.tex`:
+In TeXstudio, go to **`Options → Configure TeXstudio → Commands`** and add the flag in the PdfLaTeX row before `%.tex`:
- pdflatex -syntex=1 -interaction=nonstopmode **--shell-escape** %.tex
+pdflatex -syntex=1 -interaction=nonstopmode **\-\-shell-escape** %.tex
@slide(layout=content-and-preview)
@@ -124,4 +127,4 @@ Listing source code
* ++ Include the **`minted` package** in the right place.
* ++ Make use of the **`minted` environment** to activate syntax highlighting for the first listing.
* ++ Move the second listing to a **new file** and include it using `\inputminted`.
-* ++ Change the **color scheme** to `borland`.
\ No newline at end of file
+* ++ Change the **color scheme** to `borland`.
diff --git a/slides/chapter-11.de.md b/slides/chapter-11.de.md
new file mode 100644
index 0000000..48241d6
--- /dev/null
+++ b/slides/chapter-11.de.md
@@ -0,0 +1,108 @@
+@slide(layout=chapter-slide)
+
+@title
+Grafiken
+
+
+@slide(layout=content-only)
+
+@title
+Grafiken abbilden 🖼️
+
+@content
+Um Grafiken darzustellen, muss das Paket `graphicx` eingebunden werden.
+
+``` {.lang-tex .hljs}
+\begin{figure}
+ \includegraphics{| Kürzel | +Position | +
|---|---|
| h | +hier, wenn es dir recht ist | +
| t | +oberer Seitenrand (top) | +
| b | +unterer Seitenrand (bottom) | +
| p | +auf einer eigenen Seite (page) | +
| H | +Hier, verdammt noch mal! (benötigt Paket `float`) |
+
| code | +position | +
|---|---|
| h | +here, if you don’t mind | +
| t | +top of the page | +
| b | +bottom of the page | +
| p | +on its own page | +
| H | +Here, for God’s sake! (`float` package required) |
+