Skip to content

Commit

Permalink
update and improve frames
Browse files Browse the repository at this point in the history
  • Loading branch information
georglauterbach committed Jun 17, 2023
1 parent da2f1f5 commit 984eeca
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 14 deletions.
3 changes: 3 additions & 0 deletions include/01-language_english.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@

\newif\ifenglish%
\englishtrue%

\newif\ifframesloaded%
\framesloadedfalse%
3 changes: 3 additions & 0 deletions include/01-language_german.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@

\newif\ifenglish%
\englishfalse%

\newif\ifframesloaded%
\framesloadedfalse%
38 changes: 25 additions & 13 deletions include/42-frames.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
%
% └───────────────────────────────────────────────────────┘

\framesloadedtrue%

\usepackage[%
framemethod=TikZ,
roundcorner=2pt,
Expand All @@ -30,25 +32,35 @@
\mdfdefinestyle{problem}{linewidth=.5pt,linecolor=OrangePantone,frametitlebackgroundcolor={OrangePantone!20}}
\mdfdefinestyle{notation}{linewidth=.5pt,linecolor=SelectiveYellow,frametitlebackgroundcolor={SelectiveYellow!20}}

\mdtheorem[style=definition] {definition} {Definition}
\mdtheorem[style=definition] {lemma} [definition] {Lemma}
\newcounter{definition-counter}\setcounter{definition-counter}{0}
\newcounter{lemma-counter}\setcounter{lemma-counter}{0}
\newcounter{axiom-counter}\setcounter{axiom-counter}{0}
\newcounter{notation-counter}\setcounter{notation-counter}{0}
\newcounter{problem-counter}\setcounter{problem-counter}{0}

\mdtheorem[style=definition] {definition} [definition-counter] {Definition}
\mdtheorem[style=definition] {lemma} [lemma-counter] {Lemma}
\mdtheorem[style=notation] {axiom} [axiom-counter] {Axiom}
\mdtheorem[style=notation] {notation} [notation-counter] {Notation}
\mdtheorem[style=problem] {problem} [problem-counter] {Problem}

\mdtheorem[style=notation] {axiom} [definition] {Axiom}
\mdtheorem[style=notation] {notation} [definition] {Notation}
\mdtheorem[style=problem] {problem} [definition] {Problem}
\newcounter{theorem-counter}\setcounter{theorem-counter}{0}
\newcounter{corollary-counter}\setcounter{corollary-counter}{0}
\newcounter{proof-counter}\setcounter{proof-counter}{0}
\newcounter{example-counter}\setcounter{example-counter}{0}

\ifenglish%

\mdtheorem[style=theorem] {theorem} [definition] {Theorem}
\mdtheorem[style=theorem] {corollary} [definition] {Corollary}
\mdtheorem[style=proof] {proofs} [definition] {Proof}
\mdtheorem[style=default] {example} [definition] {Example}
\mdtheorem[style=theorem] {theorem} [theorem-counter] {Theorem}
\mdtheorem[style=theorem] {corollary} [corollary-counter] {Corollary}
\mdtheorem[style=proof] {proof} [proof-counter] {Proof}
\mdtheorem[style=default] {example} [example-counter] {Example}

\else

\mdtheorem[style=theorem] {satz} [definition] {Satz}
\mdtheorem[style=theorem] {korollar} [definition] {Korollar}
\mdtheorem[style=proof] {beweis} [definition] {Beweis}
\mdtheorem[style=default] {beispiel} [definition] {Beispiel}
\mdtheorem[style=theorem] {satz} [theorem-counter] {Satz}
\mdtheorem[style=theorem] {korollar} [corollary-counter] {Korollar}
\mdtheorem[style=proof] {beweis} [proof-counter] {Beweis}
\mdtheorem[style=default] {beispiel} [example-counter] {Beispiel}

\fi
42 changes: 41 additions & 1 deletion include/99-last.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,44 @@
% ? > loaded last

\usepackage[autostyle]{csquotes}
\usepackage[noabbrev]{cleveref}
\usepackage[nameinlink,noabbrev]{cleveref}

\ifframesloaded%

\ifenglish%

\crefname{subsection}{section}{sections}
\crefname{subsubsection}{subsection}{subsections}
\crefname{paragraph}{paragraph}{paragraphs}

\crefname{definition-counter}{definition}{definitions}
\crefname{lemma-counter}{lemma}{lemmas}
\crefname{axiom-counter}{axiom}{axioms}
\crefname{notation-counter}{notation}{notations}
\crefname{problem-counter}{problem}{problems}

\crefname{theorem-counter}{theorem}{theorems}
\crefname{corollary-counter}{corollary}{corollaries}
\crefname{proof-counter}{proof}{proofs}
\crefname{example-counter}{example}{examples}

\else % ifenglish

\crefname{subsection}{Sektion}{Sektionen}
\crefname{subsubsection}{Untersektion}{Untersektionen}
\crefname{paragraph}{Paragraph}{Paragraphen}

\crefname{definition-counter}{Definition}{Definitionen}
\crefname{lemma-counter}{Lemma}{Lemmas}
\crefname{axiom-counter}{Axiom}{Axiome}
\crefname{notation-counter}{Notation}{Notationen}
\crefname{problem-counter}{Problem}{Probleme}

\crefname{theorem-counter}{Satz}{Sätze}
\crefname{corollary-counter}{Korellar}{Korellare}
\crefname{proof-counter}{Beweis}{Beweise}
\crefname{example-counter}{Beispiel}{Beispiele}

\fi % ifenglish

\fi % ifframesloaded

0 comments on commit 984eeca

Please sign in to comment.