diff options
| author | 2026-11-11 05:31:06 +0000 | |
|---|---|---|
| committer | 2026-11-11 06:14:42 +0000 | |
| commit | 9e1d304cac5367c3dbb1ca14700736680bd3a804 (patch) | |
| tree | 31f328747acb934d365d423adfda144818ff5ad4 /doc/spbstu-report.cls | |
| download | lab-01-05-master.tar.gz | |
Diffstat (limited to 'doc/spbstu-report.cls')
| -rw-r--r-- | doc/spbstu-report.cls | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/doc/spbstu-report.cls b/doc/spbstu-report.cls new file mode 100644 index 0000000..cba6c1e --- /dev/null +++ b/doc/spbstu-report.cls | |||
| @@ -0,0 +1,78 @@ | |||
| 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{\@group}{}\newcommand{\group}[1]{\renewcommand{\@group}{#1}} | ||
| 23 | \newcommand{\@reportof}{}\newcommand{\reportof}[1]{\renewcommand{\@reportof}{#1}} | ||
| 24 | \newcommand{\@university}{}\newcommand{\university}[1]{\renewcommand{\@university}{#1}} | ||
| 25 | \newcommand{\@institute}{}\newcommand{\institute}[1]{\renewcommand{\@institute}{#1}} | ||
| 26 | \newcommand{\@school}{}\newcommand{\school}[1]{\renewcommand{\@school}{#1}} | ||
| 27 | \newcommand{\@direction}{}\newcommand{\direction}[1]{\renewcommand{\@direction}{#1}} | ||
| 28 | \newcommand{\@subject}{}\newcommand{\subject}[1]{\renewcommand{\@subject}{#1}} | ||
| 29 | \newcommand{\@reviewer}{}\newcommand{\reviewer}[1]{\renewcommand{\@reviewer}{#1}} | ||
| 30 | \newcommand{\@reviewertitle}{}\newcommand{\reviewertitle}[1]{\renewcommand{\@reviewertitle}{#1}} | ||
| 31 | \newcommand{\signdate}{$\underset{\centering\text{\normalsize подпись, дата}}{\underline{\hspace{5cm}}}$} | ||
| 32 | \newcommand{\@city}{}\newcommand{\city}[1]{\renewcommand{\@city}{#1}} | ||
| 33 | \renewcommand{\maketitle}{ | ||
| 34 | \begin{titlepage} | ||
| 35 | \begin{center} | ||
| 36 | \vspace{2cm} | ||
| 37 | \small{МИНИСТЕРСТВО НАУКИ И ВЫСШЕГО ОБРАЗОВАНИЯ РОССИЙСКОЙ ФЕДЕРАЦИИ} | ||
| 38 | |||
| 39 | \normalsize{\@university} | ||
| 40 | |||
| 41 | \vspace{0.5cm} | ||
| 42 | \normalsize{\@institute} | ||
| 43 | |||
| 44 | \normalsize{\@school} | ||
| 45 | |||
| 46 | \normalsize{Направление \@direction} | ||
| 47 | |||
| 48 | \vspace{2cm} | ||
| 49 | \LARGE{ОТЧЁТ} | ||
| 50 | |||
| 51 | \normalsize{\@reportof} | ||
| 52 | |||
| 53 | \large{\@subject} | ||
| 54 | |||
| 55 | %% \large{\textit{\@title}} | ||
| 56 | \end{center} | ||
| 57 | |||
| 58 | \vspace{3cm} | ||
| 59 | \small{ | ||
| 60 | \begin{tabular}{lrrl} | ||
| 61 | \!\!\!Студент, & \hspace{2cm} & & \\ | ||
| 62 | \!\!\!группы \@group & \hspace{2cm} & \underline{\hspace{3cm}} & \@author \\\\ | ||
| 63 | \!\!\!Преподаватель, & \hspace{2cm} & \\ | ||
| 64 | \!\!\!\@reviewertitle & \hspace{2cm} & \underline{\hspace{3cm}} & \@reviewer \\\\ | ||
| 65 | &&\hspace{5cm} | ||
| 66 | \end{tabular} | ||
| 67 | \begin{flushright} | ||
| 68 | \enquote{\underline{\hspace{1cm}}}\underline{\hspace{2.5cm}} \@date г. | ||
| 69 | \end{flushright} | ||
| 70 | } | ||
| 71 | |||
| 72 | \vspace*{\fill} | ||
| 73 | \begin{center} | ||
| 74 | \small{\@city, \@date} | ||
| 75 | \end{center} | ||
| 76 | \end{titlepage} | ||
| 77 | \setcounter{page}{2} | ||
| 78 | } | ||
