%
%  This class file is used for making manuscript style.
%    Ver 1.00 2010.04.17
%    Ver 2.00 2016.05.13
%    Ver 3.00 2016.05.17
%    Ver 4.00 2016.05.31
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{amsa}
%
%\LoadClassWithOptions{article}
\LoadClass[a4paper,twoside,12pt]{article}
\usepackage{setspace,amsmath,amssymb,amsthm,color}
%
%  title page setting
%  maketile parameter : title, dedication, author, affiliation, email, 
%  s-author, s-affiliation, s-email, t-author, t-affiliation, t-email, 
%  If the number of authors is over 4, then please ask to the editor
%  footcomment 
	\topmargin=-0.5cm
	\oddsidemargin=0cm
	\evensidemargin=0cm
%	\setcounter{page}{1}
	\markboth{}{}
	\textwidth=16cm
	\textheight=23cm
%
\if@titlepage
	\renewcommand\maketitle{
	\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\@dedication\@empty
	\global\let\@affiliation\@empty
	\global\let\@email\@empty
		\global\let\@sauthor\@empty
		\global\let\@saffiliation\@empty
		\global\let\@semail\@empty
		\global\let\@tauthor\@empty
		\global\let\@taffiliation\@empty
		\global\let\@temail\@empty
		\global\let\@fauthor\@empty
		\global\let\@faffiliation\@empty
		\global\let\@femail\@empty
	\global\let\@footcomment\@empty
	\global\let\title\relax
	\global\let\author\relax
	\global\let\date\relax
	\global\let\and\relax
	\global\let\dedication\relax
	\global\let\affiliation\relax
	\global\let\email\relax
		\global\let\sauthor\relax
		\global\let\saffiliation\relax
		\global\let\semail\relax
		\global\let\tauthor\relax
		\global\let\taffiliation\relax
		\global\let\temail\relax
		\global\let\fauthor\relax
		\global\let\faffiliation\relax
		\global\let\femail\relax
	\global\let\footcomment\relax
	}
\else
\renewcommand\maketitle{\par
	\begingroup
%GAKUTO logo %
	\begin{minipage}[l]{11.5cm}
	\hspace{-0.5cm}
	{\footnotesize \bf Advances in Mathematical} \\
	\hspace{-0.5cm}
	{\footnotesize \bf Sciences and Applications} \\
	\hspace{-0.5cm}
	{\footnotesize \bf  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Volume, Number and year %%%%%%%%%%%
Vol.\ XX, No.\ X (XXXX),
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
pp.\ {\bf 
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page number %%%%%%%%%%%%%%%%%%%%%%%
\pageref{page:t}--\pageref{page:e}
%***-***
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}}
\end{minipage}
\begin{minipage}[r]{3.5cm}
	\hfill{\Huge \bf {\cal G}}{\bf akko Tosho}\\ \hfill Tokyo, Japan
%	\input{logo_gakuto.tex}
\end{minipage}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\footnote[0]{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hspace*{-7.4mm} 
Communicated by \editor; Received \rcptDate.
\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\@ifundefined{@footcomment}{}{\@footcomment}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thefootnote}{\arabic{footnote}}
%\label{page:t}
%
%
%
    \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{empty}
    \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\@dedication\@empty
	\global\let\@affiliation\@empty
	\global\let\@email\@empty
		\global\let\@sauthor\empty
		\global\let\@saffiliation\@empty
		\global\let\@semail\@empty
		\global\let\@tauthor\@empty
		\global\let\@taffiliation\@empty
		\global\let\@temail\@empty
		\global\let\@fauthor\@empty
		\global\let\@faffiliation\@empty
		\global\let\@femail\@empty
	\global\let\@footcomment\@empty
	\global\let\title\relax
	\global\let\author\relax
	\global\let\date\relax
	\global\let\and\relax
	\global\let\dedication\relax
	\global\let\affiliation\relax
	\global\let\email\relax
		\global\let\sauthor\relax
		\global\let\saffiliation\relax
		\global\let\semail\relax
		\global\let\tauthor\relax
		\global\let\taffiliation\relax
		\global\let\temail\relax
		\global\let\fauthor\relax
		\global\let\faffiliation\relax
		\global\let\femail\relax
	\global\let\footcomment\relax
}
\def\@maketitle{
 \null
 \vskip 1.5cm 
% \thispagestyle{empty}

\@ifundefined{@sauthor}{
	\begin{center}
	{\begin{spacing}{1.25}
		{\large \bf \@title \par}
	\end{spacing}
	} \vskip 1.5cm
	\@ifundefined{@dedication}{
		\vskip 1.5cm
	}
	{
		{\it\@dedication \par} \vskip 1.5cm
	}
	{\normalsize 
	\begin{tabular}[t]{c}
	\sc \@author 
	\end{tabular}\par} 
	\vskip 0.1cm
	{\small 
	\begin{tabular}[t]{c}
	\@affiliation 
	\end{tabular}\par} 
	{\small
	\begin{tabular}[t]{c}
	(E-mail:\hskip 0.2cm {\tt \@email})
	\end{tabular}\par} 
	\vskip 3.0cm
	\end{center}
}
{
	\@ifundefined{@tauthor}{
		\begin{center}
		{\begin{spacing}{1.25}
			{\large \bf \@title \par}
		\end{spacing}
		} \vskip 1.0cm
		\@ifundefined{@dedication}{
			\vskip 1.0cm
		}
		{
			{\it\@dedication \par} \vskip 1.0cm
		}
		{\normalsize 
		\begin{tabular}[t]{c}
		\sc \@author 
		\end{tabular}\par} 
		\vskip 0.1cm
		{\small 
		\begin{tabular}[t]{c}
		\@affiliation 
		\end{tabular}\par} 
		{\small
		\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@email})
		\end{tabular}\par} 
		\vskip 0.5cm
		and \vskip 0.5cm
		{\normalsize 
		\begin{tabular}[t]{c}
		\sc \@sauthor 
		\end{tabular}\par} 
		\vskip 0.1cm
		{\small 
		\begin{tabular}[t]{c}
		\@saffiliation 
		\end{tabular}\par} 
		{\small
		\begin{tabular}[t]{c}
		(E-mail:\hskip 0.2cm {\tt \@semail}) 
		\end{tabular}\par} 
		\vskip 2.0cm
		\end{center}
	
	}
	{
		\@ifundefined{@fauthor}{
			\begin{center}
			\begin{center}
			{\begin{spacing}{1.25}
				{\large \bf \@title \par}
			\end{spacing}
			} \vskip 0.75cm
			\@ifundefined{@dedication}{
				\vskip 0.75cm
			}
			{
				{\it\@dedication \par} \vskip 0.75cm
			}
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@author 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@affiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@email})
			\end{tabular}\par} 
			\vskip 0.5cm
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@sauthor 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@saffiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@semail})
			\end{tabular}\par} 
			\vskip 0.5cm
			and \vskip 0.5cm
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@tauthor 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@taffiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@temail})
			\end{tabular}\par} 
			\vskip 1.5cm
			\end{center}
		}
		{
			\begin{center}
			\begin{center}
			{\begin{spacing}{1.25}
				{\large \bf \@title \par}
			\end{spacing}
			} \vskip 0.5cm
			\@ifundefined{@dedication}{
				\vskip 0.5cm
			}
			{
				{\it\@dedication \par} \vskip 0.5cm
			}
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@author 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@affiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@email})
			\end{tabular}\par} 
			\vskip 0.4cm
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@sauthor 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@saffiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@semail})
			\end{tabular}\par} 
			\vskip 0.4cm
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@tauthor 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@taffiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@temail})
			\end{tabular}\par} 
			\vskip 0.25cm
			and \vskip 0.25cm
			{\normalsize 
			\begin{tabular}[t]{c}
			\sc \@fauthor 
			\end{tabular}\par} 
			\vskip 0.1cm
			{\small 
			\begin{tabular}[t]{c}
			\@faffiliation 
			\end{tabular}\par} 
			{\small
			\begin{tabular}[t]{c}
			(E-mail:\hskip 0.2cm {\tt \@femail})
			\end{tabular}\par} 
			\vskip 0.8cm
			\end{center}
		}
	}
}
	 \fi 

\gdef\@dedication{}
\gdef\@affiliation{}
\gdef\@email{}
\gdef\@sauthor{}
\gdef\@saffiliation{}
\gdef\@semail{}
\gdef\@tauthor{}
\gdef\@taffiliation{}
\gdef\@temail{}
\gdef\@fauthor{}
\gdef\@faffiliation{}
\gdef\@femail{}
\gdef\@footcomment{}
}


\long\def\dedication#1{\long\gdef\@dedication{#1}}
\long\def\affiliation#1{\long\gdef\@affiliation{#1}}
\long\def\email#1{\long\gdef\@email{#1}}
\long\def\sauthor#1{\long\gdef\@sauthor{#1}}
\long\def\saffiliation#1{\long\gdef\@saffiliation{#1}}
\long\def\semail#1{\long\gdef\@semail{#1}}
\long\def\tauthor#1{\long\gdef\@tauthor{#1}}
\long\def\taffiliation#1{\long\gdef\@taffiliation{#1}}
\long\def\temail#1{\long\gdef\@temail{#1}}
\long\def\fauthor#1{\long\gdef\@fauthor{#1}}
\long\def\faffiliation#1{\long\gdef\@faffiliation{#1}}
\long\def\femail#1{\long\gdef\@femail{#1}}
\long\def\footcomment#1{\long\gdef\@footcomment{#1}}

\pagestyle{myheadings}




