aboutsummaryrefslogtreecommitdiff
path: root/doc/spbstu-report.cls
diff options
context:
space:
mode:
Diffstat (limited to 'doc/spbstu-report.cls')
-rw-r--r--doc/spbstu-report.cls79
1 files changed, 79 insertions, 0 deletions
diff --git a/doc/spbstu-report.cls b/doc/spbstu-report.cls
new file mode 100644
index 0000000..ee19d56
--- /dev/null
+++ b/doc/spbstu-report.cls
@@ -0,0 +1,79 @@
1\NeedsTeXFormat{LaTeX2e}
2\ProvidesClass{spbstu-report}[2023/05/12 Класс для отчетов]
3
4%
5% Support font sizes: 12pt, 14pt
6%
7\DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{extarticle}}
8\DeclareOption{14pt}{\PassOptionsToClass{\CurrentOption}{extarticle}}
9
10\ProcessOptions\relax
11
12\LoadClass[a4paper]{gost-7-32}
13
14\RequirePackage{csquotes}
15\RequirePackage{amsmath}
16\RequirePackage{adjustbox}
17\RequirePackage{setspace}
18
19\newcommand{\@reportof}{}\newcommand{\reportof}[1]{\renewcommand{\@reportof}{#1}}
20\newcommand{\@university}{}\newcommand{\university}[1]{\renewcommand{\@university}{#1}}
21\newcommand{\@institute}{}\newcommand{\institute}[1]{\renewcommand{\@institute}{#1}}
22\newcommand{\@school}{}\newcommand{\school}[1]{\renewcommand{\@school}{#1}}
23\newcommand{\@direction}{}\newcommand{\direction}[1]{\renewcommand{\@direction}{#1}}
24\newcommand{\@subject}{}\newcommand{\subject}[1]{\renewcommand{\@subject}{#1}}
25\newcommand{\@reviewer}{}\newcommand{\reviewer}[1]{\renewcommand{\@reviewer}{#1}}
26\newcommand{\@reviewertitle}{}\newcommand{\reviewertitle}[1]{\renewcommand{\@reviewertitle}{#1}}
27\newcommand{\signdate}{$\underset{\centering\text{\normalsize подпись, дата}}{\underline{\hspace{5cm}}}$}
28\newcommand{\@city}{}\newcommand{\city}[1]{\renewcommand{\@city}{#1}}
29\renewcommand{\maketitle}{
30 \begin{titlepage}
31 \begin{center}
32 \vspace{2cm}
33 \small{МИНИСТЕРСТВО НАУКИ И ВЫСШЕГО ОБРАЗОВАНИЯ РОССИЙСКОЙ ФЕДЕРАЦИИ}
34
35 \normalsize{\@university}
36
37 \vspace{0.5cm}
38 \normalsize{\@institute}
39
40 \normalsize{\@school}
41
42 \normalsize{Направление \@direction}
43
44 \vspace{2cm}
45 \LARGE{ОТЧЁТ}
46
47 \normalsize{\@reportof}
48
49 \large{\@subject}
50
51 \large{\textit{\@title}}
52 \end{center}
53
54 \vspace{3cm}
55 \small{
56 \begin{flushleft}
57 Студент,
58 \end{flushleft}
59 группы 5130201/20102\hfill
60 \@author\quad\underline{\hspace{3cm}}
61
62 \begin{flushleft}
63 Преподаватель,
64 \end{flushleft}
65 \@reviewertitle \;\hfill
66 \@reviewer\quad\underline{\hspace{3cm}}
67 \bigbreak
68 \begin{flushright}
69 \enquote{\underline{\hspace{1cm}}}\underline{\hspace{2.5cm}} \@date г.
70 \end{flushright}
71 }
72
73 \vspace*{\fill}
74 \begin{center}
75 \small{\@city, \@date}
76 \end{center}
77 \end{titlepage}
78 \setcounter{page}{2}
79}