diff options
| author | 2026-11-08 04:19:33 +0000 | |
|---|---|---|
| committer | 2026-11-08 04:22:48 +0000 | |
| commit | a4aafb5caea268dae350bdaa6a9c53b65b00910e (patch) | |
| tree | b9f0b26d9c835963e7bb65ddc31ec4b49976d7d7 /doc/spbstu-report.cls | |
| download | lab-03-a4aafb5caea268dae350bdaa6a9c53b65b00910e.tar.gz | |
Diffstat (limited to 'doc/spbstu-report.cls')
| -rw-r--r-- | doc/spbstu-report.cls | 74 |
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..7ae6b05 --- /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 & \hspace{2cm} & \underline{\hspace{3cm}} & \@author \\\\ | ||
| 59 | \!\!\!Преподаватель, & \hspace{2cm} & \\ | ||
| 60 | \!\!\!\@reviewertitle & \hspace{2cm} & \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 | } | ||
