\def\update{2003/10/01 v1.0}


\NeedsTeXFormat{LaTeX2e} \ProvidesClass{msul}[\update\ Workhshop]

\newcommand\hmmax{0}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions \LoadClass{article}
%\RequirePackage{times}
%\RequirePackage[cmbold]{mathtime}
\RequirePackage[dvips]{graphics}
%\RequirePackage{pifont,latexsym,ifthen,theorem,rotating,calc}
\RequirePackage{pifont,latexsym,ifthen,theorem,calc}
\RequirePackage{amsfonts,amssymb,amsbsy,amsmath}
%\RequirePackage{bm}
\RequirePackage[errorshow]{tracefnt}

\renewcommand{\normalsize}{\fontsize{10}{12pt}\selectfont}
\renewcommand{\small}{\fontsize{9}{10pt}\selectfont}
\renewcommand{\footnotesize}{\fontsize{8}{9pt}\selectfont}
\renewcommand{\scriptsize}{\fontsize{8}{9.5pt}\selectfont}
\renewcommand{\tiny}{\fontsize{6}{7pt}\selectfont}
\renewcommand{\large}{\fontsize{11}{12pt}\selectfont}
\renewcommand{\Large}{\fontsize{14}{18pt}\selectfont}
\renewcommand{\LARGE}{\fontsize{17}{22pt}\selectfont}
\renewcommand{\huge}{\fontsize{20}{25pt}\selectfont}
\renewcommand{\Huge}{\fontsize{25}{30pt}\selectfont}

\newcommand{\titlesize}{\fontsize{15}{16pt}\selectfont}


%Page and general

\@twosidetrue \frenchspacing \flushbottom \hoffset -39pt
\parindent 1em
\textwidth 34pc
%For title page
\textheight 552pt%46 lines
\topmargin 0pt
%\headsep 12pt
\headsep 21pt \headheight 32pt \footskip 24pt \hyphenpenalty=1000
\columnsep 2pc \pretolerance=8000 \tolerance=9500 \hbadness=8000
\vbadness=9000 \setlength{\abovedisplayskip}{8\p@ plus2\p@
minus5\p@} \setlength{\belowdisplayskip}{\abovedisplayskip}
\setlength{\abovedisplayshortskip}{\z@ plus3\p@}
\setlength{\belowdisplayshortskip}{6\p@ plus3\p@ minus3\p@}
\setcounter{topnumber}{5}
\def\topfraction{1}
\setcounter{bottomnumber}{5}
\def\bottomfraction{.8}
\setcounter{totalnumber}{10}
\def\textfraction{0}
\def\floatpagefraction{.8}

\theorembodyfont{\itshape}
\theoremheaderfont{\normalfont\bfseries}
\setlength{\theorempreskipamount}{6pt plus 2pt}
\setlength{\theorempostskipamount}{6pt plus 2pt}

\begingroup \makeatletter
\gdef\th@plain{\normalfont\itshape
  \def\@begintheorem##1##2{%
        \item[\hskip\labelsep \theorem@headerfont ##1\ {##2.}]}%
\def\@opargbegintheorem##1##2##3{%
   \item[\hskip\labelsep \theorem@headerfont ##1\ ##2\ (##3)]}}
\endgroup

\def\refname{references}
\def\figurename{{Figure}}
\def\tablename{{Table}}
\def\abstractname{ABSTRACT}

% Title page

% print integer as a zero filled 2 digit field
% but if S[1-9], print it anyway [v1.1]
%\def\twodigits#1{\ifnum #1 < 10{0#1}\else{#1}\fi} % the previous version
\def\twodigits#1{\def\issuenumber{#1}%
                 \def\si{S1}\def\sii{S2}\def\siii{S3}%    )
                 \def\siv{S4}\def\sv{S5}\def\svi{S6}%     )constants
                 \def\svii{S7}\def\sviii{S8}\def\six{S9}% )
                 \ifx\issuenumber\si{#1}\else%
                 \ifx\issuenumber\sii{#1}\else%
                 \ifx\issuenumber\siii{#1}\else%
                 \ifx\issuenumber\siv{#1}\else%
                 \ifx\issuenumber\sv{#1}\else%   ---test nine special cases
                 \ifx\issuenumber\svi{#1}\else%
                 \ifx\issuenumber\svii{#1}\else%
                 \ifx\issuenumber\sviii{#1}\else%
                 \ifx\issuenumber\six{#1}\else%
                 \ifnum #1 < 10{0#1}\else{#1}\fi% the ordinary numeric case
                 \fi\fi\fi\fi\fi\fi\fi\fi\fi}


% print integer as a zero filled 4 digit field
\def\fourdigits#1{\ifnum #1 < 10{000#1}\else
  \ifnum #1 < 100{00#1}\else
    \ifnum #1 < 1000{0#1}\else{#1}\fi
  \fi
\fi}

% add an assumed century to a twodigit year [v1.1]
\def\century#1{\ifnum #1 <90{20#1}\else{19#1}\fi}

%\NME{first page}{last page}{vol}{issue}{year}
\def\FLD#1#2#3#4#5{
\gdef\@mymainhead{%\parbox[t]{\textwidth-3cm}
{{\footnotesize 
11th Annual Workshop on Numerical Methods for Problems with Layer Phenomena}\\
%\footnotesize{\it Novi Sad, Serbia, 20--21 March, 2014}
}} 
\setcounter{page}{#1}
\newcounter{pageone}
\setcounter{pageone}{#1}
\newcounter{lastpage}
\setcounter{lastpage}{#2}
\newcounter{pages}
\setcounter{pages}{1} \addtocounter{pages}{\thelastpage}
\addtocounter{pages}{-\thepageone} \gdef\mymainfoot{$\phantom{0}$}
\gdef\@mycopyright{}
\def\thevolume{#3}
\def\theissue{#4}
\def\theyear{#5}
}

\gdef\received#1{\gdef\@myreceive{}}
\gdef\revised#1{\gdef\@myrevise{}}
\gdef\accepted#1{\gdef\@myaccepted{Accepted #1}}
\gdef\noreceived#1{\gdef\@myreceive{#1}}
\gdef\norevised#1{\gdef\@myrevise{#1}}
\gdef\noaccepted#1{\gdef\@myaccepted{#1}}

\def\ps@myplain{\let\@mkboth\@gobbletwo
\def\@oddhead{\normalsize \hphantom{\thepage}{\footnotesize 11th Annual Workshop on Numerical Methods for Problems with Layer Phenomena}\hfill\normalsize\thepage}
\def\@evenhead{\normalsize \thepage\hfill{\footnotesize{\it Novi Sad, Serbia, 20--21 March, 2014}}
\normalsize\hphantom{\thepage}}
\def\@oddfoot{\parbox[t]{\textwidth}{%
\small%\mymainfoot
\phantom{1}\hfill\small\textit{\@myreceive}\\
%\small\@mycopyright\hfill\small\textit{\@myrevise}\\
\phantom{1}\hfill\small\textit{\@myaccepted} }}
\def\@evenfoot{}
}


\thispagestyle{myplain}

\def\runningheads#1#2{\markboth{\uppercase{#1}}{\uppercase{#2}}}

\def\ps@fld{
\let\@mkboth\@gobbletwo
\def\@evenhead{\normalsize\thepage\hfill{\footnotesize Novi Sad, Serbia, 20--21 March, 2014}\hfill\normalsize \hphantom{\thepage}}
\def\@oddhead{\normalsize \hphantom{\thepage}\hfill{\footnotesize 11th Annual Workshop on Numerical Methods for Problems with Layer Phenomena}\hfill\normalsize\thepage}
\def\@evenfoot{\parbox[t]{\textwidth}{{\footnotesize \@mycopyright}%
\hfill\footnotesize{\it \ }\footnotesize\\ %
}}
\def\@oddfoot{\@evenfoot}
}

\pagestyle{fld}


%%%%%%%%%
%Title, author, etc

\def\title#1{
\vspace*{10pt}\begin{center}%
\titlesize{#1}\par
\vspace*{10pt}}

\def\author#1{\vspace*{12pt}\large{#1}\par}

\def\address#1{\vspace*{12pt}\footnotesize\textit{#1}\end{center}\par\vspace*{25pt}}

\def\summary{\vspace*{1pt}\hspace{-6pt}\hfill{Abstract}\hfill\mbox{}\\[9pt]%
\noindent\ignorespaces\small}%

\def\abstract{\summary}

\def\nosections{\vspace{30\p@ plus12\p@ minus12\p@}
\noindent\ignorespaces}

\newenvironment{shortabstract}[1]{\vspace{1pt}\noindent{\noindent{#1}} \normalsize\par\vskip 6pt\noindent}

\def\keywords#1{\vspace{12pt}\noindent{\textsc{key words:}\small%
\quad #1}\vskip 0.1pt \normalsize\par\noindent}

\def\ams#1{\vspace{0pt}\noindent{\textsc{ams subject classifications:}\small%
\quad #1}\vskip 0.1pt \normalsize\par\noindent}

%define section heads etc for style


\def\thesection{\arabic{section}}
\def\thesubsection{\thesection.\arabic{subsection}}
\def\thesubsubsection{\thesubsection.\arabic{subsubsection}}
%\def\theparagraph{\thesubsubsection.\arabic{paragraph}}
%\def\thesubparagraph{\theparagraph.\arabic{subparagraph}}

\renewcommand{\section}{\def\@afterheading{\global\@nobreaktrue
      \everypar{\if@nobreak
                   \global\@nobreakfalse
                   \clubpenalty \@M
                   \if@afterindent \else {\setbox\z@\lastbox}\fi
                 \else \clubpenalty \@clubpenalty
                    \everypar{}\fi}}
\makeatletter
\renewcommand{\@seccntformat}[1]{{\csname the##1\endcsname.}\hspace{0.5em}}
\makeatother \@startsection
{section}%           the name
{1}%                 the level
{\z@}%               the indent
{-24pt plus -4pt minus -2pt}%  the beforeskip
{+12pt plus -3pt minus -1pt}%     the afterskip
{\centering\normalsize}}% the style
%%
%%
\def\subsection{%
\@startsection
{subsection}%           the name
{2}%                 the level
{\z@}%               the indent
{-12pt plus -2pt minus -1pt}%  the beforeskip
{+6pt plus -1pt minus -1pt}%     the afterskip
{\normalsize\itshape}}% the style

\def\subsubsection{%
\@startsection
{subsubsection}%           the name
{3}%                 the level
{\z@}%               the indent
{-12pt plus -2pt minus -1pt}%  the beforeskip
{-1em}%     the afterskip
{\normalsize\itshape}}% the style

%\def\paragraph{%
%\@startsection
%{paragraph}%           the name
%{4}%                 the level
%{\z@}%               the indent
%{-12pt plus -2pt minus -1pt}%  the beforeskip
%{-1em}%     the afterskip
%{\normalsize\itshape}}% the style

%%%%%%%%%%%%%%%%
\def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
      \advance\@enumdepth \@ne
      \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
      {\csname label\@enumctr\endcsname}{\usecounter
        {\@enumctr}\itemsep 0pt\parsep 0pt
         \def\makelabel##1{\hss\llap{##1}}}\fi}

\let\endenumerate =\endlist

\def\itemize{\ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}{\itemsep 0pt\parsep 0pt
\def\makelabel##1{\hss\llap{##1}}}\fi}

\let\enditemize =\endlist
%%%%%%%%%

\setlength{\skip\footins}{2.5pc}
\renewcommand{\footnoterule}{\noindent\rule{5pc}{0.25pt}\vspace*{6pt}}

\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\long\def\@makefntext#1{\parindent 1em%
\noindent{$\m@th^{\@thefnmark}$}#1}

\def\corraddr#1{\footnotetext[1]{Correspondence to: #1}\stepcounter{footnote}}
\def\corrauth{\footnotemark[1]}

\def\cgsn#1#2{\footnotetext[0]{\\
Contract/grant sponsor: #1; contract/grant number: #2}}
\def\cgs#1{\footnotetext[0]{\\
Contract/grant sponsor: #1}}

\def\affilnum#1{${}^{#1}$}
\def\affil#1{${}^{#1}$}

%%%%%%%%%%

\newlength{\figcaptionwidth}
\newlength{\figcaphshift}

\def\figcap#1{\setlength{\figcaptionwidth}{#1}}
\figcap{\textwidth}

\long\def\@makecaption#1#2{\vspace*{10pt}{%
\setlength{\figcaphshift}{(\textwidth-\figcaptionwidth)/2}
\noindent\hspace*{\figcaphshift}\parbox{\figcaptionwidth}{%
\setbox0=\vbox{\small\rm #1.\ #2}%
\setbox0=\vbox{\unvbox0 \setbox1=\lastbox%
\setbox1=\hbox to \figcaptionwidth{\hfill\unhbox1\hfill}\box1}%
\box0}}\par}

\def\en{\phantom{0}}

\newlength{\captionwidth}
\newlength{\tabcaphshift}

\def\tabcap#1{\setlength{\captionwidth}{#1}}

\long\def\@maketabcaption#1#2{{%
\setlength{\tabcaphshift}{(\textwidth-\captionwidth)/2}
\noindent\hspace*{\tabcaphshift}\parbox{\captionwidth}{%
\setbox0=\vbox{\small\rm #1.\ #2}%
\setbox0=\vbox{\unvbox0 \setbox1=\lastbox%
\setbox1=\hbox to \captionwidth{\hfill\unhbox1\hfill}\box1}%
\box0}}}

\renewcommand{\thetable}{\Roman{table}}

\newcommand{\ms}{\noalign{\vspace{3\p@ plus2\p@ minus1\p@}}}
\newcommand{\boldarrayrulewidth}{0.5\p@}
\newcommand{\midarrayrulewidth}{0.25\p@}

\def\topline{\noalign{\ifnum0=`}\fi\hrule \@height
\boldarrayrulewidth \futurelet \@tempa\@xhline}
\def\@xhline{\ifx\@tempa\hline\vskip \doublerulesep\fi
\ifnum0=`{\fi}}

\def\midline{\noalign{\ifnum0=`}\fi\hrule \@height
\midarrayrulewidth \futurelet \@tempa\@xhline}
\def\@xhline{\ifx\@tempa\hline\vskip \doublerulesep\fi
\ifnum0=`{\fi}}


% Weighted rules for tables
\newcommand{\toprule}{\ms\topline\ms}
\newcommand{\midrule}{\ms\midline\ms}
\newcommand{\bottomrule}{\ms\topline}

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

%Acks
\def\ack{\vspace{24pt plus4pt minus2pt}
\noindent{\footnotesize\centerline{ACKNOWLEDGEMENT}}\\[12pt plus 3pt minus 1pt]\small\noindent}%

\def\acks{\vspace{24pt plus4pt minus2pt}
\noindent{\footnotesize\centerline{ACKNOWLEDGEMENTS}}\\[12pt plus 3pt minus 1pt]\small\noindent}%

\def\appendix{%
\section*{APPENDIX}%
\setcounter{section}{1}
\renewcommand{\thesection}{\Roman{section}}
}

%references

\def\thebibliography#1{\vspace{24pt plus 4pt minus 2pt}
\noindent{\footnotesize\centerline{REFERENCES}}\vspace{12pt plus 3pt minus 1pt}%
\list{{\arabic{enumi}}}{\def\makelabel##1{\hss{##1.}}\topsep=0\p@\parsep=0\p@
\partopsep=0\p@\itemsep=0\p@
\labelsep=1ex\itemindent=0\p@
\settowidth\labelwidth{\footnotesize[#1]}%
\leftmargin\labelwidth \advance\leftmargin\labelsep
\advance\leftmargin -\itemindent
\usecounter{enumi}}\footnotesize
\def\newblock{\ }
\sloppy\clubpenalty4000\widowpenalty4000 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

%Other macros
\def\comma{$^{\text{,}}$}
\def\dssty{\displaystyle}
\def\ssty{\scriptstyle}
\def\dfrac{\displaystyle\frac}
\def\bprop{\begin{prop}}
\def\eprop{\end{prop}}
\def\blem{\begin{lema}}
\def\elem{\end{lema}}
\def\bth{\begin{theo}}
\def\eth{\end{theo}}
\def\bcor{\begin{cor}}
\def\ecor{\end{cor}}
\def\proc#1{\medbreak\noindent{\it #1}\hspace{1ex}\ignorespaces}
\def\ep{\noindent{\hfill $\Box$}}
\def\mb{\medbreak}
\def\ben{\begin{enumerate}}
\def\een{\end{enumerate}}
\def\nn{\notag\\}
