\NeedsTeXFormat{LaTeX2e}

\ProvidesClass{hjms}[15/10/2003 Hacettepe Journal of Mathematics and Statistics Class 
()]

\newif\if@pdf
\@pdffalse
\DeclareOption{pdf}{\@pdftrue}

\newif\if@qnumis
\@qnumisfalse
\DeclareOption{eqnumis}{\@qnumistrue}

\newif\if@qnumps
\@qnumpsfalse
\DeclareOption{eqnumps}{\@qnumpstrue}

\newif\if@earlyview
\@earlyviewfalse
\DeclareOption{earlyview}{\@earlyviewtrue}

\newif\if@published
\@publishedfalse
\DeclareOption{published}{\@publishedtrue}

\newif\if@memorial
\@memorialfalse
\DeclareOption{memorial}{\@memorialtrue}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsart}}

\ProcessOptions

\LoadClass[11pt,twoside,reqno]{amsart}

\usepackage{footnote}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage[font=small,labelfont=bf]{caption}
%\usepackage[dvips]{graphicx}
\usepackage{lastpage}
\usepackage{xcolor}

%\usepackage[left=1.0cm, right=1.0cm, top=3.0cm, bottom=1.00cm]{geometry}
\usepackage{lmodern}
\usepackage{setspace}
%\renewcommand{\familydefault}{\rmdefault}

\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{epsfig}
%\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{ifthen}
\usepackage{graphicx}
\usepackage{float}
\usepackage{epstopdf}
\usepackage[colorlinks=true,urlcolor=blue,citecolor=red,linkcolor=black]{hyperref}
\usepackage[noadjust]{cite}
\usepackage{xcolor}
\usepackage{amstext}
\usepackage{syntonly}
\usepackage{fancyhdr}

\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{eucal}

%\swapnumbers
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{fact}[theorem]{Fact}
\newtheorem{statement}[theorem]{Statement}
\newtheorem{hypothesis}[theorem]{Hypothesis}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{principle}[theorem]{Principle}
\newtheorem{property}[theorem]{Property}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{result}[theorem]{Result}
\newtheorem{results}[theorem]{Results}

\theoremstyle{definition}
\newtheorem{application}[theorem]{Application}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{counterexample}[theorem]{Counterexample}
\newtheorem{counterexamples}[theorem]{Counterexamples}
\newtheorem{examples}[theorem]{Examples}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{remarks}[theorem]{Remarks}
\newtheorem{note}[theorem]{Note}
\newtheorem{notes}[theorem]{Notes}
\newtheorem{case}[theorem]{Case}
\newtheorem{notation}[theorem]{Notation}
\newtheorem*{summary}{Summary}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{openproblem}[theorem]{Open Problem}
\newtheorem{question}[theorem]{Question}
\renewenvironment{proof}[1][\proofname]{%
   \par\pushQED{\qed}\normalfont%
   \topsep6\p@\@plus6\p@\relax
   \trivlist\item[\hskip\labelsep\itshape\bfseries#1\@addpunct{.}]%
   \ignorespaces
}{%
   \popQED\endtrivlist\@endpefalse
}

\newcommand{\arttitle}{}
\newcommand{\arttitlecab}{}
\RequirePackage{calc}
\RequirePackage[paperwidth=210mm,
    paperheight=297mm,
%%  top={26pt+21pt+11pt},
    top={25.5pt+21pt+11pt},
    headheight={21pt},% incl. rule
    headsep={20pt},
    left={\oddsidemargin},
    right={\evensidemargin},
%    text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
    marginparsep=0pt,
    columnsep=0pt,
    marginparwidth=0pc,
    bindingoffset=0mm,
    footskip=48.5pt,
    bottom={10.5pt+48.5pt}, left=3cm, right=3cm, top=3cm, bottom=3cm,
    centering]{geometry}

%\linespread{1.2}
%\renewcommand{\baselinestretch}{1.3} 

\def\orcidID #1{\gdef\@orcidID{#1}}
\gdef\@orcidID{}
\setcounter{tocdepth}{0}
\newcommand{\l@arti}{\vskip0.5cm\@dottedtocline{0}{1.5em}{2.3em}}

\def\pageno=\thepage
\def\advancepageno{ifnum\pageno<0 \global\advance\pageno by -1
           \else\global\advance\pageno by 1 \fi}

\renewcommand{\@secnumfont}{\bfseries}
%\def\@seccntDot{.}
%\def\@seccntformat#1{\csname the#1\endcsname\@seccntDot\hskip 0.5em}
\renewcommand{\section}{\@startsection{section}{1}%
  \z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
  {\normalfont\large\bfseries}}

\renewcommand{\subsection}{\@startsection{subsection}{2}%
  \z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
  {\normalfont\large\bfseries}}

%\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}%
 % \z@{.7\linespacing\@plus\linespacing}{.5\linespacing}%
 % {\normalfont\itshape}}
\def\subsubsection{\@startsection{subsubsection}{3}%
  \z@{.5\linespacing\@plus.7\linespacing}{-.5em}%
  {\normalfont\bfseries}}

\renewcommand{\title}[2]{\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\setcounter{section}{0}\setcounter{footnote}{0}
\begin{center} {\LARGE\bf #1}\end{center}\bigskip
\bigskip\thispagestyle{empty}
\renewcommand{\arttitle}{#1}\renewcommand{\arttitlecab}{#2}}

\renewcommand{\author}[1]{\begin{center} {\large#1}
\end{center}\vspace{.5ex}
%\renewcommand{\thefootnote}{\arabic{\footnote}}
}

\renewcommand{\orcidID}{\textcolor{orcidlogocol}{\aiOrcid}}

\renewcommand{\address}[1]{\begin{center} {\footnotesize \em#1}
\end{center}\vspace{2.5ex}
%\renewcommand{\thefootnote}{\arabic{\footnote}}
}

\renewcommand{\email}[1]{ \blfootnote{\, Email address: #1}
%\renewcommand{\thefootnote}{\arabic{\footnote}}
}

\newcommand{\emails}[1]{ \blfootnote{\, Email addresses: #1}
%\renewcommand{\thefootnote}{\arabic{\footnote}}
}


\newcommand{\received}[1]{\footnotesize{Received}: #1}

\newcommand{\revised}[1]{\footnotesize\ : Revised #1}

\newcommand{\accepted}[1]{\footnotesize{Accepted}: #1 }

\newcommand{\comby}[1]{\small\begin{center} Communicated by #1 \end{center}}

\renewcommand{\maketitle}{\relax}

\def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
%      \def\@oddhead{\footnotesize \thepage\hfil\leftmark\hfil}%
%      \def\@evenhead{\footnotesize \hfil\rightmark\hfil\thepage}%
\ifthenelse{\boolean{PG@odd}}
      { \def\@evenhead{\footnotesize \thepage\hfil\leftmark\hfil}   % The first page number is odd
        \def\@oddhead{\footnotesize \hfil\rightmark\hfil\thepage} } %
      { \def\@oddhead{\footnotesize \thepage\hfil\leftmark\hfil}    % The first page number is even
        \def\@evenhead{\footnotesize \hfil\rightmark\hfil\thepage} }%
      \let\@mkboth\markboth
}


\renewcommand\markboth[2]{%
  \def\@evenhead{\thepage\hfill {\small\itshape #1}\hfill}%
  \def\@oddhead{\hfill{\small\itshape #2}\hfill \thepage}%
}

%\def\@bibliosize{\small}
%\def\@historysize{\small}
%\def\@keywordsize{\small}
%\def\@overaddressskip{2pt}
%\def\@titlesize{\Large\bfseries}
%\def\@authorsize{\large}
%\def\@keywordheading{{\it Key words: \ }}
%\def\@addressstyle{\small\itshape}
%\def\@captionsize{\small}
%\def\@tablecaptionsize{\@captionsize}
%\def\@figurecaptionsize{\@captionsize}
%\def\@tablesize{\small}
%\def\@keywordwidth{.8\textwidth}
\def\@abstractwidth{\textwidth}


%\renewcommand*\abstract[1]{%
  % \begingroup\noindent\leftskip=.7cm
  % \rightskip\leftskip
%	\small\textbf{Abstract.}\, #1%
  %\par\vspace*{1.5mm}\endgroup}
\renewenvironment{abstract}{
\begin{center}\bf \large Abstract\end{center}\smallskip
\begin{center}\begin{minipage}[c]{\@abstractwidth}}
{\end{minipage}\end{center}\vspace*{-2mm}
\bigskip}
\renewcommand*\keywords[1]{%
  \begingroup\noindent\leftskip=.7cm
  \rightskip\leftskip
  {\begin{flushleft}\noindent\textbf{Keywords.}\, #1%
 \end{flushleft}}\par\vspace*{-3mm}\endgroup} 
\renewcommand*\subjclass[1]{%
  \begingroup\noindent\leftskip=.7cm
  \rightskip\leftskip
  \begin{flushleft}\textbf{Mathematics Subject Classification (2020).}\, #1%
  \par\vspace*{1mm}\end{flushleft}\endgroup}




%\newenvironment{keyword}{\noindent{\bf Keywords: }}%
%{\endtrivlist\medskip}


%\newenvironment{AMS}{\noindent{\bf Mathematics Subject Classification (2010): }}%
%{\endtrivlist\bigskip}
%___________________________________
\newenvironment{icerik}{
\newpage
\pagestyle{empty}
\pagenumbering{gobble}

\begin{center}
\large\bf CONTENTS
\end{center}

\bigskip\noindent
{\large\bf Mathematics}

}%end-icerik

\newcommand{\aralik}{

\bigskip
\bigskip\noindent
{\large\bf Statistics}

}

\newcommand{\giris}[3]{
\vspace{3.3ex}\noindent 
\textbf{#1} %Authors

\vspace{1ex}\noindent 
\textit{#2} % title
\dotfill  #3% start page number

}

\newcommand{\bossayfa}{

\newpage
\pagestyle{empty}
\pagenumbering{gobble}

\qquad
\qquad

}
%___________________________________
\long\def\@makealgocaption#1#2{\vskip 2ex \small
\hbox to \hsize{\parbox[t]{\hsize}{{\bf #1.} #2}}}
\newcounter{algorithm}
\def\thealgorithm{\@arabic\c@algorithm}
\def\fps@algorithm{tbp}
\def\ftype@algorithm{4}
\def\ext@algorithm{lof}
\def\fnum@algorithm{Algorithm \thealgorithm}
\def\algorithm{\let\@makecaption\@makealgocaption\@float{algorithm}}
\let\endalgorithm\end@float

%This makes the "Hacettepe Journal of Mathematics and Statistics" heading for the
%firstpage.
\newcommand{\onlinepublishday}{}
\newcommand{\publishday}[1]{\renewcommand{\onlinepublishday}{#1}}
\newcommand{\hjmsvol}{}
\newcommand{\journalvol}[1]{\renewcommand{\hjmsvol}{#1}}
\newcommand{\hjmsno}{}
\newcommand{\journalno}[1]{\renewcommand{\hjmsno}{#1}}
\newcommand{\hjmsyear}{}
\newcommand{\journalyear}[1]{\renewcommand{\hjmsyear}{#1}}
\newcommand{\hjmsbegin}{}
\newcommand{\pagebegin}[1]{\renewcommand{\hjmsbegin}{#1}}
\newcommand{\hjmsfin}{}
\newcommand{\pagefin}[1]{\renewcommand{\hjmsfin}{#1}}
\newcommand{\memname}{}
\newcommand{\memorialname}[1]{\renewcommand{\memname}{#1}}
\newcommand{\hjmsdoi}{}
\newcommand{\journaldoi}[1]{\renewcommand{\hjmsdoi}{#1}}
\newcommand{\articletype}{}
\newcommand{\hjmstype}[1]{\renewcommand{\articletype}{#1}}

\newcommand\blfootnote[1]{%
  \begingroup
  \renewcommand\thefootnote{}\footnote{#1}%
  \addtocounter{footnote}{-1}%
  \endgroup
}
\newcommand{\hinfo}[8]{\journalvol{#1\,(#2)}  \journalyear{#3} \pagebegin{#4} \pagefin{#5} \setcounter{page}{#4} \journaldoi{#6} \hjmstype{#7}\publishday{#8}
	%\pagenumbering{gobble} 
	\hjmstitle 
}

%\newcommand{\hinfoearlyview}[3]{\publishday{#1}  \journaldoi{#2} \hjmstype{#3}
%\pagenumbering{gobble} 
%\hjmstitle 
%}
  %\definecolor{cupmagenta}{rgb}{0.624,0.161,0.424}
\newcommand{\hinfoo}[2]{\blfootnote{\color{black}\, \received{#1}; \accepted{#2}
}}

\newcommand{\ema}[1]{\\ \ Email : {\tt #1}}
\newcommand{\coraut}{\footnote{Corresponding Author.}}

\newcommand{\lpage}{\pageref*{LastPage}}

\DeclareGraphicsRule{.wmf}{bmp}{}{}% declare GIF filename extension

%--------------------------------
\if@published\newcommand{\hjmstitle}{
\noindent
\newcommand{\ext}{wmf}
\if@pdf \renewcommand{\ext}{eps}  \fi
%\begin{minipage}{6.85mm}\vspace*{-.7ex}\hspace*{-.9em}
%\includegraphics[width=9.4mm,height=14.1mm]{h.\ext}
%\end{minipage}
\begin{minipage}{75mm}
  \footnotesize{\par\noindent \hspace*{0.07em}\large\textsc{\textbf{Hacettepe Journal of}}\vspace{.3cm}
  %\par\noindent\hspace*{0.07em}Volume \hjmsvol\ (\hjmsyear), \thepage\,--\,\hjmsfin
   \par\noindent\hspace*{0.07em}\textbf{Mathematics \& Statistics}}
\end{minipage}
\hfill
\begin{minipage}{60mm}
\begin{flushright}
	\small{\noindent Hacet. J. Math. Stat.
		%\par\noindent\hspace*{0.07em}Volume \hjmsvol\ (\hjmsyear), \thepage\,--\,\hjmsfin
		\par\noindent\hspace*{0.07em}Volume \hjmsvol\ (\hjmsyear), \hjmsbegin\,--\,\hjmsfin
		\par\noindent DOI : \hjmsdoi}
\end{flushright}
\end{minipage}
\vspace{.1cm}
\hrule height .5mm
\vspace{.1cm}
\hfill\begin{minipage}{60mm}
\begin{flushright}
\colorbox{gray!30}{{\sc {\articletype}}}
\end{flushright}
\end{minipage}
%\if@galley\fbox{\Large\bf GALLEY PROOFS}\fi
\if@memorial\fbox{
\begin{minipage}{30mm}
\begin{center}
\memname\\ 
Memorial Issue
\end{center}
\end{minipage}
}\fi

\vspace{5ex}}\fi
%--------------------------------


\if@qnumps\renewcommand{\theequation}{\thesection.\arabic{equation}}\fi

\if@qnumis\numberwithin{equation}{section}\fi

\def\ps@firstpage{\ps@plain
  \def\@oddfoot{\normalfont\scriptsize \hfil\thepage\hfil
     \global\topskip\normaltopskip}%
  \let\@evenfoot\@oddfoot
  \def\@oddhead{\@serieslogo\hss}%
  \let\@evenhead\@oddhead % in case an article starts on a left-hand page
}

\if@earlyview 	\newcommand{\hjmstitle}{%
	\noindent
	\newcommand{\ext}{wmf}
	\if@pdf \renewcommand{\ext}{eps}  \fi
	\begin{minipage}{6.85mm}\vspace*{-.7ex}\hspace*{-.9em}
		\includegraphics[width=9.4mm,height=14.1mm]{h.\ext}
	\end{minipage}
	\begin{minipage}{75mm}
		\footnotesize{\par\noindent \hspace*{0.07em}\large\textsc{\textbf{Hacettepe Journal of}}\vspace{.3cm}
			%\par\noindent\hspace*{0.07em}Volume \hjmsvol\ (\hjmsyear), \thepage\,--\,\hjmsfin
			\par\noindent\hspace*{0.07em}\textbf{Mathematics \& Statistics}}
	\end{minipage}
	\hfill
	\begin{minipage}{60mm}
		\begin{flushright}
			\small{\noindent Hacet. J. Math. Stat.
				%\par\noindent\hspace*{0.07em}Volume \hjmsvol\ (\hjmsyear), \thepage\,--\,\hjmsfin
				\par\noindent\hspace*{0.07em}Published online: \onlinepublishday
				\par\noindent DOI : \hjmsdoi}
		\end{flushright}
	\end{minipage}
	\vspace{.1cm}
	\hrule height .5mm
	\vspace{.1cm}
	\hfill\begin{minipage}{60mm}
		\begin{flushright}
			\colorbox{gray!30}{{\sc {\articletype}}}
		\end{flushright}
	\end{minipage}
%	\if@galley\fbox{\Large\bf GALLEY PROOFS}\fi
	\if@memorial\fbox{
		\begin{minipage}{30mm}
			\begin{center}
				\memname\\ 
				Memorial Issue
			\end{center}
		\end{minipage}
	}\fi
	
	\vspace{5ex}
} \fi
%\tolerance=300
%\pretolerance=200
%\hfuzz=1 true pt
%\vfuzz=1 true pt
%\parindent=1 true cm
%\mathsurround=1 true pt
%\parskip=1pt plus .25pt minus .25pt
%\normallineskiplimit=.99pt
%\hoffset=-0.25cm      %sonradan eklendi.
%\voffset=-1.25cm
%\hoffset=-0.1in       %sonradan eklendi.
%\voffset=-0.4in
%\topskip 20truept
%\hsize=17 true cm
%\vsize=22 true cm
%\textwidth=17 true cm
%\textheight=22 true cm
%\oddsidemargin 0cm
%\evensidemargin 0cm
%\baselineskip=16pt
%\lineskiplimit=4.5pt
%\lineskip=5.5pt


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Bibliography

\renewenvironment{thebibliography}[1]{%
   \@xp\section\@xp*\@xp{\centerline{\refname}}%
   \normalfont
%\footnotesize
\normalsize
\labelsep .5em\relax
   \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
   \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
     \leftmargin\labelwidth \advance\leftmargin\labelsep
     \usecounter{enumiv}}%
   \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
   \sfcode`\.=\@m
}{%
   \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%

   \endlist
}

%\newcommand*\declarations[1]{%
	%	\begingroup\noindent
	%	\rightskip\leftskip
	%	\textbf{\large Declarations and Statements.}\,  #1%
	%	\par\vspace*{1mm}\endgroup}

%\newcommand*\acknowledgment[1]{%
	% \begingroup\noindent
	% \rightskip\leftskip
	%\textbf{\large Acknowledgment.}\,  #1%
	%  \par\vspace*{1mm}\endgroup}




\newcommand*{\Acknowledgements}[2]{%
	\par
	\normalsize\section*{\large Acknowledgements}%
	\space \noindent
	\ignorespaces 
	#2\par
	\noindent \medskip
}



\newcommand*{\Funding}[2]{%
	\par
	\normalsize\subsubsection*{Funding}%
	\space \noindent
	\ignorespaces
	#2\par
	\noindent 
}

\newcommand*{\Availability}[2]{%
	\par
	\normalsize\subsubsection*{Data availability}%
	\space \noindent
	\ignorespaces
	#2\par
	\noindent 
} %Not applicable.

\newcommand*{\Competinginterests}[2]{%
	\par
	\normalsize\subsubsection*{Conflict of interest statement}%
	\space \noindent
	\ignorespaces
	#2\par
	\noindent 
}%The authors declare that they have no competing interests.

\newcommand*{\Authorcontributions}[2]{%
	\par
	\normalsize\subsubsection*{Author contributions}%
	\space \noindent
	\ignorespaces
	#2\par
	\noindent 
}%All authors contributed equally to the writing of this paper. All authors read and approved the final manuscript.
\endinput
