aboutsummaryrefslogtreecommitdiff
path: root/doc/spbstu-report.cls
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-10 06:15:19 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-10 06:15:19 +0000
commite575815702e42efe5ba9d2732a1c6ae5dc752585 (patch)
treefa91e01ec90f7cd298c190c7fb38fe1bbec5903a /doc/spbstu-report.cls
downloadlab-05-e575815702e42efe5ba9d2732a1c6ae5dc752585.tar.gz
publishHEADmaster
Diffstat (limited to 'doc/spbstu-report.cls')
-rw-r--r--doc/spbstu-report.cls77
1 files changed, 77 insertions, 0 deletions
diff --git a/doc/spbstu-report.cls b/doc/spbstu-report.cls
new file mode 100644
index 0000000..60c44ad
--- /dev/null
+++ b/doc/spbstu-report.cls
@@ -0,0 +1,77 @@
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 \end{center}
56
57 \vspace{3cm}
58 \small{
59 \begin{tabular}{lrrl}
60 \!\!\!Студент, & \hspace{2cm} & & \\
61 \!\!\!группы 5130201/20101 & \hspace{2cm} & \underline{\hspace{3cm}} & \@author \\\\
62 \!\!\!Преподаватель, & \hspace{2cm} & \\
63 \!\!\!\@reviewertitle & \hspace{2cm} & \underline{\hspace{3cm}} & \@reviewer \\\\
64 &&\hspace{5cm}
65 \end{tabular}
66 \begin{flushright}
67 \enquote{\underline{\hspace{1cm}}}\underline{\hspace{2.5cm}} \@date г.
68 \end{flushright}
69 }
70
71 \vspace*{\fill}
72 \begin{center}
73 \small{\@city, \@date}
74 \end{center}
75 \end{titlepage}
76 \setcounter{page}{2}
77}