diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2022-12-25 01:35:34 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2022-12-25 01:35:34 +0400 |
| commit | 2baabf5066acdac01b3e7012ad15a616ef36bdba (patch) | |
| tree | d70710b22bf4f9684d73a6688b206109423b25d7 /graphs-exam | |
| parent | 5ab3b3d85d3d30323f19a155988fcc0bd5de446c (diff) | |
Добавлена стилизация для теорем и определений
Diffstat (limited to 'graphs-exam')
| -rw-r--r-- | graphs-exam/graphs-exam.pdf | bin | 201712 -> 228250 bytes | |||
| -rw-r--r-- | graphs-exam/graphs-exam.tex | 15 | ||||
| -rw-r--r-- | graphs-exam/style.tex | 65 |
3 files changed, 66 insertions, 14 deletions
diff --git a/graphs-exam/graphs-exam.pdf b/graphs-exam/graphs-exam.pdf Binary files differindex 88ac41e..7a83a60 100644 --- a/graphs-exam/graphs-exam.pdf +++ b/graphs-exam/graphs-exam.pdf diff --git a/graphs-exam/graphs-exam.tex b/graphs-exam/graphs-exam.tex index b5e8217..1b59218 100644 --- a/graphs-exam/graphs-exam.tex +++ b/graphs-exam/graphs-exam.tex @@ -13,23 +13,11 @@ \usepackage{braket} % \set \usepackage{hyperref} -\hypersetup{ - colorlinks=true, - linkcolor=blue, -} - \renewcommand{\emptyset}{\varnothing} \renewcommand{\qedsymbol}{$\blacksquare$} \newcommand{\link}{\hyperref} -\theoremstyle{definition} -\newtheorem{definition}{Определение} - -\theoremstyle{plain} -\newtheorem{theorem}{Теорема} - -\theoremstyle{definition} -\newtheorem{remark}{Замечание}[theorem] +\input{style.tex} \begin{document} @@ -194,5 +182,4 @@ $\chi(G) = 1$ --- вполне несвязные $O_n$. Графы с $\chi(G) \end{enumerate} \end{proof} - \end{document} 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, +} |