annotate docs/WAC2016/sig-alternate.cls @ 441:4866152611e6 Dev_main

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