From d1b0006a9de7a938038de0613718ee7e27409683 Mon Sep 17 00:00:00 2001
From: Ulli Kehrle <ulli.kehrle@rwth-aachen.de>
Date: Fri, 12 Jan 2018 18:02:18 +0100
Subject: vorlesung freitag, 12.01.18 hinzugefügt
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 skript.cls | 59 ++++++++++++++++++++++++++++-------------------------------
 1 file changed, 28 insertions(+), 31 deletions(-)

(limited to 'skript.cls')

diff --git a/skript.cls b/skript.cls
index d64285d..8b53d8d 100644
--- a/skript.cls
+++ b/skript.cls
@@ -80,7 +80,7 @@
 
 % fonts
 \RequirePackage{setspace}
-\setstretch{1.08}
+\setstretch{1.1}
 \setlength\parskip{0pt}
 \setlength\parindent{2em}
 
@@ -150,10 +150,10 @@
 \def\theorem@checkbold{}
  \newtheoremstyle{mychange}%
   {\item[\hskip\labelsep \theorem@headerfont ##2\hskip 0.3em\ ##1\theorem@separator]}%
-  {\item[\hskip\labelsep \theorem@headerfont ##2\hskip 0.3em\ ##1\ {\mdseries(##3)}\theorem@separator]}
+  {\item[\hskip\labelsep \theorem@headerfont ##2\hskip 0.3em\ ##1\ {\normalsize\mdseries(##3)}\theorem@separator]}
  \newtheoremstyle{nonumbermychange}%
   {\item[\hskip\labelsep \theorem@headerfont ##1\theorem@separator]}%
-  {\item[\hskip\labelsep \theorem@headerfont ##1\ {\mdseries(##3)}\theorem@separator]}
+  {\item[\hskip\labelsep \theorem@headerfont ##1\ {\normalsize\mdseries(##3)}\theorem@separator]}
 \makeatother
 \DeclareDocumentCommand\newmdtheoremenv{s O{} m o m o }{%
 \IfBooleanTF{#1}{%
@@ -170,26 +170,20 @@
   \AfterEndEnvironment{#3}{%
      \end{mdframed}}%
 }
-\newcounter{defsatzusw}
-\def\newthm#1#2{
-    \newmdtheoremenv[ntheorem,
-    usetwoside=false,
-    leftmargin=1em,
-    linewidth=0.5em,
-    % linecolor=myurlcolor!20,
-    linecolor=green!30,
-    leftline=true, rightline=false, bottomline=false, topline=false,
-    innerleftmargin=0.5em,
-    ]{#1}[defsatzusw]{#2}
-    \newmdtheoremenv*[ntheorem,
+\mdfdefinestyle{thmstyle}{
     usetwoside=false,
-    leftmargin=1em,
+    % leftmargin=1em,
     linewidth=0.5em,
-    % linecolor=myurlcolor!20,
+    backgroundcolor=black!05,
     linecolor=green!30,
     leftline=true, rightline=false, bottomline=false, topline=false,
     innerleftmargin=0.5em,
-    ]{#1-nn}{#2}
+    splittopskip=3ex,
+    afterlastframe={\vspace{\topsep}}}
+\newcounter{defsatzusw}
+\def\newthm#1#2{
+    \newmdtheoremenv[ntheorem,style=thmstyle]{#1}[defsatzusw]{#2}
+    \newmdtheoremenv*[ntheorem,style=thmstyle]{#1-nn}{#2}
 }
 \def\newdef#1#2{\newtheorem{#1}[defsatzusw]{#2}\newtheorem*{#1-nn}{#2}}
 \theoremseparator{.}
@@ -206,13 +200,15 @@
 \newthm{proposition}{Proposition}
 % aufrechte schrift
 \theorembodyfont{\normalfont}
+\newmdtheoremenv[ntheorem,style=thmstyle,linecolor=blue!30]{definition}[defsatzusw]{Definition}
+\newmdtheoremenv*[ntheorem,style=thmstyle,linecolor=blue!30]{definition-nn}{Definition}
 \newthm{bezeichnung}{Bezeichnung}
 \newthm{bezeichnungen}{Bezeichnungen}
 \newthm{voraussetzung}{Voraussetzung}
 \newthm{voraussetzungen}{Voraussetzungen}
 \newdef{bemerkung}{Bemerkung}
 \newdef{bemerkungen}{Bemerkungen}
-\newdef{definition}{Definition}
+%\newdef{definition}{Definition}
 \newdef{notation}{Notation}
 \newdef{warnung}{Warnung}
 \newdef{achtung}{Achtung}
@@ -230,8 +226,9 @@
 \theorembodyfont{\normalfont}
 \theoremseparator{.}
 % \theoremsymbol{\scalebox{0.8}{\ensuremath{\blacksquare}}}
-\theoremsymbol{\scalebox{0.8}{\ensuremath{\blacksquare}}}
+\theoremsymbol{\scalebox{0.8}{\ensuremath{\blacksquare}\hfill}}
 \newtheorem{proof}{Beweis}
+\newtheorem{beweisidee}{Beweisidee}
 \newtheorem{beweis}{Beweis}
 \theoremsymbol{\scalebox{0.8}{\ensuremath{\nikeswoosh}}}
 \newtheorem{noproof}{Beweis}
@@ -239,17 +236,17 @@
 \renewcommand{\thesection}{\arabic{section}}
 \renewcommand\sectionformat{\S \thesection\autodot \hspace{1ex}}
 \renewcommand\subsectionformat{\S \thesubsection\autodot \hspace{1ex}}
-\RequirePackage{textcase}
-\ifxetexorluatex
-    \DeclareRobustCommand{\spacedlowsmallcaps}[1]{
-    \fontspec{Linux Libertine O}[SmallCapsFeatures={Ligatures={NoCommon, NoDiscretionary},Letters=SmallCaps,LetterSpace=10,WordSpace=1.6}]
-        \scshape\MakeLowercase{#1}}%
-        % \scshape{#1}}}%
-\else
-    \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}%
-\fi
-\setkomafont{section}{\Large\normalfont\spacedlowsmallcaps}
-\setkomafont{subsection}{\large\normalfont\spacedlowsmallcaps}
+% \RequirePackage{textcase}
+% \ifxetexorluatex
+%     \DeclareRobustCommand{\spacedlowsmallcaps}[1]{
+%     \fontspec{Linux Libertine O}[SmallCapsFeatures={Ligatures={NoCommon, NoDiscretionary},Letters=SmallCaps,LetterSpace=10,WordSpace=1.6}]
+%         \scshape\MakeLowercase{#1}}%
+%         % \scshape{#1}}}%
+% \else
+%     \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}%
+% \fi
+% \setkomafont{section}{\Large\normalfont\spacedlowsmallcaps}
+% \setkomafont{subsection}{\large\normalfont\spacedlowsmallcaps}
 
 \let\emph\relax
 \DeclareTextFontCommand{\emph}{\bfseries}
-- 
cgit v1.2.3-24-g4f1b

