<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% 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
		ÐœÐ¸Ð½Ð¸ÑÑ‚ÐµÑ€ÑÑ‚Ð²Ð¾ Ð½Ð°ÑƒÐºÐ¸ Ð¸ Ð²Ñ‹ÑÑˆÐµÐ³Ð¾ Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð&nbsp;Ð¾ÑÑÐ¸Ð¹ÑÐºÐ¾Ð¹ Ð¤ÐµÐ´ÐµÑ€Ð°Ñ†Ð¸Ð¸ \\
		Ð¤ÐµÐ´ÐµÑ€Ð°Ð»ÑŒÐ½Ð¾Ðµ Ð³Ð¾ÑÑƒÐ´Ð°Ñ€ÑÑ‚Ð²ÐµÐ½Ð½Ð¾Ðµ Ð±ÑŽÐ´Ð¶ÐµÑ‚Ð½Ð¾Ðµ Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ñ‚ÐµÐ»ÑŒÐ½Ð¾Ðµ ÑƒÑ‡Ñ€ÐµÐ¶Ð´ÐµÐ½Ð¸Ðµ \\
		Ð²Ñ‹ÑÑˆÐµÐ³Ð¾ Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸Ñ \\
		&lt;&lt;ÐœÐ¾ÑÐºÐ¾Ð²ÑÐºÐ¸Ð¹ Ð³Ð¾ÑÑƒÐ´Ð°Ñ€ÑÑ‚Ð²ÐµÐ½Ð½Ñ‹Ð¹ Ñ‚ÐµÑ…Ð½Ð¸Ñ‡ÐµÑÐºÐ¸Ð¹ ÑƒÐ½Ð¸Ð²ÐµÑ€ÑÐ¸Ñ‚ÐµÑ‚ \\
		Ð¸Ð¼ÐµÐ½Ð¸ Ð.~Ð­.~Ð‘Ð°ÑƒÐ¼Ð°Ð½Ð° \\
		(Ð½Ð°Ñ†Ð¸Ð¾Ð½Ð°Ð»ÑŒÐ½Ñ‹Ð¹ Ð¸ÑÑÐ»ÐµÐ´Ð¾Ð²Ð°Ñ‚ÐµÐ»ÑŒÑÐºÐ¸Ð¹ ÑƒÐ½Ð¸Ð²ÐµÑ€ÑÐ¸Ñ‚ÐµÑ‚)&gt;&gt; \\
		(ÐœÐ“Ð¢Ð£ Ð¸Ð¼. Ð.~Ð­.~Ð‘Ð°ÑƒÐ¼Ð°Ð½Ð°) \\
	}

	\vspace{-4.2mm}
	\vhrulefill{0.9mm} \\
	\vspace{-7mm}
	\vhrulefill{0.2mm} \\
	\vspace{2.8mm}

	{
		\small
		Ð¤ÐÐšÐ£Ð›Ð¬Ð¢Ð•Ð¢ \longunderline{&lt;&lt;#1&gt;&gt;} \\
		\vspace{3.3mm}
		ÐšÐÐ¤Ð•Ð”Ð&nbsp;Ð \longunderline{&lt;&lt;#2&gt;&gt;} \\
	}
}

% Ð£ÑÑ‚Ð°Ð½Ð¾Ð²ÐºÐ° Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² Ð¾Ñ‚Ñ‡ÐµÑ‚Ð° Ð¿Ð¾ ÐÐ˜Ð&nbsp;
\newcommand{\titlepageresearchtitle}[1]
{
	{
		\LARGE \bfseries
		Ð&nbsp;ÐÐ¡Ð§Ð•Ð¢ÐÐž-ÐŸÐžÐ¯Ð¡ÐÐ˜Ð¢Ð•Ð›Ð¬ÐÐÐ¯ Ð—ÐÐŸÐ˜Ð¡ÐšÐ \\
	}
	\vspace{5mm}
	{
		\Large \itshape
		Ðš ÐÐÐ£Ð§ÐÐž-Ð˜Ð¡Ð¡Ð›Ð•Ð”ÐžÐ’ÐÐ¢Ð•Ð›Ð¬Ð¡ÐšÐžÐ™ Ð&nbsp;ÐÐ‘ÐžÐ¢Ð• \\
		\vspace{5mm}
		ÐÐ Ð¢Ð•ÐœÐ£: \\
		&lt;&lt;#1&gt;&gt; \\
	}
}

% Ð£ÑÑ‚Ð°Ð½Ð¾Ð²ÐºÐ° Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² Ð&nbsp;ÐŸÐ—
\newcommand{\titlepagenotetitle}[2]
{
	{
		\LARGE \bfseries
		Ð&nbsp;ÐÐ¡Ð§Ð•Ð¢ÐÐž-ÐŸÐžÐ¯Ð¡ÐÐ˜Ð¢Ð•Ð›Ð¬ÐÐÐ¯ Ð—ÐÐŸÐ˜Ð¡ÐšÐ \\
	}
	\vspace{5mm}
	{
		\Large \itshape
		#1 \\
		\vspace{5mm}
		ÐÐ Ð¢Ð•ÐœÐ£: \\
		&lt;&lt;#2&gt;&gt; \\
	}
}

% Ð£ÑÑ‚Ð°Ð½Ð¾Ð²ÐºÐ° Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² Ð¾Ñ‚Ñ‡ÐµÑ‚Ð°
\newcommand{\titlepagereporttitle}[4]
{
	\textbf{ÐžÐ¢Ð§Ð•Ð¢} \\
	Ð¿Ð¾ #1 \\
	\ifthenelse{\isempty{#2}}{}{Ð¿Ð¾ ÐºÑƒÑ€ÑÑƒ &lt;&lt;#2&gt;&gt; \\}
	\ifthenelse{\isempty{#3}}{}{Ð½Ð° Ñ‚ÐµÐ¼Ñƒ: &lt;&lt;#3&gt;&gt; \\}
	\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}{(Ð“Ñ€ÑƒÐ¿Ð¿Ð°)} &amp;}
		\gappto\titlepagestudentscontent{\fixunderline{}{40mm}{(ÐŸÐ¾Ð´Ð¿Ð¸ÑÑŒ, Ð´Ð°Ñ‚Ð°)} \vspace{1.3mm} &amp;}
		\gappto\titlepagestudentscontent{\fixunderline}
		\xappto\titlepagestudentscontent{{\s}}
		\gappto\titlepagestudentscontent{{40mm}{(Ð˜.~Ðž.~Ð¤Ð°Ð¼Ð¸Ð»Ð¸Ñ)} \\}
	}
}

% Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ð¿Ñ€Ð¾Ñ‡Ð¸Ñ… Ð¿Ð¾Ð»ÐµÐ¹
\newcommand*\titlepageotherscontent{}

\newcommand{\maketitlepageothers}[2]
{
	\foreach \c in {#2} {
		\gappto\titlepagestudentscontent{#1 &amp;}
		\gappto\titlepagestudentscontent{\fixunderline{}{40mm}{(ÐŸÐ¾Ð´Ð¿Ð¸ÑÑŒ, Ð´Ð°Ñ‚Ð°)} \vspace{1.3mm} &amp;}
		\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}{@{}&gt;{\hsize=.5\hsize}X&gt;{\hsize=.25\hsize}X&gt;{\hsize=.25\hsize}X@{}}
			\titlepagestudentscontent

			\titlepageotherscontent
		\end{tabularx}
	}
}

% Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ñ‚Ð¸Ñ‚ÑƒÐ»ÑŒÐ½Ð¾Ð¹ ÑÑ‚Ñ€Ð°Ð½Ð¸Ñ†Ñ‹ Ð&nbsp;ÐŸÐ— Ðº Ð’ÐšÐ&nbsp;
\newcommand{\makethesistitle}[7]
{
	\documentmeta{Ð&nbsp;ÐŸÐ— Ðº Ð’ÐšÐ&nbsp;}{#4}{}{#3}

	\begin{titlepage}
		\centering

		\titlepageheader{#1}{#2}
		\vspace{15.8mm}

		\titlepagenotetitle{Ðš Ð’Ð«ÐŸÐ£Ð¡ÐšÐÐžÐ™ ÐšÐ’ÐÐ›Ð˜Ð¤Ð˜ÐšÐÐ¦Ð˜ÐžÐÐÐžÐ™ Ð&nbsp;ÐÐ‘ÐžÐ¢Ð•}{#3}
		\vfill

		\titlepageauthors{#4}{Ð&nbsp;ÑƒÐºÐ¾Ð²Ð¾Ð´Ð¸Ñ‚ÐµÐ»ÑŒ Ð’ÐšÐ&nbsp;}{#5}{#6}{#7}
		\vspace{14mm}

		\textit{{\the\year} Ð³.}
	\end{titlepage}

	\setcounter{page}{2}
}

% Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ñ‚Ð¸Ñ‚ÑƒÐ»ÑŒÐ½Ð¾Ð¹ ÑÑ‚Ñ€Ð°Ð½Ð¸Ñ†Ñ‹ Ð¾Ñ‚Ñ‡ÐµÑ‚Ð° Ð¿Ð¾ ÐÐ˜Ð&nbsp;
\newcommand{\makeresearchtitle}[6]
{
	\documentmeta{ÐžÑ‚Ñ‡ÐµÑ‚ Ð¿Ð¾ ÐÐ˜Ð&nbsp;}{#4}{}{#3}

	\begin{titlepage}
		\centering

		\titlepageheader{#1}{#2}
		\vspace{15.8mm}

		\titlepageresearchtitle{#3}
		\vfill

		\titlepageauthors{#4}{Ð&nbsp;ÑƒÐºÐ¾Ð²Ð¾Ð´Ð¸Ñ‚ÐµÐ»ÑŒ ÐÐ˜Ð&nbsp;}{#5}{#6}{}
		\vspace{14mm}

		\textit{{\the\year} Ð³.}
	\end{titlepage}

	\setcounter{page}{2}
}

% Ð¡Ð¾Ð·Ð´Ð°Ð½Ð¸Ðµ Ñ‚Ð¸Ñ‚ÑƒÐ»ÑŒÐ½Ð¾Ð¹ ÑÑ‚Ñ€Ð°Ð½Ð¸Ñ†Ñ‹ Ð&nbsp;ÐŸÐ— Ðº ÐšÐ&nbsp;
\newcommand{\makecourseworktitle}[6]
{
	\documentmeta{Ð&nbsp;ÐŸÐ— Ðº ÐšÐ&nbsp;}{#4}{}{#3}

	\begin{titlepage}
		\centering

		\titlepageheader{#1}{#2}
		\vspace{15.8mm}

		\titlepagenotetitle{Ðš ÐšÐ£Ð&nbsp;Ð¡ÐžÐ’ÐžÐ™ Ð&nbsp;ÐÐ‘ÐžÐ¢Ð•}{#3}
		\vfill

		\titlepageauthors{#4}{Ð&nbsp;ÑƒÐºÐ¾Ð²Ð¾Ð´Ð¸Ñ‚ÐµÐ»ÑŒ ÐºÑƒÑ€ÑÐ¾Ð²Ð¾Ð¹ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹}{#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}
}
</pre></body></html>