L3-internship-report/report/leftrule_theorems.sty

42 lines
1.4 KiB
Text
Raw Normal View History

2016-07-12 14:49:11 +02:00
\usepackage[dvipsnames]{xcolor}
\usepackage{ifthen}
\usepackage[framemethod=tikz]{mdframed}
\newcommand{\linedenvTop}[2]
{\begin{samepage}\qquad\textbf{#1}
\ifthenelse{\equal{#2}{}}
{}
{~\textbf{(}\emph{#2}\textbf{)}}
\trivlist\item[]\ignorespaces}
\newcommand{\linedenvBot}{\endtrivlist\end{samepage}}
\newenvironment{lemma}[1][]{\linedenvTop{Lemma}{#1}}{\linedenvBot}
\surroundwithmdframed[linewidth=1.5pt,
linecolor=BurntOrange,
bottomline=false,topline=false,rightline=false]{lemma}
\newenvironment{definition}[1][]{\linedenvTop{Definition}{#1}}{\linedenvBot}
\surroundwithmdframed[linewidth=1.5pt,
linecolor=Plum,
bottomline=false,topline=false,rightline=false]{definition}
\newenvironment{theorem}[1][]{\linedenvTop{Theorem}{#1}}{\linedenvBot}
\surroundwithmdframed[linewidth=2.5pt,
linecolor=Red,
bottomline=false,topline=false,rightline=false]{theorem}
%\newenvironment{proof}{\textbf{Proof}\\}{}
\surroundwithmdframed[linewidth=1.0pt,
linecolor=Blue,
bottomline=false,topline=false,rightline=false]{proof}
\newenvironment{notation}[1][]{\linedenvTop{Notation}{#1}}{\linedenvBot}
\surroundwithmdframed[linewidth=1.5pt,
linecolor=Brown,
bottomline=false,topline=false,rightline=false]{notation}
\newenvironment{example}[1][]{\linedenvTop{Example}{#1}}{\linedenvBot}
\surroundwithmdframed[linewidth=1.5pt,
linecolor=LimeGreen,
bottomline=false,topline=false,rightline=false]{example}