<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>