%%% ================================================================
%%% @LaTeX-file{
%%%    filename  = "jotart.cls",
%%%    version   = "0.1",
%%%    date       = "2012/01/5, (modified)"
%%%    date      = "2004/11/04",
%%%    time      = "11:26:00",
%%%    author    = "Aurelian Gheondea",
%%%    copyright = ``Copyright 2004, Aurelian Gheondea
%%%                  all rights reserved.''
%%%    address   = "Journal of Operator Theory, c/o Institute of Mathematics
%%%                 P.O. Box 1-764, 014700 Bucharest, Romania",
%%%    email     = "jot@theta.ro (Internet)",
%%%    codetable = "ISO/ASCII",
%%%    keywords  = "latex, AMS, JOT, documentclass, theorem, palatino",
%%%    supported = "yes",
%%%    abstract  = "This is an AMS-LaTeX documentclass for the Journal of 
%%%                 Operator Theory",
%%% }
%%% ================================================================
% Declarations
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jotart}
              [2012/01/05 v0.1 Journal of Operator Theory Article Class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsart}}
\ProcessOptions
\LoadClass{amsart}[2004/08/06 v2.20]%[2009/07/02 v2.20.1]%[1996/10/24]
\DeclareOption{final}{\overfullrule\z@ 
\ClassWarning{\@classname}{%
    The final option is used only after all the overful rule boxes\MessageBreak
    are smaller than 4pt.}%
}
\ProcessOptions\relax
% Fonts with the extended T1 and TS1 (text symbols) encodings
\usepackage[T1]{fontenc}
\usepackage{textcomp} 
% Palatino Adobe by mathpazo, with slanted Greek and CM blackboard bold letters
\RequirePackage[slantedGreek,noBBpl]{mathpazo}
[2002/09/08 PSNFSS-v9.0a
 Palatino w/ Pazo Math (D.Puga, WaS)
]
\linespread{1.05}
% Headings
\renewcommand{\ps@headings}{\ps@empty
  \def\@evenhead{%
    \setTrue{runhead}%
    \normalfont
    \rlap%
{\thepage}\hfill\hfill \leftmark{}{}}%
  \def\@oddhead{%
    \setTrue{runhead}%
    \normalfont
    \rightmark{}{}\hfill\hfill \llap%
{\thepage}}%
  \let\@mkboth\markboth
}
% Publisher's name
\def\publname{\scshape J.\ OPERATOR THEORY}
% ISSN
\def\ISSN{0379-4042}
% Copyrightholder
\copyrightinfo{2004}{{\scshape Theta}}
% DOI prefix
%\def\doiprefix{{\normalfont doi:10.7900/jot.}}
% Mark at the end of proof
\def\qedrule{\hbox{\vrule height5.5pt depth0.5pt width3pt}}
\def\qed{\ifmmode \hskip 12pt plus 1pt minus 1pt \qedrule \else
\unskip \nobreak  \hskip 12pt plus 1pt minus 1pt \qedrule \smallbreak \fi}
% First page style
\def\ps@firstpage{\ps@plain
  \def\@oddfoot{\normalfont\small \hfil \hfil
     \global\topskip\normaltopskip}%
  \let\@evenfoot\@oddfoot
  \def\@oddhead{\@serieslogo\hss}%
  \let\@evenhead\@oddhead % in case an article starts on a left-hand page
}
% Article's logo
\renewcommand{\article@logo}{%
  \set@logo{%
\footnotesize
    \newlength{\@jotnameinlogo}
    \settowidth{\@jotnameinlogo}{\publname}
%       \begin{minipage}[t]{\@jotnameinlogo}
    \begin{minipage}[t]{120\p@}
\begin{center} \publname 
\\ \ifx\currentvolume\@empty
\else 
\volinfo, \pageinfo \fi 
\\
\ifx\@doiinfo\@empty
\else
{\normalfont doi: 10.7900/jot.\@doiinfo
}
\fi
    \end{center}\end{minipage}\hfill\copyright{\normalfont\ Copyright\ by}
\copyrightholder,\ \currentyear
}%
}%
% Definition of \set@logo
\long\def\set@logo#1{%
  \fontsize{8}{9\p@}\selectfont
    \noindent#1\par\vss
}
% Pagination
\def\pageinfo{%
      \ifnum\start@page=\z@
        00--00
      \else
        \ifx\start@page\end@page
         \start@page
        \else
          \start@page--\end@page
        \fi
      \fi}%
% Definition and initialization of \doiinfo
\def\doiinfo#1{\def\@doiinfo{#1}}
\let\@doiinfo=\@empty
% Redefine author
\renewcommand{\author}[2][]{%
  \ifx\@empty\authors
    \gdef\authors{#2}%
  \else
    \g@addto@macro\authors{\protect\and#2}%
    \g@addto@macro\addresses{\author{}}%
  \fi
  \@ifnotempty{#1}{%
    \ifx\@empty\shortauthors
      \gdef\shortauthors{#1}%
    \else
      \g@addto@macro\shortauthors{\protect\and#1}%
    \fi
  }%
}
% Endmatter: translators, authors addresses, dates ..., added in proofs
\def\enddoc@text{\ifx\@empty\@translators \else\@settranslators\fi%
  \ifx\addresses\@empty \else\@setaddresses\fi%
    \ifx\date\@empty \else\@setdate\fi
      \ifx\addedinproofs\@empty \else\@setaddedinproofs\fi%
}
\def\@setaddresses{\par
  \nobreak\bigskip \begingroup
\normalfont\small
  \def\author##1{\nobreak\addvspace\bigskipamount}%
  \def\\{\unskip, \ignorespaces}%
  \interlinepenalty\@M
  \def\address##1##2{\begingroup
    \par\addvspace\bigskipamount\indent
    \@ifnotempty{##1}{(\ignorespaces##1\unskip) }%
    {\scshape\ignorespaces##2}\par\endgroup}%
  \def\curraddr##1##2{\begingroup
    \@ifnotempty{##2}{\nobreak\indent{\itshape Current address}%
      \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space
      ##2\par}\endgroup}%
  \def\email##1##2{\begingroup
    \@ifnotempty{##2}{\nobreak\indent{\itshape E-mail address}%
      \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space
      \rmfamily##2\par}\endgroup}%
  \def\urladdr##1##2{\begingroup
    \@ifnotempty{##2}{\nobreak\indent{\itshape URL}%
      \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space
      \rmfamily##2\par}\endgroup}%
  \addresses
  \endgroup
}
% Setting the dates received, revised, and posted.
\def\@setdate{\vskip18\p@\begin{center}
     \fontsize{9}{10\p@}\selectfont
   \ifx\@date\@empty
   \else
     \ifx\@revision\@empty
         \ifx\@dateposted\@empty\datename\ \@date\@addpunct.%
         \else\datename\ \@date\@addpunct;\ \datepostedname \ 
              \@dateposted\@addpunct.
         \fi 
     \else
          \ifx\@dateposted\@empty\datename\ \@date\@addpunct;\ \revisionname\ 
          \@revision\@addpunct.
          \else\datename\ \@date\@addpunct;\ 
            \revisionname\ \@revision\@addpunct;\ \datepostedname\ 
            \@dateposted\@addpunct.
           \fi%
      \fi
   \fi
            \end{center}}
% Datepostedname
\newcommand{\datepostedname}{posted on}
% Set \@date empty
\def\date#1{\def\@date{#1}}
\let\@date\@empty
% Set \@revision empty
\def\revision#1{\def\@revision{#1}}
\let\@revision\@empty
% Set \@dateposted empty
\def\dateposted#1{\def\@dateposted{#1}}
\let\@dateposted\@empty
% Text for the dates received and revised
\renewcommand{\datename}{Received}
\newcommand{\revisionname}{revised}
% Setting the addedinproofs
\def\@setaddedinproofs{
   \ifx\@addedinproofs\@empty
   \else\vskip24\p@
     \fontsize{9}{10\p@}\selectfont
    \par\addvspace\bigskipamount\indent 
       {\scshape\addedinproofsname}\@addpunct{.}
       \@addedinproofs\fi
}
% Text for addedinproofs
\newcommand{\addedinproofsname}{Added in proofs}
% Set \@addedinproofs empty
\def\addedinproofs#1{\def\@addedinproofs{#1}}
\let\@addedinproofs\@empty
% Definition of \set@logo
\long\def\set@logo#1{%
  \vbox to\headheight{%
    \@parboxrestore \fontsize{9}{8\p@}\selectfont
    \noindent#1\par\vss
  }%
}
% Definition of \volinfo
\def\volinfo{\currentvolume:\currentissue(\currentyear)}
% Definition of \issueinfo
\def\issueinfo#1#2#3{\def\currentvolume{#1}\def\currentissue{#2}%
  \def\currentyear{#3}}
\issueinfo{00}% volume number
  {0}%        % issue number
  {XXXX}%     % year
% Redefine the abstract environment
\renewenvironment{abstract}{%
  \ifx\maketitle\relax
    \ClassWarning{\@classname}{Abstract should precede
      \protect\maketitle\space in AMS documentclasses; reported}%
  \fi
  \global\setbox\abstractbox=\vtop \bgroup
    \normalfont\small\baselineskip10\p@
    \list{}{\labelwidth\z@
      \leftmargin\parindent \rightmargin\leftmargin
      \listparindent\normalparindent \itemindent\z@
      \parsep\z@ \@plus\p@
      \let\fullwidthdisplay\relax
    }%
    \item[\hskip\labelsep\scshape\abstractname.]%
}{%
  \endlist\egroup
  \ifx\@setabstract\relax \@setabstracta \fi
}
% Repositioning the abstract
\def\@setabstracta{%
  \ifvoid\abstractbox
  \else
    \skip@10\p@ \advance\skip@-\lastskip
    \advance\skip@-\baselineskip \vskip\skip@
    \box\abstractbox
    \prevdepth\z@ % because \abstractbox is a vtop
  \fi
}
% Keywords is an evironment
\renewcommand{\keywordsname}{Keywords}
\newbox\keywordsbox
\renewenvironment{keywords}{%
  \ifx\maketitle\relax
    \ClassWarning{\@classname}{Keywords should precede
      \protect\maketitle\space in jotart documentclasses; reported}%
  \fi
  \global\setbox\keywordsbox=\vtop \bgroup
    \normalfont\small\itshape\baselineskip10\p@
    \list{}{\labelwidth\z@
      \leftmargin\parindent \rightmargin\leftmargin
      \listparindent\normalparindent \itemindent\z@
      \parsep\z@ \@plus\p@
      \let\fullwidthdisplay\relax
    }%
    \item[\hskip\labelsep\scshape\keywordsname:]%
}{%
  \endlist\egroup
  \ifx\@setkeywords\relax \@setkeywordsa \fi
}
\def\@setkeywords{\@setkeywordsa \global\let\@setkeywords\relax}
\def\@setkeywordsa{%
  \ifvoid\keywordsbox
  \else
    \skip@6\p@ \advance\skip@-\lastskip
    \advance\skip@-\baselineskip \vskip\skip@
    \box\keywordsbox
    \prevdepth\z@ % because \keywordsbox is a vtop
  \fi
}
% Mathematics Subject Classification: subjclass is an environment
\renewcommand{\subjclassname}{MSC (2010)} 
% de aici
%\@xp\let\csname subjclassname@2010\endcsname \subjclassname
%\@namedef{subjclassname@2000}{%
%MSC (2000)}
% pana aici
\newbox\subjclassbox
\renewenvironment{subjclass}{%
  \ifx\maketitle\relax
    \ClassWarning{\@classname}{Subject Classes should precede
      \protect\maketitle\space in JOT documentclasses; reported}%
  \fi
  \global\setbox\subjclassbox=\vtop \bgroup
    \normalfont\small\baselineskip10\p@
    \list{}{\labelwidth\z@
      \leftmargin\parindent \rightmargin\leftmargin
      \listparindent\normalparindent \itemindent\z@
      \parsep\z@ \@plus\p@
      \let\fullwidthdisplay\relax
    }%
    \item[\hskip\labelsep\scshape\subjclassname:]%
}{%
  \endlist\egroup
  \ifx\@setsubjclass\relax \@setsubjclassa \fi
}
\def\@setsubjclass{\@setsubjclassa \global\let\@setsubjclass\relax}
\def\@setsubjclassa{%
  \ifvoid\subjclassbox
  \else
    \skip@6\p@ \advance\skip@-\lastskip
    \advance\skip@-\baselineskip \vskip\skip@
    \box\subjclassbox
    \prevdepth\z@ % because \subjclassbox is a vtop
  \fi
}
% Text for the editor
\def\commby#1{\def\@commby{\itshape Communicated by #1}}
\let\@commby=\@empty
% Setting the title
\def\@settitle{\begin{center}%
  \setlength{\baselineskip}{20\p@}\relax
\Large
\uppercasenonmath\@title
  \@title
  \end{center}%
}
% Repositioning the authors in the maketitle
\def\@setauthors{%
  \begingroup
  \trivlist
  \centering\small \@topsep18\p@\relax
  \advance\@topsep by -\baselineskip
  \item\relax
  \andify\authors
  \def\\{\protect\linebreak}%
\MakeUppercase{\authors}%
  \endtrivlist
  \endgroup
}
% Maketitle
\def\maketitle{\par
  \@topnum\z@ % this prevents figures from falling at the top of page 1
%  \@setcopyright % the copyright is now placed top right
  \thispagestyle{firstpage}% this sets first page specifications
%  \uppercasenonmath\shorttitle % modificat 
  \ifx\@empty\shortauthors \let\shortauthors\shorttitle
  \else \andify\shortauthors
  \fi
  \@maketitle@hook
  \begingroup
  \@maketitle
  \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
  \toks4{\def\\{ \ignorespaces}}% defend against questionable usage
  \edef\@tempa{%
    \@nx\markboth{\the\toks4
      \@nx\scshape{\the\toks@}}{\@nx\scshape{\the\@temptokena}}}%
  \@tempa
  \endgroup
  \c@footnote\z@
  \def\do##1{\let##1\relax}%
  \do\maketitle \do\@maketitle \do\title \do\@xtitle \do\@title
  \do\author \do\@xauthor \do\address \do\@xaddress
  \do\email \do\@xemail \do\curraddr \do\@xcurraddr
  \do\commby \do\@commby
  \do\dedicatory \do\@dedicatory \do\thanks \do\thankses
  \do\keywords \do\@keywords \do\subjclass \do\@subjclass
}
\def\@maketitle{%
  \normalfont\normalsize
  \let\@makefnmark\relax  \let\@thefnmark\relax
  \@mkboth{\@nx\shortauthors}{\@nx\shorttitle}%
  \global\topskip78\p@ plus 12\p@ minus 8\p@ %
  \@settitle 
   \medskip
 \ifx\@empty\authors \else \@setauthors \fi
\smallskip
\baselineskip16\p@
\ifx\@empty\@dedicatory
  \else\baselineskip14\p@
    \vtop{\centering{\small\itshape\@dedicatory\@@par}%
      \global\dimen@i\prevdepth}\prevdepth\dimen@i
  \fi
  \ifx\@empty\@commby
  \else
    \baselineskip34\p@
    \vtop{\centering{\small\@commby\@@par}%
      \global\dimen@i\prevdepth}\prevdepth\dimen@i
  \fi
\smallskip
  \@setabstract
  \@setkeywords
  \@setsubjclass
 \normalsize
  \dimen@20\p@ \advance\dimen@-\baselineskip
  %\vskip\dimen@
\relax
}
% Acknowledgements is an environment
\newenvironment{acknowledgements}[1][\acknowledgementsname]{\vskip9\p@\par
  \normalfont\small  \topsep18\p@\@plus2\p@\relax
  \indent{\itshape
    #1\@addpunct.\hskip4\p@}\ignorespaces
}{%
  \@endpefalse
}
\providecommand{\acknowledgementsname}{Acknowledgements}
% Theorem styles addapted to the JOT style: by`newtheoremstyle'
\newtheoremstyle{proclaim}% name of the theoremstyle
{6pt}% space above
{5pt}% space below
{\itshape}% font of the body
{\parindent}% indentation
{\scshape}% font of the theorem head
{.}% punctuation
{5pt}% space after theorem head
{}% specifications
% Theoremstyle for definitions, remarks, examples, etc.
\newtheoremstyle{statement}{6pt}{5pt}{\normalfont}%
{\parindent}{\scshape}{.}{5pt}{}
% Theorem styles addapted to fancy style (no number, no head, etc.)
\newtheoremstyle{fancyproclaim}{6pt}{5pt}{\itshape}{\parindent}%
{\scshape}{.}{5pt}{\thmnumber{ }\thmnote{ #3}}
\newtheoremstyle{fancystatement}{6pt}{5pt}{\normalfont}%
{\parindent}{\scshape}{.}{5pt}{\thmnumber{ }\thmnote{ #3}}
% Redefines the proof environment to be indented
\renewenvironment{proof}[1][\proofname]{\par
  \pushQED{\qed}%
  \normalfont \topsep4\p@\@plus2\p@\relax
  \trivlist
  \item[\hskip\parindent\hskip\labelsep
        \itshape
    #1\@addpunct{.}]\ignorespaces
}{%
  \popQED\endtrivlist\@endpefalse
}
% The environment proof without qed (to be fixed manually in display)
\newenvironment{proof*}[1][\proofname]{\par
  \pushQED{\qed}%
  \normalfont \topsep4\p@\@plus2\p@\relax
  \trivlist
  \item[\hskip\parindent\hskip\labelsep
        \itshape
    #1\@addpunct{.}]\ignorespaces
}{%
\ifnum\lastskip=\belowdisplayskip \endtrivlist\@endpefalse \else
  \endtrivlist\@endpefalse\fi
}
% Part, section, subsection, subsubsection, etc. in the JOT style
\def\part{\@startsection{part}{0}%
  \z@{2\linespacing\@plus\linespacing}{1\linespacing}%
  {\normalfont\bfseries\raggedright}}
\def\specialsection{\@startsection{section}{1}%
  \z@{2\linespacing\@plus\linespacing}{1\linespacing}%
  {\normalfont\scshape}}
\def\section{\@startsection{section}{1}%
  \z@{2\linespacing\@plus\linespacing}{1\linespacing}%
  {\footnotesize}}
\def\subsection{\@startsection{subsection}{2}%
  \z@{.5\linespacing\@plus.7\linespacing}{-.5em}%
  {\normalfont\scshape}}
\def\subsubsection{\@startsection{subsubsection}{3}%
  \z@{.5\linespacing\@plus.7\linespacing}{-.5em}%
  {\normalfont\scshape}}
% Makes the reference name in capitals
\def\refname{REFERENCES}
% Redefines the bibliography environment
\renewenvironment{thebibliography}[1]{%
  \@xp\refsection\@xp*\@xp{\refname}%
  \normalfont\small\labelsep .5em\relax
  \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
  \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
    \leftmargin\labelwidth \advance\leftmargin\labelsep
    \setlength{\itemsep}{3pt}
    \usecounter{enumiv}}%
  \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
  \sfcode`\.=\@m
}{%
  \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
  \endlist
}
\def\refsection{\@startsection{section}{1}%
  \z@{2\linespacing\@plus\linespacing}{1\linespacing}%
  {\small\centering}}
% Macros for numbering
\newcommand{\nr}[1]{\vspace{0.1ex}\noindent\hspace*{9mm}\llap{\textup{(#1)}}}
% Dimensions
\setlength{\textheight}{19truecm}
\setlength{\textwidth}{12.5truecm}
\setlength{\parindent}{24pt}
%

\endinput
