% \begin{macrocode} %<*counters> % \end{macrocode} % % \subsection{Создание и настройка счетчиков} % \begin{macrocode} \newcounter{part} \newcounter{chapter} \newcounter{section}[chapter] \newcounter{subsection}[section] \newcounter{subsubsection}[subsection] \newcounter{paragraph}[subsubsection] \newcounter{subparagraph}[paragraph] \newcounter{figure}[chapter] \newcounter{table}[chapter] % \end{macrocode} % % Формат нумерации разделов документа. % \begin{macrocode} \renewcommand\thepart{\@Roman\c@part} \renewcommand\thechapter{\@arabic\c@chapter} \newcommand\theappendix{\@Asbuk\c@chapter} \renewcommand\thesection{% \ifnum\c@chapter > \z@ \thechapter.\@arabic\c@section% \else\@arabic\c@section\fi} \renewcommand\thesubsection{\thesection.\@arabic\c@subsection} \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection} \renewcommand\theparagraph{\@arabic\c@paragraph} \renewcommand\thesubparagraph{\theparagraph.\@arabic\c@subparagraph} \newcommand\tocthepart{\thepart} \newcommand\tocthechapter{\thechapter} \newcommand\toctheappendix{\theappendix} \newcommand\tocthesection{\thesection} \newcommand\tocthesubsection{\thesubsection} \newcommand\toctheparagraph{\theparagraph} \newcommand\tocthesubparagraph{\thesubparagraph} % \end{macrocode} % % Схемы нумерации объектов для разных типов диссертаций. % \begin{macrocode} \newcommand\bachelor@the{% % \end{macrocode} % Нумерация сносок и формул начинается заново в каждой главе. % \begin{macrocode} \@addtoreset{footnote}{chapter} \@addtoreset{equation}{chapter} % \end{macrocode} % Формат номера формулы. % \begin{macrocode} \renewcommand\theequation{% \ifnum\c@chapter > \z@\thechapter.\fi% \@arabic\c@equation} % \end{macrocode} % Формат номера таблицы. % \begin{macrocode} \renewcommand\thetable{% \ifnum \c@chapter>\z@\thechapter.\fi% \@arabic\c@table} % \end{macrocode} % Формат номера рисунка. % \begin{macrocode} \renewcommand\thefigure{% \ifnum \c@chapter>\z@\thechapter.\fi% \@arabic\c@figure} } % \end{macrocode} % По умолчанию у всех одинаковая схема нумерации. % \begin{macrocode} \newcommand\master@the \bachelor@the \newcommand\candidate@the\bachelor@the \newcommand\doctor@the \candidate@the \newcommand\autoref@the \candidate@the \if@bachelor \bachelor@the \fi \if@master \master@the \fi \if@candidate \candidate@the \fi \if@doctor \doctor@the \fi \if@autoref \autoref@the \fi % % \end{macrocode}