diff --git a/css/theme/latex.css b/css/theme/latex.css index e2ba673..919597f 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -223,7 +223,7 @@ body { .layout-content-and-preview .layout-content, .layout-content-only .layout-content, .layout-wide-content .layout-content { - overflow: auto; + overflow: visible; padding: calc(var(--margin) * var(--square)); } .layout-content-and-preview .layout-content *:first-child, .layout-content-only .layout-content *:first-child, @@ -405,9 +405,12 @@ h2[data-category]::before { padding-left: calc(var(--margin) * var(--square)); margin-right: .5em; } -.layout-content-only h2[data-category^=Aufgabe]::after, -.layout-wide-content h2[data-category^=Aufgabe]::after { - content: attr(data-category); +h2[data-category=Aufgabe]::before { + content: attr(data-category) " " attr(data-task); } + +.layout-content-only h2[data-category=Aufgabe]::after, +.layout-wide-content h2[data-category=Aufgabe]::after { + content: attr(data-task); position: absolute; top: 0; right: 0; @@ -421,6 +424,12 @@ h2[data-category]::before { direction: rtl; word-spacing: 1000%; opacity: .2; } + @media screen and (min-aspect-ratio: 1 / 1) and (max-aspect-ratio: 2 / 1) { + .layout-content-only h2[data-category=Aufgabe]::after, + .layout-wide-content h2[data-category=Aufgabe]::after { + --versatz: calc((100vh - var(--square)) / 2); + top: var(--versatz); + bottom: calc(-1 * var(--versatz)); } } img { width: auto; @@ -552,3 +561,10 @@ p a:link, p a:hover, p a:active, p a:visited { p a:hover::before { height: 110%; } + +pre.small-text { + font-size: 80%; } + +pre.scroll-one-half { + max-height: calc(.5 * var(--square)); + overflow: auto !important; } diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index f06c7aa..5175723 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -314,7 +314,7 @@ body { .layout-content-only, .layout-wide-content { .layout-content { - overflow: auto; + overflow: visible; padding: calc(var(--margin) * var(--square)); *:first-child { @@ -494,15 +494,16 @@ h2[data-category]::before { vertical-align: baseline; letter-spacing: .1em; position: relative; - // left: calc(-1 * var(--margin) * var(--square)); - // margin-right: calc(-1 * var(--margin) * var(--square) + 1em); margin-left: calc(-1 * var(--margin) * var(--square)); padding-left: calc(var(--margin) * var(--square)); margin-right: .5em; } -.layout-content-only h2[data-category^=Aufgabe]::after, -.layout-wide-content h2[data-category^=Aufgabe]::after { - content: attr(data-category); +h2[data-category=Aufgabe]::before { + content: attr(data-category) ' ' attr(data-task); +} +.layout-content-only h2[data-category=Aufgabe]::after, +.layout-wide-content h2[data-category=Aufgabe]::after { + content: attr(data-task); position: absolute; top: 0; right: 0; @@ -516,6 +517,11 @@ h2[data-category]::before { direction: rtl; word-spacing: 1000%; opacity: .2; + @media screen and (min-aspect-ratio: 1/1) and (max-aspect-ratio: 2/1) { + --versatz: calc((100vh - var(--square)) / 2); + top: var(--versatz); + bottom: calc(-1 * var(--versatz)); + } } img { @@ -684,3 +690,12 @@ p a { } } + +pre.small-text { + font-size: 80%; +} + +pre.scroll-one-half { + max-height: calc(.5 * var(--square)); + overflow: auto !important; +} diff --git a/sections/german/02/02.md b/sections/german/02/02.md index 0fc5fcd..94c1865 100644 --- a/sections/german/02/02.md +++ b/sections/german/02/02.md @@ -140,7 +140,7 @@ Geburtsort: Milwaukee, Wisconsin
aufgabe01.tex herunter und speichert sie in einem eigenen Ordner.\section{} und \subsection{} ein und beobachte, was im Inhaltsverzeichnis passiert..tex-Dateien aus.\input{}, um die Abschnitte in deine Hauptdatei einzubinden.Dokumentenklasse zur Erstellung von Präsentationen.
-\documentclass{beamer}
+ \documentclass{beamer}
\usetheme{Frankfurt}
\usecolortheme{seahorse}
\author{ACID}
@@ -62,9 +62,9 @@ auf Basis von \textit{Zitronen}.
- TikZ - TikZ ist kein Zeichenprogramm
+ TikZ – TikZ ist kein Zeichenprogramm
Paket zur Erstellung von Vektorgrafiken.
- \tikzstyle{every node}=[draw=black,thick,anchor=west]
+ \tikzstyle{every node}=[draw=black,thick,anchor=west]
\tikzstyle{selected}=[draw=red,fill=red!30]
\tikzstyle{dir}=[fill=gray!50]
\tikzstyle{relativeTo}=[fill=blue!70]
@@ -78,15 +78,15 @@ parent path={(\tikzparentnode.south)
|- (\tikzchildnode.west)}]
\node {/ oder C:}
child { node {home}
- child { node {knut}
- child { node {pictures}}
- child { node {docs}
- child { node [dir] {latex}
- child { node [relativeTo] {main.tex}
- child { node [selected] {part1.tex}
- }
- }
- }
+ child { node {knut}
+ child { node {pictures}}
+ child { node {docs}
+ child { node [dir] {latex}
+ child { node [relativeTo] {main.tex}
+ child { node [selected] {part1.tex}
+ }
+ }
+ }
};
\end{tikzpicture}
@@ -102,16 +102,16 @@ child { node {home}
paralist
Paket für platzsparendere Listen
\begin{asparaenum} %enumerate
- \item Erdbeeren
- \item Stachelbeeren
- \item Eisbären
- \end{asparaenum}
+ \item Erdbeeren
+ \item Stachelbeeren
+ \item Eisbären
+\end{asparaenum}
- \begin{asparaitem} %itemize
- \item Erdbeeren
- \item Stachelbeeren
- \item Eisbären
- \end{asparaitem}
+\begin{asparaitem} %itemize
+ \item Erdbeeren
+ \item Stachelbeeren
+ \item Eisbären
+\end{asparaitem}
@@ -121,15 +121,11 @@ child { node {home}
- Linguistik
- Beispiel Konstituentenbäume mit qtree
+ Linguistik
+ Beispiel Konstituentenbäume mit qtree
+ \Tree [.S [.NP LaTeX ]
+[.VP [.V is ] [.NP fun ] ] ]
-
-
-
- \Tree [.S [.NP LaTeX ] [.VP [.V is ] [.NP fun ] ] ]
-
-