\NeedsTeXFormat{LaTeX2e} \ProvidesClass{spbstu-report}[2023/05/12 Класс для отчетов] % % Support font sizes: 12pt, 14pt % \DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{extarticle}} \DeclareOption{14pt}{\PassOptionsToClass{\CurrentOption}{extarticle}} \ProcessOptions\relax \LoadClass[a4paper]{gost-7-32} \RequirePackage{csquotes} \RequirePackage{amsmath} \RequirePackage{amssymb} \RequirePackage{adjustbox} \RequirePackage{graphicx} \RequirePackage{wrapfig} \RequirePackage{rotating} \newcommand{\@reportof}{}\newcommand{\reportof}[1]{\renewcommand{\@reportof}{#1}} \newcommand{\@university}{}\newcommand{\university}[1]{\renewcommand{\@university}{#1}} \newcommand{\@institute}{}\newcommand{\institute}[1]{\renewcommand{\@institute}{#1}} \newcommand{\@school}{}\newcommand{\school}[1]{\renewcommand{\@school}{#1}} \newcommand{\@direction}{}\newcommand{\direction}[1]{\renewcommand{\@direction}{#1}} \newcommand{\@subject}{}\newcommand{\subject}[1]{\renewcommand{\@subject}{#1}} \newcommand{\@reviewer}{}\newcommand{\reviewer}[1]{\renewcommand{\@reviewer}{#1}} \newcommand{\@reviewertitle}{}\newcommand{\reviewertitle}[1]{\renewcommand{\@reviewertitle}{#1}} \newcommand{\signdate}{$\underset{\centering\text{\normalsize подпись, дата}}{\underline{\hspace{5cm}}}$} \newcommand{\@city}{}\newcommand{\city}[1]{\renewcommand{\@city}{#1}} \renewcommand{\maketitle}{ \begin{titlepage} \begin{center} \vspace{2cm} \small{МИНИСТЕРСТВО НАУКИ И ВЫСШЕГО ОБРАЗОВАНИЯ РОССИЙСКОЙ ФЕДЕРАЦИИ} \normalsize{\@university} \vspace{0.5cm} \normalsize{\@institute} \normalsize{\@school} \normalsize{Направление \@direction} \vspace{2cm} \LARGE{ОТЧЁТ} \normalsize{\@reportof} \large{\@subject} \large{\textit{\@title}} \end{center} \vspace{3cm} \small{ \begin{tabular}{lrrl} \!\!\!Студент, & \hspace{2cm} & & \\ \!\!\!группы 5130201/20101 & \hspace{2cm} & \underline{\hspace{3cm}} & \@author \\\\ \!\!\!Преподаватель, & \hspace{2cm} & \\ \!\!\!\@reviewertitle & \hspace{2cm} & \underline{\hspace{3cm}} & \@reviewer \\\\ &&\hspace{5cm} \end{tabular} \begin{flushright} \enquote{\underline{\hspace{1cm}}}\underline{\hspace{2.5cm}} \@date г. \end{flushright} } \vspace*{\fill} \begin{center} \small{\@city, \@date} \end{center} \end{titlepage} \setcounter{page}{2} }