%this is the v0.03 package which perform the standard format for the "Carpathian Journal of Mathematics", the North University of Baia Mare, Romania, Department of Mathematics and Computer Science publication

\ProvidesPackage{cjmb5nov}
\NeedsTeXFormat{LaTeX2e}


\setlength{\paperheight}{249mm}
\setlength{\paperwidth}{174mm}


\RequirePackage{amssymb}
\RequirePackage{graphicx}
\RequirePackage{palatino}
\RequirePackage[hmargin={20mm,16mm},vmargin=19mm,vmarginratio=1:1,headheight=\baselineskip,headsep=.5\baselineskip,footskip=1.5\baselineskip]{geometry}
%----------------fonts--------------------
\newcommand{\fonttitle}{\fontfamily{ppl}\fontseries{bx}\LARGE\selectfont}
\newcommand{\fontcover}{\fontfamily{ppl}\fontseries{bx}\selectfont}
\newcommand{\fontauthor}{\fontfamily{ppl}\fontseries{m}\fontshape{sc}\normalsize\selectfont}
\newcommand{\fontabstract}{\fontfamily{ppl}\fontseries{m}\footnotesize\selectfont}
\newcommand{\fontantet}{\fontfamily{ppl}\fontseries{m}\fontsize{10}{12}\selectfont}
\newcommand{\fontkey}{\fontfamily{ppl}\fontseries{b}\fontsize{7}{9}\selectfont}
\newcommand{\fontded}{\fontfamily{pzd}\fontseries{sb}\fontsize{9}{11}\selectfont}
%--------------new command---------------
\newcommand{\unabstractname}{\sc ABSTRACT}
\renewcommand{\datename}{Received:}
\renewcommand{\keywordsname}{\upshape Key words and phrases}


\def\maketitle{
  \@setcopyright
  \thispagestyle{firstpage}
  \vspace*{1 cm}
    \begingroup
\begin{flushleft}
{\fonttitle\@title}
\end{flushleft}
    \endgroup
  \@maketitle
  \vspace{-0.5 cm}
}

\def\@maketitle{%
  \let\@makefnmark\relax  \let\@thefnmark\relax
  \ifx\@empty\@date\else \@footnotetext{\@setdate}\fi
  \ifx\@empty\@subjclass\else \@footnotetext{\@setsubjclass}\fi
  \ifx\@empty\@keywords\else \@footnotetext{\@setkeywords}\fi
  \ifx\@empty\@corauthor\else \@footnotetext{\@corauthor}\fi
	\ifx\@empty\thankses\else \@footnotetext{%
    \def\par{\let\par\@par}\@setthanks}\fi
  \@mkboth{\@nx\shortauthors}{\@nx\shorttitle}
  \global\topskip42\p@\relax % 5.5pc   "   "   "     "     "
  \ifx\@empty\authors \else \@setauthors \fi
  \ifx\@empty\@dedicatory
  \else
    \baselineskip18\p@
    \vtop{\centering{\footnotesize\itshape\@dedicatory\@@par}%
      \global\dimen@i\prevdepth}\prevdepth\dimen@i
  \fi
    \@setabstract
  \if@titlepage
    \newpage
  \else
    \dimen@34\p@ \advance\dimen@-\baselineskip
    \vskip\dimen@\relax
  \fi
} % end \@maketitle
%-------------------
\def\corauthor#1{\def\@corauthor{Corresponding author: #1}}
\let\@corauthor=\@empty
%\def\@corauthor{%
 % {\itshape \keywordsname.}\enspace \@keywords\@addpunct.}
%-------------------
\def\@setdate{\datename\ \@date.\enspace In revised form: \@undate.\enspace Accepted: \@adate}

\def\undate#1{\def\@undate{#1}}
\let\@undate\@empty
\def\adate#1{\def\@adate{#1}}
\let\@adate\@empty
%-----------------
\def\publname{CARPATHIAN JOURNAL OF MTHEMATICS}
\def\article@logo{%
  \vtop to 0pt{
  \parindent\z@
  \begin{minipage}{0.35\linewidth}
  {\fontantet\selectfont CARPATHIAN J.\hfill MATH. \\
  {\bfseries\currentvolume \ }(\currentyear),  No. \currentissue,
  %{\fontkey\selectfont Special issue: ICAM6, 2008}
  \hfill \currentpages}
  \end{minipage}
  \hfill
  \begin{minipage}{0.60\linewidth}
  {\fontkey\selectfont Online version at {\ttfamily http://carpathian.ubm.ro}\\Print Edition: ISSN 1584 - 2851  Online Edition: ISSN 1843 - 4401}
  \end{minipage}
  \endgraf\vss}
}

\def\@setauthors{%
  \begingroup
  \trivlist
  \raggedright\fontauthor \@topsep30\p@\relax
  \advance\@topsep by -\baselineskip
  \item\relax
  \andify\authors
  \def\\{\protect\linebreak}%
\authors%
  \endtrivlist
  \endgroup
}

\newbox\unabstractbox
\newenvironment{unabstract}{%
  \ifx\maketitle\relax
    \ClassWarning{\@classname}{Abstract should precede
      \protect\maketitle\space in AMS documentclasses; reported}%
  \fi
  \global\setbox\unabstractbox=\vtop \bgroup
    \fontabstract
    \list{}{\labelwidth\z@
      \leftmargin0pc \rightmargin0pc
      \listparindent\normalparindent \itemindent\z@
      \parsep\z@ \@plus\p@
      \let\fullwidthdisplay\relax
    }%
    \item[\hskip\labelsep\scshape\normalsize\abstractname.]
}{%
  \endlist\egroup
  \ifx\@setabstract\relax \@setabstracta \fi
}
\def\@setabstract{\@setabstracta \global\let\@setabstract\relax}
\def\@setabstracta{%
  \ifvoid\unabstractbox
  \else
    \skip@20\p@ \advance\skip@-\lastskip
    \advance\skip@-\baselineskip \vskip\skip@
    \box\unabstractbox
    \prevdepth\z@
  \fi

}

%===================================
\def\copyrightyear{}
\def\copyrightyearmodC{}
\def\ISSN{}
\def\copyrightprice{}
\def\currentvolume{}
\def\currentyear{}
\def\currentissue{}

\newcommand{\coordinates}[4]{
  \def\currentvolume{#1}
  \def\currentyear{#2}
  \def\currentissue{#3}
  \def\currentpages{#4}
}


\def\lowLaTeX{{\reset@font\rmfamily L\kern-.05em%
    \raise.7ex\hbox{\scshape a}\kern-.08em%
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\def\LaTeX{\protect\lowLaTeX}
%----------------------------------
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{corollary}{Corollary}
\newtheorem{proposition}{Proposition}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
\newtheorem{remark}{Remark}
\newtheorem{problem}{Problem}
\newtheorem{conjecture}{Conjecture}
\renewcommand{\thetheorem}{\thesection.\arabic{theorem}}
\renewcommand{\thelemma}{\thesection.\arabic{lemma}}
\renewcommand{\thecorollary}{\thesection.\arabic{corollary}}
\renewcommand{\theproposition}{\thesection.\arabic{proposition}}
\renewcommand{\thedefinition}{\thesection.\arabic{definition}}
\renewcommand{\theexample}{\thesection.\arabic{example}}
\renewcommand{\theremark}{\thesection.\arabic{remark}}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\renewcommand{\theproblem}{\thesection.\arabic{problem}}
\renewcommand{\theconjecture}{\thesection.\arabic{conjecture}}
%--------------------------------------
\endinput
