-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.tex
92 lines (77 loc) · 3.06 KB
/
commands.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
% !TEX root = diploma.tex
%% ----------------------
%% Стандартные каталоги
%% ----------------------
\graphicspath{{images/}}
\def\datapath{data/}
%% ------------------------
%% Файл с библиографией
%% ------------------------
\addbibresource{biblio.bib}
%% ---------------------------
%% Параметры для листинга кода
%% ---------------------------
\renewcommand{\lstlistingname}{Листинг}
\lstset{
language = [ISO]C++,
basicstyle = \footnotesize\ttfamily,
keywordstyle = \footnotesize\ttfamily\bfseries,
stringstyle = \footnotesize\ttfamily,
commentstyle = \footnotesize\textit,
breaklines = true,
tabsize = 2,
literate = {\ \ }{{\ }}1,
showstringspaces= false,
inputencoding = utf8x,
numbers = left,
stepnumber = 1,
numbersep = 5pt,
backgroundcolor = \color{white},
frame = tb
}
%% -----------------------------------
%% Переименование теорем, аксиом и пр.
%% -----------------------------------
\newtheorem{theorem}{Теорема}[section]
\newtheorem{axiom}{Аксиома}[section]
\newtheorem{corollary}{Следствие}[theorem]
\newtheorem{lemma}{Лемма}[section]
\theoremstyle{definition}
\newtheorem{definition}{Определение}[section]
% Черный квадрат в конце доказательства
\renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
%% ------------
%% Мат. символы
%% ------------
\renewcommand{\epsilon}{\ensuremath{\varepsilon}}
\renewcommand{\phi}{\ensuremath{\varphi}}
\renewcommand{\kappa}{\ensuremath{\varkappa}}
\renewcommand{\le}{\ensuremath{\leqslant}}
\renewcommand{\leq}{\ensuremath{\leqslant}}
\renewcommand{\ge}{\ensuremath{\geqslant}}
\renewcommand{\geq}{\ensuremath{\geqslant}}
\renewcommand{\emptyset}{\varnothing}
%% --------------
%% Для алгоритмов
%% --------------
\makeatletter
\renewcommand{\ALG@name}{Алгоритм}
%\renewcommand{\listalgorithmname}{Список \ALG@name ов}
\makeatother
% Перевод
%\renewcommand{\algorithmicprocedure}{\textbf{процедура}}
%\renewcommand{\algorithmicrequire}{\textbf{Требуется:}}
%\renewcommand{\algorithmicensure}{\textbf{Проверить:}}
%\renewcommand{\algorithmiccomment}[1]{\{#1\}}
%\renewcommand{\algorithmicend}{\textbf{конец}}
%\renewcommand{\algorithmicif}{\textbf{if}}
%\renewcommand{\algorithmicthen}{\textbf{then}}
%\renewcommand{\algorithmicelse}{\textbf{else}}
%\renewcommand{\algorithmicfor}{\textbf{для}}
%\renewcommand{\algorithmicforall}{\textbf{для всех}}
%\renewcommand{\algorithmicdo}{\textbf{делать}}
%\renewcommand{\algorithmicwhile}{\textbf{пока}}
% Новые команды
\newcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
\newcommand{\algorithmicendif}{\algorithmicend\ \algorithmicif}
\newcommand{\algorithmicendfor}{\algorithmicend\ \algorithmicfor}