]> www.ginac.de Git - cln.git/blob - doc/ratseries/paper/acmconf.sty
* include/cln/modules.h (CL_CONCATENATE): New macro.
[cln.git] / doc / ratseries / paper / acmconf.sty
1 % ACMCONF DOCUMENT STYLE - Updated 10 April 1995.
2 %
3 % This is a patched version of the 5 April 1993 release.  No stylistic
4 % changes have been made; it should produce output identical to the 1993
5 % release if that release worked properly on your system.  A LaTeX2e patch
6 % has been added for systems having problems with the section header font.
7 %
8 % If you get an error message similar to
9 %
10 % ! Undefined control sequence.
11 % l.165 \font\ninsfb = cmssbx10\@ptscale
12 %
13 % then see the comments beginning on line 173 (look for "DIAGNOSTICS").
14 %-----------------------------------------------------------------------
15 %       Modification of Traub/Shivers version by Kevin Theobald, McGill
16 %       University.  New version has automatic copyright space, option
17 %       for box around "to appear" entry, and style option to indent
18 %       first paragraph after subheadings.  Released 5 April 1993.
19 %
20 %       To use: install in reachable directory (one contained in TEXINPUTS
21 %       environment variable); use \documentstyle[<options>]{acmconf}
22 %-----------------------------------------------------------------------
23 %    adapted from ARTICLE document style by Ken Traub
24 %    Hacked for [preprint] option by Olin Shivers 4/91
25 % ARTICLE DOCUMENT STYLE -- Released 16 March 1988
26 %    for LaTeX version 2.09
27 % Copyright (C) 1988 by Leslie Lamport
28
29 %%% ACMCONF is a document style for producing two-column camera-ready pages for
30 %%% ACM conferences, according to ACM specifications.  The main features of
31 %%% this style are:
32 %%%
33 %%% 1)  Two columns.
34 %%% 2)  Side and top margins of 4.5pc, bottom margin of 6pc, column gutter of
35 %%%     2pc, hence columns are 20pc wide and 55.5pc tall.  (6pc = 1in, approx)
36 %%% 3)  First page has title information, and an extra 6pc of space at the
37 %%%     bottom of the first column for the ACM copyright notice.
38 %%% 4)  Text is 9pt on 10pt baselines; titles (except main) are 9pt bold.
39 %%%
40 %%% This document style supports a [preprint] style option that allows
41 %%% you to run off a copy for a preprint -- with page numbers, "to
42 %%% appear" information, and so forth. This is documented below.
43 %%%
44 %%% This document style also supports a [secindent] style option which
45 %%% causes paragraphs following (sub)section heads to be indented like
46 %%% the others.  (Added by KBT)
47 %%%
48 %%% There are a few restrictions you must observe:
49 %%%
50 %%% 1)  You cannot change the font size; ACM wants you to use 9pt.
51 %%% 3)  You must start your paper with the \maketitle command.  Prior to the
52 %%%     \maketitle you must have \title and \author commands.  If you have a
53 %%%     \date command it will be ignored; no date appears on the paper, since
54 %%%     the proceedings will have a date on the front cover.
55 %%% 4)  Marginal paragraphs, tables of contents, lists of figures and tables,
56 %%%     and page headings are all forbidden.
57 %%% 5)  The `figure' environment will produce a figure one column wide; if you
58 %%%     want one that is two columns wide, use `figure*'.
59 %%%
60 %%% Page Headings:
61 %%% Normally, \pagestyle commands are ignored --- pages have no headings or
62 %%% numbers. ACM will number the pages for you when they are inserted into the
63 %%% proceedings (you should put page numbers on the BACK of each page, though,
64 %%% in case someone drops your paper on the floor).
65 %%%
66 %%% If the [preprint] option is present, then \pagestyle commands are obeyed,
67 %%% and the default is \pagestyle{plain}.  All pages (including the first)
68 %%% are numbered.  (This is useful if you want to make a reprint version
69 %%% of your paper, with page numbering identical to the conference
70 %%% proceedings.  In such a case, you may need to insert the command
71 %%% \setcounter{page}{...} before \maketitle.) The [twoside] option is
72 %%% also useful when using headers.
73 %%%
74 %%% Copyright Space:
75 %%% This style automatically leaves 1" blank space at the bottom of page 1/
76 %%% column 1.  This space can optionally be filled with some text using the
77 %%% \toappear{...} command.  If used, this command must be BEFORE the \maketitle
78 %%% command.  If this command is defined AND [preprint] is on, then the
79 %%% space is filled with the {...} text (at the bottom); otherwise, it is
80 %%% blank.  If you use \toappearbox{...} instead of \toappear{...} then a
81 %%% box will be drawn around the text (if [preprint] is on).
82 %%%
83 %%% A typical usage looks like this:
84 %%%     \toappear{To appear in the Ninth AES Conference on Medievil Lithuanian
85 %%%               Embalming Technique, June 1991, Alfaretta, Georgia.}
86 %%% This will be included in the preprint, and left out of the conference
87 %%% version.
88 %%%
89 %%% Acmconf defines two useful conditionals.
90 %%% - \ifacmconf{true-stuff}{false-stuff}
91 %%%   expands to true-stuff.
92 %%% - \ifpreprint true-stuff \else else-stuff \fi
93 %%%   expands to true-stuff if the [preprint] option is being used,
94 %%%   otherwise it expands to else-stuff.
95 %%% \ifacmconf is a latex command; \ifpreprint is a real latex conditional.
96 %%%
97 %%% WARNING:
98 %%% Some dvi-ps converters heuristically allow chars to drift from their
99 %%% true positions a few pixels. This loses noticeably with the 9pt sans-serif
100 %%% bold font used for section headers. You turn this hackery off in our
101 %%% dvi-ps converters with the -e option:
102 %%%     dvips -e 0 foo.dvi >foo.ps
103
104 \typeout{Document Style `acmconf' <22 May 89>. Hacked 4/91 by}
105 \typeout{ shivers@cs.cmu.edu, 4/93 by theobald@cs.mcgill.ca}
106 \typeout{Bugs to theobald@cs.mcgill.ca}
107
108 \newif\if@acmconf\@acmconftrue
109 \long\def\ifacmconf#1#2{\if@acmconf#1\else#2\fi}
110
111 \newif\ifpreprint
112 \def\ds@preprint{\preprinttrue}
113 \def\ds@twoside{\@twosidetrue \@mparswitchtrue}
114 \def\ds@secindent{\def\@afterindentfalse{\@afterindenttrue}}
115
116 \@namedef{ds@10pt}{\@latexerr{The `10pt' option is not allowed in the `acmconf'
117   document style.}\@eha}
118 \@namedef{ds@11pt}{\@latexerr{The `11pt' option is not allowed in the `acmconf'
119   document style.}\@eha}
120 \@namedef{ds@12pt}{\@latexerr{The `12pt' option is not allowed in the `acmconf'
121   document style.}\@eha}
122
123 \@options
124
125 \lineskip 1pt           % \lineskip is 1pt for all font sizes.
126 \normallineskip 1pt
127 \def\baselinestretch{1}
128
129 \def\@normalsize{\@setsize\normalsize{10pt}\ixpt\@ixpt
130 \abovedisplayskip 9pt plus2pt minus4.5pt%
131 \belowdisplayskip \abovedisplayskip
132 \abovedisplayshortskip  \z@ plus3pt%
133 \belowdisplayshortskip  5.4pt plus3pt minus3pt%
134 \let\@listi\@listI}     % Setting of \@listi added 9 Jun 87
135
136 \def\small{\@setsize\small{9pt}\viiipt\@viiipt
137 \abovedisplayskip 7.6pt plus 3pt minus 4pt%
138 \belowdisplayskip \abovedisplayskip
139 \abovedisplayshortskip \z@ plus2pt%
140 \belowdisplayshortskip 3.6pt plus2pt minus 2pt
141 \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
142 \topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
143 \itemsep \parsep}}
144
145 \def\footnotesize{\@setsize\footnotesize{8pt}\viipt\@viipt
146 \abovedisplayskip 6.4pt plus 2pt minus 4pt%
147 \belowdisplayskip \abovedisplayskip
148 \abovedisplayshortskip \z@ plus 1pt%
149 \belowdisplayshortskip 2.7pt plus 1pt minus 2pt
150 \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
151 \topsep 3pt plus 1pt minus 1pt\parsep 2pt plus 1pt minus 1pt
152 \itemsep \parsep}}
153
154 \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
155 \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
156 \def\large{\@setsize\large{13.6pt}\xipt\@xipt}
157 \def\Large{\@setsize\Large{16pt}\xiipt\@xiipt}
158 \def\LARGE{\@setsize\LARGE{18pt}\xivpt\@xivpt}
159 \def\huge{\@setsize\huge{22pt}\xviipt\@xviipt}
160 \def\Huge{\@setsize\Huge{25pt}\xxpt\@xxpt}
161
162 %%% Patch for LaTeX-2e (LaTeX 2.09 compatibility mode)
163 %%% The line \font\ninsfb = cmssbx10\@ptscale9 is replaced by
164 \expandafter\ifx\csname fontseries\endcsname\relax
165   \font\ninsfb = cmssbx10\@ptscale9
166  \else
167   \def\ninsfb{\fontfamily{cmss}\fontseries{bx}\fontshape{n}
168   \fontsize{9}{\f@baselineskip}\selectfont}
169 \fi
170 %%% End patch for LaTeX-2e
171 \def\@acmtitlestyle{\normalsize\ninsfb}
172 %%%
173 %%% DIAGNOSTICS:
174 %%% The ten lines above (the patch and the \def\@acmtitlestyle command) will
175 %%% cause problems if your printer doesn't have the 9pt. bold sans-serif font.
176 %%% If this is a problem, try commenting out those lines and uncommenting one
177 %%% of the following alternatives.  (It is best to try them in order until
178 %%% finding one that works; the earlier alternatives cause less change.)
179 %%%
180 %%% ALTERNATIVE 1: (works if your system has the same font in 10pt.)
181 %%% \font\tensfb = cmssbx10
182 %%% \def\@acmtitlestyle{\normalsize\tensfb}
183 %%% ALTERNATIVE 2:
184 %%% \def\@acmtitlestyle{\normalsize\ninbf}
185 %%% ALTERNATIVE 3:
186 %%% \def\@acmtitlestyle{\normalsize\tenbf}
187
188 \normalsize  % Choose the normalsize font.
189
190 \oddsidemargin 4.5pc
191 \evensidemargin 4.5pc
192 \advance\oddsidemargin by -1in  % Correct for LaTeX gratuitousness
193 \advance\evensidemargin by -1in % Correct for LaTeX gratuitousness
194 \marginparwidth 0pt             % Margin pars are not allowed.
195 \marginparsep 11pt              % Horizontal space between outer margin and
196                                 % marginal note
197
198                                 % Top of page:
199 \topmargin 4.5pc                % Nominal distance from top of page to top of
200                                 % box containing running head.
201 \advance\topmargin by -1in      % Correct for LaTeX gratuitousness
202 \headheight 0pt                 % Height of box containing running head.
203 \headsep 0pt                    % Space between running head and text.
204                                 % Bottom of page:
205 \footskip 30pt                  % Distance from baseline of box containing foot
206                                 % to baseline of last line of text.
207 \footheight 12pt                % Height of box containing running foot.
208
209 %% Must redefine the top margin so there's room for headers and
210 %% page numbers if you are using the preprint option. Footers
211 %% are OK as is. Olin.
212 \advance\topmargin by -37pt     % Leave 37pt above text for headers
213 \headheight 12pt                % Height of box containing running head.
214 \headsep 25pt                   % Space between running head and text.
215
216 \textheight 666pt       % 9 1/4 column height
217 \textwidth 42pc         % Width of text line.
218                         % For two-column mode:
219 \columnsep 2pc          %    Space between columns
220 \columnseprule 0pt      %    Width of rule between columns.
221 \hfuzz 1pt              % Allow some variation in column width, otherwise it's
222                         % too hard to typeset in narrow columns.
223
224 \footnotesep 5.6pt      % Height of strut placed at the beginning of every
225                         % footnote = height of normal \footnotesize strut,
226                         % so no extra space between footnotes.
227
228 \skip\footins 8.1pt plus 4pt minus 2pt  % Space between last line of text and
229                                         % top of first footnote.
230 \floatsep 11pt plus 2pt minus 2pt       % Space between adjacent floats moved
231                                         % to top or bottom of text page.
232 \textfloatsep 18pt plus 2pt minus 4pt   % Space between main text and floats
233                                         % at top or bottom of page.
234 \intextsep 11pt plus 2pt minus 2pt      % Space between in-text figures and
235                                         % text.
236 \@maxsep 18pt                           % The maximum of \floatsep,
237                                         % \textfloatsep and \intextsep (minus
238                                         % the stretch and shrink).
239 \dblfloatsep 11pt plus 2pt minus 2pt    % Same as \floatsep for double-column
240                                         % figures in two-column mode.
241 \dbltextfloatsep 18pt plus 2pt minus 4pt% \textfloatsep for double-column
242                                         % floats.
243 \@dblmaxsep 18pt                        % The maximum of \dblfloatsep and
244                                         % \dbltexfloatsep.
245 \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must be
246                          % 0pt plus ...)
247 \@fpsep 8pt plus 2fil    % Space between floats on float page/column.
248 \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must be
249                          % 0pt plus ... )
250 \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
251 \@dblfpsep 8pt plus 2fil % Space between floats on float page.
252 \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
253                          % 0pt plus ... )
254 \marginparpush 5pt       % Minimum vertical separation between two marginal
255                          % notes.
256
257 \parskip 0pt plus 1pt            % Extra vertical space between paragraphs.
258 \parindent 13.5pt                % Width of paragraph indentation.
259 %\topsep 8pt plus 2pt minus 4pt  % Extra vertical space, in addition to
260                                  % \parskip, added above and below list and
261                                  % paragraphing environments.
262 \partopsep 2pt plus 1pt minus 1pt% Extra vertical space, in addition to
263                                  % \parskip and \topsep, added when user
264                                  % leaves blank line before environment.
265 %\itemsep 4pt plus 2pt minus 1pt % Extra vertical space, in addition to
266                                  % \parskip, added between list items.
267 % See \@listI for values of \topsep and \itemsep
268
269 \@lowpenalty   51       % Produced by \nopagebreak[1] or \nolinebreak[1]
270 \@medpenalty  151       % Produced by \nopagebreak[2] or \nolinebreak[2]
271 \@highpenalty 301       % Produced by \nopagebreak[3] or \nolinebreak[3]
272
273 \@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
274 \@endparpenalty   -\@lowpenalty % After a list or paragraph environment.
275 \@itempenalty     -\@lowpenalty % Between list items.
276
277 % \clubpenalty          % 'Club line'  at bottom of page.
278 % \widowpenalty         % 'Widow line' at top of page.
279 % \displaywidowpenalty  % Math display widow line.
280 % \predisplaypenalty    % Breaking before a math display.
281 % \postdisplaypenalty   % Breaking after a math display.
282 % \interlinepenalty     % Breaking at a line within a paragraph.
283 % \brokenpenalty        % Breaking after a hyphenated line.
284
285 \def\part{\par          % New paragraph
286    \addvspace{4ex}      % Adds vertical space above title.
287    \@afterindentfalse   % Suppresses indent in first paragraph.  Change
288    \secdef\@part\@spart}% to \@afterindenttrue to have indent.
289
290 \def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne   % IF secnumdepth > -1
291         \refstepcounter{part}                   %  THEN step part counter
292         \addcontentsline{toc}{part}{\thepart    %       add toc line
293         \hspace{1em}#1}\else                    %  ELSE add unnumbered line
294       \addcontentsline{toc}{part}{#1}\fi        % FI
295    { \parindent 0pt \raggedright
296     \ifnum \c@secnumdepth >\m@ne% IF secnumdepth > -1
297       \Large \bf Part \thepart  %   THEN Print 'Part' and
298       \par \nobreak             %          number in \Large boldface.
299     \fi                         % FI
300     \huge \bf                   % Select \huge boldface.
301     #2\markboth{}{}\par }       % Print title and set heading marks null.
302     \nobreak                    % TeX penalty to prevent page break.
303     \vskip 3ex                  % Space between title and text.
304    \@afterheading               % Routine called after part and
305     }                           %     section heading.
306
307 \def\@spart#1{{\parindent 0pt \raggedright
308     \huge \bf
309     #1\par}                     % Title.
310     \nobreak                    % TeX penalty to prevent page break.
311     \vskip 3ex                  % Space between title and text.
312     \@afterheading              % Routine called after part and
313   }                             %     section heading.
314
315 \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
316     -.2ex}{2.3ex plus .2ex}{\@acmtitlestyle}}
317 \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
318    -.2ex}{1.5ex plus .2ex}{\@acmtitlestyle}}
319 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
320 -1ex minus -.2ex}{1.5ex plus .2ex}{\@acmtitlestyle}}
321 \def\paragraph{\@startsection
322      {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\@acmtitlestyle}}
323 \def\subparagraph{\@startsection
324      {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
325      .2ex}{-1em}{\@acmtitlestyle}}
326
327 \setcounter{secnumdepth}{3}
328
329 \def\appendix{\par
330   \setcounter{section}{0}
331   \setcounter{subsection}{0}
332   \def\thesection{\Alph{section}}}
333
334 \leftmargini 22.5pt
335 \leftmarginii 19.8pt    % > \labelsep + width of '(m)'
336 \leftmarginiii 16.8pt   % > \labelsep + width of 'vii.'
337 \leftmarginiv 15.3pt    % > \labelsep + width of 'M.'
338 \leftmarginv 9pt
339 \leftmarginvi 9pt
340
341 \leftmargin\leftmargini
342 \labelsep 4.5pt
343 \labelwidth\leftmargini\advance\labelwidth-\labelsep
344 % \parsep 4pt plus 2pt minus 1pt (Removed 9 Jun 87)
345
346 % \@listI defines top level and \@listi values of
347 % \leftmargin, \topsep, \parsep, and \itemsep
348 % (Added 9 Jun 87)
349 \def\@listI{\leftmargin\leftmargini \parsep 3.6pt plus 2pt minus 1pt%
350 \topsep 7.2pt plus 2pt minus 4pt%
351 \itemsep 3.6pt plus 2pt minus 1pt}
352
353 \let\@listi\@listI
354 \@listi
355
356 \def\@listii{\leftmargin\leftmarginii
357    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
358    \topsep 3.6pt plus 2pt minus 1pt
359    \parsep 1.8pt plus 0.9pt minus 0.9pt
360    \itemsep \parsep}
361
362 \def\@listiii{\leftmargin\leftmarginiii
363     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
364     \topsep 1.8pt plus 0.9pt minus 0.9pt
365     \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
366     \itemsep \topsep}
367
368 \def\@listiv{\leftmargin\leftmarginiv
369      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
370
371 \def\@listv{\leftmargin\leftmarginv
372      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
373
374 \def\@listvi{\leftmargin\leftmarginvi
375      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
376
377 \def\labelenumi{\theenumi.}
378 \def\theenumi{\arabic{enumi}}
379
380 \def\labelenumii{(\theenumii)}
381 \def\theenumii{\alph{enumii}}
382 \def\p@enumii{\theenumi}
383
384 \def\labelenumiii{\theenumiii.}
385 \def\theenumiii{\roman{enumiii}}
386 \def\p@enumiii{\theenumi(\theenumii)}
387
388 \def\labelenumiv{\theenumiv.}
389 \def\theenumiv{\Alph{enumiv}}
390 \def\p@enumiv{\p@enumiii\theenumiii}
391
392 \def\labelitemi{$\bullet$}
393 \def\labelitemii{\bf --}
394 \def\labelitemiii{$\ast$}
395 \def\labelitemiv{$\cdot$}
396
397 \def\verse{\let\\=\@centercr
398   \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
399           \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
400 \let\endverse\endlist
401
402 \def\quotation{\list{}{\listparindent 1.5em
403     \itemindent\listparindent
404     \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
405 \let\endquotation=\endlist
406
407 \def\quote{\list{}{\rightmargin\leftmargin}\item[]}
408 \let\endquote=\endlist
409
410 \def\descriptionlabel#1{\hspace\labelsep \bf #1}
411 \def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
412        \let\makelabel\descriptionlabel}}
413
414 \let\enddescription\endlist
415
416 %\newdimen\descriptionmargin
417 %\descriptionmargin=3em
418
419 \def\theequation{\arabic{equation}}
420
421 % \jot = 3pt    % Extra space added between lines of an eqnarray environment
422
423 % The macro \@eqnnum defines how equation numbers are to appear in equations.
424 %
425 % \def\@eqnnum{(\theequation)}
426 %
427
428 % Changed pagenum to 1, so margins work right in twoside option.
429 % It's not clear to me that this environment is useful for acmconf.sty
430 % anyway. -Olin
431 \def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
432      \else \newpage \fi \thispagestyle{empty}\c@page\@ne}
433
434 \def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi \c@page\@ne}
435
436 \arraycolsep 4.5pt      % Half the space between columns in an array environment.
437 \tabcolsep 5.4pt        % Half the space between columns in a tabular environment.
438 \arrayrulewidth .4pt    % Width of rules in array and tabular environment.
439 \doublerulesep 1.8pt    % Space between adjacent rules in array or tabular env.
440
441 \tabbingsep \labelsep   % Space used by the \' command.  (See LaTeX manual.)
442
443 \skip\@mpfootins = \skip\footins
444
445 \fboxsep = 2.7pt        % Space left between box and text by \fbox and \framebox.
446 \fboxrule = .4pt        % Width of rules in box made by \fbox and \framebox.
447
448 \newcounter{part}
449 \newcounter {section}
450 \newcounter {subsection}[section]
451 \newcounter {subsubsection}[subsection]
452 \newcounter {paragraph}[subsubsection]
453 \newcounter {subparagraph}[paragraph]
454
455 \def\thepart{\Roman{part}} % Roman numeral part numbers.
456 \def\thesection       {\arabic{section}}
457 \def\thesubsection    {\thesection.\arabic{subsection}}
458 \def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
459 \def\theparagraph     {\thesubsubsection.\arabic{paragraph}}
460 \def\thesubparagraph  {\theparagraph.\arabic{subparagraph}}
461
462 \def\@pnumwidth{1.55em}
463 \def\@tocrmarg {2.55em}
464 \def\@dotsep{4.5}
465 \setcounter{tocdepth}{3}
466
467 \def\tableofcontents{\@latexerr{\tableofcontents: Tables of contents are not
468   allowed in the `acmconf' document style.}\@eha}
469
470 \def\l@part#1#2{\addpenalty{\@secpenalty}
471    \addvspace{2.25em plus 1pt}  % space above part line
472    \begingroup
473    \@tempdima 3em       % width of box holding part number, used by
474      \parindent \z@ \rightskip \@pnumwidth      %% \numberline
475      \parfillskip -\@pnumwidth
476      {\large \bf        % set line in \large boldface
477      \leavevmode        % TeX command to enter horizontal mode.
478      #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
479      \nobreak           % Never break after part entry
480    \endgroup}
481
482 \def\l@section#1#2{\addpenalty{\@secpenalty} % good place for page break
483    \addvspace{1.0em plus 1pt}   % space above toc entry
484    \@tempdima 1.5em             % width of box holding section number
485    \begingroup
486      \parindent \z@ \rightskip \@pnumwidth
487      \parfillskip -\@pnumwidth
488      \bf                        % Boldface.
489      \leavevmode                % TeX command to enter horizontal mode.
490       \advance\leftskip\@tempdima %% added 5 Feb 88 to conform to
491       \hskip -\leftskip           %% 25 Jan 88 change to \numberline
492      #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
493    \endgroup}
494
495
496 \def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
497 \def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
498 \def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
499 \def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
500
501 \def\listoffigures{\@latexerr{\listoffigures: Lists of figures are not
502   allowed in the `acmconf' document style.}\@eha}
503
504 \def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
505
506 \def\listoftables{\@latexerr{\listoftables: Lists of tables are not
507   allowed in the `acmconf' document style.}\@eha}
508 \let\l@table\l@figure
509
510
511 \def\thebibliography#1{\section*{References\@mkboth
512   {REFERENCES}{REFERENCES}}\list
513   {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
514     \advance\leftmargin\labelsep
515     \usecounter{enumi}}
516     \def\newblock{\hskip .11em plus .33em minus .07em}
517     \sloppy\clubpenalty4000\widowpenalty4000
518     \sfcode`\.=1000\relax}
519
520 \let\endthebibliography=\endlist
521
522 % \def\@biblabel#1{[#1]\hfill}  % Produces the label for a \bibitem[...]
523                                 % command.
524 % \def\@cite#1{[#1]}            % Produces the output of the \cite command.
525
526 \newif\if@restonecol
527
528 \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
529 \columnseprule \z@
530 \columnsep 35pt\twocolumn[\section*{Index}]
531     \@mkboth{INDEX}{INDEX}\thispagestyle{empty}\parindent\z@
532     \parskip\z@ plus .3pt\relax\let\item\@idxitem}
533
534 \def\@idxitem{\par\hangindent 40pt}
535
536 \def\subitem{\par\hangindent 40pt \hspace*{20pt}}
537
538 \def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
539
540 \def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
541
542 \def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}
543
544 \def\footnoterule{\kern-3\p@
545   \hrule width .4\columnwidth
546   \kern 2.6\p@}                 % The \hrule has default height of .4pt .
547
548 \long\def\@makefntext#1{\parindent 1em\noindent
549             \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}
550
551 \setcounter{topnumber}{2}
552 \def\topfraction{.7}
553 \setcounter{bottomnumber}{1}
554 \def\bottomfraction{.3}
555 \setcounter{totalnumber}{3}
556 \def\textfraction{.2}
557 \def\floatpagefraction{.5}
558 \setcounter{dbltopnumber}{2}
559 \def\dbltopfraction{.7}
560 \def\dblfloatpagefraction{.5}
561
562 \long\def\@makecaption#1#2{
563    \vskip 10pt
564    \setbox\@tempboxa\hbox{#1: #2}
565    \ifdim \wd\@tempboxa >\hsize % IF longer than one line:
566        #1: #2\par               %   THEN set as ordinary paragraph.
567      \else                      %   ELSE  center.
568        \hbox to\hsize{\hfil\box\@tempboxa\hfil}
569    \fi}
570
571 \newcounter{figure}
572 \def\thefigure{\@arabic\c@figure}
573
574 \def\fps@figure{tbp}
575 \def\ftype@figure{1}
576 \def\ext@figure{lof}
577 \def\fnum@figure{Figure \thefigure}
578 \def\figure{\@float{figure}}
579 \let\endfigure\end@float
580 \@namedef{figure*}{\@dblfloat{figure}}
581 \@namedef{endfigure*}{\end@dblfloat}
582
583 \newcounter{table}
584 \def\thetable{\@arabic\c@table}
585
586 \def\fps@table{tbp}
587 \def\ftype@table{2}
588 \def\ext@table{lot}
589 \def\fnum@table{Table \thetable}
590 \def\table{\@float{table}}
591 \let\endtable\end@float
592 \@namedef{table*}{\@dblfloat{table}}
593 \@namedef{endtable*}{\end@dblfloat}
594
595 \def\maketitle{\par
596  \begingroup
597    \def\thefootnote{\fnsymbol{footnote}}
598    \def\@makefnmark{\hbox
599        to 0pt{$^{\@thefnmark}$\hss}}
600    \if@twocolumn
601      \twocolumn[\@maketitle]
602      \else \newpage
603      \global\@topnum\z@         % Prevents figures from going at top of page.
604 %     \@maketitle \fi\thispagestyle{empty}\@thanks
605      \@maketitle \fi\@thanks
606  \endgroup
607  \setcounter{footnote}{0}
608  \let\maketitle\relax
609  \let\@maketitle\relax
610  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax
611  \@copyrightspace}
612
613 \newbox\@acmtitlebox
614 \def\@maketitle{\newpage
615  \null
616  \setbox\@acmtitlebox\vbox{%
617    \vskip 2em                   % Vertical space above title.
618    \begin{center}
619     {\LARGE \@title \par}       % Title set in \LARGE size.
620     \vskip 1.5em                % Vertical space after title.
621     {\large                     % each author set in \large, in a
622      \lineskip .5em             % tabular environment
623      \begin{tabular}[t]{c}\@author
624      \end{tabular}\par}
625     \vskip 1.5em                % Vertical space after author.
626    \end{center}}
627  \dimen0=\ht\@acmtitlebox
628  \advance\dimen0 by -14.5pc\relax % Increased space for title box -- KBT
629  \unvbox\@acmtitlebox
630  \ifdim\dimen0<0.0pt\relax\vskip-\dimen0\fi}
631
632 \def\abstract{\if@twocolumn
633 \section*{Abstract}
634 \else \small
635 \begin{center}
636 {\bf Abstract\vspace{-.5em}\vspace{0pt}}
637 \end{center}
638 \quotation
639 \fi}
640
641 \def\endabstract{\if@twocolumn\else\endquotation\fi}
642
643 %%% This section (written by KBT) handles the 1" box in the lower left
644 %%% corner of the left column of the first page by creating a picture,
645 %%% and inserting the predefined string at the bottom (with a negative
646 %%% displacement to offset the space allocated for a non-existent
647 %%% caption).
648 %%%
649 \def\ftype@copyrightbox{8}
650 \def\@copyrightspace{
651 \@float{copyrightbox}[b]
652 \begin{center}
653 \setlength{\unitlength}{1pc}
654 \begin{picture}(20,2.8)
655 \ifpreprint \put(0,-0.95){\@toappear} \else \fi
656 \end{picture}
657 \end{center}
658 \end@float}
659
660 \def\@toappear{} % Default setting blank - commands below change this.
661 \def\toappear#1{\def\@toappear{\parbox[b]{20pc}{#1}}}
662 \def\toappearbox#1{\def\@toappear{\raisebox{5pt}{\framebox[20pc]{\parbox[b]{19pc}{#1}}}}}
663
664 \def\marginpar{\@latexerr{The \marginpar command is not allowed in the
665   `acmconf' document style.}\@eha}
666
667 \mark{{}{}}     % Initializes TeX's marks
668
669 %% Headings are ignored unless the [preprint] option is in force.
670 \ifpreprint
671   \if@twoside
672       \def\ps@headings{
673           \def\@oddfoot{}
674           \def\@evenfoot{}
675           \def\@evenhead{\rm\thepage\hfil \sl \leftmark}
676           \def\@oddhead{\hbox{}\sl \rightmark \hfil\rm\thepage}
677           \def\sectionmark##1{\markboth {\uppercase{\ifnum\c@secnumdepth>\z@
678                               \thesection \hskip 1em\relax \fi ##1}}{}}
679           \def\subsectionmark##1
680               {\markright {\ifnum \c@secnumdepth >\@ne \thesubsection
681                     \hskip 1em\relax \fi ##1}}}
682
683   \else
684       \def\ps@headings{
685           \def\@oddfoot{}
686           \def\@evenfoot{}
687           \def\@oddhead{\hbox{}\sl \rightmark \hfil \rm\thepage}
688           \def\sectionmark##1{\markright{\uppercase{\ifnum \c@secnumdepth >\z@
689                                          \thesection\hskip 1em\relax \fi ##1}}}}
690   \fi
691
692   \def\ps@myheadings{\def\@oddhead{\hbox{}\sl\rightmark \hfil\rm\thepage}%
693                      \def \@evenhead{\rm \thepage\hfil\sl\leftmark\hbox{}}%
694                      \def\@oddfoot{}%
695                      \def\@evenfoot{}%
696                      \def\sectionmark##1{}%
697                      \def\subsectionmark##1{}}
698
699 \else % preprint off -- all \pagestyle commands ==> \pagestyle{empty}.
700   \let\ps@plain\ps@empty
701   \let\ps@headings\ps@empty
702   \let\ps@myheadings\ps@empty
703 \fi
704
705 \def\today{\ifcase\month\or
706   January\or February\or March\or April\or May\or June\or
707   July\or August\or September\or October\or November\or December\fi
708   \space\number\day, \number\year}
709
710 \ps@plain
711 \pagenumbering{arabic}  % Arabic page numbers
712 \twocolumn              % Double column.
713 \raggedbottom           % Ragged bottom