%% bmstu_title.sty %% Copyright 2023 Mikael Novikov % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Mikael Novikov. % % This work consists of all files listed in manifest.txt. % УÑтановка мета-данных выходного файла \newcommand{\documentmeta}[4] { \hypersetup{ pdftitle={#1 #2 #3}, pdfsubject={#4}, pdfauthor={#2} } } % Cоздание полей \RequirePackage[normalem]{ulem} \RequirePackage{stackengine} \newcommand{\longunderline}[1] { \uline{#1\hfill\mbox{}} } \newcommand{\fixunderline}[3] { $\underset{\text{#3}}{\text{\uline{\stackengine{0pt}{\hspace{#2}}{\text{#1}}{O}{c}{F}{F}{L}}}}$ } % Создание горизонтальной линии \makeatletter \newcommand{\vhrulefill}[1] { \leavevmode\leaders\hrule\@height#1\hfill \kern\z@ } \makeatother % Создание шапки титульной Ñтраницы \newcommand{\titlepageheader}[2] { \begin{wrapfigure}[7]{l}{0.14\linewidth} \vspace{3.4mm} \hspace{-8mm} \includegraphics[width=0.89\linewidth]{bmstu-logo} \end{wrapfigure} { \singlespacing \small МиниÑтерÑтво науки и выÑшего Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð Ð¾ÑÑийÑкой Федерации \\ Федеральное гоÑударÑтвенное бюджетное образовательное учреждение \\ выÑшего Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸Ñ \\ <<МоÑковÑкий гоÑударÑтвенный техничеÑкий универÑитет \\ имени Ð.~Ð.~Баумана \\ (национальный иÑÑледовательÑкий универÑитет)>> \\ (МГТУ им. Ð.~Ð.~Баумана) \\ } \vspace{-4.2mm} \vhrulefill{0.9mm} \\ \vspace{-7mm} \vhrulefill{0.2mm} \\ \vspace{2.8mm} { \small ФÐКУЛЬТЕТ \longunderline{<<#1>>} \\ \vspace{3.3mm} КÐФЕДРР\longunderline{<<#2>>} \\ } } % УÑтановка заголовков отчета по ÐИР\newcommand{\titlepageresearchtitle}[1] { { \LARGE \bfseries Ð ÐСЧЕТÐО-ПОЯСÐИТЕЛЬÐÐЯ ЗÐПИСКР\\ } \vspace{5mm} { \Large \itshape К ÐÐУЧÐО-ИССЛЕДОВÐТЕЛЬСКОЙ Ð ÐБОТЕ \\ \vspace{5mm} ÐРТЕМУ: \\ <<#1>> \\ } } % УÑтановка заголовков РПЗ \newcommand{\titlepagenotetitle}[2] { { \LARGE \bfseries Ð ÐСЧЕТÐО-ПОЯСÐИТЕЛЬÐÐЯ ЗÐПИСКР\\ } \vspace{5mm} { \Large \itshape #1 \\ \vspace{5mm} ÐРТЕМУ: \\ <<#2>> \\ } } % УÑтановка заголовков отчета \newcommand{\titlepagereporttitle}[4] { \textbf{ОТЧЕТ} \\ по #1 \\ \ifthenelse{\isempty{#2}}{}{по курÑу <<#2>> \\} \ifthenelse{\isempty{#3}}{}{на тему: <<#3>> \\} \ifthenelse{\isempty{#4}}{}{Вариант â„–~#4 \\} } % Создание Ð¿Ð¾Ð»Ñ Ñтудента \RequirePackage{pgffor} \newcommand*\titlepagestudentscontent{} \newcommand{\maketitlepagestudent}[1] { \foreach \s/\g in {#1} { \gappto\titlepagestudentscontent{Студент \fixunderline} \xappto\titlepagestudentscontent{{\g}} \gappto\titlepagestudentscontent{{25mm}{(Группа)} &} \gappto\titlepagestudentscontent{\fixunderline{}{40mm}{(ПодпиÑÑŒ, дата)} \vspace{1.3mm} &} \gappto\titlepagestudentscontent{\fixunderline} \xappto\titlepagestudentscontent{{\s}} \gappto\titlepagestudentscontent{{40mm}{(И.~О.~ФамилиÑ)} \\} } } % Создание прочих полей \newcommand*\titlepageotherscontent{} \newcommand{\maketitlepageothers}[2] { \foreach \c in {#2} { \gappto\titlepagestudentscontent{#1 &} \gappto\titlepagestudentscontent{\fixunderline{}{40mm}{(ПодпиÑÑŒ, дата)} \vspace{1.3mm} &} \gappto\titlepagestudentscontent{\fixunderline} \xappto\titlepagestudentscontent{{\c}} \gappto\titlepagestudentscontent{{40mm}{(И.~О.~ФамилиÑ)} \\} } } % УÑтановка иÑполнителей работы \newcommand{\titlepageauthors}[5] { { \renewcommand{\titlepagestudentscontent}{} \maketitlepagestudent{#1} \renewcommand{\titlepageotherscontent}{} \maketitlepageothers{#2}{#3} \maketitlepageothers{КонÑультант}{#4} \maketitlepageothers{Ðормоконтролер}{#5} \small \begin{tabularx}{\textwidth}{@{}>{\hsize=.5\hsize}X>{\hsize=.25\hsize}X>{\hsize=.25\hsize}X@{}} \titlepagestudentscontent \titlepageotherscontent \end{tabularx} } } % Создание титульной Ñтраницы РПЗ к ВКР\newcommand{\makethesistitle}[7] { \documentmeta{РПЗ к ВКР}{#4}{}{#3} \begin{titlepage} \centering \titlepageheader{#1}{#2} \vspace{15.8mm} \titlepagenotetitle{К ВЫПУСКÐОЙ КВÐЛИФИКÐЦИОÐÐОЙ Ð ÐБОТЕ}{#3} \vfill \titlepageauthors{#4}{Руководитель ВКР}{#5}{#6}{#7} \vspace{14mm} \textit{{\the\year} г.} \end{titlepage} \setcounter{page}{2} } % Создание титульной Ñтраницы отчета по ÐИР\newcommand{\makeresearchtitle}[6] { \documentmeta{Отчет по ÐИР}{#4}{}{#3} \begin{titlepage} \centering \titlepageheader{#1}{#2} \vspace{15.8mm} \titlepageresearchtitle{#3} \vfill \titlepageauthors{#4}{Руководитель ÐИР}{#5}{#6}{} \vspace{14mm} \textit{{\the\year} г.} \end{titlepage} \setcounter{page}{2} } % Создание титульной Ñтраницы РПЗ к КР\newcommand{\makecourseworktitle}[6] { \documentmeta{РПЗ к КР}{#4}{}{#3} \begin{titlepage} \centering \titlepageheader{#1}{#2} \vspace{15.8mm} \titlepagenotetitle{К КУРСОВОЙ Ð ÐБОТЕ}{#3} \vfill \titlepageauthors{#4}{Руководитель курÑовой работы}{#5}{#6}{} \vspace{14mm} \textit{{\the\year} г.} \end{titlepage} \setcounter{page}{2} } % Создание титульной Ñтраницы отчета \newcommand{\makereporttitle}[8] { \documentmeta{Отчет}{#7}{по #3 по курÑу #4}{#5} \begin{titlepage} \centering \titlepageheader{#1}{#2} \vspace{15.8mm} \titlepagereporttitle{#3}{#4}{#5}{#6} \vfill \titlepageauthors{#7}{Преподаватель}{#8}{}{} \vspace{14mm} \textit{{\the\year} г.} \end{titlepage} \setcounter{page}{2} }