\ProvidesFile{nccart.clo}
         [2005/03/23 v1.05 Article subclass (NCC)]
%
% \changes{v1.01}{2002/02/19}{This version is uploaded to CTAN}
% \changes{v1.02}{2002/05/17}{Bug in abstract fixed. Extra space removed.}
% \changes{v1.03}{2004/07/13}{\vskip in title replaced with \addvspace}
% \changes{v1.04}{2004/12/06}{Replace \NCC@null with \StartFromTextArea}
% \changes{v1.04}{2004/12/16}{Replace \NCC@gempty with \@empty}
% \changes{v1.05}{2005/03/23}{Remove \skipwritingtoaux in index head}
%
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\def\NCC@tochead#1{\noheadingtag\skipwritingtoaux\section{#1}}
\def\NCC@idxhead#1{%
  \twocolumn[\noheadingtag\section{#1}]%
  \thispageheading{}%
}
%
% \ps@headings, \ps@myheadings
%
\def\ps@headings{\NCC@setpsheading
  \def\partmark##1{%
    \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne\thepart.\enskip \fi
      \ignorespaces##1}}%
  \def\sectionmark##1{%
    \NCC@firstmark{\ifnum \c@secnumdepth>\z@\thesection.\enskip \fi
      \ignorespaces##1}}%
  \def\subsectionmark##1{%
    \NCC@secondmark{\ifnum\c@secnumdepth>\@ne\thesubsection.\enskip\fi
      \ignorespaces##1}}%
}  
\def\ps@myheadings{\NCC@setpsheading
  \let\partmark      \@gobble
  \let\sectionmark   \@gobble
  \let\subsectionmark\@gobble
}
%
% \maketitle
%
\newcommand\maketitle{\par
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \if@twocolumn \twocolumn[\@maketitle]
    \else \clearpage \global\@topnum\z@ \@maketitle\fi
    \NCC@articlehead
  \endgroup
  \gdef\@thanks{}%
  \setcounter{footnote}{0}%
}
\def\@maketitle{
  \begingroup
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \normalsize\normalfont
    \StartFromTextArea\vskip 2em\centering
    \ifNCC@small \let\@tempa\Large \else \let\@tempa\LARGE \fi
    \ifx\@author\@empty {\@tempa\bff \@title \par}%
    \else
      \ifNCC@authorbeforetitle \else
        {\@tempa\bff \@title \par}\vspace{1.5em \@minus .3em}%
      \fi
      {\large\tabcolsep\z@ \lineskip .5em \pbox{\@author}\par}%
      \ifNCC@authorbeforetitle
        \vskip .5em {\@tempa\bff \@title \par}%
      \fi
    \fi
  \endgroup
  \@thanks
  \addvspace{2em \@minus .5em}%
}
\def\NCC@articlehead{\thispageheading{}}% to be redefined in local macros
%
% abstract
%
\newenvironment{abstract}{\small\likeremark{\bf\abstractname}{}}{\qef}
%
% \appendix
%
\newcommand\appendix{\par
  \setcounter{section}{-1}\stepcounter{section}%
  \gdef\thesection{\@Alph\c@section}%
}
%
% thebibliography
%
\newenvironment{thebibliography}{%
  \noheadingtag \section{\refname}\biblist[0]%
}{\endbiblist}
\endinput
