From e3c06ad0a6ae036e16eaa6458720c637dc601733 Mon Sep 17 00:00:00 2001
From: Andrew Guschin <guschin.drew@gmail.com>
Date: Thu, 5 Jan 2023 16:56:44 +0400
Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0?=
 =?UTF-8?q?=20=D0=B2=D1=82=D0=BE=D1=80=D0=B0=D1=8F=20=D0=B3=D0=BB=D0=B0?=
 =?UTF-8?q?=D0=B2=D0=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 graphs-exam/style.tex | 33 +++++++++++++++++++++++++++++----
 1 file changed, 29 insertions(+), 4 deletions(-)

(limited to 'graphs-exam/style.tex')

diff --git a/graphs-exam/style.tex b/graphs-exam/style.tex
index cb21fbf..74aaa6f 100644
--- a/graphs-exam/style.tex
+++ b/graphs-exam/style.tex
@@ -4,6 +4,7 @@
 
 \colorlet{definitioncolor}{DarkGreen}
 \colorlet{theoremcolor}{DarkBlue}
+\colorlet{lemmacolor}{DarkRed}
 
 \renewenvironment{leftbar}[1][]{%
   \def\FrameCommand{{\color{#1}\vrule width 2pt} \hspace{7pt}}%
@@ -17,19 +18,33 @@
 \renewenvironment{theorembar}
   {\begin{leftbar}[theoremcolor]}
   {\end{leftbar}}
+\renewenvironment{lemmabar}
+  {\begin{leftbar}[lemmacolor]}
+  {\end{leftbar}}
 
 \declaretheoremstyle[
-  headfont=\sffamily\bfseries,%
-  notefont=\sffamily\bfseries,%
+  headfont=\bfseries,%
+  notefont=\bfseries,%
   notebraces={(}{)},%
   headpunct=,%
-  bodyfont=\sffamily\itshape,%
+  bodyfont=,%
   headformat=\color{definitioncolor}\NAME~\NUMBER~\NOTE\hfill\smallskip\linebreak,%
   preheadhook=\begin{definitionbar},%
   postfoothook=\end{definitionbar},%
 ]{customDefinition}
 \declaretheorem[name={Определение}, style=customDefinition]{definition}
 
+\declaretheoremstyle[
+  headfont=\bfseries,%
+  notefont=\bfseries,%
+  notebraces={(}{)},%
+  headpunct=,%
+  headformat=\color{lemmacolor}\NAME~\NUMBER~\NOTE\hfill\smallskip\linebreak,%
+  preheadhook=\begin{lemmabar},%
+  postfoothook=\end{lemmabar},%
+]{customLemma}
+\declaretheorem[name={Лемма}, style=customLemma]{lemma}
+
 \declaretheoremstyle[
   headfont=\bfseries,%
   notefont=\bfseries,%
@@ -54,7 +69,17 @@
 }{\end{proofthm}}
 
 % TODO: Изменить стиль замечаний
-\declaretheorem[name={Замечание}, style=definition, numberwithin=theorem]{remark}
+\declaretheorem[
+  name={Замечание},
+  style=customDefinition,
+  numberwithin=theorem
+]{remark}
+
+\declaretheorem[
+  name={Следствие},
+  style=customDefinition,
+  numberwithin=theorem
+]{corollary}
 
 \setlength{\parindent}{0pt}
 \setlength{\parskip}{0.5\baselineskip}
-- 
cgit v1.2.3

