From d20577c72dda5db6eb5b6dcab6a4eb9de09e1335 Mon Sep 17 00:00:00 2001 From: Christian Kremitzl Date: Mon, 6 May 2019 14:43:34 +0200 Subject: [PATCH 1/4] Add preview only layout. --- css/theme/latex.css | 8 +++++++- css/theme/source/latex.scss | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/css/theme/latex.css b/css/theme/latex.css index c9dfab2..d6e30f8 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -29,7 +29,8 @@ section { body { font-size: calc(0.035 * var(--square)); } body .layout-content-and-preview, - body .layout-content-only { + body .layout-content-only, + body .layout-preview-only { display: grid; min-height: 100vh; max-height: 100vh; @@ -63,6 +64,11 @@ body { grid-template-columns: auto var(--square) auto; grid-template-areas: ". . ." ". content ." ". . ."; background: linear-gradient(to right, var(--secondary) 0%, var(--secondary) calc((100% - var(--square)) / 2), white calc((100% - var(--square)) / 2), white calc(100% - (100% - var(--square)) / 2), var(--secondary) calc(100% - (100% - var(--square)) / 2), var(--secondary) 100%); } } + body .layout-preview-only { + grid-template-rows: auto; + grid-template-columns: auto; + grid-template-areas: "preview"; + background: var(--secondary); } body .layout-content { background: white; grid-area: content; diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index ca38a37..a10d4f6 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -32,7 +32,8 @@ body { font-size: calc(0.035 * var(--square)); .layout-content-and-preview, - .layout-content-only { + .layout-content-only, + .layout-preview-only { display: grid; min-height: 100vh; max-height: 100vh; @@ -93,6 +94,13 @@ body { } } + .layout-preview-only { + grid-template-rows: auto; + grid-template-columns: auto; + grid-template-areas: "preview"; + background: var(--secondary); + } + .layout-content { background: white; grid-area: content; From 47a3f3540b75dd63ca4964b92858f25227f12613 Mon Sep 17 00:00:00 2001 From: Christian Kremitzl Date: Mon, 6 May 2019 14:44:19 +0200 Subject: [PATCH 2/4] Add content. --- sections/german/02/02.md | 2 +- sections/german/05/leerzeichen-crop.svg | 932 ++++++++++++------------ sections/german/05/leerzeichen-orig.svg | 930 ++++++++++++----------- sections/german/05/leerzeichen.tex | 7 +- sections/german/05/striche-crop.svg | 521 +++++++++++++ sections/german/05/striche-orig.svg | 521 +++++++++++++ sections/german/05/striche.tex | 11 + 7 files changed, 1962 insertions(+), 962 deletions(-) create mode 100644 sections/german/05/striche-crop.svg create mode 100644 sections/german/05/striche-orig.svg create mode 100644 sections/german/05/striche.tex diff --git a/sections/german/02/02.md b/sections/german/02/02.md index e27f9c9..41b4aa6 100644 --- a/sections/german/02/02.md +++ b/sections/german/02/02.md @@ -34,10 +34,10 @@ ---
-

Der Weg zum fertigen Dokument

+
Der Weg zum fertigen Dokument
diff --git a/sections/german/05/leerzeichen-crop.svg b/sections/german/05/leerzeichen-crop.svg index 585b061..aa5db7b 100644 --- a/sections/german/05/leerzeichen-crop.svg +++ b/sections/german/05/leerzeichen-crop.svg @@ -1,5 +1,5 @@ - + @@ -192,736 +192,708 @@ - - - - - - - - + + - + + + + - + - + - + - - - - - - - - + + + + + + + + - - - + + + - - - + + + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + - - + + - - - - - + + + + + - - - - - - - - + + + + + - - - + + + - + + + - - + - - - + + + + + - - + + - - + + - - + + - - - - - - - - - - - + + + + + + - - - + + + + + - - - - - + + + - - - + + + + + - - - - - - + + + - - - + + + + + + - - - - - - - - - + + + - + + + + + + + + + - - - + - - - - - - + + + - - + + + - + + + - + + - - - - - - - - - - - - - + + - - + + + + + + + - - + + + + + + + - - - - + + - + + - - - - - + + + + - - - - - - - - + - - - + + + + + - + + + + + + + + - - - + + + - - - + - + + + - - - - - - - + + - - + + - - - - + + - - - + + + - - + + - - - - - - - + + + + + + + - - - - - + + + + + - - - + + + - - - - - + + + + + - - + + - - - - - + + + + + - - - - - + + + + + - - + + - - - - - - - + + + + + + + - - - + + + - + - + - - + + - - - - + + + + - - - + + + - + - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + - - + + - - - - - + + + + + - - - - - - - - + + + + + + + + - - - + + + - + - - - - - + + + + + - - + + - - + + - - + + - - + + + + + + + + + + + - - - - - - - - - + + + - - + + + + + - + + + - - - - - + + + + + + - - - + + + - - - - - - + + + + + + + + + - - - + - - - - - - - - - + + + - + + + - - - + + + - - - - - - + + - - + + - - + + + + - - - - - - - - - - - - - + + + + + + + + + + - - + + - - + + - - + + + + - - + - + + + + + - - - - - + + + + + + + + - - - - - - - - + + + - - - + - + + + + + - - - + + - - - + + - + + + - - - - - - - - - + - - - - + + - - - + + + + + + + - - + + + + + - - - + - - - - + + - - - - - + + + + + - - - + + - - - - - + + + + + - - + + + + + - + + - - - - + + + + + + + - - - - - + + + - - + - - - - - - - + - - - + + - - - - - - - - - - - - - - + + + + diff --git a/sections/german/05/leerzeichen-orig.svg b/sections/german/05/leerzeichen-orig.svg index c2504ef..aa872bb 100644 --- a/sections/german/05/leerzeichen-orig.svg +++ b/sections/german/05/leerzeichen-orig.svg @@ -192,736 +192,708 @@ - - - - - - - - + + - + + + + - + - + - + - - - - - - - - + + + + + + + + - - - + + + - - - + + + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + - - + + - - - - - + + + + + - - - - - - - - + + + + + - - - + + + - + + + - - + - - - + + + + + - - + + - - + + - - + + - - - - - - - - - - - + + + + + + - - - + + + + + - - - - - + + + - - - + + + + + - - - - - - + + + - - - + + + + + + - - - - - - - - - + + + - + + + + + + + + + - - - + - - - - - - + + + - - + + + - + + + - + + - - - - - - - - - - - - - + + - - + + + + + + + - - + + + + + + + - - - - + + - + + - - - - - + + + + - - - - - - - - + - - - + + + + + - + + + + + + + + - - - + + + - - - + - + + + - - - - - - - + + - - + + - - - - + + - - - + + + - - + + - - - - - - - + + + + + + + - - - - - + + + + + - - - + + + - - - - - + + + + + - - + + - - - - - + + + + + - - - - - + + + + + - - + + - - - - - - - + + + + + + + - - - + + + - + - + - - + + - - - - + + + + - - - + + + - + - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + - - + + - - - - - + + + + + - - - - - - - - + + + + + + + + - - - + + + - + - - - - - + + + + + - - + + - - + + - - + + - - + + + + + + + + + + + - - - - - - - - - + + + - - + + + + + - + + + - - - - - + + + + + + - - - + + + - - - - - - + + + + + + + + + - - - + - - - - - - - - - + + + - + + + - - - + + + - - - - - - + + - - + + - - + + + + - - - - - - - - - - - - - + + + + + + + + + + - - + + - - + + - - + + + + - - + - + + + + + - - - - - + + + + + + + + - - - - - - - - + + + - - - + - + + + + + - - - + + - - - + + - + + + - - - - - - - - - + - - - - + + - - - + + + + + + + - - + + + + + - - - + - - - - + + - - - - - + + + + + - - - + + - - - - - + + + + + - - + + + + + - + + - - - - + + + + + + + - - - - - + + + - - + - - - - - - - + - - - + + - - - - - - - - - - - - - - + + + + diff --git a/sections/german/05/leerzeichen.tex b/sections/german/05/leerzeichen.tex index 1c68edc..8b786e6 100644 --- a/sections/german/05/leerzeichen.tex +++ b/sections/german/05/leerzeichen.tex @@ -3,12 +3,15 @@ \usepackage{amssymb,amsmath} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} \usepackage{hyperref} \begin{document} \thispagestyle{empty} +\parbox{.7\linewidth}{ \section*{Leerzeichen} \subsection*{Nur normale Leerzeichen:} -Schmale Leerzeichen werden z. B. in Abkürzungen und zwischen Zahlen und Einheiten verwendet: 10 s. Normalbreite, aber geschützte Leerzeichen können beispielsweise dabei helfen, Titel und Namen in einer Zeile zu halten: Dr. Fooboar. +Schmale Leerzeichen werden z. B. in Abkürzungen und zwischen Zahlen und Einheiten verwendet: 10 s. Normalbreite, aber geschützte Leerzeichen können u. a. dabei helfen, Titel und Namen in einer Zeile zu halten: Dr. Fooboar. \subsection*{Mit verschiedenen Leerzeichen:} -Schmale Leerzeichen werden z.\,B. in Abkürzungen und zwischen Zahlen und Einheiten verwendet: 10\,s. Normalbreite, aber geschützte Leerzeichen können beispielsweise dabei helfen, Titel und Namen in einer Zeile zu halten: Dr.~Fooboar. +Schmale Leerzeichen werden z.\,B. in Abkürzungen und zwischen Zahlen und Einheiten verwendet: 10\,s. Normalbreite, aber geschützte Leerzeichen können u.\,a. dabei helfen, Titel und Namen in einer Zeile zu halten: Dr.~Fooboar. +} \end{document} diff --git a/sections/german/05/striche-crop.svg b/sections/german/05/striche-crop.svg new file mode 100644 index 0000000..dfcd482 --- /dev/null +++ b/sections/german/05/striche-crop.svg @@ -0,0 +1,521 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sections/german/05/striche-orig.svg b/sections/german/05/striche-orig.svg new file mode 100644 index 0000000..6c4b766 --- /dev/null +++ b/sections/german/05/striche-orig.svg @@ -0,0 +1,521 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sections/german/05/striche.tex b/sections/german/05/striche.tex new file mode 100644 index 0000000..216eac5 --- /dev/null +++ b/sections/german/05/striche.tex @@ -0,0 +1,11 @@ +\documentclass[a4paper]{article} +\usepackage{lmodern} +\usepackage{amssymb,amsmath} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\usepackage{hyperref} +\begin{document} +\thispagestyle{empty} +\parbox{0.5\linewidth}{\noindent \emph{LaTeX-Wochenende} enthält einen Bindestrich. Dieser Strich wird auch für Silbentrennung verwendet. Für Gedankenstriche wird – anders als für Bindestriche – der Halbgeviertstrich verwendet. An exception is American English\,—\,it uses quad dashes (Geviertstriche).} +\end{document} From 40a08146b9c4df1404721aa3a94977e3f4dfb653 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Mon, 6 May 2019 14:50:30 +0200 Subject: [PATCH 3/4] Fix classes --- sections/german/03/03.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sections/german/03/03.md b/sections/german/03/03.md index 1fb49b0..07727ea 100644 --- a/sections/german/03/03.md +++ b/sections/german/03/03.md @@ -232,7 +232,7 @@ nichts verloren.

Titelei

-
\documentclass[ngerman]{scrartcl}
+        
\documentclass[ngerman]{scrartcl}
 \usepackage{babel}
 \author{Fooboar Rüssel}
 \title{Die Welt der Trüffel}
@@ -273,7 +273,7 @@ Mein Lieblingsrezept
 

Inhaltsverzeichnis

-
\documentclass[ngerman]{scrartcl}
+        
\documentclass[ngerman]{scrartcl}
 \usepackage{babel}
 \begin{document}
 \tableofcontents

From 6a7f94d8da9a36ef6125ad31c78efc2a7d786a4d Mon Sep 17 00:00:00 2001
From: Florian Knoch 
Date: Mon, 6 May 2019 14:50:37 +0200
Subject: [PATCH 4/4] Merge two slides

---
 sections/german/08/08.md | 23 ++++-------------------
 1 file changed, 4 insertions(+), 19 deletions(-)

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}