aboutsummaryrefslogtreecommitdiff
path: root/doc/diploma/gost/gost-7-32.cls
diff options
context:
space:
mode:
Diffstat (limited to 'doc/diploma/gost/gost-7-32.cls')
-rw-r--r--doc/diploma/gost/gost-7-32.cls62
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/diploma/gost/gost-7-32.cls b/doc/diploma/gost/gost-7-32.cls
new file mode 100644
index 0000000..912e5c6
--- /dev/null
+++ b/doc/diploma/gost/gost-7-32.cls
@@ -0,0 +1,62 @@
1\NeedsTeXFormat{LaTeX2e}
2\ProvidesClass{gost-7-32}[2022/01/28 GOST 7.32-2017]
3
4%
5% Supported font sizes: 12pt, 14pt
6%
7\DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{extarticle}}
8\DeclareOption{14pt}{\PassOptionsToClass{\CurrentOption}{extarticle}}
9
10\ProcessOptions\relax
11
12%
13% Set A4 paper format
14%
15\LoadClass[a4paper]{extarticle}
16
17%
18% Use 1.5 line spacing
19%
20\RequirePackage{setspace}
21\onehalfspacing
22% \singlespacing % or \setstretch{1} for 1 line spacing
23
24%
25% First paragraph indentation
26%
27\RequirePackage{indentfirst}
28\setlength{\parindent}{12.5mm}
29
30%
31% Page margin
32%
33\RequirePackage[
34 left=3cm,
35 right=1cm,
36 top=2cm,
37 bottom=2cm,
38 footskip=1cm,
39]{geometry}
40
41%
42% Use TMR-like font
43%
44\RequirePackage{fontspec}
45\RequirePackage{xunicode}
46\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase,Mapping=tex-text}
47\setmainfont{Times New Roman}
48
49%
50% Use russian language
51%
52\RequirePackage[main=russian, english]{babel}
53
54%
55% gost-7-32 packages
56%
57\RequirePackage{gost-7-32-headings}
58\RequirePackage{gost-7-32-toc}
59\RequirePackage{gost-7-32-lists}
60\RequirePackage{gost-7-32-bibliography}
61\RequirePackage{gost-7-32-captions}
62\RequirePackage{gost-7-32-tables}