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..3937b79
--- /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{amssymb}
17\RequirePackage{adjustbox}
18\RequirePackage{graphicx}
19\RequirePackage{wrapfig}
20\RequirePackage{rotating}
21
22\newcommand{\@reportof}{}\newcommand{\reportof}[1]{\renewcommand{\@reportof}{#1}}
23\newcommand{\@university}{}\newcommand{\university}[1]{\renewcommand{\@university}{#1}}
24\newcommand{\@institute}{}\newcommand{\institute}[1]{\renewcommand{\@institute}{#1}}
25\newcommand{\@school}{}\newcommand{\school}[1]{\renewcommand{\@school}{#1}}
26\newcommand{\@direction}{}\newcommand{\direction}[1]{\renewcommand{\@direction}{#1}}
27\newcommand{\@subject}{}\newcommand{\subject}[1]{\renewcommand{\@subject}{#1}}
28\newcommand{\@reviewer}{}\newcommand{\reviewer}[1]{\renewcommand{\@reviewer}{#1}}
29\newcommand{\@reviewertitle}{}\newcommand{\reviewertitle}[1]{\renewcommand{\@reviewertitle}{#1}}
30\newcommand{\signdate}{$\underset{\centering\text{\normalsize подпись, дата}}{\underline{\hspace{5cm}}}$}
31\newcommand{\@city}{}\newcommand{\city}[1]{\renewcommand{\@city}{#1}}
32\renewcommand{\maketitle}{
33 \begin{titlepage}
34 \begin{center}
35 \vspace{2cm}
36 \small{МИНИСТЕРСТВО НАУКИ И ВЫСШЕГО ОБРАЗОВАНИЯ РОССИЙСКОЙ ФЕДЕРАЦИИ}
37
38 \normalsize{\@university}
39
40 \vspace{0.5cm}
41 \normalsize{\@institute}
42
43 \normalsize{\@school}
44
45 \normalsize{Направление \@direction}
46
47 \vspace{2cm}
48 \LARGE{ОТЧЁТ}
49
50 \normalsize{\@reportof}
51
52 \large{\@subject}
53
54 \large{\textit{\@title}}
55
56 \normalsize{\textit{\@subtitle}}
57 \end{center}
58
59 \vspace{3cm}
60 \small{
61 \begin{tabular}{lrrl}
62 \!\!\!Студент, & \hspace{2cm} & & \\
63 \!\!\!группы 5130201/20101 & \hspace{2cm} & \underline{\hspace{3cm}} & \@author \\\\
64 \!\!\!Преподаватель, & \hspace{2cm} & \\
65 \!\!\!\@reviewertitle & \hspace{2cm} & \underline{\hspace{3cm}} & \@reviewer \\\\
66 &&\hspace{5cm}
67 \end{tabular}
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}