-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreamble.tex
133 lines (114 loc) · 4.07 KB
/
preamble.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
%%% Работа с языком
\usepackage[T2A]{fontenc} % кодировка
\usepackage[utf8]{inputenc} % кодировка исходного текста
\usepackage[english,ukrainian]{babel} % локализация и переносы
\usepackage{indentfirst}
\usepackage[a4paper, top=25mm, bottom=25mm, left=30mm, right=30mm]{geometry}
\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} % AMS
\usepackage{makecell}% Прикольная настройка ячеек в tabular
%http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/makecell/makecell-rus.pdf
\usepackage{diagbox}
% Разделение клеток tabular по диагонали
\usepackage{multicol} % Несколько колонок
\usepackage{wrapfig} % Картинки посреди текста
\usepackage{chngcntr} % для нумерации формул
\usepackage{enumitem} % чтоб можно было делать римскую нумерацию
\usepackage{mdwlist}
\usepackage{adjustbox}
\usepackage{xcolor} % градации цветов
\usepackage{anyfontsize}
\usepackage{imakeidx}
\newlength{\subitemindent}
\setlength{\subitemindent}{5pt}
% \newlength{\subsubitemindent}
% \setlength{\subsubitemindent}{25pt}
\makeatletter
\renewcommand{\subitem}{\par\hangindent 40\p@ \hspace*{\subitemindent} \vspace*{1pt} --- }
% \renewcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{\subsubitemindent} \vspace*{1pt} --- }
\makeatother
\usepackage[psdextra]{hyperref}
\hypersetup{unicode=true}
\hypersetup{
colorlinks=true,
linkcolor=blue,
}
\usepackage{bookmark}
\setlist[enumerate]{nosep}
\usepackage{wrapfig}
%%%% Теоремы, определения и т.д. и т.п.
\theoremstyle{plain} % Это стиль по умолчанию, его можно не переопределять.
\newtheorem{theorem}{Теорема}
\newtheorem*{theorem*}{Теорема}
\newtheorem{proposition}{Твердження}
\newtheorem*{proposition*}{Твердження}
\renewcommand{\qedsymbol}{$\blacktriangle$}
\theoremstyle{definition} % "Определение"
\newtheorem{definition}{Означення}[section]
\newtheorem*{definition*}{Означення}
\newtheorem{example}{Приклад}[section]
\newtheorem{exercise}{Вправа}[chapter]
\newtheorem*{exercise*}{Вправа}
\theoremstyle{remark}
\newtheorem*{remark}{Зауваження}
\counterwithin*{equation}{chapter}
% красивые E, D, P, K как у Ильенко
\renewcommand{\P}{\mathbb{P}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\D}{\mathbb{D}}
\newcommand{\K}{\mathbb{K}}
\DeclareMathOperator{\Mo}{Mo}
\DeclareMathOperator{\Me}{Me}
\DeclareMathOperator{\As}{As}
\DeclareMathOperator{\Ex}{Ex}
\makeatletter
\newcommand\incircbin
{%
\mathpalette\@incircbin
}
\newcommand\@incircbin[2]
{%
\mathbin%
{%
\ooalign{\hidewidth$#1#2$\hidewidth\crcr$#1\bigcirc$}%
}%
}
\newcommand{\oeq}{\incircbin{=}}
\makeatother
\usepackage{dsfont}
\newcommand\centerarc{} % just for safety
\def\centerarc[#1]#2(#3)#4(#5:#6:#7)% [draw options] (center) (initial angle:final angle:radius)
{\draw[#1]($(#3)+({#7*cos(#5)},{#7*sin(#5)})$)arc(#5:#6:#7);}
%%%% Картинки
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=1.17}
\usepackage{pgfplotstable}
\usetikzlibrary{calc}
\usetikzlibrary{patterns}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{positioning,arrows}
\tikzset{
block/.style={
draw,
rectangle,
minimum height=1cm,
minimum width=3cm, align=center
},
line/.style={->,>=stealth'}}
\newcommand*\circled[1]{{\scriptsize\tikz[baseline=(char.base)]
{\node[shape=circle,draw,inner sep=0.5pt] (char) {#1};}}}
\graphicspath{{pictures/}}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
%\pagestyle{headings}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter. #1.}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhf{}
\fancyhead[C]{\chaptername~\thechapter}
\fancyhead[C]{\leftmark}
\fancyfoot[C]{\thepage}