From 2baabf5066acdac01b3e7012ad15a616ef36bdba Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sun, 25 Dec 2022 01:35:34 +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=D1=81=D1=82=D0=B8=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B5=D0=BE=D1=80=D0=B5=D0=BC=20?= =?UTF-8?q?=D0=B8=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- graphs-exam/style.tex | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 graphs-exam/style.tex (limited to 'graphs-exam/style.tex') diff --git a/graphs-exam/style.tex b/graphs-exam/style.tex new file mode 100644 index 0000000..cd109fd --- /dev/null +++ b/graphs-exam/style.tex @@ -0,0 +1,65 @@ +\usepackage{thmtools} +\usepackage[svgnames]{xcolor} +\usepackage{framed} + +\colorlet{definitioncolor}{DarkGreen} +\colorlet{theoremcolor}{DarkBlue} + +\renewenvironment{leftbar}[1][]{% + \def\FrameCommand{{\color{#1}\vrule width 2pt} \hspace{7pt}}% + \MakeFramed {\advance\hsize-\width \FrameRestore}}% + {\endMakeFramed} + +\renewenvironment{definitionbar} + {\begin{leftbar}[definitioncolor]} + {\end{leftbar}} + +\renewenvironment{theorembar} + {\begin{leftbar}[theoremcolor]} + {\end{leftbar}} + +\declaretheoremstyle[ + headfont=\sffamily\bfseries,% + notefont=\sffamily\bfseries,% + notebraces={}{},% + headpunct=,% + bodyfont=\sffamily\itshape,% + headformat=\color{definitioncolor}\NAME~\NUMBER\hfill\NOTE\smallskip\linebreak,% + preheadhook=\begin{definitionbar},% + postfoothook=\end{definitionbar},% +]{customDefinition} +\declaretheorem[name={Определение}, style=customDefinition]{definition} + +\declaretheoremstyle[ + headfont=\bfseries,% + notefont=\bfseries,% + notebraces={(}{)},% + headpunct=,% + headformat=\color{theoremcolor}\NAME~\NUMBER~\NOTE\hfill\smallskip\linebreak,% + preheadhook=\begin{theorembar},% + postfoothook=\end{theorembar},% +]{customTheorem} +\declaretheorem[name={Теорема}, style=customTheorem]{theorem} + +\declaretheoremstyle[ + headfont=\itshape\bfseries,% + headpunct=,% + headformat=\color{theoremcolor}\NAME\hfill\smallskip\linebreak,% + preheadhook=\begin{theorembar},% + postfoothook=\end{theorembar},% +]{customProof} +\declaretheorem[name={Доказательство}, style=customProof, unnumbered]{proofthm} +\renewenvironment{proof}{ + \begin{proofthm} +}{\end{proofthm}} + +% TODO: Изменить стиль замечаний +\declaretheorem[name={Замечание}, style=definition, numberwithin=theorem]{remark} + +\setlength{\parindent}{0pt} +\setlength{\parskip}{0.5\baselineskip} + +\hypersetup{ + colorlinks=true, + linkcolor=blue, +} -- cgit v1.2.3