diff options
author | Karl Berry <karl@freefriends.org> | 2007-05-19 16:20:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-05-19 16:20:14 +0000 |
commit | 1e19960b463415b2fb8a096f7ce4f9b2a50410f5 (patch) | |
tree | 434820857adb1d7bb63edcb5c441d7ca8e7f33cc /Master/texmf-dist/source/latex/disser/counters.dtx | |
parent | 9c9ebf7d3184800d2abdff96d70099836b153548 (diff) |
new russian-oriented package disser (3mar07)
git-svn-id: svn://tug.org/texlive/trunk@4317 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/counters.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/disser/counters.dtx | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/disser/counters.dtx b/Master/texmf-dist/source/latex/disser/counters.dtx new file mode 100644 index 00000000000..d5a6a87bc93 --- /dev/null +++ b/Master/texmf-dist/source/latex/disser/counters.dtx @@ -0,0 +1,85 @@ +% \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 +%</counters> +% \end{macrocode} |