summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/acmproc.sty
blob: f4092a3dfe3e642d373486468781c40c56d21689 (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
% ACMproc.sty
% PROC DOCUMENT STYLE -- Released 4 September 1986
%    for LaTeX version 2.09
% Copyright (C) 1985 by Leslie Lamport
%
% This is a style option for use with the article style to produce
% camera-ready conference proceedings.
 
\typeout{Document Style Option 'ACMproc'}
 
 

%  ****************************************
%  *            PAGE LAYOUT               *
%  ****************************************
%
% All margin dimensions measured from a point one inch from top and side
% of page.  Dimensions shrink by about 2 percent
 
% SIDE MARGINS (ACM instructions)
   \oddsidemargin  -0.25in      %   Note that \oddsidemargin = \evensidemargin
   \evensidemargin -0.25in
% to print on a 8.5''x11'' page manually feeded through the
% LaserWriter
\advance\oddsidemargin by -4.5mm
\advance\evensidemargin by -4.5mm
 
% VERTICAL SPACING (ACM instructions)
                         % Top of page:
\topmargin -0.25in       %    Nominal distance from top of page to top of
                         %    box containing running head.
\headheight 12pt         %    Height of box containing running head.
\headsep 25pt            %    Space between running head and text.
\advance\topmargin by -37pt % subtract \headheight and \headsep from \topmargin
\advance\topmargin by -1.7cm	% ???
% \topskip = 10pt        %    '\baselineskip' for first line of page.
                         % Bottom of page:
\footskip 100pt          %    Distance from baseline of box containing foot 
                         %    to baseline of last line of text.
 
 
% DIMENSION OF TEXT (ACM instructions)
 
\textheight 9in          % Height of text (including footnotes and figures, 
                         % excluding running head and foot).
\advance\textheight by 5mm
\textwidth 7in		 % Width of text line.
                         % For two-column mode: 
\columnsep .333in        %    Space between columns 
\columnseprule 0pt       %    Width of rule between columns.
 
% ADJUSTMENT FOR A4 PAGE SIZE 900403/BjL
 
\hoffset=3mm
\voffset=18mm
 

%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
%  Use \markright (or \markboth) to put an identification in the
%  lower left.  The page number is printed in the lower right.
 
 
\def\@oddhead{}\def\@evenhead{}
\def\@oddfoot{\rm\rightmark \hfil Page \thepage}
\def\@evenfoot{\@oddfoot}
 

%    ****************************************
%    *               TITLE                  *
%    ****************************************
%
 
% This definition of \maketitle taken from article.sty, except
% it does not do a \thispagestyle{plain}.
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% ATTENTION  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%% JJL HACK  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Un hack horrible qui change 2.25 en 1.20 pour faire des titres
% moins hauts REVISED to 1.50 % MJ: revised to 6cm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\maketitle{\par
 \begingroup
   \def\thefootnote{\fnsymbol{footnote}}
   \def\@makefnmark{\hbox   
       to 0pt{$^{\@thefnmark}$\hss}}   
   \twocolumn[\@maketitle]   
   \@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
 
\def\@maketitle{\vbox to 6cm{\hsize\textwidth 
  \linewidth\hsize \vfil \centering
  {\LARGE \@title \par}     % Title set in \LARGE size. MJ: correction
			    % de la correction
  \vskip 2em                % Vertical space after title.
  {\large \begin{tabular}[t]{c}\@author \end{tabular}\par}
  \vskip 2em			% MJ: leave at least that place after authors
  \vfil}}
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% fin du hack  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
% The \copyrightspace command is used to produce a blank space in the first 
% column where a copyright notice belongs.  It works by producing a
% blank footnote of the appropriate size.  Note that it should appear
% after any \footnote commands that produce footnotes for the first
% column.
 
% modified from 97pt to .75in, to satisfy acm requirement [0]
% changed to 1in after \advance'ing\textheight by 5mm
\def\copyrightspace{\footnotetext{\mbox{}\vrule height 1in width 0pt}}
 
% Section commands changed (smaller font, smaller spaces around) 900403/BjL
 
\def\section{\@startsection {section}{1}{\z@}{-3.25ex plus -1ex minus
-.2ex}{1.5ex plus .2ex}{\bf}}
 
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
 -.2ex}{1.5ex plus .2ex}{\bf}}
 
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
-1ex minus -.2ex}{1.5ex plus .2ex}{\bf}}
 
% The abstract Environment (changed 900403/BjL)
 
\def\abstract{\section*{ABSTRACT}}
\def\endabstract{\par}
 
% Bibliography 900403/BjL
 
\def\thebibliography#1{\section*{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\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
 
% Table of contents 900403/BjL
 
\def\tableofcontents{\section*{CONTENTS\@mkboth{CONTENTS}{CONTENTS}}
 \@starttoc{toc}}
 
% List of figures 900403/BjL
 
\def\listoffigures{\section*{LIST OF FIGURES\@mkboth
 {LIST OF FIGURES}{LIST OF FIGURES}}\@starttoc{lof}}
 
% List of tables 900403/BjL
 
\def\listoftables{\section*{LIST OF TABLES\@mkboth
 {LIST OF TABLES}{LIST OF TABLES}}\@starttoc{lot}}
 
% Index 900403/BjL
 
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\section*{INDEX}]
 \@mkboth{INDEX}{INDEX}\thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
 

%    ****************************************
%    *           INITIALIZATION             *
%    ****************************************
%
% Default initializations
 
\twocolumn                  
\sloppy
\parindent 1em
\leftmargini 2em
\leftmargin\leftmargini 
\leftmarginv .5em
\leftmarginvi .5em
\flushbottom