-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.tex
100 lines (77 loc) · 4.22 KB
/
index.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
\documentclass[a4paper,14pt,floatsection,pointsubsection]{eskdtext}
\usepackage{extsizes}
\usepackage{cmap} % для кодировки шрифтов в pdf
\usepackage[T2A]{fontenc}
\usefont{T2A}{ftm}{m}{sl}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{graphics}
\graphicspath{{images/}}%путь к рисункам
\usepackage{listings} % Вставка кусков кода
\usepackage[dvipsnames]{xcolor}
\usepackage{color}
\usepackage{setspace}
\usepackage{longtable}
\lstset{ %
language=Java, % the language of the code
% basicstyle=\footnotesize, % the size of the fonts that are used for the code
numbers=none, % where to put the line-numbers
numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
stepnumber=2, % the step between two line-numbers. If it's 1, each line
% will be numbered
numbersep=5pt, % how far the line-numbers are from the code
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
frame=none, % adds a frame around the code
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
title=\lstname, % show the filename of files included with \lstinputlisting;
% also try caption instead of title
keywordstyle=\color{blue}, % keyword style
commentstyle=\color{ForestGreen}, % comment style
stringstyle=\color{Maroon}, % string literal style
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
morekeywords={*,...} % if you want to add more keywords to the set
}
\usepackage{amssymb,amsfonts,amsmath,mathtext,cite,enumerate,float} %подключаем нужные пакеты расширений
\ESKDsectSkip{section}{1cm}{5mm} % Отступы после заголовка
\ESKDsectSkip{subsection}{3pt}{3pt}
\ESKDsectSkip{subsubsection}{10pt}{3pt}
\usepackage{titlesec}
\titleformat{\section}{\large\bfseries}{\thesection}{0pt}{} % Размер заголовков и его стиль
\titleformat{\subsection}{\bfseries}{\thesubsection}{5pt}{}
\titleformat{\subsubsection}{\mdseries}{\thesubsubsection}{5pt}{}
\renewcommand{\thepoint}{\thesubsubsection.\arabic{point}}
%Рамка
\ESKDnewStyle{formIIabCustom}{15mm}
\ESKDputOnStyle{formIIabCustom}{frame}{\ESKDdrawFrame}
\ESKDputOnStyle{formIIabCustom}{stamp}{%
\put(\ESKDltu{\ESKDstampX},\ESKDltu{\ESKDstampY}){%
\color{black}
\linethickness{\ESKDlineThick}
\put(175,8){\line(1,0){10}}
\put(175,15){\line(1,0){10}}
\put(175,0){\line(0,1){15}}
\linethickness{\ESKDlineThick}
\put(0,15){\line(1,0){175}}
\put(0,6){\makebox[175mm]{\large{ВТАС.230105.020.ПП}}}
\put(175, 10.3){\makebox[10mm]{\ESKDfontIII\ESKDcolumnVIIname}}
\put(175, 3){\makebox[10mm]{\ESKDfontIII\thepage}}}}
\ESKDdefaultStyle{formIIabCustom}
\linespread{1.3} % полуторный интервал
\setlength{\parindent}{1.5cm}
\frenchspacing
\usepackage{geometry} % Меняем поля страницы
\geometry{left=2.5cm}% левое поле
\geometry{right=1.5cm}% правое поле
\geometry{top=1cm}% верхнее поле
\geometry{bottom=2.3cm}% нижнее поле
\newcommand{\diplomSection}[1]{\titleformat{\section}{\centering\large\bfseries}{\thesection}{5pt}{}\section*{#1}\addcontentsline{toc}{section}{#1}\titleformat{\section}{\large\bfseries}{\thesection}{5pt}{}} %cutsom titles
\setcounter{tocdepth}{3}
\begin{document}
\end{document}