annotate docs/WAC2016/sig-alternate.cls @ 2436:25c1436706af

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Thu, 02 Jun 2016 14:20:55 +0100
parents ba6b9e1aaef5
children
rev   line source
nicholas@730 1 % SIG-ALTERNATE.CLS - VERSION 2.8
nicholas@730 2 % "COMPATIBLE" WITH THE "ACM_PROC_ARTICLE-SP.CLS" V3.2SP
nicholas@730 3 % Gerald Murray - May 23rd 2012
nicholas@730 4 % Boris Veytsman - April 23 2013
nicholas@730 5 % Boris Veytsman - May 12 2013
nicholas@730 6 % Boris Veytsman - June 09 2013
nicholas@730 7 % Boris Veytsman - August 12 2013
nicholas@730 8 %
nicholas@730 9 % ---- Start of 'updates' ----
nicholas@730 10 % Added new permission/copyright statement - BV
nicholas@730 11 % Changed $10 fee to $15 -- May 2012 -- Gerry
nicholas@730 12 % Changed $5 fee to $10 -- April 2009 -- Gerry
nicholas@730 13 % April 22nd. 2009 - Fixed 'Natbib' incompatibility problem - Gerry
nicholas@730 14 % April 22nd. 2009 - Fixed 'Babel' incompatibility problem - Gerry
nicholas@730 15 % April 22nd. 2009 - Inserted various bug-fixes and improvements - Gerry
nicholas@730 16 %
nicholas@730 17 % To produce Type 1 fonts in the document plus allow for 'normal LaTeX accenting' in the critical areas;
nicholas@730 18 % title, author block, section-heads, confname, etc. etc.
nicholas@730 19 % i.e. the whole purpose of this version update is to NOT resort to 'inelegant accent patches'.
nicholas@730 20 % After much research, three extra .sty packages were added to the the tail (ae, aecompl, aeguill) to solve,
nicholas@730 21 % in particular, the accenting problem(s). We _could_ ask authors (via instructions/sample file) to 'include' these in
nicholas@730 22 % the source .tex file - in the preamble - but if everything is already provided ('behind the scenes' - embedded IN the .cls)
nicholas@730 23 % then this is less work for authors and also makes everything appear 'vanilla'.
nicholas@730 24 % NOTE: all 'patchwork accenting" has been commented out (here) and is no longer 'used' in the sample .tex file (either).
nicholas@730 25 % Gerry June 2007
nicholas@730 26 %
nicholas@730 27 % Patch for accenting in conference name/location. Gerry May 3rd. 2007
nicholas@730 28 % Rule widths changed to .5, author count (>6) fixed, roll-back for Type 3 problem. Gerry March 20th. 2007
nicholas@730 29 % Changes made to 'modernize' the fontnames but esp. for MikTeX users V2.4/2.5 - Nov. 30th. 2006
nicholas@730 30 % Updated the \email definition to allow for its use inside of 'shared affiliations' - Nov. 30th. 2006
nicholas@730 31 % Fixed the 'section number depth value' - Nov. 30th. 2006
nicholas@730 32 %
nicholas@730 33 % Footnotes inside table cells using \minipage (Oct. 2002)
nicholas@730 34 % Georgia fixed bug in sub-sub-section numbering in paragraphs (July 29th. 2002)
nicholas@730 35 % JS/GM fix to vertical spacing before Proofs (July 30th. 2002)
nicholas@730 36 %
nicholas@730 37 % Made the Permission Statement / Conference Info / Copyright Info
nicholas@730 38 % 'user definable' in the source .tex file OR automatic if
nicholas@730 39 % not specified.
nicholas@730 40 %
nicholas@730 41 % Allowance made to switch default fonts between those systems using
nicholas@730 42 % normal/modern font names and those using 'Type 1' or 'Truetype' fonts.
nicholas@730 43 % See LINE NUMBER 255 for details.
nicholas@730 44 % Also provided for enumerated/annotated Corollaries 'surrounded' by
nicholas@730 45 % enumerated Theorems (line 848).
nicholas@730 46 % Gerry November 11th. 1999
nicholas@730 47 %
nicholas@730 48 % ---- End of 'updates' ----
nicholas@730 49 %
nicholas@730 50 \def\fileversion{v2.9} % for ACM's tracking purposes
nicholas@730 51 \def\filedate{August 12, 2013} % Gerry Murray's tracking data
nicholas@730 52 \def\docdate {\filedate}
nicholas@730 53 \usepackage{epsfig}
nicholas@730 54 \usepackage{amssymb}
nicholas@730 55 \usepackage{amsmath}
nicholas@730 56 \usepackage{amsfonts}
nicholas@730 57 % Need this for accents in Arial/Helvetica
nicholas@730 58 %\usepackage[T1]{fontenc} % Gerry March 12, 2007 - causes Type 3 problems (body text)
nicholas@730 59 %\usepackage{textcomp}
nicholas@730 60 %
nicholas@730 61 % SIG-ALTERNATE DOCUMENT STYLE
nicholas@730 62 % G.K.M. Tobin August-October 1999
nicholas@730 63 % adapted from ARTICLE document style by Ken Traub, Olin Shivers
nicholas@730 64 % also using elements of esub2acm.cls
nicholas@730 65 % HEAVILY MODIFIED, SUBSEQUENTLY, BY GERRY MURRAY 2000
nicholas@730 66 % ARTICLE DOCUMENT STYLE -- Released 16 March 1988
nicholas@730 67 % for LaTeX version 2.09
nicholas@730 68 % Copyright (C) 1988 by Leslie Lamport
nicholas@730 69 %
nicholas@730 70 %
nicholas@730 71 %%% sig-alternate.cls is an 'ALTERNATE' document style for producing
nicholas@730 72 %%% two-column camera-ready pages for ACM conferences.
nicholas@730 73 %%% THIS FILE DOES NOT STRICTLY ADHERE TO THE SIGS (BOARD-ENDORSED)
nicholas@730 74 %%% PROCEEDINGS STYLE. It has been designed to produce a 'tighter'
nicholas@730 75 %%% paper in response to concerns over page budgets.
nicholas@730 76 %%% The main features of this style are:
nicholas@730 77 %%%
nicholas@730 78 %%% 1) Two columns.
nicholas@730 79 %%% 2) Side and top margins of 4.5pc, bottom margin of 6pc, column gutter of
nicholas@730 80 %%% 2pc, hence columns are 20pc wide and 55.5pc tall. (6pc =3D 1in, approx)
nicholas@730 81 %%% 3) First page has title information, and an extra 6pc of space at the
nicholas@730 82 %%% bottom of the first column for the ACM copyright notice.
nicholas@730 83 %%% 4) Text is 9pt on 10pt baselines; titles (except main) are 9pt bold.
nicholas@730 84 %%%
nicholas@730 85 %%%
nicholas@730 86 %%% There are a few restrictions you must observe:
nicholas@730 87 %%%
nicholas@730 88 %%% 1) You cannot change the font size; ACM wants you to use 9pt.
nicholas@730 89 %%% 3) You must start your paper with the \maketitle command. Prior to the
nicholas@730 90 %%% \maketitle you must have \title and \author commands. If you have a
nicholas@730 91 %%% \date command it will be ignored; no date appears on the paper, since
nicholas@730 92 %%% the proceedings will have a date on the front cover.
nicholas@730 93 %%% 4) Marginal paragraphs, tables of contents, lists of figures and tables,
nicholas@730 94 %%% and page headings are all forbidden.
nicholas@730 95 %%% 5) The `figure' environment will produce a figure one column wide; if you
nicholas@730 96 %%% want one that is two columns wide, use `figure*'.
nicholas@730 97 %%%
nicholas@730 98 %
nicholas@730 99 %%% Copyright Space:
nicholas@730 100 %%% This style automatically reserves 1" blank space at the bottom of page 1/
nicholas@730 101 %%% column 1. This space can optionally be filled with some text using the
nicholas@730 102 %%% \toappear{...} command. If used, this command must be BEFORE the \maketitle
nicholas@730 103 %%% command. If this command is defined AND [preprint] is on, then the
nicholas@730 104 %%% space is filled with the {...} text (at the bottom); otherwise, it is
nicholas@730 105 %%% blank. If you use \toappearbox{...} instead of \toappear{...} then a
nicholas@730 106 %%% box will be drawn around the text (if [preprint] is on).
nicholas@730 107 %%%
nicholas@730 108 %%% A typical usage looks like this:
nicholas@730 109 %%% \toappear{To appear in the Ninth AES Conference on Medievil Lithuanian
nicholas@730 110 %%% Embalming Technique, June 1991, Alfaretta, Georgia.}
nicholas@730 111 %%% This will be included in the preprint, and left out of the conference
nicholas@730 112 %%% version.
nicholas@730 113 %%%
nicholas@730 114 %%% WARNING:
nicholas@730 115 %%% Some dvi-ps converters heuristically allow chars to drift from their
nicholas@730 116 %%% true positions a few pixels. This may be noticeable with the 9pt sans-serif
nicholas@730 117 %%% bold font used for section headers.
nicholas@730 118 %%% You may turn this hackery off via the -e option:
nicholas@730 119 %%% dvips -e 0 foo.dvi >foo.ps
nicholas@730 120 %%%
nicholas@730 121 \typeout{Document Class 'sig-alternate' <9th June '13>. Modified by
nicholas@730 122 G.K.M. Tobin/Gerry Murray/Boris Veytsman}
nicholas@730 123 \typeout{Based in part upon document Style `acmconf' <22 May 89>. Hacked 4/91 by}
nicholas@730 124 \typeout{shivers@cs.cmu.edu, 4/93 by theobald@cs.mcgill.ca}
nicholas@730 125 \typeout{Excerpts were taken from (Journal Style) 'esub2acm.cls'.}
nicholas@730 126 \typeout{****** Bugs/comments/suggestions/technicalities to Gerry Murray -- murray@hq.acm.org ******}
nicholas@730 127 \typeout{Questions on the style, SIGS policies, etc. to Adrienne Griscti griscti@acm.org}
nicholas@730 128
nicholas@730 129
nicholas@730 130 \let\@concepts\@empty
nicholas@730 131 % Support for CCSXML file
nicholas@730 132 \RequirePackage{comment}
nicholas@730 133 \excludecomment{CCSXML}
nicholas@730 134
nicholas@730 135 % New concepts scheme
nicholas@730 136 %
nicholas@730 137 % The first argument is the significance, the
nicholas@730 138 % second is the concept(s)
nicholas@730 139 %
nicholas@730 140 \newcommand\ccsdesc[2][100]{%
nicholas@730 141 \ccsdesc@parse#1~#2~}
nicholas@730 142 %
nicholas@730 143 % The parser of the expression Significance~General~Specific
nicholas@730 144 %
nicholas@730 145 \def\ccsdesc@parse#1~#2~#3~{%
nicholas@730 146 \expandafter\ifx\csname CCS@#2\endcsname\relax
nicholas@730 147 \expandafter\gdef\csname CCS@#2\endcsname{\textbullet\textbf{#2} $\to$ }%
nicholas@730 148 \g@addto@macro{\@concepts}{\csname CCS@#2\endcsname}\fi
nicholas@730 149 \expandafter\g@addto@macro\expandafter{\csname CCS@#2\endcsname}{%
nicholas@730 150 \ifnum#1>499\textbf{#3; }\else
nicholas@730 151 \ifnum#1>299\textit{#3; }\else
nicholas@730 152 #3; \fi\fi}}
nicholas@730 153
nicholas@730 154 \newcommand\printccsdesc{%
nicholas@730 155 \ifx\@concepts\@empty\else
nicholas@730 156 \if@twocolumn
nicholas@730 157 \section*{CCS Concepts}
nicholas@730 158 \@concepts
nicholas@730 159 \else \small
nicholas@730 160 \quotation{\@concepts}%
nicholas@730 161 \fi
nicholas@730 162 \fi}
nicholas@730 163
nicholas@730 164
nicholas@730 165
nicholas@730 166
nicholas@730 167 \def\doi#1{\def\@doi{#1}}
nicholas@730 168 \doi{http://dx.doi.org/10.1145/0000000.0000000}
nicholas@730 169
nicholas@730 170 \oddsidemargin 4.5pc
nicholas@730 171 \evensidemargin 4.5pc
nicholas@730 172 \advance\oddsidemargin by -1in % Correct for LaTeX gratuitousness
nicholas@730 173 \advance\evensidemargin by -1in % Correct for LaTeX gratuitousness
nicholas@730 174 \marginparwidth 0pt % Margin pars are not allowed.
nicholas@730 175 \marginparsep 11pt % Horizontal space between outer margin and
nicholas@730 176 % marginal note
nicholas@730 177
nicholas@730 178 % Top of page:
nicholas@730 179 \topmargin 4.5pc % Nominal distance from top of page to top of
nicholas@730 180 % box containing running head.
nicholas@730 181 \advance\topmargin by -1in % Correct for LaTeX gratuitousness
nicholas@730 182 \headheight 0pt % Height of box containing running head.
nicholas@730 183 \headsep 0pt % Space between running head and text.
nicholas@730 184 % Bottom of page:
nicholas@730 185 \footskip 30pt % Distance from baseline of box containing foot
nicholas@730 186 % to baseline of last line of text.
nicholas@730 187 \@ifundefined{footheight}{\newdimen\footheight}{}% this is for LaTeX2e
nicholas@730 188 \footheight 12pt % Height of box containing running foot.
nicholas@730 189
nicholas@730 190 %% Must redefine the top margin so there's room for headers and
nicholas@730 191 %% page numbers if you are using the preprint option. Footers
nicholas@730 192 %% are OK as is. Olin.
nicholas@730 193 \advance\topmargin by -37pt % Leave 37pt above text for headers
nicholas@730 194 \headheight 12pt % Height of box containing running head.
nicholas@730 195 \headsep 25pt % Space between running head and text.
nicholas@730 196
nicholas@730 197 \textheight 666pt % 9 1/4 column height
nicholas@730 198 \textwidth 42pc % Width of text line.
nicholas@730 199 % For two-column mode:
nicholas@730 200 \columnsep 2pc % Space between columns
nicholas@730 201 \columnseprule 0pt % Width of rule between columns.
nicholas@730 202 \hfuzz 1pt % Allow some variation in column width, otherwise it's
nicholas@730 203 % too hard to typeset in narrow columns.
nicholas@730 204
nicholas@730 205 \footnotesep 5.6pt % Height of strut placed at the beginning of every
nicholas@730 206 % footnote =3D height of normal \footnotesize strut,
nicholas@730 207 % so no extra space between footnotes.
nicholas@730 208
nicholas@730 209 \skip\footins 8.1pt plus 4pt minus 2pt % Space between last line of text and
nicholas@730 210 % top of first footnote.
nicholas@730 211 \floatsep 11pt plus 2pt minus 2pt % Space between adjacent floats moved
nicholas@730 212 % to top or bottom of text page.
nicholas@730 213 \textfloatsep 18pt plus 2pt minus 4pt % Space between main text and floats
nicholas@730 214 % at top or bottom of page.
nicholas@730 215 \intextsep 11pt plus 2pt minus 2pt % Space between in-text figures and
nicholas@730 216 % text.
nicholas@730 217 \@ifundefined{@maxsep}{\newdimen\@maxsep}{}% this is for LaTeX2e
nicholas@730 218 \@maxsep 18pt % The maximum of \floatsep,
nicholas@730 219 % \textfloatsep and \intextsep (minus
nicholas@730 220 % the stretch and shrink).
nicholas@730 221 \dblfloatsep 11pt plus 2pt minus 2pt % Same as \floatsep for double-column
nicholas@730 222 % figures in two-column mode.
nicholas@730 223 \dbltextfloatsep 18pt plus 2pt minus 4pt% \textfloatsep for double-column
nicholas@730 224 % floats.
nicholas@730 225 \@ifundefined{@dblmaxsep}{\newdimen\@dblmaxsep}{}% this is for LaTeX2e
nicholas@730 226 \@dblmaxsep 18pt % The maximum of \dblfloatsep and
nicholas@730 227 % \dbltexfloatsep.
nicholas@730 228 \@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
nicholas@730 229 % 0pt plus ...)
nicholas@730 230 \@fpsep 8pt plus 2fil % Space between floats on float page/column.
nicholas@730 231 \@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must be
nicholas@730 232 % 0pt plus ... )
nicholas@730 233 \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
nicholas@730 234 \@dblfpsep 8pt plus 2fil % Space between floats on float page.
nicholas@730 235 \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
nicholas@730 236 % 0pt plus ... )
nicholas@730 237 \marginparpush 5pt % Minimum vertical separation between two marginal
nicholas@730 238 % notes.
nicholas@730 239
nicholas@730 240 \parskip 0pt plus 1pt % Extra vertical space between paragraphs.
nicholas@730 241 \parindent 9pt % GM July 2000 / was 0pt - width of paragraph indentation.
nicholas@730 242 \partopsep 2pt plus 1pt minus 1pt% Extra vertical space, in addition to
nicholas@730 243 % \parskip and \topsep, added when user
nicholas@730 244 % leaves blank line before environment.
nicholas@730 245
nicholas@730 246 \@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
nicholas@730 247 \@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
nicholas@730 248 \@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
nicholas@730 249
nicholas@730 250 \@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
nicholas@730 251 \@endparpenalty -\@lowpenalty % After a list or paragraph environment.
nicholas@730 252 \@itempenalty -\@lowpenalty % Between list items.
nicholas@730 253
nicholas@730 254 %\@namedef{ds@10pt}{\@latexerr{The `10pt' option is not allowed in the `acmconf'
nicholas@730 255 \@namedef{ds@10pt}{\ClassError{The `10pt' option is not allowed in the `acmconf' % January 2008
nicholas@730 256 document style.}\@eha}
nicholas@730 257 %\@namedef{ds@11pt}{\@latexerr{The `11pt' option is not allowed in the `acmconf'
nicholas@730 258 \@namedef{ds@11pt}{\ClassError{The `11pt' option is not allowed in the `acmconf' % January 2008
nicholas@730 259 document style.}\@eha}
nicholas@730 260 %\@namedef{ds@12pt}{\@latexerr{The `12pt' option is not allowed in the `acmconf'
nicholas@730 261 \@namedef{ds@12pt}{\ClassError{The `12pt' option is not allowed in the `acmconf' % January 2008
nicholas@730 262 document style.}\@eha}
nicholas@730 263
nicholas@730 264 \@options
nicholas@730 265
nicholas@730 266 \lineskip 2pt % \lineskip is 1pt for all font sizes.
nicholas@730 267 \normallineskip 2pt
nicholas@730 268 \def\baselinestretch{1}
nicholas@730 269
nicholas@730 270 \abovedisplayskip 9pt plus2pt minus4.5pt%
nicholas@730 271 \belowdisplayskip \abovedisplayskip
nicholas@730 272 \abovedisplayshortskip \z@ plus3pt%
nicholas@730 273 \belowdisplayshortskip 5.4pt plus3pt minus3pt%
nicholas@730 274 \let\@listi\@listI % Setting of \@listi added 9 Jun 87
nicholas@730 275
nicholas@730 276 \def\small{\@setsize\small{9pt}\viiipt\@viiipt
nicholas@730 277 \abovedisplayskip 7.6pt plus 3pt minus 4pt%
nicholas@730 278 \belowdisplayskip \abovedisplayskip
nicholas@730 279 \abovedisplayshortskip \z@ plus2pt%
nicholas@730 280 \belowdisplayshortskip 3.6pt plus2pt minus 2pt
nicholas@730 281 \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
nicholas@730 282 \topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
nicholas@730 283 \itemsep \parsep}}
nicholas@730 284
nicholas@730 285 \def\footnotesize{\@setsize\footnotesize{9pt}\ixpt\@ixpt
nicholas@730 286 \abovedisplayskip 6.4pt plus 2pt minus 4pt%
nicholas@730 287 \belowdisplayskip \abovedisplayskip
nicholas@730 288 \abovedisplayshortskip \z@ plus 1pt%
nicholas@730 289 \belowdisplayshortskip 2.7pt plus 1pt minus 2pt
nicholas@730 290 \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
nicholas@730 291 \topsep 3pt plus 1pt minus 1pt\parsep 2pt plus 1pt minus 1pt
nicholas@730 292 \itemsep \parsep}}
nicholas@730 293
nicholas@730 294 \newcount\aucount
nicholas@730 295 \newcount\originalaucount
nicholas@730 296 \newdimen\auwidth
nicholas@730 297 \auwidth=\textwidth
nicholas@730 298 \newdimen\auskip
nicholas@730 299 \newcount\auskipcount
nicholas@730 300 \newdimen\auskip
nicholas@730 301 \global\auskip=1pc
nicholas@730 302 \newdimen\allauboxes
nicholas@730 303 \allauboxes=\auwidth
nicholas@730 304 \newtoks\addauthors
nicholas@730 305 \newcount\addauflag
nicholas@730 306 \global\addauflag=0 %Haven't shown additional authors yet
nicholas@730 307
nicholas@730 308 \newtoks\subtitletext
nicholas@730 309 \gdef\subtitle#1{\subtitletext={#1}}
nicholas@730 310
nicholas@730 311 \gdef\additionalauthors#1{\addauthors={#1}}
nicholas@730 312
nicholas@730 313 \gdef\numberofauthors#1{\global\aucount=#1
nicholas@730 314 \ifnum\aucount>3\global\originalaucount=\aucount \global\aucount=3\fi %g} % 3 OK - Gerry March 2007
nicholas@730 315 \global\auskipcount=\aucount\global\advance\auskipcount by 1
nicholas@730 316 \global\multiply\auskipcount by 2
nicholas@730 317 \global\multiply\auskip by \auskipcount
nicholas@730 318 \global\advance\auwidth by -\auskip
nicholas@730 319 \global\divide\auwidth by \aucount}
nicholas@730 320
nicholas@730 321 % \and was modified to count the number of authors. GKMT 12 Aug 1999
nicholas@730 322 \def\alignauthor{% % \begin{tabular}
nicholas@730 323 \end{tabular}%
nicholas@730 324 \begin{tabular}[t]{p{\auwidth}}\centering}%
nicholas@730 325
nicholas@730 326 % *** NOTE *** NOTE *** NOTE *** NOTE ***
nicholas@730 327 % If you have 'font problems' then you may need
nicholas@730 328 % to change these, e.g. 'arialb' instead of "arialbd".
nicholas@730 329 % Gerry Murray 11/11/1999
nicholas@730 330 % *** OR ** comment out block A and activate block B or vice versa.
nicholas@730 331 % **********************************************
nicholas@730 332 %
nicholas@730 333 % -- Start of block A -- (Type 1 or Truetype fonts)
nicholas@730 334 %\newfont{\secfnt}{timesbd at 12pt} % was timenrb originally - now is timesbd
nicholas@730 335 %\newfont{\secit}{timesbi at 12pt} %13 Jan 00 gkmt
nicholas@730 336 %\newfont{\subsecfnt}{timesi at 11pt} % was timenrri originally - now is timesi
nicholas@730 337 %\newfont{\subsecit}{timesbi at 11pt} % 13 Jan 00 gkmt -- was times changed to timesbi gm 2/4/2000
nicholas@730 338 % % because "normal" is italic, "italic" is Roman
nicholas@730 339 %\newfont{\ttlfnt}{arialbd at 18pt} % was arialb originally - now is arialbd
nicholas@730 340 %\newfont{\ttlit}{arialbi at 18pt} % 13 Jan 00 gkmt
nicholas@730 341 %\newfont{\subttlfnt}{arial at 14pt} % was arialr originally - now is arial
nicholas@730 342 %\newfont{\subttlit}{ariali at 14pt} % 13 Jan 00 gkmt
nicholas@730 343 %\newfont{\subttlbf}{arialbd at 14pt} % 13 Jan 00 gkmt
nicholas@730 344 %\newfont{\aufnt}{arial at 12pt} % was arialr originally - now is arial
nicholas@730 345 %\newfont{\auit}{ariali at 12pt} % 13 Jan 00 gkmt
nicholas@730 346 %\newfont{\affaddr}{arial at 10pt} % was arialr originally - now is arial
nicholas@730 347 %\newfont{\affaddrit}{ariali at 10pt} %13 Jan 00 gkmt
nicholas@730 348 %\newfont{\eaddfnt}{arial at 12pt} % was arialr originally - now is arial
nicholas@730 349 %\newfont{\ixpt}{times at 9pt} % was timenrr originally - now is times
nicholas@730 350 %\newfont{\confname}{timesi at 8pt} % was timenrri - now is timesi
nicholas@730 351 %\newfont{\crnotice}{times at 8pt} % was timenrr originally - now is times
nicholas@730 352 %\newfont{\ninept}{times at 9pt} % was timenrr originally - now is times
nicholas@730 353
nicholas@730 354 % *********************************************
nicholas@730 355 % -- End of block A --
nicholas@730 356 %
nicholas@730 357 %
nicholas@730 358 % -- Start of block B -- UPDATED FONT NAMES
nicholas@730 359 % *********************************************
nicholas@730 360 % Gerry Murray 11/30/2006
nicholas@730 361 % *********************************************
nicholas@730 362 \newfont{\secfnt}{ptmb8t at 12pt}
nicholas@730 363 \newfont{\secit}{ptmbi8t at 12pt} %13 Jan 00 gkmt
nicholas@730 364 \newfont{\subsecfnt}{ptmri8t at 11pt}
nicholas@730 365 \newfont{\subsecit}{ptmbi8t at 11pt} %
nicholas@730 366 \newfont{\ttlfnt}{phvb8t at 18pt}
nicholas@730 367 \newfont{\ttlit}{phvbo8t at 18pt} % GM 2/4/2000
nicholas@730 368 \newfont{\subttlfnt}{phvr8t at 14pt}
nicholas@730 369 \newfont{\subttlit}{phvro8t at 14pt} % GM 2/4/2000
nicholas@730 370 \newfont{\subttlbf}{phvb8t at 14pt} % 13 Jan 00 gkmt
nicholas@730 371 \newfont{\aufnt}{phvr8t at 12pt}
nicholas@730 372 \newfont{\auit}{phvro8t at 12pt} % GM 2/4/2000
nicholas@730 373 \newfont{\affaddr}{phvr8t at 10pt}
nicholas@730 374 \newfont{\affaddrit}{phvro8t at 10pt} % GM 2/4/2000
nicholas@730 375 \newfont{\eaddfnt}{phvr8t at 12pt}
nicholas@730 376 \newfont{\ixpt}{ptmr8t at 9pt}
n@1236 377 \newfont{\confname}{ptmri8t at 7pt}%\newfont{\confname}{ptmri8t at 8pt}
nicholas@730 378 \newfont{\crnotice}{ptmr8t at 8pt}
nicholas@730 379 \newfont{\ninept}{ptmr8t at 9pt}
nicholas@730 380 % +++++++++++++++++++++++++++++++++++++++++++++
nicholas@730 381 % -- End of block B --
nicholas@730 382
nicholas@730 383 %\def\email#1{{{\eaddfnt{\vskip 4pt#1}}}}
nicholas@730 384 % If we have an email, inside a "shared affiliation" then we need the following instead
nicholas@730 385 \def\email#1{{{\eaddfnt{\par #1}}}} % revised - GM - 11/30/2006
nicholas@730 386
nicholas@730 387 \def\addauthorsection{\ifnum\originalaucount>6 % was 3 - Gerry March 2007
nicholas@730 388 \section{Additional Authors}\the\addauthors
nicholas@730 389 \fi}
nicholas@730 390
nicholas@730 391 \newcount\savesection
nicholas@730 392 \newcount\sectioncntr
nicholas@730 393 \global\sectioncntr=1
nicholas@730 394
nicholas@730 395 \setcounter{secnumdepth}{3}
nicholas@730 396
nicholas@730 397 \def\appendix{\par
nicholas@730 398 \section*{APPENDIX}
nicholas@730 399 \setcounter{section}{0}
nicholas@730 400 \setcounter{subsection}{0}
nicholas@730 401 \def\thesection{\Alph{section}} }
nicholas@730 402
nicholas@730 403 \leftmargini 22.5pt
nicholas@730 404 \leftmarginii 19.8pt % > \labelsep + width of '(m)'
nicholas@730 405 \leftmarginiii 16.8pt % > \labelsep + width of 'vii.'
nicholas@730 406 \leftmarginiv 15.3pt % > \labelsep + width of 'M.'
nicholas@730 407 \leftmarginv 9pt
nicholas@730 408 \leftmarginvi 9pt
nicholas@730 409
nicholas@730 410 \leftmargin\leftmargini
nicholas@730 411 \labelsep 4.5pt
nicholas@730 412 \labelwidth\leftmargini\advance\labelwidth-\labelsep
nicholas@730 413
nicholas@730 414 \def\@listI{\leftmargin\leftmargini \parsep 3.6pt plus 2pt minus 1pt%
nicholas@730 415 \topsep 7.2pt plus 2pt minus 4pt%
nicholas@730 416 \itemsep 3.6pt plus 2pt minus 1pt}
nicholas@730 417
nicholas@730 418 \let\@listi\@listI
nicholas@730 419 \@listi
nicholas@730 420
nicholas@730 421 \def\@listii{\leftmargin\leftmarginii
nicholas@730 422 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
nicholas@730 423 \topsep 3.6pt plus 2pt minus 1pt
nicholas@730 424 \parsep 1.8pt plus 0.9pt minus 0.9pt
nicholas@730 425 \itemsep \parsep}
nicholas@730 426
nicholas@730 427 \def\@listiii{\leftmargin\leftmarginiii
nicholas@730 428 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
nicholas@730 429 \topsep 1.8pt plus 0.9pt minus 0.9pt
nicholas@730 430 \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
nicholas@730 431 \itemsep \topsep}
nicholas@730 432
nicholas@730 433 \def\@listiv{\leftmargin\leftmarginiv
nicholas@730 434 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
nicholas@730 435
nicholas@730 436 \def\@listv{\leftmargin\leftmarginv
nicholas@730 437 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
nicholas@730 438
nicholas@730 439 \def\@listvi{\leftmargin\leftmarginvi
nicholas@730 440 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
nicholas@730 441
nicholas@730 442 \def\labelenumi{\theenumi.}
nicholas@730 443 \def\theenumi{\arabic{enumi}}
nicholas@730 444
nicholas@730 445 \def\labelenumii{(\theenumii)}
nicholas@730 446 \def\theenumii{\alph{enumii}}
nicholas@730 447 \def\p@enumii{\theenumi}
nicholas@730 448
nicholas@730 449 \def\labelenumiii{\theenumiii.}
nicholas@730 450 \def\theenumiii{\roman{enumiii}}
nicholas@730 451 \def\p@enumiii{\theenumi(\theenumii)}
nicholas@730 452
nicholas@730 453 \def\labelenumiv{\theenumiv.}
nicholas@730 454 \def\theenumiv{\Alph{enumiv}}
nicholas@730 455 \def\p@enumiv{\p@enumiii\theenumiii}
nicholas@730 456
nicholas@730 457 \def\labelitemi{$\bullet$}
nicholas@730 458 \def\labelitemii{\bf --}
nicholas@730 459 \def\labelitemiii{$\ast$}
nicholas@730 460 \def\labelitemiv{$\cdot$}
nicholas@730 461
nicholas@730 462 \def\verse{\let\\=\@centercr
nicholas@730 463 \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
nicholas@730 464 \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
nicholas@730 465 \let\endverse\endlist
nicholas@730 466
nicholas@730 467 \def\quotation{\list{}{\listparindent 1.5em
nicholas@730 468 \itemindent\listparindent
nicholas@730 469 \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
nicholas@730 470 \let\endquotation=\endlist
nicholas@730 471
nicholas@730 472 \def\quote{\list{}{\rightmargin\leftmargin}\item[]}
nicholas@730 473 \let\endquote=\endlist
nicholas@730 474
nicholas@730 475 \def\descriptionlabel#1{\hspace\labelsep \bf #1}
nicholas@730 476 \def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
nicholas@730 477 \let\makelabel\descriptionlabel}}
nicholas@730 478
nicholas@730 479 \let\enddescription\endlist
nicholas@730 480
nicholas@730 481 \def\theequation{\arabic{equation}}
nicholas@730 482
nicholas@730 483 \arraycolsep 4.5pt % Half the space between columns in an array environment.
nicholas@730 484 \tabcolsep 5.4pt % Half the space between columns in a tabular environment.
nicholas@730 485 \arrayrulewidth .5pt % Width of rules in array and tabular environment. % (was .4) updated Gerry March 20 2007
nicholas@730 486 \doublerulesep 1.8pt % Space between adjacent rules in array or tabular env.
nicholas@730 487
nicholas@730 488 \tabbingsep \labelsep % Space used by the \' command. (See LaTeX manual.)
nicholas@730 489
nicholas@730 490 \skip\@mpfootins =\skip\footins
nicholas@730 491
nicholas@730 492 \fboxsep =2.7pt % Space left between box and text by \fbox and \framebox.
nicholas@730 493 \fboxrule =.5pt % Width of rules in box made by \fbox and \framebox. % (was .4) updated Gerry March 20 2007
nicholas@730 494
nicholas@730 495 \def\thepart{\Roman{part}} % Roman numeral part numbers.
nicholas@730 496 \def\thesection {\arabic{section}}
nicholas@730 497 \def\thesubsection {\thesection.\arabic{subsection}}
nicholas@730 498 %\def\thesubsubsection {\thesubsection.\arabic{subsubsection}} % GM 7/30/2002
nicholas@730 499 %\def\theparagraph {\thesubsubsection.\arabic{paragraph}} % GM 7/30/2002
nicholas@730 500 \def\thesubparagraph {\theparagraph.\arabic{subparagraph}}
nicholas@730 501
nicholas@730 502 \def\@pnumwidth{1.55em}
nicholas@730 503 \def\@tocrmarg {2.55em}
nicholas@730 504 \def\@dotsep{4.5}
nicholas@730 505 \setcounter{tocdepth}{3}
nicholas@730 506
nicholas@730 507 %\def\tableofcontents{\@latexerr{\tableofcontents: Tables of contents are not
nicholas@730 508 % allowed in the `acmconf' document style.}\@eha}
nicholas@730 509
nicholas@730 510 \def\tableofcontents{\ClassError{%
nicholas@730 511 \string\tableofcontents\space is not allowed in the `acmconf' document % January 2008
nicholas@730 512 style}\@eha}
nicholas@730 513
nicholas@730 514 \def\l@part#1#2{\addpenalty{\@secpenalty}
nicholas@730 515 \addvspace{2.25em plus 1pt} % space above part line
nicholas@730 516 \begingroup
nicholas@730 517 \@tempdima 3em % width of box holding part number, used by
nicholas@730 518 \parindent \z@ \rightskip \@pnumwidth %% \numberline
nicholas@730 519 \parfillskip -\@pnumwidth
nicholas@730 520 {\large \bf % set line in \large boldface
nicholas@730 521 \leavevmode % TeX command to enter horizontal mode.
nicholas@730 522 #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
nicholas@730 523 \nobreak % Never break after part entry
nicholas@730 524 \endgroup}
nicholas@730 525
nicholas@730 526 \def\l@section#1#2{\addpenalty{\@secpenalty} % good place for page break
nicholas@730 527 \addvspace{1.0em plus 1pt} % space above toc entry
nicholas@730 528 \@tempdima 1.5em % width of box holding section number
nicholas@730 529 \begingroup
nicholas@730 530 \parindent \z@ \rightskip \@pnumwidth
nicholas@730 531 \parfillskip -\@pnumwidth
nicholas@730 532 \bf % Boldface.
nicholas@730 533 \leavevmode % TeX command to enter horizontal mode.
nicholas@730 534 \advance\leftskip\@tempdima %% added 5 Feb 88 to conform to
nicholas@730 535 \hskip -\leftskip %% 25 Jan 88 change to \numberline
nicholas@730 536 #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
nicholas@730 537 \endgroup}
nicholas@730 538
nicholas@730 539
nicholas@730 540 \def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
nicholas@730 541 \def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
nicholas@730 542 \def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
nicholas@730 543 \def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
nicholas@730 544
nicholas@730 545 %\def\listoffigures{\@latexerr{\listoffigures: Lists of figures are not
nicholas@730 546 % allowed in the `acmconf' document style.}\@eha}
nicholas@730 547
nicholas@730 548 \def\listoffigures{\ClassError{%
nicholas@730 549 \string\listoffigures\space is not allowed in the `acmconf' document % January 2008
nicholas@730 550 style}\@eha}
nicholas@730 551
nicholas@730 552 \def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
nicholas@730 553
nicholas@730 554 %\def\listoftables{\@latexerr{\listoftables: Lists of tables are not
nicholas@730 555 % allowed in the `acmconf' document style.}\@eha}
nicholas@730 556 %\let\l@table\l@figure
nicholas@730 557
nicholas@730 558 \def\listoftables{\ClassError{%
nicholas@730 559 \string\listoftables\space is not allowed in the `acmconf' document % January 2008
nicholas@730 560 style}\@eha}
nicholas@730 561 \let\l@table\l@figure
nicholas@730 562
nicholas@730 563 \def\footnoterule{\kern-3\p@
nicholas@730 564 \hrule width .5\columnwidth % (was .4) updated Gerry March 20 2007
nicholas@730 565 \kern 2.6\p@} % The \hrule has default height of .4pt % (was .4) updated Gerry March 20 2007
nicholas@730 566 % ------
nicholas@730 567 \long\def\@makefntext#1{\noindent
nicholas@730 568 %\hbox to .5em{\hss$^{\@thefnmark}$}#1} % original
nicholas@730 569 \hbox to .5em{\hss\textsuperscript{\@thefnmark}}#1} % C. Clifton / GM Oct. 2nd. 2002
nicholas@730 570 % -------
nicholas@730 571
nicholas@730 572 \long\def\@maketntext#1{\noindent
nicholas@730 573 #1}
nicholas@730 574
nicholas@730 575 \long\def\@maketitlenotetext#1#2{\noindent
nicholas@730 576 \hbox to 1.8em{\hss$^{#1}$}#2}
nicholas@730 577
nicholas@730 578 \setcounter{topnumber}{2}
nicholas@730 579 \def\topfraction{.7}
nicholas@730 580 \setcounter{bottomnumber}{1}
nicholas@730 581 \def\bottomfraction{.3}
nicholas@730 582 \setcounter{totalnumber}{3}
nicholas@730 583 \def\textfraction{.2}
nicholas@730 584 \def\floatpagefraction{.5}
nicholas@730 585 \setcounter{dbltopnumber}{2}
nicholas@730 586 \def\dbltopfraction{.7}
nicholas@730 587 \def\dblfloatpagefraction{.5}
nicholas@730 588
nicholas@730 589 %
nicholas@730 590 \long\def\@makecaption#1#2{
nicholas@730 591 \vskip \baselineskip
nicholas@730 592 \setbox\@tempboxa\hbox{\textbf{#1: #2}}
nicholas@730 593 \ifdim \wd\@tempboxa >\hsize % IF longer than one line:
nicholas@730 594 \textbf{#1: #2}\par % THEN set as ordinary paragraph.
nicholas@730 595 \else % ELSE center.
nicholas@730 596 \hbox to\hsize{\hfil\box\@tempboxa\hfil}\par
nicholas@730 597 \fi}
nicholas@730 598
nicholas@730 599 %
nicholas@730 600
nicholas@730 601 \long\def\@makecaption#1#2{
nicholas@730 602 \vskip 10pt
nicholas@730 603 \setbox\@tempboxa\hbox{\textbf{#1: #2}}
nicholas@730 604 \ifdim \wd\@tempboxa >\hsize % IF longer than one line:
nicholas@730 605 \textbf{#1: #2}\par % THEN set as ordinary paragraph.
nicholas@730 606 \else % ELSE center.
nicholas@730 607 \hbox to\hsize{\hfil\box\@tempboxa\hfil}
nicholas@730 608 \fi}
nicholas@730 609
nicholas@730 610 \@ifundefined{figure}{\newcounter {figure}} % this is for LaTeX2e
nicholas@730 611
nicholas@730 612 \def\fps@figure{tbp}
nicholas@730 613 \def\ftype@figure{1}
nicholas@730 614 \def\ext@figure{lof}
nicholas@730 615 \def\fnum@figure{Figure \thefigure}
nicholas@730 616 \def\figure{\@float{figure}}
nicholas@730 617 %\let\endfigure\end@float
nicholas@730 618 \def\endfigure{\end@float} % Gerry January 2008
nicholas@730 619 \@namedef{figure*}{\@dblfloat{figure}}
nicholas@730 620 \@namedef{endfigure*}{\end@dblfloat}
nicholas@730 621
nicholas@730 622 \@ifundefined{table}{\newcounter {table}} % this is for LaTeX2e
nicholas@730 623
nicholas@730 624 \def\fps@table{tbp}
nicholas@730 625 \def\ftype@table{2}
nicholas@730 626 \def\ext@table{lot}
nicholas@730 627 \def\fnum@table{Table \thetable}
nicholas@730 628 \def\table{\@float{table}}
nicholas@730 629 %\let\endtable\end@float
nicholas@730 630 \def\endtable{\end@float} % Gerry January 2008
nicholas@730 631 \@namedef{table*}{\@dblfloat{table}}
nicholas@730 632 \@namedef{endtable*}{\end@dblfloat}
nicholas@730 633
nicholas@730 634 \newtoks\titleboxnotes
nicholas@730 635 \newcount\titleboxnoteflag
nicholas@730 636
nicholas@730 637 \def\maketitle{\par
nicholas@730 638 \begingroup
nicholas@730 639 \def\thefootnote{\fnsymbol{footnote}}
nicholas@730 640 \def\@makefnmark{\hbox
nicholas@730 641 to 0pt{$^{\@thefnmark}$\hss}}
nicholas@730 642 \twocolumn[\@maketitle]
nicholas@730 643 \@thanks
nicholas@730 644 \endgroup
nicholas@730 645 \setcounter{footnote}{0}
nicholas@730 646 \let\maketitle\relax
nicholas@730 647 \let\@maketitle\relax
nicholas@730 648 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@subtitle{}\let\thanks\relax
nicholas@730 649 \@copyrightspace}
nicholas@730 650
nicholas@730 651 %% CHANGES ON NEXT LINES
nicholas@730 652 \newif\if@ll % to record which version of LaTeX is in use
nicholas@730 653
nicholas@730 654 \expandafter\ifx\csname LaTeXe\endcsname\relax % LaTeX2.09 is used
nicholas@730 655 \else% LaTeX2e is used, so set ll to true
nicholas@730 656 \global\@lltrue
nicholas@730 657 \fi
nicholas@730 658
nicholas@730 659 \if@ll
nicholas@730 660 \NeedsTeXFormat{LaTeX2e}
nicholas@730 661 \ProvidesClass{sig-alternate} [2013/05/12 v2.7 based on acmproc.cls V1.3 <Nov. 30 '99>]
nicholas@730 662 \RequirePackage{latexsym}% QUERY: are these two really needed?
nicholas@730 663 \let\dooptions\ProcessOptions
nicholas@730 664 \else
nicholas@730 665 \let\dooptions\@options
nicholas@730 666 \fi
nicholas@730 667 %% END CHANGES
nicholas@730 668
nicholas@730 669 \def\@height{height}
nicholas@730 670 \def\@width{width}
nicholas@730 671 \def\@minus{minus}
nicholas@730 672 \def\@plus{plus}
nicholas@730 673 \def\hb@xt@{\hbox to}
nicholas@730 674 \newif\if@faircopy
nicholas@730 675 \@faircopyfalse
nicholas@730 676 \def\ds@faircopy{\@faircopytrue}
nicholas@730 677
nicholas@730 678 \def\ds@preprint{\@faircopyfalse}
nicholas@730 679
nicholas@730 680 \@twosidetrue
nicholas@730 681 \@mparswitchtrue
nicholas@730 682 \def\ds@draft{\overfullrule 5\p@}
nicholas@730 683 %% CHANGE ON NEXT LINE
nicholas@730 684 \dooptions
nicholas@730 685
nicholas@730 686 \lineskip \p@
nicholas@730 687 \normallineskip \p@
nicholas@730 688 \def\baselinestretch{1}
nicholas@730 689 \def\@ptsize{0} %needed for amssymbols.sty
nicholas@730 690
nicholas@730 691 %% CHANGES ON NEXT LINES
nicholas@730 692 \if@ll% allow use of old-style font change commands in LaTeX2e
nicholas@730 693 \@maxdepth\maxdepth
nicholas@730 694 %
nicholas@730 695 \DeclareOldFontCommand{\rm}{\ninept\rmfamily}{\mathrm}
nicholas@730 696 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
nicholas@730 697 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
nicholas@730 698 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
nicholas@730 699 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
nicholas@730 700 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
nicholas@730 701 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
nicholas@730 702 \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
nicholas@730 703 \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
nicholas@730 704 \fi
nicholas@730 705 %
nicholas@730 706 \if@ll
nicholas@730 707 \renewcommand{\rmdefault}{cmr} % was 'ttm'
nicholas@730 708 % Note! I have also found 'mvr' to work ESPECIALLY well.
nicholas@730 709 % Gerry - October 1999
nicholas@730 710 % You may need to change your LV1times.fd file so that sc is
nicholas@730 711 % mapped to cmcsc - -for smallcaps -- that is if you decide
nicholas@730 712 % to change {cmr} to {times} above. (Not recommended)
nicholas@730 713 \renewcommand{\@ptsize}{}
nicholas@730 714 \renewcommand{\normalsize}{%
nicholas@730 715 \@setfontsize\normalsize\@ixpt{10.5\p@}%\ninept%
nicholas@730 716 \abovedisplayskip 6\p@ \@plus2\p@ \@minus\p@
nicholas@730 717 \belowdisplayskip \abovedisplayskip
nicholas@730 718 \abovedisplayshortskip 6\p@ \@minus 3\p@
nicholas@730 719 \belowdisplayshortskip 6\p@ \@minus 3\p@
nicholas@730 720 \let\@listi\@listI
nicholas@730 721 }
nicholas@730 722 \else
nicholas@730 723 \def\@normalsize{%changed next to 9 from 10
nicholas@730 724 \@setsize\normalsize{9\p@}\ixpt\@ixpt
nicholas@730 725 \abovedisplayskip 6\p@ \@plus2\p@ \@minus\p@
nicholas@730 726 \belowdisplayskip \abovedisplayskip
nicholas@730 727 \abovedisplayshortskip 6\p@ \@minus 3\p@
nicholas@730 728 \belowdisplayshortskip 6\p@ \@minus 3\p@
nicholas@730 729 \let\@listi\@listI
nicholas@730 730 }%
nicholas@730 731 \fi
nicholas@730 732 \if@ll
nicholas@730 733 \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt{8\p@}}
nicholas@730 734 \newcommand\tiny{\@setfontsize\tiny\@vpt{6\p@}}
nicholas@730 735 \newcommand\large{\@setfontsize\large\@xiipt{14\p@}}
nicholas@730 736 \newcommand\Large{\@setfontsize\Large\@xivpt{18\p@}}
nicholas@730 737 \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{20\p@}}
nicholas@730 738 \newcommand\huge{\@setfontsize\huge\@xxpt{25\p@}}
nicholas@730 739 \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30\p@}}
nicholas@730 740 \else
nicholas@730 741 \def\scriptsize{\@setsize\scriptsize{8\p@}\viipt\@viipt}
nicholas@730 742 \def\tiny{\@setsize\tiny{6\p@}\vpt\@vpt}
nicholas@730 743 \def\large{\@setsize\large{14\p@}\xiipt\@xiipt}
nicholas@730 744 \def\Large{\@setsize\Large{18\p@}\xivpt\@xivpt}
nicholas@730 745 \def\LARGE{\@setsize\LARGE{20\p@}\xviipt\@xviipt}
nicholas@730 746 \def\huge{\@setsize\huge{25\p@}\xxpt\@xxpt}
nicholas@730 747 \def\Huge{\@setsize\Huge{30\p@}\xxvpt\@xxvpt}
nicholas@730 748 \fi
nicholas@730 749 \normalsize
nicholas@730 750
nicholas@730 751 % make aubox hsize/number of authors up to 3, less gutter
nicholas@730 752 % then showbox gutter showbox gutter showbox -- GKMT Aug 99
nicholas@730 753 \newbox\@acmtitlebox
nicholas@730 754 \def\@maketitle{\newpage
nicholas@730 755 \null
nicholas@730 756 \setbox\@acmtitlebox\vbox{%
nicholas@730 757 \baselineskip 20pt
nicholas@730 758 \vskip 2em % Vertical space above title.
nicholas@730 759 \begin{center}
nicholas@730 760 {\ttlfnt \@title\par} % Title set in 18pt Helvetica (Arial) bold size.
nicholas@730 761 \vskip 1.5em % Vertical space after title.
nicholas@730 762 %This should be the subtitle.
nicholas@730 763 {\subttlfnt \the\subtitletext\par}\vskip 1.25em%\fi
nicholas@730 764 {\baselineskip 16pt\aufnt % each author set in \12 pt Arial, in a
nicholas@730 765 \lineskip .5em % tabular environment
nicholas@730 766 \begin{tabular}[t]{c}\@author
nicholas@730 767 \end{tabular}\par}
nicholas@730 768 \vskip 1.5em % Vertical space after author.
nicholas@730 769 \end{center}}
nicholas@730 770 \dimen0=\ht\@acmtitlebox
nicholas@730 771 \advance\dimen0 by -12.75pc\relax % Increased space for title box -- KBT
nicholas@730 772 \unvbox\@acmtitlebox
nicholas@730 773 \ifdim\dimen0<0.0pt\relax\vskip-\dimen0\fi}
nicholas@730 774
nicholas@730 775
nicholas@730 776 \newcount\titlenotecount
nicholas@730 777 \global\titlenotecount=0
nicholas@730 778 \newtoks\tntoks
nicholas@730 779 \newtoks\tntokstwo
nicholas@730 780 \newtoks\tntoksthree
nicholas@730 781 \newtoks\tntoksfour
nicholas@730 782 \newtoks\tntoksfive
nicholas@730 783
nicholas@730 784 \def\abstract{
nicholas@730 785 \ifnum\titlenotecount>0 % was =1
nicholas@730 786 \insert\footins{%
nicholas@730 787 \reset@font\footnotesize
nicholas@730 788 \interlinepenalty\interfootnotelinepenalty
nicholas@730 789 \splittopskip\footnotesep
nicholas@730 790 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
nicholas@730 791 \hsize\columnwidth \@parboxrestore
nicholas@730 792 \protected@edef\@currentlabel{%
nicholas@730 793 }%
nicholas@730 794 \color@begingroup
nicholas@730 795 \ifnum\titlenotecount=1
nicholas@730 796 \@maketntext{%
nicholas@730 797 \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\@finalstrut\strutbox}%
nicholas@730 798 \fi
nicholas@730 799 \ifnum\titlenotecount=2
nicholas@730 800 \@maketntext{%
nicholas@730 801 \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
nicholas@730 802 \@maketntext{%
nicholas@730 803 \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\@finalstrut\strutbox}%
nicholas@730 804 \fi
nicholas@730 805 \ifnum\titlenotecount=3
nicholas@730 806 \@maketntext{%
nicholas@730 807 \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
nicholas@730 808 \@maketntext{%
nicholas@730 809 \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\par\@finalstrut\strutbox}%
nicholas@730 810 \@maketntext{%
nicholas@730 811 \raisebox{4pt}{$\ddagger$}\rule\z@\footnotesep\ignorespaces\the\tntoksthree\@finalstrut\strutbox}%
nicholas@730 812 \fi
nicholas@730 813 \ifnum\titlenotecount=4
nicholas@730 814 \@maketntext{%
nicholas@730 815 \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
nicholas@730 816 \@maketntext{%
nicholas@730 817 \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\par\@finalstrut\strutbox}%
nicholas@730 818 \@maketntext{%
nicholas@730 819 \raisebox{4pt}{$\ddagger$}\rule\z@\footnotesep\ignorespaces\the\tntoksthree\par\@finalstrut\strutbox}%
nicholas@730 820 \@maketntext{%
nicholas@730 821 \raisebox{4pt}{$\S$}\rule\z@\footnotesep\ignorespaces\the\tntoksfour\@finalstrut\strutbox}%
nicholas@730 822 \fi
nicholas@730 823 \ifnum\titlenotecount=5
nicholas@730 824 \@maketntext{%
nicholas@730 825 \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
nicholas@730 826 \@maketntext{%
nicholas@730 827 \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\par\@finalstrut\strutbox}%
nicholas@730 828 \@maketntext{%
nicholas@730 829 \raisebox{4pt}{$\ddagger$}\rule\z@\footnotesep\ignorespaces\the\tntoksthree\par\@finalstrut\strutbox}%
nicholas@730 830 \@maketntext{%
nicholas@730 831 \raisebox{4pt}{$\S$}\rule\z@\footnotesep\ignorespaces\the\tntoksfour\par\@finalstrut\strutbox}%
nicholas@730 832 \@maketntext{%
nicholas@730 833 \raisebox{4pt}{$\P$}\rule\z@\footnotesep\ignorespaces\the\tntoksfive\@finalstrut\strutbox}%
nicholas@730 834 \fi
nicholas@730 835 \color@endgroup} %g}
nicholas@730 836 \fi
nicholas@730 837 \setcounter{footnote}{0}
nicholas@730 838 \section*{ABSTRACT}\normalsize%\ninept
nicholas@730 839 }
nicholas@730 840
nicholas@730 841 \def\endabstract{\if@twocolumn\else\endquotation\fi}
nicholas@730 842
nicholas@730 843 \def\keywords{\if@twocolumn
nicholas@730 844 \section*{Keywords}
nicholas@730 845 \else \small
nicholas@730 846 \quotation
nicholas@730 847 \fi}
nicholas@730 848
nicholas@730 849 \def\terms#1{%
nicholas@730 850 %\if@twocolumn
nicholas@730 851 %\section*{General Terms}
nicholas@730 852 %\else \small
nicholas@730 853 %\quotation
nicholas@730 854 %\fi
nicholas@730 855 }
nicholas@730 856
nicholas@730 857 % -- Classification needs to be a bit smart due to optionals - Gerry/Georgia November 2nd. 1999
nicholas@730 858 \newcount\catcount
nicholas@730 859 \global\catcount=1
nicholas@730 860
nicholas@730 861 \def\category#1#2#3{%
nicholas@730 862 \ifnum\catcount=1
nicholas@730 863 \section*{Categories and Subject Descriptors}
nicholas@730 864 \advance\catcount by 1\else{\unskip; }\fi
nicholas@730 865 \@ifnextchar [{\@category{#1}{#2}{#3}}{\@category{#1}{#2}{#3}[]}%
nicholas@730 866 }
nicholas@730 867
nicholas@730 868
nicholas@730 869 \def\@category#1#2#3[#4]{%
nicholas@730 870 \begingroup
nicholas@730 871 \let\and\relax
nicholas@730 872 #1 [\textbf{#2}]%
nicholas@730 873 \if!#4!%
nicholas@730 874 \if!#3!\else : #3\fi
nicholas@730 875 \else
nicholas@730 876 :\space
nicholas@730 877 \if!#3!\else #3\kern\z@---\hskip\z@\fi
nicholas@730 878 \textit{#4}%
nicholas@730 879 \fi
nicholas@730 880 \endgroup
nicholas@730 881 }
nicholas@730 882 %
nicholas@730 883
nicholas@730 884
nicholas@730 885
nicholas@730 886
nicholas@730 887
nicholas@730 888
nicholas@730 889 %%% This section (written by KBT) handles the 1" box in the lower left
nicholas@730 890 %%% corner of the left column of the first page by creating a picture,
nicholas@730 891 %%% and inserting the predefined string at the bottom (with a negative
nicholas@730 892 %%% displacement to offset the space allocated for a non-existent
nicholas@730 893 %%% caption).
nicholas@730 894 %%%
nicholas@730 895 \newtoks\copyrightnotice
nicholas@730 896 \def\ftype@copyrightbox{8}
nicholas@730 897 \def\@copyrightspace{
nicholas@730 898 \@float{copyrightbox}[b]
nicholas@730 899 \begin{center}
nicholas@730 900 \setlength{\unitlength}{1pc}
n@1236 901 \begin{picture}(20,4) %\begin{picture}(20,6) %Space for copyright notice
n@1236 902 \put(0,-0.25){\crnotice{\@toappear}}
nicholas@730 903 \end{picture}
nicholas@730 904 \end{center}
nicholas@730 905 \end@float}
nicholas@730 906
nicholas@730 907 \def\@toappear{} % Default setting blank - commands below change this.
nicholas@730 908 \long\def\toappear#1{\def\@toappear{\parbox[b]{20pc}{\baselineskip 9pt#1}}}
nicholas@730 909 \def\toappearbox#1{\def\@toappear{\raisebox{5pt}{\framebox[20pc]{\parbox[b]{19pc}{#1}}}}}
nicholas@730 910
nicholas@730 911 \newtoks\conf
nicholas@730 912 \newtoks\confinfo
nicholas@730 913 \def\conferenceinfo#1#2{\global\conf={#1}\global\confinfo{#2}}
nicholas@730 914
nicholas@730 915
nicholas@730 916 %\def\marginpar{\@latexerr{The \marginpar command is not allowed in the
nicholas@730 917 % `acmconf' document style.}\@eha}
nicholas@730 918
nicholas@730 919 \def\marginpar{\ClassError{%
nicholas@730 920 \string\marginpar\space is not allowed in the `acmconf' document % January 2008
nicholas@730 921 style}\@eha}
nicholas@730 922
nicholas@730 923 \mark{{}{}} % Initializes TeX's marks
nicholas@730 924
nicholas@730 925 \def\today{\ifcase\month\or
nicholas@730 926 January\or February\or March\or April\or May\or June\or
nicholas@730 927 July\or August\or September\or October\or November\or December\fi
nicholas@730 928 \space\number\day, \number\year}
nicholas@730 929
nicholas@730 930 \def\@begintheorem#1#2{%
nicholas@730 931 \parskip 0pt % GM July 2000 (for tighter spacing)
nicholas@730 932 \trivlist
nicholas@730 933 \item[%
nicholas@730 934 \hskip 10\p@
nicholas@730 935 \hskip \labelsep
nicholas@730 936 {{\sc #1}\hskip 5\p@\relax#2.}%
nicholas@730 937 ]
nicholas@730 938 \it
nicholas@730 939 }
nicholas@730 940 \def\@opargbegintheorem#1#2#3{%
nicholas@730 941 \parskip 0pt % GM July 2000 (for tighter spacing)
nicholas@730 942 \trivlist
nicholas@730 943 \item[%
nicholas@730 944 \hskip 10\p@
nicholas@730 945 \hskip \labelsep
nicholas@730 946 {\sc #1\ #2\ % This mod by Gerry to enumerate corollaries
nicholas@730 947 \setbox\@tempboxa\hbox{(#3)} % and bracket the 'corollary title'
nicholas@730 948 \ifdim \wd\@tempboxa>\z@ % and retain the correct numbering of e.g. theorems
nicholas@730 949 \hskip 5\p@\relax % if they occur 'around' said corollaries.
nicholas@730 950 \box\@tempboxa % Gerry - Nov. 1999.
nicholas@730 951 \fi.}%
nicholas@730 952 ]
nicholas@730 953 \it
nicholas@730 954 }
nicholas@730 955 \newif\if@qeded
nicholas@730 956 \global\@qededfalse
nicholas@730 957
nicholas@730 958 % -- original
nicholas@730 959 %\def\proof{%
nicholas@730 960 % \vspace{-\parskip} % GM July 2000 (for tighter spacing)
nicholas@730 961 % \global\@qededfalse
nicholas@730 962 % \@ifnextchar[{\@xproof}{\@proof}%
nicholas@730 963 %}
nicholas@730 964 % -- end of original
nicholas@730 965
nicholas@730 966 % (JSS) Fix for vertical spacing bug - Gerry Murray July 30th. 2002
nicholas@730 967 \def\proof{%
nicholas@730 968 \vspace{-\lastskip}\vspace{-\parsep}\penalty-51%
nicholas@730 969 \global\@qededfalse
nicholas@730 970 \@ifnextchar[{\@xproof}{\@proof}%
nicholas@730 971 }
nicholas@730 972
nicholas@730 973 \def\endproof{%
nicholas@730 974 \if@qeded\else\qed\fi
nicholas@730 975 \endtrivlist
nicholas@730 976 }
nicholas@730 977 \def\@proof{%
nicholas@730 978 \trivlist
nicholas@730 979 \item[%
nicholas@730 980 \hskip 10\p@
nicholas@730 981 \hskip \labelsep
nicholas@730 982 {\sc Proof.}%
nicholas@730 983 ]
nicholas@730 984 \ignorespaces
nicholas@730 985 }
nicholas@730 986 \def\@xproof[#1]{%
nicholas@730 987 \trivlist
nicholas@730 988 \item[\hskip 10\p@\hskip \labelsep{\sc Proof #1.}]%
nicholas@730 989 \ignorespaces
nicholas@730 990 }
nicholas@730 991 \def\qed{%
nicholas@730 992 \unskip
nicholas@730 993 \kern 10\p@
nicholas@730 994 \begingroup
nicholas@730 995 \unitlength\p@
nicholas@730 996 \linethickness{.4\p@}%
nicholas@730 997 \framebox(6,6){}%
nicholas@730 998 \endgroup
nicholas@730 999 \global\@qededtrue
nicholas@730 1000 }
nicholas@730 1001
nicholas@730 1002 \def\newdef#1#2{%
nicholas@730 1003 \expandafter\@ifdefinable\csname #1\endcsname
nicholas@730 1004 {\@definecounter{#1}%
nicholas@730 1005 \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}%
nicholas@730 1006 \global\@namedef{#1}{\@defthm{#1}{#2}}%
nicholas@730 1007 \global\@namedef{end#1}{\@endtheorem}%
nicholas@730 1008 }%
nicholas@730 1009 }
nicholas@730 1010 \def\@defthm#1#2{%
nicholas@730 1011 \refstepcounter{#1}%
nicholas@730 1012 \@ifnextchar[{\@ydefthm{#1}{#2}}{\@xdefthm{#1}{#2}}%
nicholas@730 1013 }
nicholas@730 1014 \def\@xdefthm#1#2{%
nicholas@730 1015 \@begindef{#2}{\csname the#1\endcsname}%
nicholas@730 1016 \ignorespaces
nicholas@730 1017 }
nicholas@730 1018 \def\@ydefthm#1#2[#3]{%
nicholas@730 1019 \trivlist
nicholas@730 1020 \item[%
nicholas@730 1021 \hskip 10\p@
nicholas@730 1022 \hskip \labelsep
nicholas@730 1023 {\it #2%
nicholas@730 1024 % \savebox\@tempboxa{#3}%
nicholas@730 1025 \saveb@x\@tempboxa{#3}% % January 2008
nicholas@730 1026 \ifdim \wd\@tempboxa>\z@
nicholas@730 1027 \ \box\@tempboxa
nicholas@730 1028 \fi.%
nicholas@730 1029 }]%
nicholas@730 1030 \ignorespaces
nicholas@730 1031 }
nicholas@730 1032 \def\@begindef#1#2{%
nicholas@730 1033 \trivlist
nicholas@730 1034 \item[%
nicholas@730 1035 \hskip 10\p@
nicholas@730 1036 \hskip \labelsep
nicholas@730 1037 {\it #1\ \rm #2.}%
nicholas@730 1038 ]%
nicholas@730 1039 }
nicholas@730 1040 \def\theequation{\arabic{equation}}
nicholas@730 1041
nicholas@730 1042 \newcounter{part}
nicholas@730 1043 \newcounter{section}
nicholas@730 1044 \newcounter{subsection}[section]
nicholas@730 1045 \newcounter{subsubsection}[subsection]
nicholas@730 1046 \newcounter{paragraph}[subsubsection]
nicholas@730 1047 \def\thepart{\Roman{part}}
nicholas@730 1048 \def\thesection{\arabic{section}}
nicholas@730 1049 \def\thesubsection{\thesection.\arabic{subsection}}
nicholas@730 1050 \def\thesubsubsection{\thesubsection.\arabic{subsubsection}} %removed \subsecfnt 29 July 2002 gkmt
nicholas@730 1051 \def\theparagraph{\thesubsubsection.\arabic{paragraph}} %removed \subsecfnt 29 July 2002 gkmt
nicholas@730 1052 \newif\if@uchead
nicholas@730 1053 \@ucheadfalse
nicholas@730 1054
nicholas@730 1055 %% CHANGES: NEW NOTE
nicholas@730 1056 %% NOTE: OK to use old-style font commands below, since they were
nicholas@730 1057 %% suitably redefined for LaTeX2e
nicholas@730 1058 %% END CHANGES
nicholas@730 1059 \setcounter{secnumdepth}{3}
nicholas@730 1060 \def\part{%
nicholas@730 1061 \@startsection{part}{9}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}
nicholas@730 1062 {4\p@}{\normalsize\@ucheadtrue}%
nicholas@730 1063 }
nicholas@730 1064 \def\section{%
nicholas@730 1065 \@startsection{section}{1}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}% GM
nicholas@730 1066 {4\p@}{\baselineskip 14pt\secfnt\@ucheadtrue}%
nicholas@730 1067 }
nicholas@730 1068
nicholas@730 1069 \def\subsection{%
nicholas@730 1070 \@startsection{subsection}{2}{\z@}{-8\p@ \@plus -2\p@ \@minus -\p@}
nicholas@730 1071 {4\p@}{\secfnt}%
nicholas@730 1072 }
nicholas@730 1073 \def\subsubsection{%
nicholas@730 1074 \@startsection{subsubsection}{3}{\z@}{-8\p@ \@plus -2\p@ \@minus -\p@}%
nicholas@730 1075 {4\p@}{\subsecfnt}%
nicholas@730 1076 }
nicholas@730 1077 %\def\paragraph{%
nicholas@730 1078 % \vskip 12pt\@startsection{paragraph}{3}{\z@}{6\p@ \@plus \p@}% original
nicholas@730 1079 % {-5\p@}{\subsecfnt}%
nicholas@730 1080 %}
nicholas@730 1081 % If one wants sections, subsections and subsubsections numbered,
nicholas@730 1082 % but not paragraphs, one usually sets secnumepth to 3.
nicholas@730 1083 % For that, the "depth" of paragraphs must be given correctly
nicholas@730 1084 % in the definition (``4'' instead of ``3'' as second argument
nicholas@730 1085 % of @startsection):
nicholas@730 1086 \def\paragraph{%
nicholas@730 1087 \vskip 12pt\@startsection{paragraph}{4}{\z@}{6\p@ \@plus \p@}% % GM and Wolfgang May - 11/30/06
nicholas@730 1088 {-5\p@}{\subsecfnt}%
nicholas@730 1089 }
nicholas@730 1090 \let\@period=.
nicholas@730 1091 \def\@startsection#1#2#3#4#5#6{%
nicholas@730 1092 \if@noskipsec %gkmt, 11 aug 99
nicholas@730 1093 \global\let\@period\@empty
nicholas@730 1094 \leavevmode
nicholas@730 1095 \global\let\@period.%
nicholas@730 1096 \fi
nicholas@730 1097 \par %
nicholas@730 1098 \@tempskipa #4\relax
nicholas@730 1099 \@afterindenttrue
nicholas@730 1100 \ifdim \@tempskipa <\z@
nicholas@730 1101 \@tempskipa -\@tempskipa
nicholas@730 1102 \@afterindentfalse
nicholas@730 1103 \fi
nicholas@730 1104 \if@nobreak
nicholas@730 1105 \everypar{}%
nicholas@730 1106 \else
nicholas@730 1107 \addpenalty\@secpenalty
nicholas@730 1108 \addvspace\@tempskipa
nicholas@730 1109 \fi
nicholas@730 1110 \parskip=0pt % GM July 2000 (non numbered) section heads
nicholas@730 1111 \@ifstar
nicholas@730 1112 {\@ssect{#3}{#4}{#5}{#6}}
nicholas@730 1113 {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}%
nicholas@730 1114 }
nicholas@730 1115 \def\@sect#1#2#3#4#5#6[#7]#8{%
nicholas@730 1116 \ifnum #2>\c@secnumdepth
nicholas@730 1117 \let\@svsec\@empty
nicholas@730 1118 \else
nicholas@730 1119 \refstepcounter{#1}%
nicholas@730 1120 \edef\@svsec{%
nicholas@730 1121 \begingroup
nicholas@730 1122 %\ifnum#2>2 \noexpand\rm \fi % changed to next 29 July 2002 gkmt
nicholas@730 1123 \ifnum#2>2 \noexpand#6 \fi
nicholas@730 1124 \csname the#1\endcsname
nicholas@730 1125 \endgroup
nicholas@730 1126 \ifnum #2=1\relax .\fi
nicholas@730 1127 \hskip 1em
nicholas@730 1128 }%
nicholas@730 1129 \fi
nicholas@730 1130 \@tempskipa #5\relax
nicholas@730 1131 \ifdim \@tempskipa>\z@
nicholas@730 1132 \begingroup
nicholas@730 1133 #6\relax
nicholas@730 1134 \@hangfrom{\hskip #3\relax\@svsec}%
nicholas@730 1135 \begingroup
nicholas@730 1136 \interlinepenalty \@M
nicholas@730 1137 \if@uchead
nicholas@730 1138 \uppercase{#8}%
nicholas@730 1139 \else
nicholas@730 1140 #8%
nicholas@730 1141 \fi
nicholas@730 1142 \par
nicholas@730 1143 \endgroup
nicholas@730 1144 \endgroup
nicholas@730 1145 \csname #1mark\endcsname{#7}%
nicholas@730 1146 \vskip -12pt %gkmt, 11 aug 99 and GM July 2000 (was -14) - numbered section head spacing
nicholas@730 1147 \addcontentsline{toc}{#1}{%
nicholas@730 1148 \ifnum #2>\c@secnumdepth \else
nicholas@730 1149 \protect\numberline{\csname the#1\endcsname}%
nicholas@730 1150 \fi
nicholas@730 1151 #7%
nicholas@730 1152 }%
nicholas@730 1153 \else
nicholas@730 1154 \def\@svsechd{%
nicholas@730 1155 #6%
nicholas@730 1156 \hskip #3\relax
nicholas@730 1157 \@svsec
nicholas@730 1158 \if@uchead
nicholas@730 1159 \uppercase{#8}%
nicholas@730 1160 \else
nicholas@730 1161 #8%
nicholas@730 1162 \fi
nicholas@730 1163 \csname #1mark\endcsname{#7}%
nicholas@730 1164 \addcontentsline{toc}{#1}{%
nicholas@730 1165 \ifnum #2>\c@secnumdepth \else
nicholas@730 1166 \protect\numberline{\csname the#1\endcsname}%
nicholas@730 1167 \fi
nicholas@730 1168 #7%
nicholas@730 1169 }%
nicholas@730 1170 }%
nicholas@730 1171 \fi
nicholas@730 1172 \@xsect{#5}\hskip 1pt
nicholas@730 1173 \par
nicholas@730 1174 }
nicholas@730 1175 \def\@xsect#1{%
nicholas@730 1176 \@tempskipa #1\relax
nicholas@730 1177 \ifdim \@tempskipa>\z@
nicholas@730 1178 \par
nicholas@730 1179 \nobreak
nicholas@730 1180 \vskip \@tempskipa
nicholas@730 1181 \@afterheading
nicholas@730 1182 \else
nicholas@730 1183 \global\@nobreakfalse
nicholas@730 1184 \global\@noskipsectrue
nicholas@730 1185 \everypar{%
nicholas@730 1186 \if@noskipsec
nicholas@730 1187 \global\@noskipsecfalse
nicholas@730 1188 \clubpenalty\@M
nicholas@730 1189 \hskip -\parindent
nicholas@730 1190 \begingroup
nicholas@730 1191 \@svsechd
nicholas@730 1192 \@period
nicholas@730 1193 \endgroup
nicholas@730 1194 \unskip
nicholas@730 1195 \@tempskipa #1\relax
nicholas@730 1196 \hskip -\@tempskipa
nicholas@730 1197 \else
nicholas@730 1198 \clubpenalty \@clubpenalty
nicholas@730 1199 \everypar{}%
nicholas@730 1200 \fi
nicholas@730 1201 }%
nicholas@730 1202 \fi
nicholas@730 1203 \ignorespaces
nicholas@730 1204 }
nicholas@730 1205 \def\@trivlist{%
nicholas@730 1206 \@topsepadd\topsep
nicholas@730 1207 \if@noskipsec
nicholas@730 1208 \global\let\@period\@empty
nicholas@730 1209 \leavevmode
nicholas@730 1210 \global\let\@period.%
nicholas@730 1211 \fi
nicholas@730 1212 \ifvmode
nicholas@730 1213 \advance\@topsepadd\partopsep
nicholas@730 1214 \else
nicholas@730 1215 \unskip
nicholas@730 1216 \par
nicholas@730 1217 \fi
nicholas@730 1218 \if@inlabel
nicholas@730 1219 \@noparitemtrue
nicholas@730 1220 \@noparlisttrue
nicholas@730 1221 \else
nicholas@730 1222 \@noparlistfalse
nicholas@730 1223 \@topsep\@topsepadd
nicholas@730 1224 \fi
nicholas@730 1225 \advance\@topsep \parskip
nicholas@730 1226 \leftskip\z@skip
nicholas@730 1227 \rightskip\@rightskip
nicholas@730 1228 \parfillskip\@flushglue
nicholas@730 1229 \@setpar{\if@newlist\else{\@@par}\fi}
nicholas@730 1230 \global\@newlisttrue
nicholas@730 1231 \@outerparskip\parskip
nicholas@730 1232 }
nicholas@730 1233
nicholas@730 1234 %%% Actually, 'abbrev' works just fine as the default
nicholas@730 1235 %%% Bibliography style.
nicholas@730 1236
nicholas@730 1237 \typeout{Using 'Abbrev' bibliography style}
nicholas@730 1238 \newcommand\bibyear[2]{%
nicholas@730 1239 \unskip\quad\ignorespaces#1\unskip
nicholas@730 1240 \if#2..\quad \else \quad#2 \fi
nicholas@730 1241 }
nicholas@730 1242 \newcommand{\bibemph}[1]{{\em#1}}
nicholas@730 1243 \newcommand{\bibemphic}[1]{{\em#1\/}}
nicholas@730 1244 \newcommand{\bibsc}[1]{{\sc#1}}
nicholas@730 1245 \def\@normalcite{%
nicholas@730 1246 \def\@cite##1##2{[##1\if@tempswa , ##2\fi]}%
nicholas@730 1247 }
nicholas@730 1248 \def\@citeNB{%
nicholas@730 1249 \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
nicholas@730 1250 }
nicholas@730 1251 \def\@citeRB{%
nicholas@730 1252 \def\@cite##1##2{##1\if@tempswa , ##2\fi]}%
nicholas@730 1253 }
nicholas@730 1254 \def\start@cite#1#2{%
nicholas@730 1255 \edef\citeauthoryear##1##2##3{%
nicholas@730 1256 ###1%
nicholas@730 1257 \ifnum#2=\z@ \else\ ###2\fi
nicholas@730 1258 }%
nicholas@730 1259 \ifnum#1=\thr@@
nicholas@730 1260 \let\@@cite\@citeyear
nicholas@730 1261 \else
nicholas@730 1262 \let\@@cite\@citenormal
nicholas@730 1263 \fi
nicholas@730 1264 \@ifstar{\@citeNB\@@cite}{\@normalcite\@@cite}%
nicholas@730 1265 }
nicholas@730 1266 %\def\cite{\start@cite23}
nicholas@730 1267 \DeclareRobustCommand\cite{\start@cite23} % January 2008
nicholas@730 1268 \def\citeNP{\cite*} % No Parentheses e.g. 5
nicholas@730 1269 %\def\citeA{\start@cite10}
nicholas@730 1270 \DeclareRobustCommand\citeA{\start@cite10} % January 2008
nicholas@730 1271 \def\citeANP{\citeA*}
nicholas@730 1272 %\def\shortcite{\start@cite23}
nicholas@730 1273 \DeclareRobustCommand\shortcite{\start@cite23} % January 2008
nicholas@730 1274 \def\shortciteNP{\shortcite*}
nicholas@730 1275 %\def\shortciteA{\start@cite20}
nicholas@730 1276 \DeclareRobustCommand\shortciteA{\start@cite20} % January 2008
nicholas@730 1277 \def\shortciteANP{\shortciteA*}
nicholas@730 1278 %\def\citeyear{\start@cite30}
nicholas@730 1279 \DeclareRobustCommand\citeyear{\start@cite30} % January 2008
nicholas@730 1280 \def\citeyearNP{\citeyear*}
nicholas@730 1281 %\def\citeN{%
nicholas@730 1282 \DeclareRobustCommand\citeN{% % January 2008
nicholas@730 1283 \@citeRB
nicholas@730 1284 \def\citeauthoryear##1##2##3{##1\ [##3%
nicholas@730 1285 \def\reserved@a{##1}%
nicholas@730 1286 \def\citeauthoryear####1####2####3{%
nicholas@730 1287 \def\reserved@b{####1}%
nicholas@730 1288 \ifx\reserved@a\reserved@b
nicholas@730 1289 ####3%
nicholas@730 1290 \else
nicholas@730 1291 \errmessage{Package acmart Error: author mismatch
nicholas@730 1292 in \string\citeN^^J^^J%
nicholas@730 1293 See the acmart package documentation for explanation}%
nicholas@730 1294 \fi
nicholas@730 1295 }%
nicholas@730 1296 }%
nicholas@730 1297 \@ifstar\@citeyear\@citeyear
nicholas@730 1298 }
nicholas@730 1299 %\def\shortciteN{%
nicholas@730 1300 \DeclareRobustCommand\shortciteN{% % January 2008
nicholas@730 1301 \@citeRB
nicholas@730 1302 \def\citeauthoryear##1##2##3{##2\ [##3%
nicholas@730 1303 \def\reserved@a{##2}%
nicholas@730 1304 \def\citeauthoryear####1####2####3{%
nicholas@730 1305 \def\reserved@b{####2}%
nicholas@730 1306 \ifx\reserved@a\reserved@b
nicholas@730 1307 ####3%
nicholas@730 1308 \else
nicholas@730 1309 \errmessage{Package acmart Error: author mismatch
nicholas@730 1310 in \string\shortciteN^^J^^J%
nicholas@730 1311 See the acmart package documentation for explanation}%
nicholas@730 1312 \fi
nicholas@730 1313 }%
nicholas@730 1314 }%
nicholas@730 1315 \@ifstar\@citeyear\@citeyear % GM July 2000
nicholas@730 1316 }
nicholas@730 1317
nicholas@730 1318 \def\@citenormal{%
nicholas@730 1319 \@ifnextchar [{\@tempswatrue\@citex;}%
nicholas@730 1320 % original {\@tempswafalse\@citex,[]}% was ; Gerry 2/24/00
nicholas@730 1321 {\@tempswafalse\@citex[]}% % GERRY FIX FOR BABEL 3/20/2009
nicholas@730 1322 }
nicholas@730 1323
nicholas@730 1324 \def\@citeyear{%
nicholas@730 1325 \@ifnextchar [{\@tempswatrue\@citex,}%
nicholas@730 1326 % original {\@tempswafalse\@citex,[]}%
nicholas@730 1327 {\@tempswafalse\@citex[]}% % GERRY FIX FOR BABEL 3/20/2009
nicholas@730 1328 }
nicholas@730 1329
nicholas@730 1330 \def\@citex#1[#2]#3{%
nicholas@730 1331 \let\@citea\@empty
nicholas@730 1332 \@cite{%
nicholas@730 1333 \@for\@citeb:=#3\do{%
nicholas@730 1334 \@citea
nicholas@730 1335 % original \def\@citea{#1 }%
nicholas@730 1336 \def\@citea{#1, }% % GERRY FIX FOR BABEL 3/20/2009 -- SO THAT YOU GET [1, 2] IN THE BODY TEXT
nicholas@730 1337 \edef\@citeb{\expandafter\@iden\@citeb}%
nicholas@730 1338 \if@filesw
nicholas@730 1339 \immediate\write\@auxout{\string\citation{\@citeb}}%
nicholas@730 1340 \fi
nicholas@730 1341 \@ifundefined{b@\@citeb}{%
nicholas@730 1342 {\bf ?}%
nicholas@730 1343 \@warning{%
nicholas@730 1344 Citation `\@citeb' on page \thepage\space undefined%
nicholas@730 1345 }%
nicholas@730 1346 }%
nicholas@730 1347 {\csname b@\@citeb\endcsname}%
nicholas@730 1348 }%
nicholas@730 1349 }{#2}%
nicholas@730 1350 }
nicholas@730 1351 %\let\@biblabel\@gobble % Dec. 2008 - Gerry
nicholas@730 1352 % ----
nicholas@730 1353 \def\@biblabelnum#1{[#1]} % Gerry's solution #1 - for Natbib -- April 2009
nicholas@730 1354 \let\@biblabel=\@biblabelnum % Gerry's solution #1 - for Natbib -- April 2009
nicholas@730 1355 \def\newblock{\relax} % Gerry Dec. 2008
nicholas@730 1356 % ---
nicholas@730 1357 \newdimen\bibindent
nicholas@730 1358 \setcounter{enumi}{1}
nicholas@730 1359 \bibindent=0em
nicholas@730 1360 \def\thebibliography#1{%
nicholas@730 1361 \ifnum\addauflag=0\addauthorsection\global\addauflag=1\fi
nicholas@730 1362 \section[References]{% <=== OPTIONAL ARGUMENT ADDED HERE
nicholas@730 1363 {References} % was uppercased but this affects pdf bookmarks (SP/GM October 2004)
nicholas@730 1364 {\vskip -9pt plus 1pt} % GM Nov. 2006 / GM July 2000 (for somewhat tighter spacing)
nicholas@730 1365 \@mkboth{{\refname}}{{\refname}}%
nicholas@730 1366 }%
nicholas@730 1367 \list{[\arabic{enumi}]}{%
nicholas@730 1368 \settowidth\labelwidth{[#1]}%
nicholas@730 1369 \leftmargin\labelwidth
nicholas@730 1370 \advance\leftmargin\labelsep
nicholas@730 1371 \advance\leftmargin\bibindent
nicholas@730 1372 \parsep=0pt\itemsep=1pt % GM July 2000
nicholas@730 1373 \itemindent -\bibindent
nicholas@730 1374 \listparindent \itemindent
nicholas@730 1375 \usecounter{enumi}
nicholas@730 1376 }%
nicholas@730 1377 \let\newblock\@empty
nicholas@730 1378 \raggedright % GM July 2000
nicholas@730 1379 \sloppy
nicholas@730 1380 \sfcode`\.=1000\relax
nicholas@730 1381 }
nicholas@730 1382
nicholas@730 1383
nicholas@730 1384 \gdef\balancecolumns
nicholas@730 1385 {\vfill\eject
nicholas@730 1386 \global\@colht=\textheight
nicholas@730 1387 \global\ht\@cclv=\textheight
nicholas@730 1388 }
nicholas@730 1389
nicholas@730 1390 \newcount\colcntr
nicholas@730 1391 \global\colcntr=0
nicholas@730 1392 %\newbox\savebox
nicholas@730 1393 \newbox\saveb@x % January 2008
nicholas@730 1394
nicholas@730 1395 \gdef \@makecol {%
nicholas@730 1396 \global\advance\colcntr by 1
nicholas@730 1397 \ifnum\colcntr>2 \global\colcntr=1\fi
nicholas@730 1398 \ifvoid\footins
nicholas@730 1399 \setbox\@outputbox \box\@cclv
nicholas@730 1400 \else
nicholas@730 1401 \setbox\@outputbox \vbox{%
nicholas@730 1402 \boxmaxdepth \@maxdepth
nicholas@730 1403 \@tempdima\dp\@cclv
nicholas@730 1404 \unvbox \@cclv
nicholas@730 1405 \vskip-\@tempdima
nicholas@730 1406 \vskip \skip\footins
nicholas@730 1407 \color@begingroup
nicholas@730 1408 \normalcolor
nicholas@730 1409 \footnoterule
nicholas@730 1410 \unvbox \footins
nicholas@730 1411 \color@endgroup
nicholas@730 1412 }%
nicholas@730 1413 \fi
nicholas@730 1414 \xdef\@freelist{\@freelist\@midlist}%
nicholas@730 1415 \global \let \@midlist \@empty
nicholas@730 1416 \@combinefloats
nicholas@730 1417 \ifvbox\@kludgeins
nicholas@730 1418 \@makespecialcolbox
nicholas@730 1419 \else
nicholas@730 1420 \setbox\@outputbox \vbox to\@colht {%
nicholas@730 1421 \@texttop
nicholas@730 1422 \dimen@ \dp\@outputbox
nicholas@730 1423 \unvbox \@outputbox
nicholas@730 1424 \vskip -\dimen@
nicholas@730 1425 \@textbottom
nicholas@730 1426 }%
nicholas@730 1427 \fi
nicholas@730 1428 \global \maxdepth \@maxdepth
nicholas@730 1429 }
nicholas@730 1430 \def\titlenote{\@ifnextchar[\@xtitlenote{\stepcounter\@mpfn
nicholas@730 1431 \global\advance\titlenotecount by 1
nicholas@730 1432 \ifnum\titlenotecount=1
nicholas@730 1433 \raisebox{9pt}{$\ast$}
nicholas@730 1434 \fi
nicholas@730 1435 \ifnum\titlenotecount=2
nicholas@730 1436 \raisebox{9pt}{$\dagger$}
nicholas@730 1437 \fi
nicholas@730 1438 \ifnum\titlenotecount=3
nicholas@730 1439 \raisebox{9pt}{$\ddagger$}
nicholas@730 1440 \fi
nicholas@730 1441 \ifnum\titlenotecount=4
nicholas@730 1442 \raisebox{9pt}{$\S$}
nicholas@730 1443 \fi
nicholas@730 1444 \ifnum\titlenotecount=5
nicholas@730 1445 \raisebox{9pt}{$\P$}
nicholas@730 1446 \fi
nicholas@730 1447 \@titlenotetext
nicholas@730 1448 }}
nicholas@730 1449
nicholas@730 1450 \long\def\@titlenotetext#1{\insert\footins{%
nicholas@730 1451 \ifnum\titlenotecount=1\global\tntoks={#1}\fi
nicholas@730 1452 \ifnum\titlenotecount=2\global\tntokstwo={#1}\fi
nicholas@730 1453 \ifnum\titlenotecount=3\global\tntoksthree={#1}\fi
nicholas@730 1454 \ifnum\titlenotecount=4\global\tntoksfour={#1}\fi
nicholas@730 1455 \ifnum\titlenotecount=5\global\tntoksfive={#1}\fi
nicholas@730 1456 \reset@font\footnotesize
nicholas@730 1457 \interlinepenalty\interfootnotelinepenalty
nicholas@730 1458 \splittopskip\footnotesep
nicholas@730 1459 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
nicholas@730 1460 \hsize\columnwidth \@parboxrestore
nicholas@730 1461 \protected@edef\@currentlabel{%
nicholas@730 1462 }%
nicholas@730 1463 \color@begingroup
nicholas@730 1464 \color@endgroup}}
nicholas@730 1465
nicholas@730 1466 %%%%%%%%%%%%%%%%%%%%%%%%%
nicholas@730 1467 \ps@plain
nicholas@730 1468 \baselineskip=11pt
nicholas@730 1469 \let\thepage\relax % For NO page numbers - GM Nov. 30th. 1999 and July 2000
nicholas@730 1470 \def\setpagenumber#1{\global\setcounter{page}{#1}}
nicholas@730 1471 %\pagenumbering{arabic} % Arabic page numbers GM July 2000
nicholas@730 1472 \twocolumn % Double column.
nicholas@730 1473 \flushbottom % Even bottom -- alas, does not balance columns at end of document
nicholas@730 1474 \pagestyle{plain}
nicholas@730 1475
nicholas@730 1476 % Need Copyright Year and Copyright Data to be user definable (in .tex file).
nicholas@730 1477 % Gerry Nov. 30th. 1999
nicholas@730 1478 \newtoks\copyrtyr
nicholas@730 1479 \newtoks\acmcopyr
nicholas@730 1480 \newtoks\boilerplate
nicholas@730 1481 \global\acmcopyr={X-XXXXX-XX-X/XX/XX} % Default - 5/11/2001 *** Gerry
nicholas@730 1482 \global\copyrtyr={\the\year} % Default - 3/3/2003 *** Gerry
nicholas@730 1483 \def\acmPrice#1{\gdef\@acmPrice{#1}}
nicholas@730 1484 \acmPrice{} %article price % Changed to 15 - June 2012 - Gerry
nicholas@730 1485
nicholas@730 1486
nicholas@730 1487 \def\CopyrightYear#1{\global\copyrtyr{#1}}
nicholas@730 1488 \def\crdata#1{\global\acmcopyr{#1}}
nicholas@730 1489 \def\permission#1{\global\boilerplate{#1}}
nicholas@730 1490
nicholas@730 1491 % ISBN
nicholas@730 1492 %
nicholas@730 1493 \def\isbn#1{\global\acmcopyr={#1}}
nicholas@730 1494 \isbn{978-1-4503-2138-9}
nicholas@730 1495
nicholas@730 1496 \RequirePackage{url}
nicholas@730 1497 \urlstyle{rm}
nicholas@730 1498 \def\doi#1{\def\@doi{#1}}
nicholas@730 1499 \doi{10.1145/1235}
nicholas@730 1500 \def\printdoi#1{\url{#1}}
nicholas@730 1501
nicholas@730 1502
nicholas@730 1503
nicholas@730 1504 % Copyright
nicholas@730 1505 \RequirePackage{waccopyright}
nicholas@730 1506 \setcopyright{none}
nicholas@730 1507
nicholas@730 1508 %
nicholas@730 1509 \global\boilerplate={\@copyrightpermission}
nicholas@730 1510
nicholas@730 1511
nicholas@730 1512
nicholas@730 1513 \newtoks\copyrightetc
nicholas@730 1514 \global\copyrightetc{%
n@1236 1515 {\noindent\confname\the\conf\ \the\confinfo}\par\smallskip%{\noindent\confname\ \the\conf\ \the\confinfo}\par\smallskip
nicholas@730 1516 \if@printcopyright
n@1236 1517 \copyright\ \the\copyrtyr\ \@copyrightowner%\ \copyright\ \the\copyrtyr\ \@copyrightowner
nicholas@730 1518 \fi
nicholas@730 1519 \if@acmowned ISBN \else\ifnum\acm@copyrightmode=2 ISBN \else %\par\smallskip ~
nicholas@730 1520 \fi\fi
nicholas@730 1521 % \the\acmcopyr
n@1236 1522 \ifx\@acmPrice\@empty\else\dots\@acmPrice\fi\par%\smallskip%\ifx\@acmPrice\@empty.\else\dots\@acmPrice\fi\par%\smallskip
nicholas@730 1523 %{DOI: \small\expandafter\printdoi\expandafter{\@doi}%
nicholas@730 1524 }
nicholas@730 1525 \toappear{\fontsize{7pt}{8pt}\fontfamily{ptm}\selectfont
nicholas@730 1526 \the\boilerplate\par\smallskip
nicholas@730 1527 \the\copyrightetc}
nicholas@730 1528 %\DeclareFixedFont{\altcrnotice}{OT1}{tmr}{m}{n}{8} % << patch needed for accenting e.g. Montreal - Gerry, May 2007
nicholas@730 1529 %\DeclareFixedFont{\altconfname}{OT1}{tmr}{m}{it}{8} % << patch needed for accenting in italicized confname - Gerry, May 2007
nicholas@730 1530 %
nicholas@730 1531 %{\altconfname{{\the\conf}}} {\altcrnotice\the\confinfo\par} \the\copyrightetc.} % << Gerry, May 2007
nicholas@730 1532 %
nicholas@730 1533 % The following section (i.e. 3 .sty inclusions) was added in May 2007 so as to fix the problems that many
nicholas@730 1534 % authors were having with accents. Sometimes accents would occur, but the letter-character would be of a different
nicholas@730 1535 % font. Conversely the letter-character font would be correct but, e.g. a 'bar' would appear superimposed on the
nicholas@730 1536 % character instead of, say, an unlaut/diaresis. Sometimes the letter-character would NOT appear at all.
nicholas@730 1537 % Using [T1]{fontenc} outright was not an option as this caused 99% of the authors to 'produce' a Type-3 (bitmapped)
nicholas@730 1538 % PDF file - useless for production.
nicholas@730 1539 %
nicholas@730 1540 % For proper (font) accenting we NEED these packages to be part of the .cls file i.e. 'ae', 'aecompl' and 'aeguil'
nicholas@730 1541 % ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nicholas@730 1542 %% This is file `ae.sty'
nicholas@730 1543 \def\fileversion{1.3}
nicholas@730 1544 \def\filedate{2001/02/12}
nicholas@730 1545 \NeedsTeXFormat{LaTeX2e}
nicholas@730 1546 %\ProvidesPackage{ae}[\filedate\space\fileversion\space % GM
nicholas@730 1547 % Almost European Computer Modern] % GM - keeping the log file clean(er)
nicholas@730 1548 \newif\if@ae@slides \@ae@slidesfalse
nicholas@730 1549 \DeclareOption{slides}{\@ae@slidestrue}
nicholas@730 1550 \ProcessOptions
nicholas@730 1551 \fontfamily{aer}
nicholas@730 1552 \RequirePackage[T1]{fontenc}
nicholas@730 1553 \if@ae@slides
nicholas@730 1554 \renewcommand{\sfdefault}{laess}
nicholas@730 1555 \renewcommand{\rmdefault}{laess} % no roman
nicholas@730 1556 \renewcommand{\ttdefault}{laett}
nicholas@730 1557 \else
nicholas@730 1558 \renewcommand{\sfdefault}{aess}
nicholas@730 1559 \renewcommand{\rmdefault}{aer}
nicholas@730 1560 \renewcommand{\ttdefault}{aett}
nicholas@730 1561 \fi
nicholas@730 1562 \DeclareRobustCommand{\ttfamily}{\fontencoding{T1}\fontfamily{lmtt}\selectfont}
nicholas@730 1563 \endinput
nicholas@730 1564 %%
nicholas@730 1565 %% End of file `ae.sty'.
nicholas@730 1566 %
nicholas@730 1567 %
nicholas@730 1568 \def\fileversion{0.9}
nicholas@730 1569 \def\filedate{1998/07/23}
nicholas@730 1570 \NeedsTeXFormat{LaTeX2e}
nicholas@730 1571 %\ProvidesPackage{aecompl}[\filedate\space\fileversion\space % GM
nicholas@730 1572 %T1 Complements for AE fonts (D. Roegel)] % GM -- keeping the log file clean(er)
nicholas@730 1573
nicholas@730 1574 \def\@ae@compl#1{{\fontencoding{T1}\fontfamily{cmr}\selectfont\symbol{#1}}}
nicholas@730 1575 \def\guillemotleft{\@ae@compl{19}}
nicholas@730 1576 \def\guillemotright{\@ae@compl{20}}
nicholas@730 1577 \def\guilsinglleft{\@ae@compl{14}}
nicholas@730 1578 \def\guilsinglright{\@ae@compl{15}}
nicholas@730 1579 \def\TH{\@ae@compl{222}}
nicholas@730 1580 \def\NG{\@ae@compl{141}}
nicholas@730 1581 \def\ng{\@ae@compl{173}}
nicholas@730 1582 \def\th{\@ae@compl{254}}
nicholas@730 1583 \def\DJ{\@ae@compl{208}}
nicholas@730 1584 \def\dj{\@ae@compl{158}}
nicholas@730 1585 \def\DH{\@ae@compl{208}}
nicholas@730 1586 \def\dh{\@ae@compl{240}}
nicholas@730 1587 \def\@perthousandzero{\@ae@compl{24}}
nicholas@730 1588 \def\textperthousand{\%\@perthousandzero}
nicholas@730 1589 \def\textpertenthousand{\%\@perthousandzero\@perthousandzero}
nicholas@730 1590 \endinput
nicholas@730 1591 %
nicholas@730 1592 %
nicholas@730 1593 %% This is file `aeguill.sty'
nicholas@730 1594 % This file gives french guillemets (and not guillemots!)
nicholas@730 1595 % built with the Polish CMR fonts (default), WNCYR fonts, the LASY fonts
nicholas@730 1596 % or with the EC fonts.
nicholas@730 1597 % This is useful in conjunction with the ae package
nicholas@730 1598 % (this package loads the ae package in case it has not been loaded)
nicholas@730 1599 % and with or without the french(le) package.
nicholas@730 1600 %
nicholas@730 1601 % In order to get the guillemets, it is necessary to either type
nicholas@730 1602 % \guillemotleft and \guillemotright, or to use an 8 bit encoding
nicholas@730 1603 % (such as ISO-Latin1) which selects these two commands,
nicholas@730 1604 % or, if you use the french package (but not the frenchle package),
nicholas@730 1605 % to type << or >>.
nicholas@730 1606 %
nicholas@730 1607 % By default, you get the Polish CMR guillemets; if this package is loaded
nicholas@730 1608 % with the `cm' option, you get the LASY guillemets; with `ec,' you
nicholas@730 1609 % get the EC guillemets, and with `cyr,' you get the cyrillic guillemets.
nicholas@730 1610 %
nicholas@730 1611 % In verbatim mode, you always get the EC/TT guillemets.
nicholas@730 1612 %
nicholas@730 1613 % The default option is interesting in conjunction with PDF,
nicholas@730 1614 % because there is a Type 1 version of the Polish CMR fonts
nicholas@730 1615 % and these guillemets are very close in shape to the EC guillemets.
nicholas@730 1616 % There are no free Type 1 versions of the EC fonts.
nicholas@730 1617 %
nicholas@730 1618 % Support for Polish CMR guillemets was kindly provided by
nicholas@730 1619 % Rolf Niepraschk <niepraschk@ptb.de> in version 0.99 (2000/05/22).
nicholas@730 1620 % Bernd Raichle provided extensive simplifications to the code
nicholas@730 1621 % for version 1.00.
nicholas@730 1622 %
nicholas@730 1623 % This package is released under the LPPL.
nicholas@730 1624 %
nicholas@730 1625 % Changes:
nicholas@730 1626 % Date version
nicholas@730 1627 % 2001/04/12 1.01 the frenchle and french package are now distinguished.
nicholas@730 1628 %
nicholas@730 1629 \def\fileversion{1.01}
nicholas@730 1630 \def\filedate{2001/04/12}
nicholas@730 1631 \NeedsTeXFormat{LaTeX2e}
nicholas@730 1632 %\ProvidesPackage{aeguill}[2001/04/12 1.01 % % GM
nicholas@730 1633 %AE fonts with french guillemets (D. Roegel)] % GM - keeping the log file clean(er)
nicholas@730 1634 %\RequirePackage{ae} % GM May 2007 - already embedded here
nicholas@730 1635
nicholas@730 1636 \newcommand{\@ae@switch}[4]{#4}
nicholas@730 1637 \DeclareOption{ec}{\renewcommand\@ae@switch[4]{#1}}
nicholas@730 1638 \DeclareOption{cm}{\renewcommand\@ae@switch[4]{#2}}
nicholas@730 1639 \DeclareOption{cyr}{\renewcommand\@ae@switch[4]{#3}}
nicholas@730 1640 \DeclareOption{pl}{\renewcommand\@ae@switch[4]{#4}}
nicholas@730 1641
nicholas@730 1642
nicholas@730 1643 %
nicholas@730 1644 % Load necessary packages
nicholas@730 1645 %
nicholas@730 1646 \@ae@switch{% ec
nicholas@730 1647 % do nothing
nicholas@730 1648 }{% cm
nicholas@730 1649 \RequirePackage{latexsym}% GM - May 2007 - already 'mentioned as required' up above
nicholas@730 1650 }{% cyr
nicholas@730 1651 \RequirePackage[OT2,T1]{fontenc}%
nicholas@730 1652 }{% pl
nicholas@730 1653 \RequirePackage[OT4,T1]{fontenc}%
nicholas@730 1654 }
nicholas@730 1655
nicholas@730 1656 % The following command will be compared to \frenchname,
nicholas@730 1657 % as defined in french.sty and frenchle.sty.
nicholas@730 1658 \def\aeguillfrenchdefault{french}%
nicholas@730 1659
nicholas@730 1660 \let\guill@verbatim@font\verbatim@font
nicholas@730 1661 \def\verbatim@font{\guill@verbatim@font\ecguills{cmtt}%
nicholas@730 1662 \let\guillemotleft\@oguills\let\guillemotright\@fguills}
nicholas@730 1663
nicholas@730 1664 \begingroup \catcode`\<=13 \catcode`\>=13
nicholas@730 1665 \def\x{\endgroup
nicholas@730 1666 \def\ae@lfguill{<<}%
nicholas@730 1667 \def\ae@rfguill{>>}%
nicholas@730 1668 }\x
nicholas@730 1669
nicholas@730 1670 \newcommand{\ecguills}[1]{%
nicholas@730 1671 \def\selectguillfont{\fontencoding{T1}\fontfamily{#1}\selectfont}%
nicholas@730 1672 \def\@oguills{{\selectguillfont\symbol{19}}}%
nicholas@730 1673 \def\@fguills{{\selectguillfont\symbol{20}}}%
nicholas@730 1674 }
nicholas@730 1675
nicholas@730 1676 \newcommand{\aeguills}{%
nicholas@730 1677 \ae@guills
nicholas@730 1678 % We redefine \guillemotleft and \guillemotright
nicholas@730 1679 % in order to catch them when they are used
nicholas@730 1680 % with \DeclareInputText (in latin1.def for instance)
nicholas@730 1681 % We use \auxWARNINGi as a safe indicator that french.sty is used.
nicholas@730 1682 \gdef\guillemotleft{\ifx\auxWARNINGi\undefined
nicholas@730 1683 \@oguills % neither french.sty nor frenchle.sty
nicholas@730 1684 \else
nicholas@730 1685 \ifx\aeguillfrenchdefault\frenchname
nicholas@730 1686 \ae@lfguill % french.sty
nicholas@730 1687 \else
nicholas@730 1688 \@oguills % frenchle.sty
nicholas@730 1689 \fi
nicholas@730 1690 \fi}%
nicholas@730 1691 \gdef\guillemotright{\ifx\auxWARNINGi\undefined
nicholas@730 1692 \@fguills % neither french.sty nor frenchle.sty
nicholas@730 1693 \else
nicholas@730 1694 \ifx\aeguillfrenchdefault\frenchname
nicholas@730 1695 \ae@rfguill % french.sty
nicholas@730 1696 \else
nicholas@730 1697 \@fguills % frenchle.sty
nicholas@730 1698 \fi
nicholas@730 1699 \fi}%
nicholas@730 1700 }
nicholas@730 1701
nicholas@730 1702 %
nicholas@730 1703 % Depending on the class option
nicholas@730 1704 % define the internal command \ae@guills
nicholas@730 1705 \@ae@switch{% ec
nicholas@730 1706 \newcommand{\ae@guills}{%
nicholas@730 1707 \ecguills{cmr}}%
nicholas@730 1708 }{% cm
nicholas@730 1709 \newcommand{\ae@guills}{%
nicholas@730 1710 \def\selectguillfont{\fontencoding{U}\fontfamily{lasy}%
nicholas@730 1711 \fontseries{m}\fontshape{n}\selectfont}%
nicholas@730 1712 \def\@oguills{\leavevmode\nobreak
nicholas@730 1713 \hbox{\selectguillfont (\kern-.20em(\kern.20em}\nobreak}%
nicholas@730 1714 \def\@fguills{\leavevmode\nobreak
nicholas@730 1715 \hbox{\selectguillfont \kern.20em)\kern-.2em)}%
nicholas@730 1716 \ifdim\fontdimen\@ne\font>\z@\/\fi}}%
nicholas@730 1717 }{% cyr
nicholas@730 1718 \newcommand{\ae@guills}{%
nicholas@730 1719 \def\selectguillfont{\fontencoding{OT2}\fontfamily{wncyr}\selectfont}%
nicholas@730 1720 \def\@oguills{{\selectguillfont\symbol{60}}}%
nicholas@730 1721 \def\@fguills{{\selectguillfont\symbol{62}}}}
nicholas@730 1722 }{% pl
nicholas@730 1723 \newcommand{\ae@guills}{%
nicholas@730 1724 \def\selectguillfont{\fontencoding{OT4}\fontfamily{cmr}\selectfont}%
nicholas@730 1725 \def\@oguills{{\selectguillfont\symbol{174}}}%
nicholas@730 1726 \def\@fguills{{\selectguillfont\symbol{175}}}}
nicholas@730 1727 }
nicholas@730 1728
nicholas@730 1729
nicholas@730 1730 \AtBeginDocument{%
nicholas@730 1731 \ifx\GOfrench\undefined
nicholas@730 1732 \aeguills
nicholas@730 1733 \else
nicholas@730 1734 \let\aeguill@GOfrench\GOfrench
nicholas@730 1735 \gdef\GOfrench{\aeguill@GOfrench \aeguills}%
nicholas@730 1736 \fi
nicholas@730 1737 }
nicholas@730 1738
nicholas@730 1739 \endinput
nicholas@730 1740 %
nicholas@730 1741