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..d058ea2 100644 --- a/sections/german/15/15.md +++ b/sections/german/15/15.md @@ -6,16 +6,6 @@ --- -Weitere Umgebungen - -* Abstracts (für Paper) -* Algorithmen -* Blockquotes -* Chemische Strukturformeln -* Konstituentenbäume -* Abhängigkeitsbäume -* Indizes - ---
@@ -82,7 +72,6 @@ child { node {home} \end{tikzpicture} -
@@ -91,6 +80,49 @@ child { node {home} --- +
+
+

paralist

+

Paket für platzsparendere Listen

+
+    
+    \begin{asparaenum} %enumerate
+       \item Erdbeeren
+       \item Stachelbeeren
+       \item Eisbären
+    \end{asparaenum}
+    
+    \begin{asparaitem} %itemize
+       \item Erdbeeren
+       \item Stachelbeeren
+       \item Eisbären
+    \end{asparaitem}
+   
+
+
+ +
+ +--- + +
+
+

Linguistik

+

Beispiel Konstituentenbäume mit qtree

+
+
+
+    
+    \Tree [.S [.NP LaTeX ] [.VP [.V is ] [.NP fun ] ] ]
+    
+    
+
+
+ +
+ +--- +