From cd6c2ff82c02867f437401454bf06535d798838d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=D1=91dor=20T?= Date: Mon, 7 Apr 2025 16:51:45 +0300 Subject: [PATCH 1/2] Fix: No reference 'number', when cross-referencing appendix section --- tex/latex/bmstu-iu8/styles/IU8-17-appendices.sty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tex/latex/bmstu-iu8/styles/IU8-17-appendices.sty b/tex/latex/bmstu-iu8/styles/IU8-17-appendices.sty index d1157aa..13e5255 100644 --- a/tex/latex/bmstu-iu8/styles/IU8-17-appendices.sty +++ b/tex/latex/bmstu-iu8/styles/IU8-17-appendices.sty @@ -3,7 +3,7 @@ \ProvidesPackage{IU8-17-appendices}[2025/03/15 v1.7 Приложения] \newcommand{\appendixsection}[1]{ - \stepcounter{apps} + \refstepcounter{apps} \section*{\Asbuk{apps}} \begin{center} \bfseries #1 @@ -23,4 +23,5 @@ \renewcommand\thetable{\Asbuk{apps}.\arabic{table}} \renewcommand\theequation{\Asbuk{apps}.\arabic{equation}} \renewcommand\thelstlisting{\Asbuk{apps}.\arabic{lstlisting}} + \renewcommand{\theapps}{\Asbuk{apps}} } From ea3d3f633a60c867aea812f8ca66eba2b0b69263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=D1=91dor=20T?= Date: Mon, 7 Apr 2025 18:25:37 +0300 Subject: [PATCH 2/2] Feat: remove requirement to define \discipline in ordinary template --- tex/latex/bmstu-iu8/styles/IU8-10-titlepage.sty | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tex/latex/bmstu-iu8/styles/IU8-10-titlepage.sty b/tex/latex/bmstu-iu8/styles/IU8-10-titlepage.sty index 60f0e82..91c44b4 100644 --- a/tex/latex/bmstu-iu8/styles/IU8-10-titlepage.sty +++ b/tex/latex/bmstu-iu8/styles/IU8-10-titlepage.sty @@ -57,8 +57,9 @@ \def\@supervisorWithDegree{\@latex@warning@no@line{No \noexpand\supervisorWithDegree given}} % Поля для заполнения "обычных" отчётов -\def\discipline#1{\gdef\@discipline{#1}} -\def\@discipline{\@latex@warning@no@line{No \noexpand\discipline given}} +\def\discipline#1{\gdef\@discipline{по дисциплине <<#1>> \\}} +\providecommand{\@discipline}{~} + \newcommand{\noscorefield}{\gdef\enablescore{}} % Выключить поле оценки \providecommand{\enablescore}{ % Поле оценки включено по умолчанию \setlength{\tabcolsep}{0pt} @@ -248,7 +249,7 @@ \noindent\begin{center} \centering {\bfseries\fontsize{20pt}{25pt}\selectfont \@theme} \\ - {\fontsize{12pt}{25pt}\rmfamily\selectfont по дисциплине <<\@discipline>>} \\ + {\fontsize{12pt}{25pt}\rmfamily\selectfont \@discipline} {\fontsize{12pt}{25pt}\rmfamily\selectfont \@version} \\ \end{center}