diff --git a/.gitignore b/.gitignore index b903bb2..3f9109d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# LaTeX +*.aux +*.out + # From Reveal.js .idea/ *.iml diff --git a/css/theme/latex.css b/css/theme/latex.css index 37e91a5..0662ae5 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -79,9 +79,17 @@ body { body .layout-preview img { width: auto; height: auto; - max-width: 90%; - max-height: 90%; + max-width: 90vw; + max-height: 90vh; box-shadow: 0.2em 0.2em 0.5em 0 rgba(0, 0, 0, 0.3); } + body .layout-preview img[src$="-crop.svg"] { + background: white; + padding: calc(var(--margin) * var(--square)); + object-fit: contain; + width: calc(0.7 * var(--square)); } + body .layout-preview img[src$="-orig.svg"] { + background: white; + object-fit: contain; } body .layout-preview figcaption { position: absolute; background: rgba(0, 0, 0, 0.5); diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index 149568f..d0f26f2 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -112,9 +112,19 @@ body { img { width: auto; height: auto; - max-width: 90%; - max-height: 90%; + max-width: 90vw; + max-height: 90vh; box-shadow: .2em .2em .5em 0 rgba(0, 0, 0, .3); + &[src$="-crop.svg"] { + background: white; + padding: calc(var(--margin) * var(--square)); + object-fit: contain; + width: calc(0.7 * var(--square)); + } + &[src$="-orig.svg"] { + background: white; + object-fit: contain; + } } figcaption { position: absolute; diff --git a/sections/german/03/03.md b/sections/german/03/03.md index bbe5165..2a11835 100644 --- a/sections/german/03/03.md +++ b/sections/german/03/03.md @@ -3,3 +3,95 @@
TODO
+Einfache Zeilenumbrüche
+im Code werden
+ignoriert.
+
+Leerzeilen erzeugen einen neuen Absatz,
+standardmäßig mit Einzug.
+Manuelle Zeilenumbrüche können mit
+zwei Backslashes erzwungen werden, \\\\
+haben in Fließtext aber eigentlich
+nichts verloren.
+ Texte werden durch Überschriften in Abschnitte und Kapitel unterteilt. Immer verfügbar:
+\section{Ebene 1}
+\subsection{Ebene 2}
+\subsubsection{Ebene 3}
+\paragraph{Ebene 4}
+\subparagraph{Ebene 5}
+ Je nach Dokumentenklasse zusätzlich:
+\chapter{Kapitel}
+\part{Teil}
+ TODO
+TODO
+TODO
+TODO:
+\input{filename.tex} oder\include{filename}\input{file.tex} oder \include{file}