-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathНИР отчет.tex
190 lines (150 loc) · 4.91 KB
/
НИР отчет.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
\documentclass[14pt,a4paper]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage[russian]{babel}
\usepackage{amsmath}
%Картинки
\usepackage{graphicx}
%Папка с картинками
\graphicspath{{images/}}
%ИСпользуемые форматы
\DeclareGraphicsExtensions{.eps,.bmp,.jpg,.png}
\usepackage{caption}
%Подпись к картинкам
\captionsetup[figure]{name=Рисунок,labelsep=endash,font={Large}}
\usepackage{listings}
\usepackage{listings}
\usepackage{algorithm2e}
\usepackage{tocloft}
\usepackage{geometry}
%Настройка полей страницы
\geometry{left=3.0cm}
\geometry{right=1.0cm}
\geometry{top=2cm}
\geometry{bottom=2cm}
\newcommand{\biggI}{\renewcommand{\baselinestretch}{1.3}}
% команда \biggI для полуторного межстрочного интервала
\makeatletter
\renewcommand{\@oddfoot}{\hfil \Large \arabic{page}\hfil}
\renewcommand{\@evenfoot}{\hfil \Large \arabic{page}\hfil}
\makeatother
\renewcommand{\thepage}{\hfil \Large \arabic{page}\hfil}
\usepackage{indentfirst} % Красная строка
\fontencoding{T1}
\fontfamily{pcr}
\selectfont
%---------------- заголовки ----------- %
\usepackage{titlesec}
\usepackage{enumerate}
\titleformat{\chapter}[display]
{\filcenter}
{\MakeUppercase{\chaptertitlename} \thechapter}
{8pt}
{\bfseries}{}
\titleformat{\section}[block]
{\Large\bfseries\sloppy\righthyphenmin62}
{\thesection}
{1em}{}
\titleformat{\subsection}[block]
{\Large\bfseries\sloppy\righthyphenmin62}
{\thesubsection}
{1em}{}
\titleformat{\subsubsection}[block]
{\Large\bfseries\sloppy\righthyphenmin62}
{\thesubsubsection}
{1em}{}
\usepackage{titletoc}
\titlecontents{section}
[2.6em] % ie, 1.5em (chapter) + 2.3em
{\sloppy\righthyphenmin62}
{\contentslabel{2.6em}}
{\hspace*{-2.6em}}
{\titlerule*[1pc]{}\contentspage}
\titlecontents{subsection}
[2.6em] % ie, 1.5em (chapter) + 2.3em
{\sloppy\righthyphenmin62}
{\contentslabel{2.6em}}
{\hspace*{-2.6em}}
{\titlerule*[1pc]{}\contentspage}
\titlecontents{subsubsection}
[2.6em] % ie, 1.5em (chapter) + 2.3em
{\sloppy\righthyphenmin62}
{\contentslabel{2.6em}}
{\hspace*{-2.6em}}
{\titlerule*[1pc]{}\contentspage}
% Настройка вертикальных и горизонтальных отступов
% Настройка вертикальных и горизонтальных отступов
\titlespacing{\section}{\parindent}{15mm}{10mm}
\titlespacing{\subsection}{\parindent}{15mm}{10mm}
\titlespacing{\subsubsection}{\parindent}{15mm}{10mm}
%------- конец заголовков --------- %
\lstdefinelanguage{cs}
{morekeywords={abstract,event,new,struct,as,explicit,null,switch
base,extern,object,this,bool,false,operator,throw,
break,finally,out,true,byte,fixed,override,try,
case,float,params,typeof,catch,for,private,uint,
char,foreach,protected,ulong,checked,goto,public,unchecked,
class,if,readonly,unsafe,const,implicit,ref,ushort,
continue,in,return,using,decimal,int,sbyte,virtual,
default,interface,sealed,volatile,delegate,internal,short,void,
do,is,sizeof,while,double,lock,stackalloc,
else,long,static,enum,namespace,string, },
sensitive=false,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
}
\setlength\cftaftertoctitleskip{11mm}
\renewcommand{\cftdot}{}
\parindent=1.25cm % абзацный отступ
\biggI
\thispagestyle{empty} % не ставим номер страницы
\usepackage{float}%"Плавающие" картинки
\newcommand{\imgh}[3]{
\begin{figure}[H]
\center{
\includegraphics[width=#1]{#2}}
\caption{#3}
\label{ris:#2}
\end{figure}
}
\makeatletter
\renewcommand{\@biblabel}[1]{#1.} % Заменяем библиографию с квадратных скобок на точку:
\makeatother
% новая команда \RNumb для вывода римских цифр
\newcommand{\RNumb}[1]{\uppercase\expandafter{\romannumeral #1\relax}}
% маркированные списки
\renewcommand{\labelitemi}{-}
\renewcommand{\labelitemii}{-}
% нумерованные списки
\renewcommand{\labelenumi}{\arabic{enumi})}
\usepackage{enumitem}
\setlist{nosep, leftmargin=\parindent}
%Начало документа
\begin{document}
\renewcommand*\contentsname{\parindent=1.25cm Содержание}
\Large
\setcounter{page}{5} % начать нумерацию с номера три
\newpage
% это оглавление, которое генерируется автоматически
\tableofcontents
\Large
\setcounter{secnumdepth}{-1}
%Введение
\input{introdution}
\setcounter{secnumdepth}{3}
%Глава 1
\input{1-chapter}
%Глава 2
\input{2-chapter}
%Глава 3
\input{3-chapter}
\setcounter{secnumdepth}{-1}
%Заключение
\input{conclusion}
%Список литературы
\input{bibliography}
%Приложения
\input{applications}
\end{document}