summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cmpj
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/cmpj')
-rw-r--r--Master/texmf-dist/tex/latex/cmpj/cmpj.sty733
1 files changed, 733 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cmpj/cmpj.sty b/Master/texmf-dist/tex/latex/cmpj/cmpj.sty
new file mode 100644
index 00000000000..41628f19285
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cmpj/cmpj.sty
@@ -0,0 +1,733 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%% %%%
+%%% INSTITUTE FOR CONDENSED MATTER PHYSICS %%%
+%%% %%%
+%%% Style file for preparing an article for publication %%%
+%%% in the Condensed Matter Physics journal <cmp@icmp.lviv.ua>, %%%
+%%% http://www.icmp.lviv.ua/journal/ %%%
+%%% using LaTeX2e %%%
+%%% %%%
+%%% Last time modified: March 31, 2011 %%%
+%%% %%%
+%%% Copyright (C) 2011 by the Institute for Condensed Matter Physics %%%
+%%% of the National Academy of Sciences of Ukraine %%%
+%%% all rights reserved. %%%
+%%% %%%
+%%% This file can be redistributed and/or modified under the terms %%%
+%%% of the LaTeX Project Public License (lppl). %%%
+%%% %%%
+%%% Please report errors to: Andrij Shvaika %%%
+%%% ashv (a) icmp lviv ua %%%
+%%% %%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{cmpj}
+ [2011/03/31 v1.15
+ The Condensed Matter Physics journal package]
+\def\filename{cmpj.sty}
+\def\fileversion{1.15}
+\def\filedate{2011/03/31}
+\immediate\write32{This is '\filename' v\fileversion \space <\filedate> ^^J%
+ the Condensed Matter Physics journal package}
+
+\if\@ptsize0
+ \else
+ \PackageWarning{cmpj.sty}{Bad \noexpand\documentclass option, use 10pt}
+\fi
+
+\RequirePackage{fancyhdr}
+\RequirePackage{graphicx}
+\RequirePackage[square,comma,numbers,sort&compress]{natbib}
+\RequirePackage{ifthen}
+\RequirePackage[pdfstartview=FitH]{hyperref}
+%\def\href#1#2{}
+\RequirePackage{doi}
+
+\DeclareOption{preprint}{%
+ \renewcommand{\@ptsize}{2}%
+ \renewcommand\normalsize{%
+ \@setfontsize\normalsize\@xiipt{20}%{14.5}%
+ \abovedisplayskip 16\p@ \@plus3\p@ \@minus7\p@
+ \abovedisplayshortskip \z@ \@plus3\p@
+ \belowdisplayshortskip 9\p@ \@plus3.5\p@ \@minus3\p@
+ \belowdisplayskip \abovedisplayskip
+ \let\@listi\@listI}
+ \normalsize
+ \renewcommand\small{%
+ \@setfontsize\small\@xipt{18}%{13.6}%
+ \abovedisplayskip 14\p@ \@plus3\p@ \@minus6\p@
+ \abovedisplayshortskip \z@ \@plus3\p@
+ \belowdisplayshortskip 9\p@ \@plus3.5\p@ \@minus3\p@
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 9\p@ \@plus3\p@ \@minus5\p@
+ \parsep 4.5\p@ \@plus2\p@ \@minus\p@
+ \itemsep \parsep}%
+ \belowdisplayskip \abovedisplayskip
+ }
+ \renewcommand\footnotesize{%
+ \@setfontsize\footnotesize\@xpt\@xiipt
+ \abovedisplayskip 12\p@ \@plus2\p@ \@minus5\p@
+ \abovedisplayshortskip \z@ \@plus3\p@
+ \belowdisplayshortskip 8\p@ \@plus3\p@ \@minus3\p@
+ \def\@listi{\leftmargin\leftmargini
+ \topsep 6\p@ \@plus2\p@ \@minus2\p@
+ \parsep 3\p@ \@plus2\p@ \@minus\p@
+ \itemsep \parsep}%
+ \belowdisplayskip \abovedisplayskip
+ }
+ \renewcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
+ \renewcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
+ \renewcommand\large{\@setfontsize\large\@xivpt{22}}
+ \renewcommand\Large{\@setfontsize\Large\@xviipt{24}}
+ \renewcommand\LARGE{\@setfontsize\LARGE\@xxpt{25}}
+ \renewcommand\huge{\@setfontsize\huge\@xxvpt{30}}
+ \let\Huge=\huge
+ \if@twocolumn
+ \setlength\parindent{1em}
+ \else
+ \setlength\parindent{1.5em}
+ \fi
+ \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
+ \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
+ \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
+ \setlength\headheight{12\p@}
+ \setlength\headsep {25\p@}
+ \setlength\topskip {12\p@}
+ \setlength\footskip{30\p@}
+ \if@compatibility \setlength\maxdepth{4\p@} \else
+ \setlength\maxdepth{.5\topskip} \fi
+ \if@compatibility
+ \if@twocolumn
+ \setlength\textwidth{410\p@}
+ \else
+ \setlength\textwidth{390\p@}
+ \fi
+ \else
+ \setlength\@tempdima{\paperwidth}
+ \addtolength\@tempdima{-2in}
+ \setlength\@tempdimb{390\p@}
+ \if@twocolumn
+ \ifdim\@tempdima>2\@tempdimb\relax
+ \setlength\textwidth{2\@tempdimb}
+ \else
+ \setlength\textwidth{\@tempdima}
+ \fi
+ \else
+ \ifdim\@tempdima>\@tempdimb\relax
+ \setlength\textwidth{\@tempdimb}
+ \else
+ \setlength\textwidth{\@tempdima}
+ \fi
+ \fi
+ \fi
+ \if@compatibility\else
+ \@settopoint\textwidth
+ \fi
+ \if@compatibility
+ \setlength\textheight{36\baselineskip}
+ \else
+ \setlength\@tempdima{\paperheight}
+ \addtolength\@tempdima{-2in}
+ \addtolength\@tempdima{-1.5in}
+ \divide\@tempdima\baselineskip
+ \@tempcnta=\@tempdima
+ \setlength\textheight{\@tempcnta\baselineskip}
+ \fi
+ \addtolength\textheight{\topskip}
+ \if@twocolumn
+ \setlength\marginparsep {10\p@}
+ \else
+ \setlength\marginparsep{10\p@}
+ \fi
+ \setlength\marginparpush{7\p@}
+ \if@compatibility
+ \if@twoside
+ \setlength\oddsidemargin {21\p@}
+ \setlength\evensidemargin {59\p@}
+ \setlength\marginparwidth {85\p@}
+ \else
+ \setlength\oddsidemargin {39.5\p@}
+ \setlength\evensidemargin {39.5\p@}
+ \setlength\marginparwidth {68\p@}
+ \fi
+ \if@twocolumn
+ \setlength\oddsidemargin {30\p@}
+ \setlength\evensidemargin {30\p@}
+ \setlength\marginparwidth {48\p@}
+ \fi
+ \else
+ \if@twoside
+ \setlength\@tempdima {\paperwidth}
+ \addtolength\@tempdima {-\textwidth}
+ \setlength\oddsidemargin {.4\@tempdima}
+ \addtolength\oddsidemargin {-1in}
+ \setlength\marginparwidth {.6\@tempdima}
+ \addtolength\marginparwidth {-\marginparsep}
+ \addtolength\marginparwidth {-0.4in}
+ \else
+ \setlength\@tempdima {\paperwidth}
+ \addtolength\@tempdima {-\textwidth}
+ \setlength\oddsidemargin {.5\@tempdima}
+ \addtolength\oddsidemargin {-1in}
+ \setlength\marginparwidth {.5\@tempdima}
+ \addtolength\marginparwidth {-\marginparsep}
+ \addtolength\marginparwidth {-0.4in}
+ \addtolength\marginparwidth {-.4in}
+ \fi
+ \ifdim \marginparwidth >2in
+ \setlength\marginparwidth{2in}
+ \fi
+ \@settopoint\oddsidemargin
+ \@settopoint\marginparwidth
+ \setlength\evensidemargin {\paperwidth}
+ \addtolength\evensidemargin{-2in}
+ \addtolength\evensidemargin{-\textwidth}
+ \addtolength\evensidemargin{-\oddsidemargin}
+ \@settopoint\evensidemargin
+ \fi
+ \if@compatibility
+ \setlength\topmargin{27pt}
+ \else
+ \setlength\topmargin{\paperheight}
+ \addtolength\topmargin{-2in}
+ \addtolength\topmargin{-\headheight}
+ \addtolength\topmargin{-\headsep}
+ \addtolength\topmargin{-\textheight}
+ \addtolength\topmargin{-\footskip} % this might be wrong!
+ \addtolength\topmargin{-.5\topmargin}
+ \@settopoint\topmargin
+ \fi
+ \setlength\footnotesep{8.4\p@}
+ \setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
+ \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 4\p@}
+ \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+ \setlength\intextsep {14\p@ \@plus 4\p@ \@minus 4\p@}
+ \setlength\dblfloatsep {14\p@ \@plus 2\p@ \@minus 4\p@}
+ \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+ \setlength\@fptop{0\p@ \@plus 1fil}
+ \setlength\@fpsep{10\p@ \@plus 2fil}
+ \setlength\@fpbot{0\p@ \@plus 1fil}
+ \setlength\@dblfptop{0\p@ \@plus 1fil}
+ \setlength\@dblfpsep{10\p@ \@plus 2fil}
+ \setlength\@dblfpbot{0\p@ \@plus 1fil}
+ \setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
+ \def\@listi{\leftmargin\leftmargini
+ \parsep 5\p@ \@plus2.5\p@ \@minus\p@
+ \topsep 10\p@ \@plus4\p@ \@minus6\p@
+ \itemsep5\p@ \@plus2.5\p@ \@minus\p@}
+ \let\@listI\@listi
+ \@listi
+ \def\@listii {\leftmargin\leftmarginii
+ \labelwidth\leftmarginii
+ \advance\labelwidth-\labelsep
+ \topsep 5\p@ \@plus2.5\p@ \@minus\p@
+ \parsep 2.5\p@ \@plus\p@ \@minus\p@
+ \itemsep \parsep}
+ \def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii
+ \advance\labelwidth-\labelsep
+ \topsep 2.5\p@\@plus\p@\@minus\p@
+ \parsep \z@
+ \partopsep \p@ \@plus\z@ \@minus\p@
+ \itemsep \topsep}
+ \def\@listiv {\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv
+ \advance\labelwidth-\labelsep}
+ \def\@listv {\leftmargin\leftmarginv
+ \labelwidth\leftmarginv
+ \advance\labelwidth-\labelsep}
+ \def\@listvi {\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi
+ \advance\labelwidth-\labelsep}
+}%
+
+\def\eqsecnum{%
+ \@addtoreset{equation}{section} %
+ \def\theequation{\arabic{section}.\arabic{equation}}%
+}
+
+\DeclareOption{eqsecnum}{\eqsecnum}
+
+\ProcessOptions
+
+\def\hvsf{\sffamily\upshape}
+
+%% Sectioning %%
+
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\large\hvsf\bfseries\mathversion{bold}}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\hvsf\bfseries\mathversion{bold}}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\hvsf\bfseries\mathversion{bold}}}
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\hvsf\bfseries\mathversion{bold}}}
+\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\hvsf\bfseries\mathversion{bold}}}
+
+\def\@seccntformat#1{\csname the#1\endcsname.\hspace{0.5em}}
+
+%% Title %%
+
+\renewcommand\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\@title{}
+\def\@author{}
+\def\@address{}
+\def\fancy@author{}
+\def\issue@year{????}%
+\def\issue@volume{?}%
+\def\issue@number{?}%
+\def\article@number{?????}
+%\def\doi@number{10.XXXX/CMPJ.XX.XXXXX}
+
+\def\issue#1#2#3#4{\def\issue@year{#1}%
+ \def\issue@volume{#2}%
+ \def\issue@number{#3}%
+ \def\article@number{#4}%
+ }
+\def\article@type{}
+\def\articletype#1{\def\article@type{#1}}
+\def\article@page{\article@number-\arabic{page}}
+\def\doinumber#1{\def\doi@number{#1}}
+%\def\bibdoi#1{\href{http://dx.doi.org/#1}{doi:#1}}
+\def\bibdoi{\doi}
+
+\def\print@title{{\Large \hvsf\bfseries\upshape\mathversion{bold} \@title \par}}
+\def\print@author{%
+ \vskip 1.5em%
+ {\hvsf
+ \lineskip .5em%
+ \upshape\@author\par}
+ }
+\def\print@address{\vskip 0.5em
+ \footnotesize\hvsf\upshape\@address\par
+ }
+
+\def\@maketitle{%
+ \newpage
+ \noindent\parbox[t]{11cm}{%
+ \ifthenelse{\equal{1}{\pageref{last@page}}}{%
+ \footnotesize\hvsf Condensed Matter Physics,~\issue@year,\space%
+ Vol.~\issue@volume, No~\issue@number,\space%
+ \article@number:\space\pageref{last@page}%
+ }{%
+ \footnotesize\hvsf Condensed Matter Physics,~\issue@year,\space%
+ Vol.~\issue@volume, No~\issue@number,\space%
+ \article@number:\space1--\pageref{last@page}%
+ }%
+% \article@number\space[\pageref{last@page}\space page(s)]
+ \\ [0.6ex]
+ \@ifundefined{doi@number}{\phantom{DOI:\space10.XXXX/CMP.XX.XXXXX}}%
+ {DOI:\space\href{http://dx.doi.org/\doi@number}{\doi@number}}
+% {\doi{\doi@number}}
+% \phantom{\href{http://dx.doi.org/\doi@number}{DOI:\doi@number}}
+% \href{http://dx.doi.org/\doi@number}{DOI:\doi@number}
+ \\ [0.6ex]
+ \href{http://www.icmp.lviv.ua/journal}{http://www.icmp.lviv.ua/journal}}\hfill
+ \newlength{\@logoheight}
+ \newlength{\@logoysize}
+ \newlength{\@logodepth}
+ \setlength{\@logoysize}{28.4pt}
+ \setlength{\@logoheight}{2.5mm}
+ \setlength{\@logodepth}{\@logoysize}
+ \addtolength{\@logodepth}{-\@logoheight}
+ \raisebox{-\@logodepth}[\@logoheight][\@logodepth]{%
+ \setlength{\unitlength}{1pt}%
+ \begin{picture}(71.1,28.4)%
+ \put(0,0){\includegraphics[width=71.1pt,height=28.4pt]{cmp-logo}}%
+ \end{picture}%
+ }%
+ \par\vskip3pt\noindent\hrulefill\par\vskip 1ex\noindent\textsf{\bfseries\slshape\article@type}\par\vskip 2em
+ \noindent\null\hspace{\@titleindent}\parbox{\@titlewidth}{\raggedright%
+ \let \footnote \thanks
+ \@ifundefined{@title}{}{\print@title}%
+ \@ifundefined{@author}{}{\print@author}%
+ \@ifundefined{@address}{}{\print@address}%
+ \vskip 1em%
+ {\small\hvsf\upshape \@date}%
+ }%
+ \par
+ \vskip 1.5em}
+
+\renewenvironment{abstract}{%
+%%% \setcounter{page}{\start@page}\label{first@page}
+% \setcounter{page}{1}\label{first@page}
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \everypar{\parskip 3pt plus1pt minus2pt
+ \parindent=0pt\hangindent=\@titleindent\hangafter=0}
+ \noindent\footnotesize\hvsf\upshape\ignorespaces
+ \fi}
+ {\if@twocolumn\else\vskip 1.5em plus 0.2em \fi\upshape}
+
+\newcommand\keywords{\par\vskip 1ex
+ \noindent\raggedright\upshape{\hvsf\bfseries Key words:}\slshape\space}
+
+\newcommand\pacs{\par\vskip 1ex
+ \noindent\raggedright\upshape{\hvsf\bfseries PACS:}\slshape\space}
+
+\def\@copyright{}
+\def\author{\@dblarg{\make@author}}
+\long\def\make@author[#1]#2{\gdef\fancy@author{#1}\gdef\@author{#2}\gdef\@copyright{\copyright}}
+
+\def\copyright@size{\footnotesize}
+\def\copyright@author{\@author}
+\def\authorcopyright{\@ifnextchar[
+ \iauthorcopyright{\iauthorcopyright[\footnotesize]}}
+\def\iauthorcopyright[#1]#2{\gdef\copyright@size{#1}
+ \gdef\copyright@author{#2}}
+
+\def\title{\@dblarg{\make@title}}
+\long\def\make@title[#1]#2{\gdef\fancy@title{#1}\gdef\@title{#2}}
+
+\def\address#1{\gdef\@address{#1}}
+\def\addresses#1{\gdef\@address{%
+ \renewcommand{\labelenumi}{$^{\textsf{\scriptsize\arabic{enumi}}}$}
+ \setlength{\leftmargini}{0mm}
+ \setlength{\topsep}{0mm}
+ \setlength{\partopsep}{0mm}
+ \setlength{\parskip}{0mm}
+ \begin{enumerate}
+ \setlength{\itemsep}{0mm}
+ \setlength{\itemindent}{0em}
+ \setlength{\labelsep}{2pt}
+ #1
+ \end{enumerate}}}
+\newcommand{\addr}[1]{\item\label{#1}}
+
+\newcommand{\refaddr}[1]{$^{\textsf{\scriptsize\@refad{#1}}}$}
+
+\DeclareRobustCommand\@refad{\@@refadx}
+\def\@@refadx#1{%
+ \let\@@refada\@empty
+ \@@refad{\@for\@@refadb:=#1\do
+ {\@@refada\def\@@refada{,\penalty\@m}%
+ \edef\@@refadb{\expandafter\@firstofone\@@refadb\@empty}%
+ \@ifundefined{r@\@@refadb}{\mbox{\reset@font\bfseries ?}%
+ \G@refundefinedtrue
+ \@latex@warning
+ {Address reference `\@@refadb' undefined}}%
+ {\hbox{\ref{\@@refadb}}}}}}
+\def\@@refad#1{{#1}}
+
+%% Floats %%
+
+\long\def\@makecaption#1#2{%
+ \vskip\abovecaptionskip
+ \sbox\@tempboxa{{\small{\hvsf\bfseries #1.} #2}}%
+ \setlength{\@captionwidth}{0.9\hsize}
+ \ifdim \wd\@tempboxa >\@captionwidth
+ \centerline{\parbox{\@captionwidth}{\small{\hvsf\bfseries #1.} #2}}
+ \else
+ \global \@minipagefalse
+ \hb@xt@\@captionwidth{\hfil\box\@tempboxa\hfil}%
+ \fi
+ \vskip\belowcaptionskip}
+
+%% Bibliography %%
+
+% \renewenvironment{thebibliography}[1]
+% {\section*{\refname
+% \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
+% \small%
+% \list{\@biblabel{\@arabic\c@enumiv}}%
+% {\settowidth\labelwidth{\@biblabel{#1}}%
+% \leftmargin\labelwidth
+% \advance\leftmargin\labelsep
+% \parsep\z@\itemsep\z@
+% \@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\normalsize}
+% %\def\@biblabel#1{#1.}
+
+\bibsep=0pt
+\renewcommand{\bibnumfmt}[1]{#1.}
+\@ifundefined{bibfont}{\newcommand{\bibfont}{\small}}{\renewcommand{\bibfont}{\small}}
+
+% Collapse citation numbers to ranges.
+
+% \newcount\@tempcntc
+% \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
+% \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do
+% {\@ifundefined
+% {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea
+% \def\@citea{,\penalty\@m\ }{\bf ?}\@warning
+% {Citation `\@citeb' on page \thepage \space undefined}}%
+% {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}%
+% \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne
+% \@citea\def\@citea{,\penalty\@m}
+% \hbox{\csname b@\@citeb\endcsname}%
+% \else
+% \advance\@tempcntb\@ne
+% \ifnum\@tempcntb=\@tempcntc
+% \else\advance\@tempcntb\m@ne\@citeo
+% \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}}
+%
+% \def\@citeo{\ifnum\@tempcnta>\@tempcntb\else\@citea
+% \def\@citea{,\penalty\@m}%
+% \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else
+% {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else \def\@citea{--}\fi
+% \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi}
+
+%% Ukrainian Part %%
+
+\newcommand\makeukrtitle{
+ \begingroup
+ \if@twocolumn
+ \ifnum \col@number=\@ne
+ \@makeukrtitle
+ \else
+ \twocolumn[\@makeukrtitle]%
+ \fi
+ \else
+ \global\@botnum\z@ % Prevents figures from going at bottom of page.
+ \@makeukrtitle
+ \fi
+ \@thanks
+ \endgroup
+ \global\let\thanks\relax
+ \global\let\makeukrtitle\relax
+ \global\let\@makeukrtitle\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\print@ukrtitle{{\large \hvsf\bfseries\upshape\mathversion{bold} \@title \par}}
+
+\def\@makeukrtitle{%
+\par\vskip 1.5cm
+\noindent\null\hspace{\@titleindent}\parbox{\@titlewidth}{\raggedright%
+ \let \footnote \thanks
+ \@ifundefined{@title}{}{\print@ukrtitle}%
+ \@ifundefined{@author}{}{\print@author}%
+ \@ifundefined{@address}{}{\print@address}%
+% {\large \hvsf \bfseries\upshape \@title \par}%
+% \vskip 1em%
+% {\small\hvsf\upshape \@date}%
+ }%
+ \par
+ \vskip 1.5em}
+
+\newcommand{\ukrainianpart}{%
+ \ifx\l@ukrainian\@undefined
+ \@nopatterns{Ukrainian}
+ \adddialect\l@ukrainian0
+ \fi
+ \language\l@ukrainian
+ \lefthyphenmin=2 \righthyphenmin=2 % disallow x- or -x breaks; -xx OK
+ \lccode`\'=`\'
+ \tolerance=3000
+ \renewcommand{\encodingdefault}{T2A}
+% \renewcommand{\sfdefault}{ppr}
+ \renewcommand{\sfdefault}{\cyrsf}
+ \fontencoding{T2A}\selectfont
+ \renewcommand{\addr}[1]{\item}
+ \long\def\make@author[##1]##2{\gdef\@author{##2}}
+ \long\def\make@title[##1]##2{\gdef\@title{##2}}
+ \def\today{\number\day\space
+ \ifcase\month\or
+ \cyrs\cyrii\cyrch\cyrn\cyrya\or
+ \cyrl\cyryu\cyrt\cyro\cyrg\cyro\or
+ \cyrb\cyre\cyrr\cyre\cyrz\cyrn\cyrya\or
+ \cyrk\cyrv\cyrii\cyrt\cyrn\cyrya\or
+ \cyrt\cyrr\cyra\cyrv\cyrn\cyrya\or
+ \cyrch\cyre\cyrr\cyrv\cyrn\cyrya\or
+ \cyrl\cyri\cyrp\cyrn\cyrya\or
+ \cyrs\cyre\cyrr\cyrp\cyrn\cyrya\or
+ \cyrv\cyre\cyrr\cyre\cyrs\cyrn\cyrya\or
+ \cyrzh\cyro\cyrv\cyrt\cyrn\cyrya\or
+ \cyrl\cyri\cyrs\cyrt\cyro\cyrp\cyra\cyrd\cyra\or
+ \cyrg\cyrr\cyru\cyrd\cyrn\cyrya\fi
+ \space\number\year}
+ \renewenvironment{abstract}{%
+ \if@twocolumn
+ \section*{\abstractname}%
+ \else
+ \everypar{\parskip 3pt plus1pt minus2pt
+ \parindent=0pt\hangindent=\@titleindent\hangafter=0}
+ \noindent\footnotesize\hvsf\upshape\ignorespaces
+ \fi}
+ {\lastpage\if@twocolumn\else\vskip 2em\fi\upshape
+ \clearpage\if@twoside \ifodd\c@page\else
+ \hbox{}\def\fancy@author{}\def\article@page{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi
+ }
+ \renewcommand\keywords{\par\vskip 1ex
+ \noindent\raggedright\upshape{\hvsf\bfseries
+ \CYRK\cyrl\cyryu\cyrch\cyro\cyrv\cyrii\space
+ \cyrs\cyrl\cyro\cyrv\cyra:}\slshape\space}
+%%
+%%
+}
+
+\newcommand{\ukrclosing}[1]{\strut\vskip 2em\par\vskip 1.em
+\strut\hfill\includegraphics{#1}\lastpage\if@twocolumn\else\vskip 2em\fi\upshape
+ \clearpage\if@twoside \ifodd\c@page\else
+ \hbox{}\def\fancy@author{}\def\article@page{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
+
+%% General %%
+
+%\def\latsf{cmss}
+%\def\cyrsf{cmss}
+\IfFileExists{t1phv.fd}{
+ \def\latsf{phv}
+ }{
+ \def\latsf{cmss}
+ }
+\IfFileExists{t2appr.fd}{
+ \def\cyrsf{ppr}
+ }{
+ \def\cyrsf{cmss}
+ }
+
+\voffset -1in
+\hoffset -1in
+\textwidth 150mm
+\textheight 227mm
+\topmargin 30mm
+\headheight 15pt
+\headsep 6mm
+\addtolength{\topmargin}{-\headheight}
+\addtolength{\topmargin}{-\headsep}
+\oddsidemargin 35mm
+\setlength{\evensidemargin}{210mm}
+\addtolength{\evensidemargin}{-\textwidth}
+\addtolength{\evensidemargin}{-\oddsidemargin}
+\baselineskip 15pt
+\newlength{\@titlewidth}
+\newlength{\@titleindent}
+\setlength{\@titlewidth}{\textwidth}
+\setlength{\@titleindent}{15mm}
+\addtolength{\@titlewidth}{-\@titleindent}
+\newlength{\@captionwidth}
+%\setlength{\@captionwidth}{\hsize}
+%\addtolength{\@captionwidth}{-2\parindent}
+\renewcommand{\encodingdefault}{T1}
+%\renewcommand{\sfdefault}{phv}
+\renewcommand{\sfdefault}{\latsf}
+\frenchspacing
+\let\@afterindentfalse\@afterindenttrue
+
+\renewcommand\footnoterule{%
+ \kern-3\p@
+ \hrule height 0.8pt\@width.2\columnwidth
+ \kern2.6\p@}
+
+%% Headings %%
+
+%\def\sfphv{\fontencoding{T1}\fontfamily{phv}\selectfont\upshape}
+\def\sfphv{\fontencoding{T1}\fontfamily{\latsf}\selectfont\upshape}
+\newcounter{isspage}
+\def\issue@page@odd{}
+\def\issue@page@even{}
+\def\issuepage#1{%
+ \oddsidemargin 20mm%
+ \setlength{\evensidemargin}{210mm}%
+ \addtolength{\evensidemargin}{-\textwidth}%
+ \addtolength{\evensidemargin}{-\oddsidemargin}%
+ \setcounter{isspage}{#1}%
+ \addtocounter{isspage}{-1}%
+ \def\issue@page@odd{%
+ \stepcounter{isspage}%
+ {\unitlength1mm%
+ \begin{picture}(0,0)%
+% \put(30,10){\makebox(0,0)[l]{\vrule height 20pt}}%
+ \put(30.5,10){\makebox(0,0)[l]{\rotatebox{90}{\textsf{\theisspage}}}}%
+ \end{picture}}%
+ }%
+ \def\issue@page@even{%
+ \stepcounter{isspage}%
+ {\unitlength1mm%
+ \begin{picture}(0,0)%
+% \put(-30,10){\makebox(0,0)[l]{\vrule height 20pt}}%
+ \put(-30,10){\makebox(0,0)[r]{\rotatebox{90}{\textsf{\theisspage}}}}%
+ \end{picture}}%
+ }%
+}
+
+\lhead[\fancyplain{}{}]{\fancyplain{}{\footnotesize\sfphv\fancy@title}}
+\chead[\fancyplain{}{}]{\fancyplain{}{}}
+\rhead[\fancyplain{}{\footnotesize\sfphv\def\refaddr##1{}\fancy@author}]
+ {\fancyplain{}{}}
+\lfoot[\fancyplain{}{\issue@page@even\small\sfphv\article@page}]
+ {\fancyplain{\copyright@size\@copyright\space\parbox[t]{0.9\textwidth}
+ {\copyright@size\sfphv\def\refaddr##1{}\copyright@author}}{}}
+\cfoot[\fancyplain{}{}]{\fancyplain{}{}}
+\rfoot[\fancyplain{}{}]
+ {\fancyplain{\small\sfphv\article@page\issue@page@odd}{\small\sfphv\article@page\issue@page@odd}}
+\renewcommand{\headrulewidth}{0.4pt}
+\renewcommand{\footrulewidth}{0.4pt}
+\renewcommand{\plainheadrulewidth}{0pt}
+\renewcommand{\plainfootrulewidth}{0.4pt}
+\pagestyle{fancyplain}
+%%
+\newcommand{\rd}{\mathrm{d}}
+\newcommand{\re}{\mathrm{e}}
+\newcommand{\ri}{\mathrm{i}}
+\DeclareMathOperator{\Real}{Re}
+\DeclareMathOperator{\Img}{Im}
+\renewcommand{\Re}{\Real}
+\renewcommand{\Im}{\Img}
+\newcommand\lastpage{\label{last@page}}
+\lefthyphenmin=2
+\righthyphenmin=3
+%%
+\endinput