diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/eskdx/source/eskdtext.cls.in')
-rw-r--r-- | Master/texmf-dist/doc/latex/eskdx/source/eskdtext.cls.in | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/eskdx/source/eskdtext.cls.in b/Master/texmf-dist/doc/latex/eskdx/source/eskdtext.cls.in index 9d518ba05e1..d88c3930ea1 100644 --- a/Master/texmf-dist/doc/latex/eskdx/source/eskdtext.cls.in +++ b/Master/texmf-dist/doc/latex/eskdx/source/eskdtext.cls.in @@ -18,9 +18,11 @@ m4_ESKDX_INIT m4_FILE_INIT \NeedsTeXFormat{LaTeX2e} \ProvidesClass{eskdtext}[m4_dnl -m4_FILE_ID([[$Date: 2006/03/02 07:28:42 $]]) Textual Documentation] +m4_FILE_ID([[$Date: 2006/08/21 02:11:30 $]]) Textual Documentation] \newcommand{\ESKD@docfont}{14pt} +\newcommand{\ESKD@float@style}{single} +\newcommand{\ESKD@equation@style}{single} \DeclareOption{russian}{\PassOptionsToPackage{\CurrentOption}{eskdlang}} \DeclareOption{ukrainian}{\PassOptionsToPackage{\CurrentOption}{eskdlang}} @@ -29,11 +31,18 @@ m4_FILE_ID([[$Date: 2006/03/02 07:28:42 $]]) Textual Documentation] \DeclareOption{cp1251}{\PassOptionsToPackage{\CurrentOption}{eskdlang}} \DeclareOption{iso8859-5}{\PassOptionsToPackage{\CurrentOption}{eskdlang}} \DeclareOption{cp866}{\PassOptionsToPackage{\CurrentOption}{eskdlang}} +\DeclareOption{utf-8}{\PassOptionsToPackage{\CurrentOption}{eskdlang}} \DeclareOption{12pt}{\renewcommand{\ESKD@docfont}{12pt}} \DeclareOption{14pt}{\renewcommand{\ESKD@docfont}{14pt}} \DeclareOption{pointsingle}{\PassOptionsToPackage{\CurrentOption}{eskdsect}} \DeclareOption{pointsection}{\PassOptionsToPackage{\CurrentOption}{eskdsect}} \DeclareOption{pointsubsection}{\PassOptionsToPackage{\CurrentOption}{eskdsect}} +\DeclareOption{floatsingle}{\renewcommand{\ESKD@float@style}{single}} +\DeclareOption{floatsection}{\renewcommand{\ESKD@float@style}{section}} +\DeclareOption{floatsubsection}{\renewcommand{\ESKD@float@style}{subsection}} +\DeclareOption{equationsingle}{\renewcommand{\ESKD@equation@style}{single}} +\DeclareOption{equationsection}{\renewcommand{\ESKD@equation@style}{section}} +\DeclareOption{equationsubsection}{\renewcommand{\ESKD@equation@style}{subsection}} \DeclareOption{twoside}{% \PassOptionsToClass{\CurrentOption}{extarticle}% \PassOptionsToPackage{\CurrentOption}{eskdstamp}} @@ -63,4 +72,40 @@ m4_FILE_ID([[$Date: 2006/03/02 07:28:42 $]]) Textual Documentation] m4_dnl межстрочный интервал \linespread{1.25} +m4_dnl стиль нумерации плавающих объектов +\newcommand{\ESKD@float@style@single}{} + +\newcommand{\ESKD@float@style@section}{ + \@addtoreset{figure}{section} + \@addtoreset{table}{section} + \renewcommand{\thefigure}{% + \ifnum \c@section>\z@ \thesection.\fi \arabic{figure}} + \renewcommand{\thetable}{% + \ifnum \c@section>\z@ \thesection.\fi \arabic{table}}} + +\newcommand{\ESKD@float@style@subsection}{ + \@addtoreset{figure}{subsection} + \@addtoreset{table}{subsection} + \renewcommand{\thefigure}{% + \ifnum \c@subsection>\z@ \thesubsection.\fi \arabic{figure}} + \renewcommand{\thetable}{% + \ifnum \c@subsection>\z@ \thesubsection.\fi \arabic{table}}} + +\@nameuse{ESKD@float@style@\ESKD@float@style} + +m4_dnl стиль нумерации формул +\newcommand{\ESKD@equation@style@single}{} + +\newcommand{\ESKD@equation@style@section}{ + \@addtoreset{equation}{section} + \renewcommand{\theequation}{% + \ifnum \c@section>\z@ \thesection.\fi \arabic{equation}}} + +\newcommand{\ESKD@equation@style@subsection}{ + \@addtoreset{equation}{subsection} + \renewcommand{\theequation}{% + \ifnum \c@subsection>\z@ \thesubsection.\fi \arabic{equation}}} + +\@nameuse{ESKD@equation@style@\ESKD@equation@style} + m4_dnl vim:ft=tex:ai:sw=2 |