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