-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.sty
122 lines (107 loc) · 2.91 KB
/
notes.sty
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
\ProvidesPackage{notes}
\usepackage[
a4paper,
margin=2cm,
includehead,
headsep=\baselineskip,
]{geometry}
\usepackage[T2A]{fontenc}
\usepackage{hyphenat}
\usepackage[english, russian]{babel}
\usepackage[
protrusion=true,
activate={true,nocompatibility},
final,
tracking=true,
kerning=true,
spacing=true,
factor=1100]{microtype}
\SetTracking{encoding={*}, shape=sc}{40}
\usepackage{multirow}
\usepackage[bottom]{footmisc}
\usepackage{etaremune}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{esvect}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage[hidelinks]{hyperref}
\usepackage{siunitx}
\usepackage[skip=.625\baselineskip plus 2pt]{parskip}
\usepackage{enumitem}
\usepackage{float}
\usepackage{graphicx}
\usepackage{xurl}
\usepackage{blkarray}
\usepackage{quoting}
\usepackage{tikz}
\usepackage{caption}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{ifthen}
\usepackage{subcaption}
\counterwithin{figure}{section}
\counterwithin{equation}{section}
\counterwithin{table}{section}
% Избегание разрыва страницы перед списком
\makeatletter
\@beginparpenalty=10000
\makeatother
% Использование кириллических букв на втором уровне нумерованных списков
\makeatletter
\AddEnumerateCounter{\asbuk}{\russian@alph}{щ}
\makeatother
\setlist[enumerate,2]{label={\asbuk*)}}
\renewcommand\thesubfigure{\asbuk{subfigure}}
% Отключение нумерации секций
\makeatletter
\renewcommand{\@seccntformat}[1]{%
\ifcsname prefix@#1\endcsname
\csname prefix@#1\endcsname
\else
\csname the#1\endcsname\quad
\fi}
\newcommand\prefix@section{}
\newcommand\prefix@subsection{}
\newcommand\prefix@subsubsection{}
\makeatother
\makeatletter
\let\latexl@section\l@section
\def\l@section#1#2{\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}
\makeatother
\makeatletter
\let\latexl@subsection\l@subsection
\def\l@subsection#1#2{\begingroup\let\numberline\@gobble\latexl@subsection{#1}{#2}\endgroup}
\makeatother
\makeatletter
\let\latexl@subsubsection\l@subsubsection
\def\l@subsubsection#1#2{\begingroup\let\numberline\@gobble\latexl@subsubsection{#1}{#2}\endgroup}
\makeatother
% Шапка
\AtBeginDocument{
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
\fancyhead{}
\fancyhead[L]{\leftmark}
\fancyhead[R]{\thepage}
\fancyfoot{}
}
\setlength{\headheight}{17.0pt}
\newenvironment{dd}[1]{
\vskip.2\baselineskip
\begin{minipage}{\textwidth}
\begin{quoting}
\textbf{Определение}.\kern4pt#1}{
\end{quoting}
\end{minipage}
\vskip.2\baselineskip
}
\newcommand{\image}[3]{
\begin{figure}[!htb]
\centering
\includegraphics[width=#1]{#2}
\ifthenelse{\equal{#3}{}}{}{\caption{#3}}
\label{img:#2}
\end{figure}
}