diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2023-01-05 16:56:44 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2023-01-05 16:56:44 +0400 |
| commit | e3c06ad0a6ae036e16eaa6458720c637dc601733 (patch) | |
| tree | da153ffb38818eb1f0ec29275d3b0fccdad033b7 /graphs-exam/style.tex | |
| parent | 639756acadfd157371f3ab329ff65bdff39c7eb7 (diff) | |
Добавлена вторая глава
Diffstat (limited to 'graphs-exam/style.tex')
| -rw-r--r-- | graphs-exam/style.tex | 33 |
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} |