summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/accarticle.sty
blob: f284020dc72129bcc7afce9bb889b7d422fa1f1c (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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
%  ACCarticle.sty 6-FEB-92 balemi@aut.ethz.ch
  
\typeout{Document Style `ACCarticle' <6-FEB-92>.}
%
% use with 
% \title{} \author{} \maketitle \begin{abstract}..\end{abstract}

% change sizes and margins 
\input article.sty
%\input IEEE1\@ptsize.sty\relax
%\twocolumn

\textheight 238mm
\textwidth 177mm
\columnsep 15mm
\voffset -20mm
\hoffset -30mm
\twocolumn
\sloppy
\flushbottom
\parindent 0pt
\parskip 1em
%\oddsidemargin 1.2truein
%\evensidemargin 1.2truein
%\topmargin .6 truein

% added \firstpagestyle so maketitle doesn't output a number if you 
%  don't want it to
\newcommand{\firstpagestyle}[1]{\def\fpgstyle{\thispagestyle{#1}}}
\firstpagestyle{plain}
\def\maketitle{\par
 \begingroup
% \def\thefootnote{\fnsymbol{footnote}}
% fnsymbol box size changed 9/9/89 rhr
% \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} 
 \def\@makefnmark{\hbox{$^{\@thefnmark}$\hss}}
 \if@twocolumn 
 \twocolumn[\@maketitle] 
 \else \newpage
 \global\@topnum\z@ \@maketitle \fi\fpgstyle\@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}

\def\@maketitle{\newpage
 \null
 \vskip 2em \begin{center}
 {\LARGE\bf \@title \par} \vskip 1.5em {\large \lineskip .5em
 \begin{tabular}[t]{c}\@author 
 \end{tabular}\par} 
% \vskip 1em {\@date}
 \end{center}
 \par
 \vskip 1.5em} 

\def\abstract{\begin{center}{\bf Abstract}\end{center} \vskip -\parskip}
\def\endabstract{\par}

\def\thepart{\Roman{part}} 
\def\thesection {\arabic{section}.}
\def\thesubsection {\thesection\arabic{subsection}.}
\def\thesubsubsection {\thesubsection\arabic{subsubsection}}

\def\@sect#1#2#3#4#5#6#7[#8]#9{\ifnum #2>\c@secnumdepth
     \def\@svsec{}\else 
     \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 0.5em }\fi
     \@tempskipa #5\relax
      \ifdim \@tempskipa>\z@ 
        \begingroup #6\relax
        \setbox1=\hbox{\@svsec #8}
% changed to center sect titles 
	\ifdim \wd1>\columnwidth
          \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8}
        \else
          \ifnum #2 > 1 
            {\@svsec #8} 
          \else
            \centerline{\@svsec #8} 
          \fi
        \fi
        \endgroup
       \csname #1mark\endcsname{#8}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
                    #8}\else
        \def\@svsechd{#6\hskip #3\@svsec #9#7\csname #1mark\endcsname
                      {#8}\addcontentsline
                           {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                             \protect\numberline{\csname the#1\endcsname}\fi
                       #8}}\fi
     \@xsect{#5}}

\def\@startsection#1#2#3#4#5#6#7{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   \if@nobreak \everypar{}\else
     \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi
     \vskip -\parskip
     \@ifstar
     {\@ssect{#1}{#2}{#3}{#4}{#5}{#6}{#7}}
     {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}{}{#7}}}}

\def\@ssect#1#2#3#4#5#6#7#8{\@tempskipa #5\relax
   \ifdim \@tempskipa>\z@
     \begingroup #6  
% \@hangfrom{\hskip #3}{\interlinepenalty \@M #8#7}
        \setbox1=\hbox{\@svsec #8}
% changed to center sect titles 
	\ifdim \wd1>\columnwidth
          \@hangfrom{\hskip #3}{\interlinepenalty \@M #8#7}
        \else
          \ifnum #2 > 1 
            \vskip -\parskip
            \leftline{#8#7} 
          \else
            \centerline{#8#7} 
          \fi
        \fi
        \endgroup
   \else \def\@svsechd{#6\hskip #3\relax #8#7}\fi
    \@xsect{#5}}

\def\@xsect#1{\@tempskipa #1\relax
      \ifdim \@tempskipa>\z@
       \par \nobreak
       \vskip \@tempskipa
       \vskip -\parskip
       \@afterheading
    \else \global\@nobreakfalse \global\@noskipsectrue
       \everypar{\if@noskipsec \global\@noskipsecfalse
                   \clubpenalty\@M \hskip -\parindent
                   \begingroup \@svsechd \endgroup \unskip
                   \hskip -#1
                  \else
                   \clubpenalty \@clubpenalty
                    \everypar{}\fi}\fi\ignorespaces}

\def\section{\@startsection{section}{1}{\z@}
{6.5ex plus 0.5ex minus 0.5ex}{3ex plus 0.3ex}{\bf}{}}
\def\subsection{\@startsection{subsection}{2}{\z@}{3.0ex plus 
.3ex minus .1ex}{0.01ex plus .0ex}{\hskip -.7ex\bf}{}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{3.0ex plus 
.3ex minus .1ex}{0ex plus .0ex}{\hskip 2em\bf}{:\ \ \ }}


\def\QED{~\rule[-1pt]{5pt}{5pt}\par\medskip}
\newenvironment{proof}{{\bf Proof: \ }}{ \hfill \QED}
\def\@begintheorem#1#2{\vskip -\parskip\it \trivlist 
   \item[\hskip \labelsep{\bf #1\ #2:}]}
\def\@opargbegintheorem#1#2#3{\vskip -\parskip\it \trivlist
      \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}



\def\thebibliography#1{\subsection*{References\@mkboth
 {REFERENCES}{REFERENCES}}\parskip 0pt \list 
 {[\arabic{enumi}]\hfill}{\labelwidth 7mm \leftmargin\labelwidth
 \itemindent 9mm
\advance\leftmargin -7mm
\itemsep -1mm 
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

\def\ps@plain{\let\@mkboth\@gobbletwo
     \def\@oddhead{}\def\@oddfoot{\hfil
 \@footernote\ \qquad \thepage}
\def\@evenhead{}\def\@evenfoot{
\thepage\qquad  \@footernote\ \hfil }
}

\def\footernote#1{\def\@footernote{#1}}
\footernote{}


% set up default pagestyle
\pagestyle{plain}