-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.sty
82 lines (67 loc) · 2.51 KB
/
template.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
%отступы, левое, верхнее, правое, нижнее + от нижнего колонтитула
\usepackage{vmargin}
\setmarginsrb{30mm}{20mm}{15mm}{20mm}{0pt}{0mm}{0pt}{12.5mm}
%межстрочный интервал 1.5pt
\usepackage{setspace}
\onehalfspacing
%абзацный отступ
\usepackage{indentfirst}
\setlength\parindent{12.5mm}
%язык, кодировка, шрифт
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english, russian]{babel}
%содержание
\usepackage{tocloft}
\usepackage{titlesec}
%выравнивание слова СОДЕРЖАНИЕ
\AtBeginDocument{\renewcommand{\contentsname}{\hfill\fontsize{16pt}{16pt}\bfseries СОДЕРЖАНИЕ \hfill}}
\AtBeginDocument{\renewcommand{\cftaftertoctitle}{\hfill}}
%жирность оглавления
\renewcommand{\cftsecfont}{\normalfont}
\renewcommand{\cftsecpagefont}{\normalfont}
%specialsection
\newcommand{\specialsection}[1]{
\phantomsection
\fontsize{16pt}{16pt}
\begin{center}
\textbf{#1}
\end{center}
\par
\normalsize
\addcontentsline{toc}{section}{#1}}
%section
\titleformat{\section}{\fontsize{16pt}{16pt}\bfseries}{\thesection}{1em}{\centering}
%subsection
\titleformat{\subsection}{\fontsize{14pt}{14pt}\bfseries}{\thesubsection}{1em}{\centering}
%точки в содержании
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
%нумерация через ссылки
\usepackage{autonum}
%математические символы
\usepackage{amsmath,amsfonts,amssymb}
%картинки
\usepackage{graphicx}
%настройка подписей к картинкам
\usepackage[font=normalfont, figurename=Рисунок, labelsep=endash]{caption}
%cpsconf список литературы
\renewenvironment{thebibliography}[1]
{\bigskip
{\centering\fontsize{16pt}{16pt}\bf СПИСОК ИСПОЛЬЗОВАННЫХ ИСТОЧНИКОВ\par}
\addcontentsline{toc}{section}{СПИСОК ИСПОЛЬЗОВАННЫХ ИСТОЧНИКОВ}
\smallskip
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}