summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncclatex/nccart.clo
blob: 37c29edabac5de4fd85b1f386fe5aa02add7e2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
\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