-
Notifications
You must be signed in to change notification settings - Fork 0
/
cekarticle2.cls
122 lines (100 loc) · 4.45 KB
/
cekarticle2.cls
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
%% Filename : cekarticle2.cls
%% Description : Version 2 of cekarticle.cls
%% Author(s) : Michael Hucka <mhucka@@cds.caltech.edu>
%% Organization: CDS, California Institute of Technology
%% Created : 2000-09-27 16:57 PDT
%% Revision : $Id$
%% $Source$
%%
%% Copyright 2001 California Institute of Technology and
%% Japan Science and Technology Corporation.
%%
%% This file is free software; you can redistribute it and/or modify it
%% under the terms of the GNU Lesser General Public License as published
%% by the Free Software Foundation; either version 2.1 of the License, or
%% any later version.
%%
%% This library is distributed in the hope that it will be useful, but
%% WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
%% MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
%% documentation provided hereunder is on an "as is" basis, and the
%% California Institute of Technology and Japan Science and Technology
%% Corporation have no obligations to provide maintenance, support,
%% updates, enhancements or modifications. In no event shall the
%% California Institute of Technology or the Japan Science and Technology
%% Corporation be liable to any party for direct, indirect, special,
%% incidental or consequential damages, including lost profits, arising
%% out of the use of this software and its documentation, even if the
%% California Institute of Technology and/or Japan Science and Technology
%% Corporation have been advised of the possibility of such damage. See
%% the GNU Lesser General Public License for more details.
%%
%% You should have received a copy of the GNU Lesser General Public License
%% along with this library; if not, write to the Free Software Foundation,
%% Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
%% ----------------------------------------------------------------------------
%% Identification.
%% ----------------------------------------------------------------------------
%% It would be so nice to be able to put the CVS/RCS 'Date' tag in the
%% \filedate below. Unfortunately, LaTeX will barf on the resulting string.
\def\filedate{2002/05/02}
\def\fileversion{"$Revision$"}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cekarticle2}[\filedate\space Caltech ERATO Kitano article2 class]
%% ----------------------------------------------------------------------------
%% Definition of package options for this class.
%% ----------------------------------------------------------------------------
\newif\if@notoc
\newif\if@xdvi
\DeclareOption{toc}{\global\let\if@notoc\iffalse}
\DeclareOption{notoc}{\global\let\if@notoc\iftrue}
\DeclareOption{xdvi}{\global\let\if@xdvi\iffalse}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ExecuteOptions{twoside}
\ProcessOptions
\LoadClass{article}
%% ----------------------------------------------------------------------------
%% Main code.
%% ----------------------------------------------------------------------------
% Most things are abstracted out into a common file between cekmanual
% and cekarticle2. The differences have to do with look and feel.
\RequirePackage{cekcommon}
% Title style.
\def\@puttitle{%
\rule{\textwidth}{0.01in}\\[\medskipamount]
{\sffamily\bfseries\LARGE \@title \par}%
\vskip -2pt%
\rule{\textwidth}{0.01in}}
\def\@putauthorandaddress{%
\large
\renewcommand{\arraystretch}{0.95}%
\begin{tabular}[t]{c}%
\@author
\end{tabular}%
\\[1 pt]
\normalsize
\begin{tabular}[t]{c}%
{\ttfamily \@authoremail}\\
\@address
\end{tabular}%
\vskip 1 ex%
\@acknowledge%
\par}
% Definition of section heading style.
\renewcommand{\section}{\@startsection%
{section}{1}{0pt}{-1.8ex \@plus -1ex \@minus -.2ex}%
{0.8ex}{\normalfont\Large\bfseries\sffamily}}
\renewcommand{\subsection}{\@startsection%
{subsection}{2}{0pt}{-2ex \@plus 1ex \@minus -.2ex}%
{0.8ex}{\slshape\large\bfseries\sffamily}}
\renewcommand{\subsubsection}{\@startsection%
{subsubsection}{3}{0pt}{-1.5ex \@plus 1ex \@minus -.2ex}%
{0.5ex}{\slshape\normalsize\bfseries\sffamily}}
\renewcommand{\paragraph}{\@startsection%
{paragraph}{4}{0pt}{-1.25ex \@plus 1ex \@minus -.2ex}%
{0.5ex}{\slshape\normalsize\bfseries\sffamily}}
%% -----------------------------------------------------------------------------
%% End of file `cekarticle2.cls'.
%% -----------------------------------------------------------------------------