summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eskdx/eskdtext.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/eskdx/eskdtext.cls')
-rw-r--r--Master/texmf-dist/tex/latex/eskdx/eskdtext.cls45
1 files changed, 44 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/eskdx/eskdtext.cls b/Master/texmf-dist/tex/latex/eskdx/eskdtext.cls
index e2efede47a6..3be8f09bb4c 100644
--- a/Master/texmf-dist/tex/latex/eskdx/eskdtext.cls
+++ b/Master/texmf-dist/tex/latex/eskdx/eskdtext.cls
@@ -20,9 +20,11 @@
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{eskdtext}[2006/03/02 v0.94 Textual Documentation]
+\ProvidesClass{eskdtext}[2006/08/21 v0.95 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}}
@@ -31,11 +33,18 @@
\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}}
@@ -64,3 +73,37 @@
\linespread{1.25}
+\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}
+
+\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}
+