summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/17-IU8-appendices.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/17-IU8-appendices.sty')
-rw-r--r--macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/17-IU8-appendices.sty25
1 files changed, 25 insertions, 0 deletions
diff --git a/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/17-IU8-appendices.sty b/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/17-IU8-appendices.sty
new file mode 100644
index 0000000000..58556e4987
--- /dev/null
+++ b/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/17-IU8-appendices.sty
@@ -0,0 +1,25 @@
+% Author: CatInCosmicSpace
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{17-IU8-appendices}[2021/03/21 v1.1 Приложения]
+
+\newcommand{\appendixsection}[1]{
+ \stepcounter{apps}
+ \section*{\Asbuk{apps}}
+ \begin{center}
+ \bfseries #1
+ \end{center}
+ \addcontentsline{toc}{section}{ПРИЛОЖЕНИЕ~\Asbuk{apps}~{#1}}
+}
+
+\renewcommand{\appendix}{
+ \renewcommand\section{\clearpage\@startsection{section}{1}{0pt}{1em}{1em}{\bfseries\centering ПРИЛОЖЕНИЕ~}}
+ \setcounter{section}{0}
+ \setcounter{figure}{0}
+ \setcounter{table}{0}
+ \setcounter{equation}{0}
+ \setcounter{lstlisting}{0}
+ \renewcommand\thefigure{\Asbuk{apps}.\arabic{figure}}
+ \renewcommand\thetable{\Asbuk{apps}.\arabic{table}}
+ \renewcommand\theequation{\Asbuk{apps}.\arabic{equation}}
+ \renewcommand\thelstlisting{\Asbuk{apps}.\arabic{lstlisting}}
+}