annotate docs/WAC2016/sig-alternate.cls @ 786:9ed3abe54604

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