Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions de.sty
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass[a4paper, 12pt]{article}
\documentclass[a4paper, 12pt, dvipsnames]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A,T1]{fontenc}
\usepackage[english, ukrainian]{babel}
Expand All @@ -7,6 +7,8 @@
\usepackage{geometry}
\usepackage{graphicx}

% \input{th.sty}

\usepackage{eso-pic}
\newcommand\BackgroundPic{\put(0,0){\parbox[b][\paperheight]{\paperwidth}{\includegraphics[width=\paperwidth, height=\paperheight]{background.png}}}}

Expand All @@ -21,19 +23,19 @@

\usepackage{xcolor, float, multirow, multicol, hyperref}
\definecolor{cover}{RGB}{191,0,0}
\hypersetup{unicode=true, colorlinks=true, linktoc=all, linkcolor=red}
\hypersetup{unicode=true, colorlinks=true, linktoc=all, linkcolor=Red}

\usepackage{amsthm}
\newtheorem{theorem}{Теорема}[section]
\newtheorem{lemma}{Лема}[section]
\theoremstyle{definition}
\newtheorem*{definition}{Визначення}
\newtheorem{problem}{Задача}[subsection]
\newtheorem*{example*}{Приклад}
\newtheorem{example}[problem]{Приклад}
\newtheorem{property}{Властивість}
\newtheorem*{solution}{Розв'язок}
\newtheorem*{remark}{Зауваження}
% \usepackage{amsthm}
% \newtheorem{theorem}{Теорема}[section]
% \newtheorem{lemma}{Лема}[section]
% \theoremstyle{definition}
% \newtheorem*{definition}{Визначення}
% \newtheorem{problem}{Задача}[subsection]
% \newtheorem*{example*}{Приклад}
% \newtheorem{example}[problem]{Приклад}
% \newtheorem{property}{Властивість}
% \newtheorem*{solution}{Розв'язок}
% \newtheorem*{remark}{Зауваження}

\renewcommand{\phi}{\varphi}
\renewcommand{\epsilon}{\varepsilon}
Expand Down Expand Up @@ -72,4 +74,3 @@
\fi%
}
\makeatother

1 change: 0 additions & 1 deletion main.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
% cd ..\..\Users\NikitaSkybytskyi\Desktop\differential-equations
% pdflatex main.tex && cls && pdflatex main.tex && cls && pdflatex main.tex && del main.toc, main.log, main.aux, main.out && start main.pdf

\input{de.sty}

\begin{document}
Expand Down
2 changes: 1 addition & 1 deletion subsubsection-1-3-2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Зробимо заміну:
\begin{equation*}
y^{1-m} = z, \quad (1 - m) y^{-m} \frac{\diff y}{\diff x} = \diff z.
y^{1-m} = z, \quad (1 - m) y^{-m} \frac{\diff y}{\diff x} = \frac{\diff z}{\diff x}. % thanks to Denys Chergykalo for a valuable suggestion here
\end{equation*}

Підставивши в рівняння, отримаємо
Expand Down
104 changes: 104 additions & 0 deletions th.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
\usepackage{amsthm}
\usepackage[dvipsnames]{xcolor}
\usepackage{thmtools}
\usepackage[framemethod=TikZ]{mdframed}

\theoremstyle{definition}
\mdfdefinestyle{mdbluebox}{%
roundcorner = 10pt,
linewidth=1pt,
skipabove=12pt,
innerbottommargin=9pt,
skipbelow=2pt,
nobreak=true,
linecolor=blue,
backgroundcolor=TealBlue!5,
}
\declaretheoremstyle[
headfont=\sffamily\bfseries\color{MidnightBlue},
mdframed={style=mdbluebox},
headpunct={\\[3pt]},
postheadspace={0pt}
]{thmbluebox}

\mdfdefinestyle{mdredbox}{%
linewidth=0.5pt,
skipabove=12pt,
frametitleaboveskip=5pt,
frametitlebelowskip=0pt,
skipbelow=2pt,
frametitlefont=\bfseries,
innertopmargin=4pt,
innerbottommargin=8pt,
nobreak=true,
linecolor=RawSienna,
backgroundcolor=Salmon!5,
}
\declaretheoremstyle[
headfont=\bfseries\color{RawSienna},
mdframed={style=mdredbox},
headpunct={\\[3pt]},
postheadspace={0pt},
]{thmredbox}

\declaretheorem[%
style=thmbluebox,name=Теорема,numberwithin=section]{theorem}
\declaretheorem[style=thmbluebox,name=Лема,sibling=theorem]{lemma}
\declaretheorem[style=thmbluebox,name=Твердження,sibling=theorem]{proposition}
\declaretheorem[style=thmbluebox,name=Наслідок,sibling=theorem]{corollary}
\declaretheorem[style=thmredbox,name=Приклад,sibling=theorem]{example}

\mdfdefinestyle{mdgreenbox}{%
skipabove=8pt,
linewidth=2pt,
rightline=false,
leftline=true,
topline=false,
bottomline=false,
linecolor=ForestGreen,
backgroundcolor=ForestGreen!5,
}
\declaretheoremstyle[
headfont=\bfseries\sffamily\color{ForestGreen!70!black},
bodyfont=\normalfont,
spaceabove=2pt,
spacebelow=1pt,
mdframed={style=mdgreenbox},
headpunct={ --- },
]{thmgreenbox}

\mdfdefinestyle{mdblackbox}{%
skipabove=8pt,
linewidth=3pt,
rightline=false,
leftline=true,
topline=false,
bottomline=false,
linecolor=black,
backgroundcolor=RedViolet!5!gray!5,
}
\declaretheoremstyle[
headfont=\bfseries,
bodyfont=\normalfont\small,
spaceabove=0pt,
spacebelow=0pt,
mdframed={style=mdblackbox}
]{thmblackbox}

% \theoremstyle{theorem}
\declaretheorem[name=Запитання,sibling=theorem,style=thmblackbox]{ques}
\declaretheorem[name=Вправа,sibling=theorem,style=thmblackbox]{exercise}
\declaretheorem[name=Зауваження,sibling=theorem,style=thmgreenbox]{remark}

\theoremstyle{definition}
\newtheorem{claim}[theorem]{Твердження}
\newtheorem{definition}[theorem]{Визначення}
\newtheorem{fact}[theorem]{Факт}

\newtheorem{problem}{Задача}[section]
\renewcommand{\theproblem}{\thesection\Alph{problem}}
\newtheorem{sproblem}[problem]{Задача}
\newtheorem{dproblem}[problem]{Задача}
\renewcommand{\thesproblem}{\theproblem$^{\star}$}
\renewcommand{\thedproblem}{\theproblem$^{\dagger}$}
\newcommand{\listhack}{$\empty$\vspace{-2em}}