Skip to content

Commit 0eaf9f0

Browse files
committed
Feat: remove requirement to define \discipline in ordinary template
1 parent 22f9088 commit 0eaf9f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tex/latex/bmstu-iu8/styles/IU8-10-titlepage.sty

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@
5757
\def\@supervisorWithDegree{\@latex@warning@no@line{No \noexpand\supervisorWithDegree given}}
5858

5959
% Поля для заполнения "обычных" отчётов
60-
\def\discipline#1{\gdef\@discipline{#1}}
61-
\def\@discipline{\@latex@warning@no@line{No \noexpand\discipline given}}
60+
\def\discipline#1{\gdef\@discipline{по дисциплине <<#1>> \\}}
61+
\providecommand{\@discipline}{~}
62+
6263
\newcommand{\noscorefield}{\gdef\enablescore{}} % Выключить поле оценки
6364
\providecommand{\enablescore}{ % Поле оценки включено по умолчанию
6465
\setlength{\tabcolsep}{0pt}
@@ -248,7 +249,7 @@
248249
\noindent\begin{center}
249250
\centering
250251
{\bfseries\fontsize{20pt}{25pt}\selectfont \@theme} \\
251-
{\fontsize{12pt}{25pt}\rmfamily\selectfont по дисциплине <<\@discipline>>} \\
252+
{\fontsize{12pt}{25pt}\rmfamily\selectfont \@discipline}
252253
{\fontsize{12pt}{25pt}\rmfamily\selectfont \@version} \\
253254
\end{center}
254255

0 commit comments

Comments
 (0)