-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tex
137 lines (122 loc) · 6.78 KB
/
main.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
134
135
136
137
\documentclass[a4paper,twoside,fontsize=15pt]{scrbook}
\input{preamble}
%%%%%%%%%%%%%%%%%%%% Ссылки %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 1) Ссылка на методичку: https://yadi.sk/d/r4xjaDWBeuoaK
% 2) Нарисовать нужный символ и узнать код:
% http://detexify.kirelabs.org/classify.html
% 3) Список символов:
% http://tug.ctan.org/info/symbols/comprehensive/symbols-a4.pdf
%%%%%%%%%%%%%%%%%%%%% Важные моменты %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 0) Все латинские (и греческие) буквочки считаются
% математическими символами и потому пишутся в
% «математической моде», то есть между $...$ для
% внутристрочных формул и \[...\] для выключных (не $$...$$, как
% часто пишут).
% 1) Не забывайте про знаки препинания в формулах (точки, запятые).
% 2) Правильно: L^+, a^*, f\colon A \to B, неправильно: L+, a*, f: A -> B.
% 3) Обращайте внимание на спелл-чекер (красное подчёркивание слов
% с ошибками и неизвестных слов).
% 4) Пустое слово обозначается символом $\eps$, а не $e$.
% 5) В записи множеств наподобие $\{ h(w) \mid w \in L \}$
% следует использовать команду \mid, а не |.
% Обратите также внимание, что для печати символов { и }
% необходимы ‘\’, иначе скобки понимаются как средство
% группировки, например: a_{n-1} (n-1 это нижний индекс).
%%%%%%%%%%%%%%%%%%%%% Часто используемые символы %%%%%%%%%%%%%%%%
% Большинство значков используется в математическом режиме:
% внутри $...$ или \[...\].
% - символ |- это \vdash.
% - греческие буквы: \alpha, \beta, \gamma, \eps,...
% или заглавные: \Alpha, \Sigma, \Omega,...
% - принадлежит (элемент множеству): \in
% - индексы: a^n, L_i, L^+, L^*
% - объединение/пересечение:
% двух множеств: A \cup B, A \cap B,
% семейства множеств: \bigcup_{n \ge 0} L^n
% - нестрогие неравенства: \le, \ge,
% - пустое множество: \es
% - кавычки в тексте: <<текст>>
% - троеточие: \ldots, а не ...! Заполнение точками: \dotfill
% - угловые скобки: \langle \rangle
% - Для тире следует использовать --- а не один -
% - Для длины слова: | а не \mid.
% - Текст внутри формулы: \text.
% - Кавычки: не ", а <<ёлочки>> для русских слов и дважды ' ' для английских.
% образец кавычек-ёлочек для русских слов «праволинейный»
% - Не пишите слова типа begin и liFe внутри $$: у них будут неверные пробелы между буквами,
% используйте обычный курсив: \emph{здесь курсив}.
% - Для горизонтального отступа в формуле вместо mspace: \quad или \qquad (поменьше и побольше).
% - Следите за длинными формулами. Если формулы две, например, h(0)=a, h(1)=b, то нужно
% ставить их в две разные пары долларов: $h(0)=a$, $h(1)=b$, а не в одну. Если формулы
% длинная и плохо помещается на строке (выходит на поля), то делайте её выключной (т.е. \[...\]).
% - Следите за знаками препинания. В и~т.~д. желательно ставить вот такие ~ (неразрывный пробел).
% - разбивайте строки с помощью Enter на более короткие, иначе под Git'ом неудобно diff'ы смотреть.
%%%%%%%%%%%%%%%%%%%%% Крупные элементы %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Системы уравнений:
%\begin{equation}% нумерованное уравнение
% \begin{cases}
% X_1 = 1X_1 + 0X_2 + \es X_3; \\
% X_2 = 1X_1 + \es X_2 + 0X_3; \\
% X_3 = 0X_1 + \es X_2 + 1X_3.
% \end{cases}
%\end{equation}
% Если нужна текстовая вставка внутри любой формулы
% (например, системы уравнений), она делается с помощью
% команды \text{текст}.
%
% Продукции:
%\begin{equation}
%\begin{array}{l}
% S \to 1A \mid 2S; \\
% A \to 0B \mid 0S \mid 1A; \\
% B \to 1C \mid 2C; \\
% C \to \eps \mid 1S \mid 2A.
%\end{array}
%\end{equation}
%
% Матрицы (с любыми скобками) и другие элементы:
% http://en.wikibooks.org/wiki/LaTeX/Mathematics#Matrices_and_arrays
%
% Нумерованные списки:
%\begin{enumerate}
% \item пункт
% \item и ещё…
%\end{enumerate}
% почта/скайп: ulysses4ever, +79612902878 Telegram
% вопросы, которые не решились, ставьте %TODO: ....
% в конце прогнать весь документ через CTRL+F и все 0 проверить на \es
%%%%%%%%%%%%%%%%% Окружения типа Теорема %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{theorem_styles}
% {mystatement} {Утверждение}
% {mylemma} {Лемма}
% {mycorollary} {Следствие}
% {myproof} {Доказательство}
% {myremark} {Замечание}
% {mytask} {Задача}
% {myexample} {Пример}
% {mydefinition} {Определение}
% {mytheorem} {Теорема}
% {myproblem} {Упражнение}
% Пример использования (с myexample) см. в начале chapter-1.tex
\input{macro}
\begin{document}
\setcounter{page}{3}
\tableofcontents
\input{intro}
\input{chapter-1}
\input{chapter-2}
\input{chapter-3}
\input{chapter-4}
\input{chapter-5}
\input{chapter-6}
\input{chapter-7}
\input{chapter-8}
\input{biblio}
\appendix
\addtocontents{toc}{\def\protect\cftchappresnum{\normalfont{}Приложение }%
\addtolength{\cftchapnumwidth}{\widthof{\normalfont{}Приложение } - \widthof{\normalfont{}Глава }} }
\input{app-algo}
\input{app-coursew-tasks}
\input{app-coursew-variants}
\input{app-coursew-example}
\end{document}