diff --git a/css/theme/latex.css b/css/theme/latex.css index 0685de0..38965e0 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -364,6 +364,15 @@ table { table th:last-child, table td:last-child { padding-right: .1em; } +.layout-content-only table { + border-spacing: 0; + margin-left: 0; + width: 100%; + box-sizing: border-box; } + .layout-content-only table tr > *:first-child { + padding-left: .3rem; + padding-right: .3rem; } + .box, blockquote { margin-left: calc(-1 * var(--margin) * var(--square)); padding: 0.8em 0.1em 0.1em calc(var(--margin) * var(--square)); } diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index 38f81d0..0918f35 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -457,6 +457,18 @@ table { } } +.layout-content-only table { + border-spacing: 0; + margin-left: 0; + width: 100%; + box-sizing: border-box; + + tr>*:first-child { + padding-left: .3rem; + padding-right: .3rem; + } +} + .box, blockquote { margin-left: calc(-1 * var(--margin) * var(--square)); padding: .8em .1em .1em calc(var(--margin) * var(--square)); diff --git a/sections/german/03/03.md b/sections/german/03/03.md index 1fb49b0..3421e65 100644 --- a/sections/german/03/03.md +++ b/sections/german/03/03.md @@ -6,17 +6,17 @@ --- -
👁 Ein mit LaTeX gesetztes Dokument besteht aus zwei Teilen.
\documentclass{scrartcl}
+
+ \documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
@@ -143,7 +143,6 @@ Text in Sprache B innerhalb eines Textes
\selectlanguage{english}
\today
-
@@ -155,7 +154,7 @@ Text in Sprache B innerhalb eines Textes
- Absätze
+ Fließtext
Fließtext kann direkt in den Quelltext ↲
geschrieben werden. ↲
Einfache Zeilenumbrüche ↲
@@ -229,13 +228,37 @@ nichts verloren.
---
+
+
+ Titelei
+ \title{Die Welt der Trüffel}
+\author{Fooboar Rüssel \\\\ Fachschaft WIAI\thanks{WIe AIn Profi}, Otto-Friedrich-Universität Bamberg}
+\date{\today}
+\begin{document}
+\maketitle
+\end{document}
+
+ - In der Präambel werden die Werte für die Einträge gespeichert.
+ - Das Setzen des Titels erfolgt in der Dokumentumgebung mit dem Befehl
\maketitle.
+ - Die genaue Gestaltung hängt ab von der verwendeten Dokumentklasse.
+ - Mehrere Autoren werden mit
\and getrennt.
+ - Wird kein Datum angegeben, wird per default das aktuelle Datum gesetzt. Dies kann mit
\date{} vermieden werden.
+
+
+
+
+
+---
+
Titelei
- \documentclass[ngerman]{scrartcl}
+ \documentclass[ngerman]{scrartcl}
\usepackage{babel}
-\author{Fooboar Rüssel}
\title{Die Welt der Trüffel}
+\author{Fooboar Rüssel \\\\ Fachschaft
+WIAI\thanks{WIe AIn Profi},
+Otto-Friedrich-Universität Bamberg}
\date{\today}
\begin{document}
\maketitle
@@ -273,7 +296,7 @@ Mein Lieblingsrezept
Inhaltsverzeichnis
- \documentclass[ngerman]{scrartcl}
+ \documentclass[ngerman]{scrartcl}
\usepackage{babel}
\begin{document}
\tableofcontents
@@ -325,9 +348,10 @@ Mein Lieblingsrezept
---
+
- 2. Grundstruktur des Skripts anpassen
+ 2. Grundstruktur des Skripts anpassen
- Füge ein Inhaltsverzeichnis in das Skript ein.
- Füge im 1. Kapitel xxxxx mehrere neue Absätze mit
\section{} und \subsection{} ein und beobachte, was im Inhaltsverzeichnis passiert.
diff --git a/sections/german/03/title.tex b/sections/german/03/title.tex
index 5c03790..52979fd 100644
--- a/sections/german/03/title.tex
+++ b/sections/german/03/title.tex
@@ -2,7 +2,7 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
-\author{Fooboar Rüssel}
+\author{Fooboar Rüssel \\ Fachschaft WIAI\thanks{WIe AIn Profi}\\ Otto-Friedrich-Universität Bamberg}
\title{Die Welt der Trüffel}
\date{\today}
diff --git a/sections/german/08/08.md b/sections/german/08/08.md
index 866f0ba..33f30e0 100644
--- a/sections/german/08/08.md
+++ b/sections/german/08/08.md
@@ -28,7 +28,7 @@
- Geordnete Listen
+ Geordnete Listen und Definitionslisten
\begin{enumerate}
\item die Zwiebeln in einem Topf anbraten
\item passierte Tomaten, Möhren und Erbsen dazugeben und aufkochen
@@ -37,23 +37,13 @@
\item in einer Auflaufform abwechselnd Béchamelsauce, Nudelplatten und Gemüsesoße stapeln
\item in Scheiben geschnittenen Mozzarella darauf verteilen und im Ofen backen
\end{enumerate}
-
-
-
-
-
-
----
-
-
-
- Definitionslisten
\begin{description}
\item [Béchamelsauce] Béchamelsauce, Sauce Béchamel oder Milchsauce ist eine helle Sauce aus Milch, Butter und Mehl, die meist zu Gemüse, Kartoffeln oder Eierspeisen serviert wird. Als klassische Grundsauce findet sie variiert bei vielen Gerichten Verwendung. (siehe \url{https://de.wikipedia.org/wiki/B%C3%A9chamelsauce})
\item [Lasagne] Als Lasagne (Plural Lasagnen) werden sowohl besonders breite Bandnudeln als auch der mehrere Teigschichten (Nudelplatten) beinhaltende Auflauf bezeichnet. (siehe \url{https://de.wikipedia.org/wiki/Lasagne})
\end{description}
-
+
+
@@ -89,7 +79,6 @@
Verschachtelte Listen
Listen lassen sich beliebig verschachteln.
\begin{compactitem}
- \item Nudelplatten
\item Gemüse \begin{compactitem}
\item Passierte Tomaten
\item Möhren
@@ -100,12 +89,8 @@
\item Oregano
\item Basilikum
\item Rosmarin
- \item Salz
- \item Pfeffer
\end{compactenum}
- \item Mozzarella
- \item Mehl
- \item Milch
+ % ...
\end{compactitem}
diff --git a/sections/german/09/09.md b/sections/german/09/09.md
index 63a789f..f7abd00 100644
--- a/sections/german/09/09.md
+++ b/sections/german/09/09.md
@@ -1 +1,67 @@
-TODO: Formeln (inline und block)
\ No newline at end of file
+
+
+ 🧮
Mathematische Formeln
+
+
+
+---
+
+
+
+ Formel-Umgebungen
+ $2 \sqrt{\frac{\pi^2}{3} \cdot c_2}$
+ Die mathematische Umgebung wird durch zwei Dollarzeichen abgegrenzt. Außerdem gibt es eine Blockumgebung.
+ \begin{equation}
+ 2 \sqrt{\frac{\pi^2}{3} \cdot c_2}
+\end{equation}
+
+
+
+
+
+
+---
+
+
+
+ Einige Beispiele
+
+
+ Quelltext
+ Ergebnis
+
+
+ `$`\sqrt{16}$
+ $\sqrt{16}$
+
+
+ `$`\frac{3}{4}$
+ $\frac{3}{4}$
+
+
+ `$`e^{\pi}$
+ $e^{\pi}$
+
+
+ `$`\sum\_{i=1}^{n}x^2$
+ $\sum_{i=1}^{n} x^2$
+
+
+ `$`12 \leq 4 x^2 + 13$
+ $12 \leq 4 x^2 + 13$
+
+
+ `$`(A \cup B) \cap C$
+ $(A \cup B) \cap C$
+
+
+ `$`(A \lor B) \land C$
+ $(A \lor B) \land C$
+
+
+ `$`(A \cdot B) \times C$
+ $(A \cdot B) \times C$
+
+
+
+
\ No newline at end of file
diff --git a/sections/german/09/simple-maths-crop.svg b/sections/german/09/simple-maths-crop.svg
new file mode 100644
index 0000000..bef1f78
--- /dev/null
+++ b/sections/german/09/simple-maths-crop.svg
@@ -0,0 +1,80 @@
+
+
diff --git a/sections/german/09/simple-maths-orig.svg b/sections/german/09/simple-maths-orig.svg
new file mode 100644
index 0000000..541a241
--- /dev/null
+++ b/sections/german/09/simple-maths-orig.svg
@@ -0,0 +1,80 @@
+
+
diff --git a/sections/german/09/simple-maths.tex b/sections/german/09/simple-maths.tex
new file mode 100644
index 0000000..3660ca1
--- /dev/null
+++ b/sections/german/09/simple-maths.tex
@@ -0,0 +1,12 @@
+\documentclass[a4paper]{article}
+\usepackage{lmodern}
+\usepackage{amssymb,amsmath}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{hyperref}
+\begin{document}
+\thispagestyle{empty}
+
+$2 \sqrt{\frac{\pi^2}{3} \cdot c_2}$
+
+\end{document}
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 ] ] ]
+
+
+
+
+
+
+
+---
+