summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/icassp.sty
blob: f7d93513a3cc463349878e837215a9ac94bbe8f6 (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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
% ICASSP DOCUMENT STYLE -- released 15 December 1988
%    for LaTeX version 2.09
% Copyright (C) 1988 bt John Vlontzos, except portions
% Copyright (C) 1988 by Max Hailperin, except portions 
% Copyright (C) 1985 by Leslie Lamport, or otherwise indicated.
% Modified by John Vlontzos
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
%
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.
%
% This is a document style option, for cammera-ready copy for the
% ICASSP '89 conference (and other IEEE conferences???), to be
% used with the article document style and the proc document style option.
%
% WARNING: The visual design of this style is rather poor.  The conference
%          specifications forced some of this, and as a result it didn't seem
%          worth worrying about the rest.  Be forewarned however.

\typeout{Document Style Option 'icassp' -- released 13 December 1988}
% ************************************************************************
%              BRIEF DESCRIPTION
% ************************************************************************
% * This is a documentstyle that will print your paper
%   in a form suitable for ICASSP or other IEEE conferences (hopefully)
% * Just take your {article} file and make a few changes detailed
%   below
% * All columns set to 11truecm
% * The first two pages are 10in long and cover the first mat
% * The title is centered on a wide page so it should be printed in
%   landscape mode
% * If there is only one author use the standard \author macro from {article}
%   if there are 2 authors, use the new macro \authors described below
% * A macro for thanks is provided (\thanksu{thanks text})
% * The second page MUST be identified by placing the macro \thisissecondpage
%   anywhere in the second page
% * The second and subsequent mats are broken into 4 pages each 6.44in long
% * Section titles are centered, Capitalized and numbered 
%   (if you don't want numbering just set \secnumdepth{0})
% * Sub(sub)sections are lowercase and boldface, flush left
% * Some notes are included in the macro definitions to make use more clear
%  ****************************************
%  *             KEYWORDS                 *
%  ****************************************

% \keywords{foo, bar, baz} should go at the end of the abstract

\def\keywords#1{\begin{list}{}{\setlength{\leftmargin}{0pt}\setlength
{\rightmargin}{0pt}\setlength{\topsep}{\baselineskip}\setlength
{\partopsep}{0pt}}\item[]Keywords: #1\end{list}}


%  ****************************************
%  *            SECTIONING                *
%  ****************************************
% Slight modification of the geophysics.sty file,
% Copyright (c) 1987 by Stephen Gildea
% Slight modification of above by John Vlontzos
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.

% Headings:
%   for principal heading use \section
%   for lower rank heading use \subsection
%   for still lower rank heading use \subsubsection
\setcounter{secnumdepth}{3}
%If you don't want section numbers, set secnumdepth to 0
% \section is tricky because we want to both support \section* and have
% the section title uppercased.
\def\section #1{\begin{center} \sectionc{#1} \end{center}}
\def\sectionc{\secdef\@sectionb\@sections}
\def\@sectionb[#1]#2{\@sections{#2}}
\def\@sections#1{\@startsection
  {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\large
  \bf}{\uppercase{#1}}}

% the below is modeled on the above, plus the paragraph def from art10.doc
\def\subsubsection{\secdef\@subsubsectionb\@subsubsections}
\def\@subsubsectionb[#1]#2{\@subsubsections{#2}}
\def\@subsubsections#1{\@startsection
    {subsubsection}{3}{\z@}{3.25ex plus 1ex minus .2ex}{-1sp}{\normalsize
    \bf}{#1---}}
    
% the below is less closely modeled on the geophysical stuff, plus art10.doc
\def\subsection{\secdef\@subsectionb\@subsections}
\def\@subsectionb[#1]#2{\@subsections{#2}}
\def\@subsections#1{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large\bf}{#1}}

% in case people nest more deeply than allowed --- perhaps should be error
\def\paragraph{\subsubsection}
\def\subparagraph{\subsubsection}

% *************************************************
% Abstract definition (centered and capitalized)
% dont forget to \begin{abstract}...\end{abstract}
% *************************************************

\def\abstract{\if@twocolumn
\section*{ABSTRACT}
\else \small 
\begin{center}
{\bf ABSTRACT\vspace{-.5em}\vspace{0pt}} 
\end{center}
\quotation 
\fi}
\def\endabstract{\if@twocolumn\else\endquotation\fi\vspace{.1truein}}
%  ****************************************
%  *            PAGE LAYOUT               *
%  ****************************************
%
% All margin dimensions measured from a point one inch from top and side
% of page.  Lamport claims that for some unspecified device(s) dimensions
% shrink by about 2 percent.

% SIDE MARGINS:
   \oddsidemargin  0pt      %   Note that \oddsidemargin = \evensidemargin
   \evensidemargin 0pt

% VERTICAL SPACING:        
                         % Top of page:
\topmargin -48truept         %    Nominal distance from top of page to top of
                         %    box containing running head.
\headheight 0truept         %    Height of box containing running head.
\headsep 10truept            %    Space between running head and text.
% \topskip = 10pt        %    '\baselineskip' for first line of page.
                         % Bottom of page:
\footheight 0pt         %    Height of box containing running foot.
\footskip 300pt           %    Distance from baseline of box containing foot 
                         %    to baseline of last line of text.


% DIMENSION OF TEXT:
\textheight 10truein   % Height of text (including footnotes and figures,
                          % excluding running head and foot).
\textwidth 10.5truecm        % Width of text line.
                         % For two-column mode: 
\columnsep .92truecm       %    Space between columns 
\columnseprule 0truept       %    Width of rule between columns.


%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
%  The page number is printed in the top center, in "n of m" form.


\def\@oddhead{\rm\hfil \thepage\ of \pageref{@last-page} \hfil}
\def\@evenhead{\@oddhead}
\def\@oddfoot{}\def\@evenfoot{\@oddfoot}

% This is from latex.tex, except for-vvvvvvvvvvvvvvvvvv
\def\enddocument{\@checkend{document}\label{@last-page}\clearpage\begingroup  
\if@filesw \immediate\closeout\@mainaux 
\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
\def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
\if@tempswa \@warning{Label(s) may have changed.  Rerun to get
cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}
%    ****************************************
%    *               TITLE                  *
%    ****************************************
%
% This @maketitle is from proc.doc, except for the uppercasing
%    ****************************************
%AUTHORS is a macro for more than one authors
% used as \authors {name 1\\ dept1 \\ univ1}{name 2 \\ dept2 \\ univ2}
%    ***************************************
\def\authors#1#2{\hbox to \hsize{\@tablebox{#1}\hfil\@tablebox{#2}}}

\def\@tablebox#1{\begin{tabular}[t]{@{}l@{}}#1\end{tabular}}
%    **************************************
%THANKSU is a macro that replacing \thanks.
%It permits placing of the \thanks in ANY page
%useful when the first printed page is smaller than the mat provided.
% just define your footnote using \thanksu and then place it
% in the appropriate page by using \putthanks anywhere in the page.
%    ****************************************
\def\thanksu #1{\textwidth 11truecm \newsavebox{\thankw}\savebox
               {\thankw}[11cm]{\parbox{10.5truecm}{#1}}}
\def\putthanks{\footnotetext{\leftskip=-25truept \rightskip=25truept 
     \usebox{\thankw}\par}}
\def\@maketitle{\textwidth 32.8truecm \vbox to 5.9cm{\hsize\textwidth 
  \linewidth\hsize \vfil \centering  {\Large \bf \uppercase
       \expandafter{\@title} \par}  % TITLE set in \Large size.
  \vskip .4cm                % Vertical space after title.
  {\large \begin{tabular}[t]{c}\@author \end{tabular}\par}    
  \vfil}\newpage\textwidth 11truecm}
%    ****************************************
%     Since the first two pages can be printed in a way that
%     covers the whole mat, mark the second page by 
%     placing \thisissecondpage ANYWHERE in the second page
%     ***************************************
\def\thisissecondpage{\textheight 6.44truein}
%    ****************************************
%    *              CAPTIONS                *
%    ****************************************

% This makes captions use a period rather than a colon.  It is a minor
% change to code from article.doc.
\long\def\@makecaption#1#2{
   \vskip 10pt 
   \setbox\@tempboxa\hbox{#1. #2}
   \ifdim \wd\@tempboxa >\textwidth   % IF longer than one line:
       #1. #2\par                 %   THEN set as ordinary paragraph.
     \else                        %   ELSE  center.
       \hbox to\textwidth{\hfil\box\@tempboxa\hfil}  
   \fi}
% *****************************************
% the following macro produces the references heading in capitals
% and without a section number
% *****************************************
\def\thebibliography#1{\setcounter{secnumdepth}{0}\sectionc*{References\@mkboth
 {REFERENCES}{REFERENCES}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}