summaryrefslogtreecommitdiff
path: root/graphs-exam/style.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphs-exam/style.tex')
-rw-r--r--graphs-exam/style.tex33
1 files changed, 29 insertions, 4 deletions
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,13 +18,16 @@
\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},%
@@ -35,6 +39,17 @@
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,%
+ notebraces={(}{)},%
+ headpunct=,%
headformat=\color{theoremcolor}\NAME~\NUMBER~\NOTE\hfill\smallskip\linebreak,%
preheadhook=\begin{theorembar},%
postfoothook=\end{theorembar},%
@@ -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}