%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                                 %%
%% This is file `ebook.cls',                                       %%
%% based on basic 'article.cls'                                    %%
%%                                                                 %%
%% The `ebook.sty/ebook.cls'  are partly edited to meet            %%
%% some basic peculiarities of 'epub' format                       %%
%% Version of 17 November 2011                                     %%
%% Written by Vitaly Nechitailenko (vnechita@gmail.com)            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%
%% The original source files were:
%%
%% classes.dtx  (with options: `article')
%% 
%% This is a generated file.
%% 
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006
%% The LaTeX3 Project and any individual authors listed elsewhere
%% in this file.
%% 
%% This file was generated from file(s) of the LaTeX base system.
%% --------------------------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This file has the LPPL maintenance status "maintained".
%% 
%% This file may only be distributed together with a copy of the LaTeX
%% base system. You may however distribute the LaTeX base system without
%% such generated files.
%% 
%% The list of all files belonging to the LaTeX base distribution is
%% given in the file `manifest.txt'. See also `legal.txt' for additional
%% information.
%% 
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{ebook}
              [2011/11/17 v1.0
 User-supported LaTeX document class]

\RequirePackage{ifthen}
\RequirePackage{calc}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{multicol}
\RequirePackage{makeidx}
\RequirePackage{graphicx}
\RequirePackage{epsf}
\RequirePackage{tabularx}
\RequirePackage[figuresright]{rotating}
\RequirePackage[russian,english]{babel}
\DeclareOption{eng}{\def\@lang{eng}\input{english.ldf}}
\DeclareOption{rus}{\def\@lang{rus}\input{russianb.ldf}}
\ProcessOptions

% Package and version identifiers

\def\ebook@ver{1.0}
\def\ebook@date{17 November 2011}
\def\ebook@org{GCRAS}
\def\ebook@jnl{EBOOK}
\def\ebook@genre{article}

% Display identifying message on screen and in logfile

\typeout{\ebook@org's\space \ebook@jnl\space
\ebook@genre\space class, v\ebook@ver\space <\ebook@date>.}


\newcommand\@ptsize{}
\newif\if@restonecol
\newif\if@titlepage
\@titlepagefalse
\if@compatibility\else
\def\pdfout{dvi}        %%  default value
\DeclareOption{dvi}{\def\pdfout{dvi}}
\DeclareOption{pdf}{\def\pdfout{pdf}}
\def\warnmes{verbose}        %%  default value
\DeclareOption{verbose}{\def\warnmes{verbose}}
\DeclareOption{silent}{\def\warnmes{silent}}
\def\@lang{eng}        %%  default value
\DeclareOption{eng}{\def\@lang{eng}\input{english.ldf}}
\DeclareOption{rus}{\def\@lang{rus}\input{russianb.ldf}}
\def\hyptest{hyper}        %%  default value
\DeclareOption{hyper}{\def\hyptest{hyper}}
\DeclareOption{nohyp}{\def\hyptest{nohyp}}
\ProcessOptions
\def\papersize{a4paper}
\DeclareOption{a4paper}
   {\def\papersize{a4paper}
    \setlength\paperheight {297mm}%
    \setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}
   {\def\papersize{a5paper}
    \setlength\paperheight {210mm}%
    \setlength\paperwidth  {148mm}}
\DeclareOption{b5paper}
   {\def\papersize{b5paper}
    \setlength\paperheight {250mm}%
    \setlength\paperwidth  {176mm}}
\DeclareOption{epub}                        %  e-readers like PocketBook,  Kindle, etc.
   {\def\papersize{epub}
    \setlength\paperwidth  {120mm}
    \setlength\paperheight {160mm}%
    \setlength\pdfpagewidth {120mm}         %   Width for PDF output 
    \setlength\pdfpageheight {160mm}}        %   Height for PDF output 
\DeclareOption{landscape}
   {\setlength\@tempdima   {\paperheight}%
    \setlength\paperheight {\paperwidth}%
    \setlength\paperwidth  {\@tempdima}}
\fi
%%%%\ExecuteOptions{epub,pdf}


\if@compatibility
  \renewcommand\@ptsize{0}
\else
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\fi
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\if@compatibility\else
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\fi
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\if@compatibility\else
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\fi
\DeclareOption{titlepage}{\@titlepagetrue}
\if@compatibility\else
\DeclareOption{notitlepage}{\@titlepagefalse}
\fi
\if@compatibility\else
\DeclareOption{onecolumn}{\@twocolumnfalse}
\fi
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\DeclareOption{openbib}{%
  \AtEndOfPackage{%
   \renewcommand\@openbib@code{%
      \advance\leftmargin\bibindent
      \itemindent -\bibindent
      \listparindent \itemindent
      \parsep \z@
      }%
   \renewcommand\newblock{\par}}%
}
\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
\ProcessOptions

\input{size1\@ptsize.clo}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand\baselinestretch{}
\setlength\parskip{0\p@ \@plus \p@}
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301
%%  Setting values for selected paper size
\ifthenelse{\equal{\papersize}{epub}}{%
    \setlength\textwidth{112mm}             %   Width of text area
    \setlength\textheight{150mm}            %   Heigth of text area
    \setlength\topmargin{-8pc}              %   Top margin shift
    \setlength\oddsidemargin{-5pc}          %   Left margin shift
    \renewcommand{\normalsize}{\fontsize{15}{17}\selectfont\sf}
    \renewcommand{\large}{\fontsize{17}{19}\selectfont}
    \renewcommand{\Large}{\fontsize{19}{23}\selectfont}
    \renewcommand{\LARGE}{\fontsize{21}{25}\selectfont}
    \renewcommand{\small}{\fontsize{13}{15}\selectfont}
    \renewcommand{\footnotesize}{\fontsize{11}{13}\selectfont}
    \renewcommand{\scriptsize}{\fontsize{10}{12}\selectfont}    
    \renewcommand{\tiny}{\fontsize{8}{10}\selectfont}    
}{%
\ifthenelse{\equal{\papersize}{a4paper}}{%
    \setlength\textwidth{41pc}         %   Width of text area
    \setlength\textheight{54pc}        %   Heigth of text area
    \setlength\topmargin{-3pc}          %   Top margin shift
    \setlength\oddsidemargin{0pc}      %   Left margin shift
    \setlength\pdfpagewidth {210mm}         %   Width for PDF output
    \setlength\pdfpageheight {297mm}       %   Height for PDF output    
    
    
    
    
    
}{}}%

\setcounter{topnumber}{2}
\renewcommand\topfraction{.7}
\setcounter{bottomnumber}{1}
\renewcommand\bottomfraction{.3}
\setcounter{totalnumber}{3}
\renewcommand\textfraction{.2}
\renewcommand\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.7}
\renewcommand\dblfloatpagefraction{.5}
\if@twoside
  \def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
    \def\sectionmark##1{%
      \markboth {\MakeUppercase{%
        \ifnum \c@secnumdepth >\z@
          \thesection\quad
        \fi
        ##1}}{}}%
    \def\subsectionmark##1{%
      \markright {%
        \ifnum \c@secnumdepth >\@ne
          \thesubsection\quad
        \fi
        ##1}}}
\else
  \def\ps@headings{%
    \let\@oddfoot\@empty
    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\markboth
    \def\sectionmark##1{%
      \markright {\MakeUppercase{%
        \ifnum \c@secnumdepth >\m@ne
          \thesection\quad
        \fi
        ##1}}}}
\fi
\def\ps@myheadings{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\@gobbletwo
    \let\sectionmark\@gobble
    \let\subsectionmark\@gobble
    }
  \if@titlepage
  \newcommand\maketitle{\begin{titlepage}%
  \let\footnotesize\small
  \let\footnoterule\relax
  \let \footnote \thanks
  \null\vfil
  \vskip 60\p@
  \begin{center}%
    {\LARGE \@title \par}%
    \vskip 3em%
    {\large
     \lineskip .75em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
      \vskip 1.5em%
    {\large \@date \par}%       % Set date in \large size.
  \end{center}\par
  \@thanks
  \vfil\null
  \end{titlepage}%
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
}
\else
\newcommand\maketitle{\par
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hb@xt@1.8em{%
                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@maketitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@maketitle
    \fi
    \thispagestyle{plain}\@thanks
  \endgroup
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
}
\def\@maketitle{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}
\fi
\setcounter{secnumdepth}{3}
\newcounter {part}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\renewcommand \thepart {\@Roman\c@part}
\renewcommand \thesection {\@arabic\c@section}
\renewcommand\thesubsection   {\small \thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
\newcommand\part{%
   \if@noskipsec \leavevmode \fi
   \par
   \addvspace{4ex}%
   \@afterindentfalse
   \secdef\@part\@spart}

\def\@part[#1]#2{%
    \ifnum \c@secnumdepth >\m@ne
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >\m@ne
       \Large\bfseries \partname\nobreakspace\thepart
       \par\nobreak
     \fi
     \huge \bfseries #2%
     \markboth{}{}\par}%
    \nobreak
    \vskip 3ex
    \@afterheading}
\def\@spart#1{%
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \normalfont
     \huge \bfseries #1\par}%
     \nobreak
     \vskip 3ex
     \@afterheading}
     
    
\newcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\Large\sf\bfseries}}
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize\sf\bfseries}}
\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize\sf\bfseries}}
\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\normalfont\normalsize\sf\bfseries}}
\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\normalfont\normalsize\sf\bfseries}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                      
\newcommand{\acknowtit}{\ifthenelse{\equal{\@lang}{rus}}{�������������}{Acknowledgment}}
\newcommand{\acknowstit}{\ifthenelse{\equal{\@lang}{rus}}{�������������}{Acknowledgments}}                                      
\newcommand\acknowledgments{\@startsection{subparagraph}{5}{1em}
  {10pt plus 4pt minus 2pt}{-1em}
  {\small {\bfseries \acknowstit.}\small}}
  \let\acknowledgements=\acknowledgments
\newcommand\acknowledgment{\@startsection{subparagraph}{5}{1em}
  {10pt plus 4pt minus 2pt}{-1em}
  {\small {\bfseries \acknowtit.}\small}}
  \let\acknowledgement=\acknowledgment                                      
                                      
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
                                      
\if@twocolumn
  \setlength\leftmargini  {2em}
\else
  \setlength\leftmargini  {2.5em}
\fi
\leftmargin  \leftmargini
\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
\if@twocolumn
  \setlength\leftmarginv  {.5em}
  \setlength\leftmarginvi {.5em}
\else
  \setlength\leftmarginv  {1em}
  \setlength\leftmarginvi {1em}
\fi
\setlength  \labelsep  {.5em}
\setlength  \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty
\renewcommand\theenumi{\@arabic\c@enumi}
\renewcommand\theenumii{\@alph\c@enumii}
\renewcommand\theenumiii{\@roman\c@enumiii}
\renewcommand\theenumiv{\@Alph\c@enumiv}
\newcommand\labelenumi{\theenumi.}
\newcommand\labelenumii{(\theenumii)}
\newcommand\labelenumiii{\theenumiii.}
\newcommand\labelenumiv{\theenumiv.}
\renewcommand\p@enumii{\theenumi}
\renewcommand\p@enumiii{\theenumi(\theenumii)}
\renewcommand\p@enumiv{\p@enumiii\theenumiii}
\newcommand\labelitemi{\textbullet}
\newcommand\labelitemii{\normalfont\bfseries \textendash}
\newcommand\labelitemiii{\textasteriskcentered}
\newcommand\labelitemiv{\textperiodcentered}
\newenvironment{description}
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                        \let\makelabel\descriptionlabel}}
               {\endlist}
\newcommand*\descriptionlabel[1]{\hspace\labelsep
                                \normalfont\bfseries #1}
\if@titlepage
  \newenvironment{abstract}{%
      \titlepage
      \null\vfil
      \@beginparpenalty\@lowpenalty
      \begin{center}%
        \bfseries \abstractname
        \@endparpenalty\@M
      \end{center}}%
     {\par\vfil\null\endtitlepage}
\else
  \newenvironment{abstract}{%
      \if@twocolumn
        \section*{\abstractname}%
      \else
        \small
        \begin{center}%
          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
        \end{center}%
        \quotation
      \fi}
      {\if@twocolumn\else\endquotation\fi}
\fi
\newenvironment{verse}
               {\let\\\@centercr
                \list{}{\itemsep      \z@
                        \itemindent   -1.5em%
                        \listparindent\itemindent
                        \rightmargin  \leftmargin
                        \advance\leftmargin 1.5em}%
                \item\relax}
               {\endlist}
\newenvironment{quotation}
               {\list{}{\listparindent 1.5em%
                        \itemindent    \listparindent
                        \rightmargin   \leftmargin
                        \parsep        \z@ \@plus\p@}%
                \item\relax}
               {\endlist}
\newenvironment{quote}
               {\list{}{\rightmargin\leftmargin}%
                \item\relax}
               {\endlist}
\if@compatibility
\newenvironment{titlepage}
    {%
      \if@twocolumn
        \@restonecoltrue\onecolumn
      \else
        \@restonecolfalse\newpage
      \fi
      \thispagestyle{empty}%
      \setcounter{page}\z@
    }%
    {\if@restonecol\twocolumn \else \newpage \fi
    }
\else
\newenvironment{titlepage}
    {%
      \if@twocolumn
        \@restonecoltrue\onecolumn
      \else
        \@restonecolfalse\newpage
      \fi
      \thispagestyle{empty}%
      \setcounter{page}\@ne
    }%
    {\if@restonecol\twocolumn \else \newpage \fi
     \if@twoside\else
        \setcounter{page}\@ne
     \fi
    }
\fi
\newcommand\appendix{\par
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \gdef\thesection{\@Alph\c@section}}
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\renewcommand \theequation {\@arabic\c@equation}
\newcounter{figure}
\setcounter{figure}{0}
\renewcommand \thefigure {\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figurename\nobreakspace\thefigure}
\newenvironment{figure}
               {\@float{figure}}
               {\end@float}
\newenvironment{figure*}
               {\@dblfloat{figure}}
               {\end@dblfloat}
\newcounter{table}
\renewcommand\thetable{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tablename\nobreakspace\thetable}
\newenvironment{table}
               {\@float{table}}
               {\end@float}
\newenvironment{table*}
               {\@dblfloat{table}}
               {\end@dblfloat}
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
\setlength\belowcaptionskip{0\p@}
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1: #2}%
  \ifdim \wd\@tempboxa >\hsize
    #1: #2\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\ident}[5]{\gdef\@jour{#1}\gdef\@vol{#2}\gdef\@num{#3}\gdef\@year{#4}\gdef\@doi{#5}%

%%\ifthenelse{\equal{\cit@label}{S}}
%%{\gdef\cin@ser{S}}
%%{\gdef\cin@ser{0}}
\ifnum\@num<10
   \gdef\cin@num{0\@num}
\else
   \gdef\cin@num{\@num}
\fi
\gdef\cit@number{\@jour\@vol0\cin@num}%
%%\let\cit@number\cin@number

\ifthenelse{\equal{\@jour}{ES}}{\centerline{\small\sf RUSSIAN JOURNAL OF EARTH SCIENCES}% 
\centerline{\small\sf vol.\space\@vol,\space\@num,\space\@year,\space doi:\space 10.2205/\@doi}}%
{\ifthenelse{\equal{\@jour}{BS}}{\centerline{\small\sf GEOINFORMATICS RESEARCH PAPERS}\centerline{\scriptsize\sf publ.\space\cit@number,\space\@year,\space doi:\space 10.2205/\@doi}}
{\centerline {\small\sf UNKNOWN JOURNAL CODE}}\vspace*{2pc}
} 
}

\setcounter{secnumdepth}{0}
\newcounter{lastref}       %  number of total references
\setcounter{lastref}{0}
\newcounter{flbl}           % counter/marker for floatsection
\setcounter{flbl}{0}
\newcounter{flblfin}           % counter/marker for floatsection
\setcounter{flblfin}{0}

\renewcommand{\title}[1]{\gdef\@@title{#1} \centerline{\parbox{100mm}{\large\sf\bfseries \@@title}}\vspace*{2pc}}


\renewcommand{\author}[1]{\gdef\@@author{#1} \centerline{\parbox{100mm}{\raggedright\baselineskip=6pt \sl \@@author}}\vspace*{1.5pc}}

\newcommand{\affil}[2]{\gdef\af@num{#1}\gdef\af@name{#2} \centerline{\parbox{100mm}{\small\sf $^{\af@num}$\af@name}}\vspace*{0.5pc}}

\newcommand{\cpright}[2]{\gdef\cp@owner{#1}\gdef\cp@year{#2} 
\gdef\cp@line{%
\ifthenelse{\equal{\cp@owner}{\empty}}
{\ifthenelse{\equal{\@jour}{ES} \or \equal{\@jour}{BS}}%
{\gdef\cp@owner{Geophysical Center RAS}}{\gdef\cp@owner{This article is not copyrighted}}
\copyright\space\cp@year\space\cp@owner}
{\copyright\space\cp@year\space\cp@owner}
}}%
%%                                                                                                                                      3pc
\renewcommand{\abstract}[1]{\gdef\@@abst{#1} \vfill{\centerline{\parbox{100mm}{\rule{58mm}{1pt}\\\small\sf \cp@line}}}\newpage \vspace*{1pc}\centerline{\parbox{100mm}%
{\raggedright \sf {\large\bfseries Abstract.} \@@abst}}

%
%   Redefining commands for linking float anchors to float targets or floatsection
\ifthenelse{\equal{\hyptest}{hyper}}{%      activate hyperlinks defined in this package
    \renewcommand{\tabref}[1]{\gdef\tab@num{##1}%
    \hyperref{}{floats}{tab\tab@num}{\tablename\nobreakspace\tab@num}}
    \renewcommand{\figref}[1]{\gdef\fig@num{##1}%
    \hyperref{}{floats}{fig\fig@num}{\figurename\nobreakspace\fig@num}}
%    \ifnum\value{flblfin}=0
%        \renewcommand{\tabrefs}[1]{\gdef\tab@nums{##1}{\tablename s~\tab@nums}
%        \typeout{}%
%        \typeout{EBOOK WARNING!!! Hyperlink to \tablename s \tab@nums\space  can not be set. Add List of Floats Section.}%
%        \ifthenelse{\equal{\warnmes}{silent}}{}{\typein{Press ENTER to continue...}}}%
%        \renewcommand{\figrefs}[1]{\gdef\fig@nums{##1}{\figurename s\nobreakspace\fig@nums}
%        \typeout{}%
%        \typeout{EBOOK WARNING!!! Hyperlink to \figurename s \fig@nums\space  can not be set. Add List of Floats Section.}%
%        \ifthenelse{\equal{\warnmes}{silent}}{}{\typein{Press ENTER to continue...}}}%
%   \else
%        \renewcommand{\tabrefs}[1]{\gdef\tab@nums{##1}
%        \hyperref{}{floats}{section}{\tablename s\nobreakspace\tab@nums}}
%        \renewcommand{\figrefs}[1]{\gdef\fig@nums{##1}%
%        \hyperref{}{floats}{section}{\figurename s\nobreakspace\fig@nums}}
%    \fi
}{%      supress hyperlinks defined in hyperref class
    \renewcommand{\href}[2]{\gdef\hr@lnk{##2} \hr@lnk}%
}


\ifthenelse{\equal{\@jour}{ES}}{%
\vfill
\centerline{\parbox{100mm}{%
\noindent\rule{10pc}{1pt}\vspace*{5pt}\\
\footnotesize\baselineskip=6pt   This is the e-book version of the article, published in Russian Journal of Earth Sciences
(doi:\href{http://dx.doi.org/10.2205/\@doi}{10.2205/\@doi}). It is generated from the original source file using LaTeX's
{\bfseries\itshape ebook.cls} class.}}
}{%
\ifthenelse{\equal{\@jour}{BS}}{%
\vfill
\centerline{\parbox{100mm}{%
\noindent\rule{10pc}{1pt}\vspace*{5pt}\\
\footnotesize\baselineskip=6pt   This is the e-book version of the article, published in Geoinformatics Research Papers Series
(doi:\href{http://dx.doi.org/10.2205/\@doi}{10.2205/\@doi}). It is generated from the original source file using LaTeX's
{\bfseries\itshape ebook.cls} class.}}
}{}}}%






\newcommand{\figurewidth}[1]{\gdef\fig@wd{#1}}
\newcommand{\tablewidth}[1]{\gdef\tab@wd{#1}}

%%      Figure caption with one argument
\newcommand{\fcaplabel}[1]{\gdef\f@body{#1} \addtocounter{figure}{1}\centerline{\parbox{\fig@wd}{%
\vspace*{-2\baselineskip}\hyperdef{floats}{fig\thefigure}{}\vspace*{2\baselineskip}%
\baselineskip=6pt \sf {\bfseries \figurename\nobreakspace\thefigure.}\space {\small \f@body}}}}

%%      Figure caption with two arguments
\newcommand{\fdbllabel}[2]{\gdef\f@suf{#1}\gdef\f@body{#2} \addtocounter{figure}{1}\centerline{\parbox{\fig@wd}{%
\vspace*{-2\baselineskip}\hyperdef{floats}{fig\thefigure}{}\vspace*{2\baselineskip}%
\baselineskip=6pt \sf {\bfseries \figurename\nobreakspace\thefigure\f@suf.}\space {\small \f@body}}}}

%%      Table caption with one argument
\newcommand{\ftablabel}[1]{\gdef\t@body{#1} \addtocounter{table}{1}\centerline{\parbox{\tab@wd}{%
\vspace*{-2\baselineskip}\hyperdef{floats}{tab\thetable}{}\vspace*{2\baselineskip}%
\baselineskip=6pt \sf {\bfseries \tablename\nobreakspace\thetable.}\space {\small \t@body}}}}


%%  Adding color to reference anchors
\newcommand{\itc}[1]{%
\textcolor{brown}{\itshape #1}}%

%   The following macro inserts anchors into the text linked to reference targets
\newcommand{\reflink}[2]{%
\ifthenelse{\equal{\hyptest}{hyper}}{\hyperref{}{reference}{#1}{#2}}{#2}}%


%%%\newcommand{\figref}[1]{\gdef\fig@ref{#1}Figure #1.}
\newcommand{\tabref}[1]{\gdef\tab@num{#1}{\tablename\nobreakspace#1}}
\newcommand{\figref}[1]{\gdef\fig@num{#1}{\figurename\nobreakspace#1}}

%%%%%%%%%%%%%%%%%% Modified fragment from ROTATING.STY %%%%%%%%%%%%%%%%%%%%%%%%
%\renewenvironment{sidewaysfigure*}
%    {\@rotdblfloat{figure}\ifthenelse{\equal{\hyptest}{hyper}}{%
%    \vspace*{-.5\figurewidth}\addtocounter{figure}{1}{\hyperdef{floats}{fig\thefigure}{}}%
%    \addtocounter{figure}{-1}\vspace*{.5\figurewidth}}{}}%
%    {\end@rotdblfloat}
%\renewenvironment{sidewaystable*}
%    {\@rotdblfloat{table}\ifthenelse{\equal{\hyptest}{hyper}}{%
%    \vspace*{-.5\tablewidth}\addtocounter{table}{1}{\hyperdef{floats}{tab\thetable}{}}%
%    \addtocounter{table}{-1}\vspace*{.5\tablewidth}}{}}%
%    {\end@rotdblfloat}
%%%%%%%%%%%%%%%%%% Modified fragment from ROTATING.STY   END  %%%%%%%%%%%%%%%%%

\newcommand{\setimage}[5]{%
\gdef\h@bias{#1}\gdef\v@bias{#2}%
\gdef\h@imsize{#3}\gdef\v@imsize{#4}\gdef\im@name{#5}%
\addtocounter{figure}{1}{\hyperdef{floats}{fig\thefigure}{}}\addtocounter{figure}{-1}%
\ifthenelse{\equal{\pdfout}{pdf}}%
{\IfFileExists{\im@name.png}
{\centerline{\ifthenelse{\equal{\h@bias}{\@empty}}{}{\hskip\h@bias}%
\ifthenelse{\equal{\v@imsize}{\@empty}}%
{\pdfimage width \h@imsize {\im@name.png}}%
{\ifthenelse{\equal{\h@imsize}{\@empty}}%
{\pdfimage height \v@imsize {\im@name.png}}%
{\pdfimage width \h@imsize height \v@imsize {\im@name.png}}}%
}}\\}{}}

  
  

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                   REFERENCES  Initialization                        %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%   Initialisation of reference fragments
%   The following commands are reserved for CrossRef block
\def\ini@auth{\@empty}
\newcommand{\refauth}[1]{\gdef\ref@auth{#1}%
\let\ini@auth\ref@auth%
\ifthenelse{\equal{\ref@auth}{\@empty}}{%
{\bf ERROR!!! Surname of first author missed!}%
\typeout{}%
\typeout{SIMPLETEXML ERROR!!! Surname of first author missed! Reset reference.}%
\ifthenelse{\equal{\warnmes}{silent}}{}%
{\typein{Press ENTER to continue...}}%
}{\ini@auth}}%
%\def\ini@title{\@empty}
\newcommand{\reftitle}[1]{\gdef\ref@title{#1}\ref@title}%%
%\let\ini@title\ref@title \ini@title}%
%\def\ini@jour{\@empty}
\newcommand{\refjour}[1]{\gdef\ref@jour{#1}\ref@jour}%%
%\let\ini@jour\ref@jour \ini@jour}%
%\def\ini@book{\@empty}
\newcommand{\refbook}[1]{\gdef\ref@book{#1}\ref@book}%%
%\let\ini@book\ref@book \ini@book}%
%\def\ini@vol{\@empty}
\newcommand{\refvol}[1]{\gdef\ref@vol{#1}\ref@vol}%%
%\let\ini@vol\ref@vol \ini@vol}%
%\def\ini@numb{\@empty}
\newcommand{\refnumb}[1]{\gdef\ref@numb{#1}\ref@numb}%%
%\let\ini@numb\ref@numb \ini@numb}%
%\def\ini@page{\@empty}
\newcommand{\refpage}[1]{\gdef\ref@page{#1}\ref@page}%%
%\let\ini@page\ref@page \ini@page}%
%\def\ini@year{\@empty}
\newcommand{\refyear}[1]{\gdef\ref@year{#1}\ref@year}%%
%\let\ini@year\ref@year \ini@year}%
\def\ini@target{\@empty}    %%  Start value of reference target ID

\newcommand{\nbdoi}[1]{%       Non-breaking DOIs
\gdef\part@one{#1}%
\ifthenelse{\equal{\hyptest}{hyper}}%
{\gdef\ref@doi{\part@one}\href{http://dx.doi.org/\part@one}{\part@one}}%
{\gdef\ref@doi{\part@one}\part@one}}%

\newcommand{\brdoi}[2]{%       Breaking DOIs
\gdef\part@one{#1}\gdef\part@two{#2}%
\ifthenelse{\equal{\hyptest}{hyper}}%
{\gdef\ref@doi{\part@one\part@two}\href{http://dx.doi.org/\part@one\part@two}{\part@one\linebreak\part@two}}%
{\gdef\ref@doi{\part@one\part@two}\part@one\linebreak\part@two}}%

\newcommand{\tagdoi}[3]{%         For  < and > delimiters in DOI: string
\gdef\ref@doi{#1}\gdef\part@one{#2}\gdef\part@two{#3}%
\def\ref@text{\ifthenelse{\equal{\part@two}{\@empty}}{\part@one}{\part@one\linebreak\part@two}}%
\ifthenelse{\equal{\hyptest}{hyper}}%
{\href{http://dx.doi.org/\ref@doi}{\ref@text}}%
{\ref@text}}

\newcommand{\crossref}[3]{%         For  < and > delimiters in DOI: string
\def\cr@link{#1}\def\part@one{#2}\def\part@two{#3}%
\def\ref@text{\ifthenelse{\equal{\part@two}{\@empty}}{\part@one}{\part@one\linebreak  \part@two}}
\ifthenelse{\equal{\hyptest}{hyper}}{%  hyper and non-break
\href{http://dx.doi.org/\cr@link}{\ref@text}}{\ref@text}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%        R E F E R E N C E S                                        %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\references{%
\ifthenelse{\equal{\@lang}{rus}}
{\@startsection{section}{1}{\z@}
{28pt plus 4pt minus 2pt}{17pt plus 3pt}
{\normalfont\Large\sf\bfseries}{����������}
\bgroup\small\parindent=\z@\parskip=\z@%
\def\refpar{\par\hangindent=1em\hangafter=1}}
{\@startsection{section}{1}{\z@}
{28pt plus 4pt minus 2pt}{17pt plus 3pt}
{\normalfont\Large\sf\bfseries}{References}
\bgroup\small\parindent=\z@\parskip=\z@%
\def\refpar{\par\hangindent=1em\hangafter=1}}
%   Cleaning of reference fragments
%   The following commands are reserved for CrossRef block
\let\ref@auth\@empty
\let\ref@title\@empty
\let\ref@jour\@empty
\let\ref@book\@empty
\let\ref@vol\@empty
\let\ref@numb\@empty
\let\ref@page\@empty
\let\ref@year\@empty
\let\ref@doi\@empty
\setcounter{lastref}{1}    %   Number of references
}%


%%%\newcommand{\reflink}[2]{%
%%%\ifthenelse{\equal{\hyptest}{hyper}}{\hyperref{}{reference}{#1}{#2}}{#2}}%

%\def\reference#1{\def\refpar{\par\hangindent=1em\hangafter=1}\relax\refpar%
%\ifnum\value{lastref}>1%
%\gdef\ref@targetid{#1}  \hyperdef{reference}{\ref@targetid}{}%
%\xmlblockfour
%\let\ref@auth\@empty
%\let\ref@title\@empty
%\let\ref@jour\@empty
%\let\ref@book\@empty
%\let\ref@vol\@empty
%\let\ref@numb\@empty
%\let\ref@page\@empty
%\let\ref@year\@empty
%\let\ref@doi\@empty
%\let\ini@target\ref@targetid%%
%\else%
%\gdef\ref@targetid{#1} \hyperdef{reference}{\ref@targetid}{}%
%\let\ini@target\ref@targetid%%
%\fi%
%\addtocounter{lastref}{1}
%}%%




\def\reference#1{\def\refpar{\par\hangindent=1em\hangafter=1}\relax\refpar%
\ifnum\value{lastref}>1%
\gdef\ref@targetid{#1}  \hyperdef{reference}{\ref@targetid}{}%
\let\ref@auth\@empty
\let\ref@title\@empty
\let\ref@jour\@empty
\let\ref@book\@empty
\let\ref@vol\@empty
\let\ref@numb\@empty
\let\ref@page\@empty
\let\ref@year\@empty
\let\ref@doi\@empty
\let\ini@target\ref@targetid%%
\else%
\gdef\ref@targetid{#1} \hyperdef{reference}{\ref@targetid}{}%
\let\ini@target\ref@targetid%%
\fi%
\addtocounter{lastref}{1}
}%%

\def\endreferences{%
%%\par\noindent\rule{7pc}{.3pt}\vskip-1pt
\par\centerline{\rule{15pc}{1pt}}\vskip-1pt
\refpar\egroup\vskip 1.5ex%
}

\def\noreferences{%
\par\centerline{\rule{15pc}{1pt}}
\vskip-1pt\vskip 1.5ex%
}




























%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%  Old fonts declarations  
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
\newcommand\@pnumwidth{1.55em}
\newcommand\@tocrmarg{2.55em}
\newcommand\@dotsep{4.5}
\setcounter{tocdepth}{3}
\newcommand\tableofcontents{%
    \section*{\contentsname
        \@mkboth{%
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
    \@starttoc{toc}%
    }
\newcommand*\l@part[2]{%
  \ifnum \c@tocdepth >-2\relax
    \addpenalty\@secpenalty
    \addvspace{2.25em \@plus\p@}%
    \setlength\@tempdima{3em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      {\leavevmode
       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
       \nobreak
       \if@compatibility
         \global\@nobreaktrue
         \everypar{\global\@nobreakfalse\everypar{}}%
      \fi
    \endgroup
  \fi}
\newcommand*\l@section[2]{%
  \ifnum \c@tocdepth >\z@
    \addpenalty\@secpenalty
    \addvspace{1.0em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
    \endgroup
  \fi}
\newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\newcommand\listoffigures{%
    \section*{\listfigurename}%
      \@mkboth{\MakeUppercase\listfigurename}%
              {\MakeUppercase\listfigurename}%
    \@starttoc{lof}%
    }
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\newcommand\listoftables{%
    \section*{\listtablename}%
      \@mkboth{%
          \MakeUppercase\listtablename}%
         {\MakeUppercase\listtablename}%
    \@starttoc{lot}%
    }
\let\l@table\l@figure
\newdimen\bibindent
\setlength\bibindent{1.5em}
\newenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty
\newenvironment{theindex}
               {\if@twocolumn
                  \@restonecolfalse
                \else
                  \@restonecoltrue
                \fi
                \twocolumn[\section*{\indexname}]%
                \@mkboth{\MakeUppercase\indexname}%
                        {\MakeUppercase\indexname}%
                \thispagestyle{plain}\parindent\z@
                \parskip\z@ \@plus .3\p@\relax
                \columnseprule \z@
                \columnsep 35\p@
                \let\item\@idxitem}
               {\if@restonecol\onecolumn\else\clearpage\fi}
\newcommand\@idxitem{\par\hangindent 40\p@}
\newcommand\subitem{\@idxitem \hspace*{20\p@}}
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
\renewcommand\footnoterule{%
  \kern-3\p@
  \hrule\@width.4\columnwidth
  \kern2.6\p@}
\newcommand\@makefntext[1]{%
    \parindent 1em%
    \noindent
    \hb@xt@1.8em{\hss\@makefnmark}#1}
\newcommand\contentsname{Contents}
\newcommand\listfigurename{List of Figures}
\newcommand\listtablename{List of Tables}
\newcommand\refname{References}
\newcommand\indexname{Index}
\newcommand\figurename{Figure}
\newcommand\tablename{Table}
\newcommand\partname{Part}
\newcommand\appendixname{Appendix}
\newcommand\abstractname{Abstract}
\def\today{\ifcase\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space\number\day, \number\year}
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
\pagestyle{plain}
\pagenumbering{arabic}
\if@twoside
\else
  \raggedbottom
\fi
\if@twocolumn
  \twocolumn
  \sloppy
  \flushbottom
\else
  \onecolumn
\fi

%%  Some additional definitions
\renewcommand{\deg}{\hbox{$^{\circ}$}}

%  The following stretches and shrinks interline spacing
\def\fitopen#1{\renewcommand{\baselinestretch}{#1}\small\normalsize}
\def\fitclose{\renewcommand{\baselinestretch}{1}\small\normalsize}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\latex}{\LaTeX 2$_{\displaystyle\varepsilon}$}
\newcommand{\newtex}{New\TeX\kern-.7em\lower.55ex\hbox{\sl XML}}
\newcommand{\ntex}{New\kern-.3em\hbox{T}\kern-.1667em\lower.5ex\hbox{E}\kern-.125em{\sl XML}}
\newcommand{\stexml}{Sem\kern-.2em\hbox{T}\kern-.1667em\lower.5ex\hbox{E}\kern-.125em{\slshape X}\kern-.11em{\slshape M}\kern-.1em{\slshape L}}
\newcommand{\simtexml}{Simple\kern-.2em\hbox{T}\kern-.1667em\lower.5ex\hbox{E}\kern-.125em{\slshape X}\kern-.11em{\slshape M}\kern-.1em{\slshape L}}
\newcommand{\astexml}{As\kern-.125em\hbox{T}\kern-.1667em\lower.5ex\hbox{E}\kern-.125em{\sl XML}}
\newcommand\permil{\hbox{$^{\rm o}$\kern-.3em/\kern-.2em$_{\rm oo}$}}
\newcommand\pag{P\kern-.75em\lower.18ex\hbox{--}}
\newcommand\kembry{C\kern-.65em\raise.2ex\hbox{\bf --}}
\newcommand{\agupaper}{$\cal AGU^{\mbox{\kern-1.4em\raise-0.2ex\vbox{\sffamily\slshape paper}}}$}
\newcommand{\eastlake}{$\cal EASTLAKE$}
\newcommand{\numero}{${\rm N}^{\underline{\rm o}}$}
\newcommand{\listbreak}{\\ \ldots}      %%  This sets breaks inside \enumerate environment

%%\newcommand{\elxpaper}{$\mathcal{ELX}${\mbox{\kern-1.2em\raise.1ex\vbox{\slshape paper}}}}

\newcommand{\elxpaper}{$\mathcal{ELX}$\kern-.2em{\itshape paper}}

%   The next command rotates cells inside tables
\newlength{\wdintebox}
\newcommand\vtcell[2][l]{%
    \ifthenelse{\equal{#1}{r}}{\vskip\baselineskip\centerline{\parbox{0pc}{%
    \begin{turnbox}{-90}{\mbox{#2}}\end{turnbox}}}}
    {\settowidth{\wdintebox}{#2}\vskip\wdintebox\vskip\baselineskip
    \centerline{\parbox{0pc}{\begin{turnbox}{90}{\mbox{#2}}\end{turnbox}}}}
}








\endinput
%%
%% End of file `ebook.cls'.
