summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bmstu-iu8/IU8-17-appendices.sty
blob: 88033132f7be127ab798859dabb61aa316e1293b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Author: CatInCosmicSpace
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{IU8-17-appendices}[2024/10/28 v1.5 Приложения]

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