diff --git a/sections/german/10/10.md b/sections/german/10/10.md index 4faffac..b73fe56 100644 --- a/sections/german/10/10.md +++ b/sections/german/10/10.md @@ -1 +1,31 @@ -TODO: Listings \ No newline at end of file +TODO: Listings + +--- + +
+
+

Codeblöcke mit Syntaxhighlighting

+

Paket minted

+

Voraussetzungen: das Python-Paket Pygments

+

--shell-escape Flag hinzufügen (TeXstudio: Options > Configure TeXstudio > Commands "pdflatex -syntex=1 -interaction=nonstopmode %.tex" in "pdflatex -syntex=1 -interaction=nonstopmode --shell-escape %.tex" ändern)

+
+    
+\begin{minted}{java}
+public class Duck {
+    public static void main(String[] args) {
+        System.out.println("Hallo,Welt!");
+    }
+}
+\end{minted}
+
+\begin{minted}{python}
+def printHello:
+    print("Hallo, Welt!")
+\end{minted}
+
+
+
+
+ +
+ diff --git a/sections/german/15/15.md b/sections/german/15/15.md index ff60cf0..6b8d9d0 100644 --- a/sections/german/15/15.md +++ b/sections/german/15/15.md @@ -9,12 +9,10 @@ Weitere Umgebungen * Abstracts (für Paper) -* Algorithmen * Blockquotes * Chemische Strukturformeln * Konstituentenbäume * Abhängigkeitsbäume -* Indizes ---