\NeedsTeXFormat{LaTeX2e}[1995/06/01] \ProvidesClass{cmam}[2010/05/18] % \RequirePackage{amsthm} % \DeclareOption{seceqnum}{% \AtEndOfPackage{% \makeatletter\@addtoreset{equation}{section} \renewcommand{\theequation}{\arabic{section}.\arabic{equation}}}} \DeclareOption{eqnum}{% \AtEndOfPackage{% \renewcommand{\theequation}{\arabic{equation}}}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % \ExecuteOptions{eqnum} \ProcessOptions\relax % \LoadClass[12pt,a4paper,twoside]{article} % % \AtBeginDocument{\label{firstpage}} % % Issue publication info % \issueinfo{330}% volume number % {2}% issue number % {July}% month % {1995}% year % \def\@issuevol{} \def\@issueno{} \def\@issueyear{} \def\issueinfo#1#2#3{% \gdef\@issuevol{#1}\def\@issueno{#2}% \gdef\@issueyear{#3}} % \setlength{\marginparpush}{0pt} \setlength{\hoffset}{-1in} \setlength{\voffset}{-1in} \setlength{\marginparsep}{0pt} \setlength{\marginparwidth}{0pt} \setlength{\footskip}{0pt} \setlength{\headheight}{5mm}%\baselineskip} \setlength{\textwidth}{165mm} \setlength{\oddsidemargin}{23mm} \setlength{\evensidemargin}{22mm} \setlength{\textheight}{688pt} \setlength{\topmargin}{18.75mm}%-15pt} % \let\if@runhead\iftrue \def\CMAM{{\sffamily CMAM}} % \let\if@smartand\iftrue \newdimen\headlineindent % dimension for space between \headlineindent=1.166cm % number and text of headings. \newdimen\headerboxheight \headerboxheight=80pt % 18 10.5dd-lines - 2\baselineskip \newcounter{inst} \newcounter{auth} \def\authdepth{2} \newdimen\instindent \newbox{\authrun} \newtoks\authorrunning \newbox{\titrun} \newtoks\titlerunning \newbox\abstractbox \def\emailname{E-mail} \def\emailfont{\tt} \def\authorfont{\bfseries} \def\keywordsnamefont{\itshape} \def\keywordsname{Keywords} \def\subjclassnamefont{\itshape} \def\subjclassname{2010 Mathematical subject classification} \def\abstractnamefont{\itshape} \def\abstractname{Abstract} \def\subjclassbox \def\@subjclass{} \def\keywordsbox{} \def\@keywords{} \def\andname{and} \def\lastand{, and} \def\email#1{\emailname: {\emailfont #1}} % \def\ps@headings{% \let\@oddfoot\@empty\let\@evenfoot\@empty \def\@evenhead{\underline{\hbox to\textwidth{\small\csname runheadhook\endcsname \rlap{\thepage}\hfill\leftmark\unskip}}}% \def\@oddhead{\underline{\hbox to\textwidth{\small\csname runheadhook\endcsname \ignorespaces\rightmark\hfil\llap{\thepage}}}}% \let\@mkboth\@gobbletwo \let\sectionmark\@gobble \let\subsectionmark\@gobble } \def\@dedic{} \def\dedication#1{\gdef\@dedic{#1}} \def\institute#1{\gdef\@institute{#1}} \def\@thanks{} \def\@fnsymbol#1{\ifcase#1\or\star\or{\star\star}\or{\star\star\star}% \or\dagger\or\ddagger\or % \mathchar "278\or\mathchar"27B\or\|\or **\or \dagger\dagger\or\ddagger\ddagger \else\@ctrerr\fi\relax } % \def\nothanksmarks{\def\thanks##1{\protected@xdef\@thanks{\@thanks \protect\footnotetext[0]{\kern-\bibindent##1}}}} % \def\ch@ckobl#1#2{\@ifundefined{@#1} {\typeout{CMAM warning: Missing \expandafter\string\csname#1\endcsname} \csname #1 =\endcsname{#2}} {}} % \def\ProcRunHead{% \def\\{\unskip\ \ignorespaces}% \def\thanks##1{\unskip{}}% \instindent=\textwidth \advance\instindent by-\headlineindent \if!\the\titlerunning!\else \edef\@title{\the\titlerunning}% \fi \global\setbox\titrun=\hbox{\small\rmfamily\itshape\unboldmath\ignorespaces\@title \unskip}% \ifdim\wd\titrun>\instindent \typeout{^^JCMAM warning: Title too long for running head.}% \typeout{Please, supply a shorter form with \string\titlerunning \space prior to \string\maketitle}% \global\setbox\titrun=\hbox{\small\rmfamily\itshape Title Suppresed Due to Expressive Length} \fi \xdef\@title{\copy\titrun}% % \if!\the\authorrunning! \else \setcounter{auth}{1}% \edef\@author{\the\authorrunning}% \fi \ifnum\value{inst}>\authdepth \def\stripauthor##1\and##2\endauthor{% \protected@xdef\@author{##1\unskip\if!##2!\else\ et al.\fi}}% \expandafter\stripauthor\@author\and\endauthor \else \gdef\and{\unskip, \ignorespaces}% {\def\and{\noexpand\protect\noexpand\and}% \protected@xdef\@author{\@author}} \fi \global\setbox\authrun=\hbox{\small\rmfamily\itshape\unboldmath\ignorespaces \@author\unskip}% \ifdim\wd\authrun>\instindent \typeout{^^JCMAM warning: Author name(s) too long for running head. ^^JPlease, supply a shorter form with \string\authorrunning \space prior to \string\maketitle}% \global\setbox\authrun=\hbox{\small\rmfamily\itshape Please, give a shorter version with: {\tt\string\authorrunning\space and \string\titlerunning\space prior to \string\maketitle}}% \fi \xdef\@author{\copy\authrun} \markboth{\@author}{\@title} } % \let\orithanks=\thanks \def\thanks#1{\ClassWarning{CMAM}{\string\thanks\space may only be used inside of \string\title, \string\author,\MessageBreak and \string\date\space prior to \string\maketitle}} % \def\maketitle{\par\let\thanks=\orithanks \ch@ckobl{title}{A title should be given} \ch@ckobl{author}{Name(s) and initial(s) of author(s) should be given} \ch@ckobl{institute}{Address(es) of author(s) should be given} \begingroup % \renewcommand\thefootnote{\@fnsymbol\c@footnote}% \def\@makefnmark{$^{\@thefnmark}$}% \renewcommand\@makefntext[1]{% \noindent \hb@xt@\bibindent{\hss\@makefnmark\enspace}##1\vrule height0pt width0pt depth8pt} % \def\lastand{\ifnum\value{inst}=2\relax \unskip{} \andname\ \else \unskip, \andname\ \fi}% \def\and{\stepcounter{auth}\relax \if@smartand \ifnum\value{auth}=\value{inst}% \lastand \else \unskip, \fi \else \unskip, \fi }% \thispagestyle{empty} \ifnum \col@number=\@ne \@maketitle \else \twocolumn[\@maketitle]% \fi % \global\@topnum\z@ \if!\@thanks!\else \@thanks \insert\footins{\vskip-3pt\hrule\@width\if@twocolumn\columnwidth \else .5\textwidth\fi\vskip3pt}% \fi {\def\thanks##1{\unskip{}}% \def\iand{\\[5pt]\let\and=\nand}% \def\nand{\ifhmode\unskip\nobreak\fi\ $\cdot$ }% \let\and=\nand \def\at{\\\let\and=\iand}% \footnotetext[0]{\kern-\bibindent \ignorespaces\@institute}\vspace{5dd}}% \if@runhead \ProcRunHead \fi % \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\@subtitle\@empty \global\let\title\relax \global\let\author\relax \global\let\date\relax \global\let\and\relax } \def\makeheadbox{{% \hbox to0pt{\vbox{\baselineskip=14dd\hbox to\hsize{\kern3pt\vbox{\kern3pt \hbox{\small\bfseries\sffamily Computational Methods in Applied Mathematics} \hbox{\small Vol.~\@issuevol~(\@issueyear), No. \@issueno, pp.~\pageref{firstpage}--\pageref{lastpage}} \hbox{\footnotesize\copyright~\@issueyear~~~Institute of Mathematics, National Academy of Sciences} \kern3pt} \hfil\kern3pt} }% \hss}% }} \def\abstract{\ifx\maketitle\relax \ClassWarning{\@classname}{Abstract should precede \protect\maketitle\space in CMAM document classes; reported}% \fi \global\setbox\abstractbox=\vtop \bgroup \begin{center}\begin{minipage}{.8\textwidth} \footnotesize {\abstractnamefont\abstractname}~--- } \def\endabstract{\\[3pt] \@subjclass\\[3pt] \@keywords \end{minipage}\end{center}\egroup \ifx\@setabstract\relax \@setabstracta \fi} \def\@setabstract{\@setabstracta \global\let\@setabstract\relax} \def\@setabstracta{% \ifvoid\abstractbox \else \skip@20\p@ \advance\skip@-\lastskip \advance\skip@-\baselineskip \vskip\skip@ \box\abstractbox \prevdepth\z@ % because \abstractbox is a vtop \fi } \def\subjclass#1{ \gdef\@subjclass{\def\and{\unskip\nobreak;\ } \footnotesize {\subjclassnamefont\subjclassname}:~ #1.}} \def\keywords#1{ \gdef\@keywords{\def\and{\unskip\nobreak;\ } \footnotesize {\keywordsnamefont\keywordsname:} #1.}} % \def\@maketitle{\newpage \normalfont \vbox to0pt{\if@twocolumn\vskip-39pt\else\vskip-49pt\fi \nointerlineskip \makeheadbox\vss} \vskip19.5pt % war 9pt % \if@twocolumn\else \gdef\footnoterule{% \kern-3\p@ \hrule\@width.5\textwidth % \columnwidth \rubricwidth \kern2.6\p@} \fi % \setbox\authrun=\vbox\bgroup \if@twocolumn \hrule\@height10.5mm\@width0\p@ \else \hrule\@height 2mm\@width0\p@ \fi \nothanksmarks {\begin{center}\LARGE\bfseries % \noindent \ignorespaces \@title \end{center}} {\begin{center}\authorfont \setbox0=\vbox{\setcounter{auth}{1}\def\and{\stepcounter{auth} }% \hfuzz=2\textwidth\def\thanks##1{}\@author}% \setcounter{footnote}{0}% \global\value{inst}=\value{auth}% \setcounter{auth}{1}% % \def\and{\unskip\nobreak\enskip{\boldmath$\cdot$}\enskip\ignorespaces}% \noindent\ignorespaces\@author%\vskip7.23pt \end{center}} % \small \if!\@dedic!\else \par \normalsize\it \addvspace\baselineskip \centerline\@dedic \fi \@setabstract \egroup % end of header box \@tempdima=\headerboxheight \advance\@tempdima by-\ht\authrun \unvbox\authrun \ifdim\@tempdima>0pt \vrule width0pt height\@tempdima\par \fi \global\@minipagetrue \global\everypar{\global\@minipagefalse\global\everypar{}}% } % \def\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\large\bfseries}} \def\subsection{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalsize\bfseries}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {-1em}% {\normalfont\normalsize\bfseries\itshape}} \def\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\itshape}} \def\subparagraph{\@startsection{subparagraph}{5}{\parindent}% {3.25ex \@plus1ex \@minus .2ex}% {-1em}% {\normalfont\normalsize\sl}} % % \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{\footnotesize {\bf #1.} #2}% \ifdim \wd\@tempboxa >\hsize {\footnotesize {\bf #1.} #2}\par \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip} % \renewenvironment{thebibliography}[1] {\section*{\noindent\refname \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}% \footnotesize \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} % \newtheoremstyle{theorem} {5pt} {5pt} {\itshape} {\parindent} {\bfseries} {.} { } {} \newtheoremstyle{dfn} {5pt} {5pt} {} {\parindent} {\bfseries} {.} { } {} \newtheoremstyle{note} {5pt} {5pt} {} {\parindent} {\itshape} {.} { } {} % \theoremstyle{theorem} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}{Lemma}[section] \newtheorem{prop}{Proposition}[section] \newtheorem{cor}{Corollary}[section] \newtheorem{assum}{Assumption}[section] \newtheorem{lem}{Lemma} \newtheorem{thm}{Theorem} {\theoremstyle{dfn} \newtheorem{dfn}{Definition} \newtheorem{definition}{Definition}[section] } {\theoremstyle{note} \newtheorem{remark}{Remark}[section] \newtheorem{rem}{Remark} \newtheorem{example}{Example}[section] } % \DeclareRobustCommand{\qed}{% \ifmmode % if math mode, assume display: omit penalty etc. \else \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill \fi \quad\hbox{\qedsymbol}} % \def\@addpunct#1{\ifnum\spacefactor>\@m \else#1\fi} % %\let\@newpf\proof \let\proof\relax \let\endproof\relax \newenvironment{pf}{\@newpf[\indent\proofname]}{\qed\endtrivlist} \newenvironment{pf*}[1]{\@newpf[\indent\proofname\hspace{-13pt}\indent#1]}{\qed\endtrivlist} % \renewcommand{\@seccntformat}[1]{% \csname the#1\endcsname.\hspace{0.5em}} % \issueinfo{1}{1}{2001} % \def\receive#1{% \ifx\@empty\@receive \def\@receive{#1}% \else\g@addto@macro\@receive{\and#1}\fi} % \let\@receive=\@empty \def\@setreceive{\par\begingroup % \addvspace{6\p@\@plus9\p@}% \hbox to\columnwidth{\hss\normalfont\footnotesize\it Received % \@receive} \endgroup } % \def\revised#1{% \ifx\@empty\@revised \def\@revised{#1}% \else\g@addto@macro\@revised{\and#1}\fi} % \let\@revised=\@empty \def\@setrevised{\par\begingroup % \addvspace{6\p@\@plus9\p@}% \hbox to\columnwidth{\hss\normalfont\footnotesize\it Revised % \@revised} \endgroup } \def\enddoc@text{\ifx\@empty\@receive \else\@setreceive\fi \ifx\@empty\@revised \else\@setrevised\fi} \AtEndDocument{\label{lastpage}\vskip20pt\raggedright\enddoc@text} \pagestyle{headings} \renewcommand{\le}{\leqslant} \renewcommand{\ge}{\geqslant} \renewcommand{\leq}{\leqslant} \renewcommand{\geq}{\geqslant} \endinput