
djmoffat@718: % SIG-ALTERNATE.CLS - VERSION 2.8
djmoffat@718: % "COMPATIBLE" WITH THE "ACM_PROC_ARTICLE-SP.CLS" V3.2SP
djmoffat@718: % Gerald Murray - May 23rd 2012
djmoffat@718: % Boris Veytsman - April 23 2013
djmoffat@718: % Boris Veytsman - May 12 2013
djmoffat@718: % Boris Veytsman - June 09 2013
djmoffat@718: % Boris Veytsman - August 12 2013
djmoffat@718: %
djmoffat@718: % ---- Start of 'updates'  ----
djmoffat@718: % Added new permission/copyright statement - BV
djmoffat@718: % Changed $10 fee to $15 -- May 2012  --  Gerry
djmoffat@718: % Changed $5 fee to $10 --  April 2009 -- Gerry
djmoffat@718: % April 22nd. 2009 - Fixed 'Natbib' incompatibility problem - Gerry
djmoffat@718: % April 22nd. 2009 - Fixed 'Babel' incompatibility problem - Gerry
djmoffat@718: % April 22nd. 2009 - Inserted various bug-fixes and improvements - Gerry
djmoffat@718: %
djmoffat@718: % To produce Type 1 fonts in the document plus allow for 'normal LaTeX accenting' in the critical areas;
djmoffat@718: % title, author block, section-heads, confname, etc. etc. 
djmoffat@718: % i.e. the whole purpose of this version update is to NOT resort to 'inelegant accent patches'.
djmoffat@718: % After much research, three extra .sty packages were added to the the tail (ae, aecompl, aeguill) to solve,
djmoffat@718: % in particular, the accenting problem(s). We _could_ ask authors (via instructions/sample file) to 'include' these in
djmoffat@718: % the source .tex file - in the preamble - but if everything is already provided ('behind the scenes' - embedded IN the .cls)
djmoffat@718: % then this is less work for authors and also makes everything appear 'vanilla'.
djmoffat@718: % NOTE: all 'patchwork accenting" has been commented out (here) and is no longer 'used' in the sample .tex file (either).
djmoffat@718: % Gerry June 2007
djmoffat@718: %
djmoffat@718: % Patch for accenting in conference name/location. Gerry May 3rd. 2007
djmoffat@718: % Rule widths changed to .5, author count (>6) fixed, roll-back for Type 3 problem. Gerry March 20th. 2007
djmoffat@718: % Changes made to 'modernize' the fontnames but esp. for MikTeX users V2.4/2.5 - Nov. 30th. 2006
djmoffat@718: % Updated the \email definition to allow for its use inside of 'shared affiliations' - Nov. 30th. 2006
djmoffat@718: % Fixed the 'section number depth value' - Nov. 30th. 2006
djmoffat@718: %
djmoffat@718: % Footnotes inside table cells using \minipage (Oct. 2002)
djmoffat@718: % Georgia fixed bug in sub-sub-section numbering in paragraphs (July 29th. 2002)
djmoffat@718: % JS/GM fix to vertical spacing before Proofs (July 30th. 2002)
djmoffat@718: %
djmoffat@718: % Made the Permission Statement / Conference Info / Copyright Info
djmoffat@718: % 'user definable' in the source .tex file OR automatic if
djmoffat@718: % not specified.
djmoffat@718: %
djmoffat@718: % Allowance made to switch default fonts between those systems using
djmoffat@718: % normal/modern font names and those using 'Type 1' or 'Truetype' fonts.
djmoffat@718: % See LINE NUMBER 255 for details.
djmoffat@718: % Also provided for enumerated/annotated Corollaries 'surrounded' by
djmoffat@718: % enumerated Theorems (line 848).
djmoffat@718: % Gerry November 11th. 1999
djmoffat@718: %
djmoffat@718: % ---- End of 'updates' ----
djmoffat@718: %
djmoffat@718: \def\fileversion{v2.9}          % for ACM's tracking purposes
djmoffat@718: \def\filedate{August 12, 2013}    % Gerry Murray's tracking data
djmoffat@718: \def\docdate {\filedate}
djmoffat@718: \usepackage{epsfig}
djmoffat@718: \usepackage{amssymb}
djmoffat@718: \usepackage{amsmath}
djmoffat@718: \usepackage{amsfonts}
djmoffat@718: % Need this for accents in Arial/Helvetica
djmoffat@718: %\usepackage[T1]{fontenc}  % Gerry March 12, 2007 - causes Type 3 problems (body text)
djmoffat@718: %\usepackage{textcomp}
djmoffat@718: %
djmoffat@718: % SIG-ALTERNATE DOCUMENT STYLE
djmoffat@718: % G.K.M. Tobin August-October 1999
djmoffat@718: %    adapted from ARTICLE document style by Ken Traub, Olin Shivers
djmoffat@718: %    also using elements of esub2acm.cls
djmoffat@718: % HEAVILY MODIFIED, SUBSEQUENTLY, BY GERRY MURRAY 2000
djmoffat@718: % ARTICLE DOCUMENT STYLE -- Released 16 March 1988
djmoffat@718: %    for LaTeX version 2.09
djmoffat@718: % Copyright (C) 1988 by Leslie Lamport
djmoffat@718: %
djmoffat@718: %
djmoffat@718: %%% sig-alternate.cls is an 'ALTERNATE' document style for producing
djmoffat@718: %%% two-column camera-ready pages for ACM conferences.
djmoffat@718: %%% THIS FILE DOES NOT STRICTLY ADHERE TO THE SIGS (BOARD-ENDORSED)
djmoffat@718: %%% PROCEEDINGS STYLE. It has been designed to produce a 'tighter'
djmoffat@718: %%% paper in response to concerns over page budgets.
djmoffat@718: %%% The main features of this style are:
djmoffat@718: %%%
djmoffat@718: %%% 1)  Two columns.
djmoffat@718: %%% 2)  Side and top margins of 4.5pc, bottom margin of 6pc, column gutter of
djmoffat@718: %%%     2pc, hence columns are 20pc wide and 55.5pc tall.  (6pc =3D 1in, approx)
djmoffat@718: %%% 3)  First page has title information, and an extra 6pc of space at the
djmoffat@718: %%%     bottom of the first column for the ACM copyright notice.
djmoffat@718: %%% 4)  Text is 9pt on 10pt baselines; titles (except main) are 9pt bold.
djmoffat@718: %%%
djmoffat@718: %%%
djmoffat@718: %%% There are a few restrictions you must observe:
djmoffat@718: %%%
djmoffat@718: %%% 1)  You cannot change the font size; ACM wants you to use 9pt.
djmoffat@718: %%% 3)  You must start your paper with the \maketitle command.  Prior to the
djmoffat@718: %%%     \maketitle you must have \title and \author commands.  If you have a
djmoffat@718: %%%     \date command it will be ignored; no date appears on the paper, since
djmoffat@718: %%%     the proceedings will have a date on the front cover.
djmoffat@718: %%% 4)  Marginal paragraphs, tables of contents, lists of figures and tables,
djmoffat@718: %%%     and page headings are all forbidden.
djmoffat@718: %%% 5)  The `figure' environment will produce a figure one column wide; if you
djmoffat@718: %%%     want one that is two columns wide, use `figure*'.
djmoffat@718: %%%
djmoffat@718: %
djmoffat@718: %%% Copyright Space:
djmoffat@718: %%% This style automatically reserves 1" blank space at the bottom of page 1/
djmoffat@718: %%% column 1.  This space can optionally be filled with some text using the
djmoffat@718: %%% \toappear{...} command.  If used, this command must be BEFORE the \maketitle
djmoffat@718: %%% command.  If this command is defined AND [preprint] is on, then the
djmoffat@718: %%% space is filled with the {...} text (at the bottom); otherwise, it is
djmoffat@718: %%% blank.  If you use \toappearbox{...} instead of \toappear{...} then a
djmoffat@718: %%% box will be drawn around the text (if [preprint] is on).
djmoffat@718: %%%
djmoffat@718: %%% A typical usage looks like this:
djmoffat@718: %%%     \toappear{To appear in the Ninth AES Conference on Medievil Lithuanian
djmoffat@718: %%%               Embalming Technique, June 1991, Alfaretta, Georgia.}
djmoffat@718: %%% This will be included in the preprint, and left out of the conference
djmoffat@718: %%% version.
djmoffat@718: %%%
djmoffat@718: %%% WARNING:
djmoffat@718: %%% Some dvi-ps converters heuristically allow chars to drift from their
djmoffat@718: %%% true positions a few pixels. This may be noticeable with the 9pt sans-serif
djmoffat@718: %%% bold font used for section headers.
djmoffat@718: %%% You may turn this hackery off via the -e option:
djmoffat@718: %%%     dvips -e 0 foo.dvi >foo.ps
djmoffat@718: %%%
djmoffat@718: \typeout{Document Class 'sig-alternate' <9th June '13>.  Modified by
djmoffat@718:   G.K.M. Tobin/Gerry Murray/Boris Veytsman}
djmoffat@718: \typeout{Based in part upon document Style `acmconf' <22 May 89>. Hacked 4/91 by}
djmoffat@718: \typeout{shivers@cs.cmu.edu, 4/93 by theobald@cs.mcgill.ca}
djmoffat@718: \typeout{Excerpts were taken from (Journal Style) 'esub2acm.cls'.}
djmoffat@718: \typeout{****** Bugs/comments/suggestions/technicalities to Gerry Murray -- murray@hq.acm.org ******}
djmoffat@718: \typeout{Questions on the style, SIGS policies, etc. to Adrienne Griscti griscti@acm.org}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \let\@concepts\@empty
djmoffat@718: % Support for CCSXML file
djmoffat@718: \RequirePackage{comment}
djmoffat@718: \excludecomment{CCSXML}
djmoffat@718: 
djmoffat@718: % New concepts scheme
djmoffat@718: %
djmoffat@718: % The first argument is the significance, the
djmoffat@718: % second is the concept(s)
djmoffat@718: %
djmoffat@718: \newcommand\ccsdesc[2][100]{%
djmoffat@718:   \ccsdesc@parse#1~#2~}
djmoffat@718: %
djmoffat@718: % The parser of the expression Significance~General~Specific
djmoffat@718: %
djmoffat@718: \def\ccsdesc@parse#1~#2~#3~{%
djmoffat@718:   \expandafter\ifx\csname CCS@#2\endcsname\relax
djmoffat@718:     \expandafter\gdef\csname CCS@#2\endcsname{\textbullet\textbf{#2} $\to$ }%
djmoffat@718:   \g@addto@macro{\@concepts}{\csname CCS@#2\endcsname}\fi
djmoffat@718:   \expandafter\g@addto@macro\expandafter{\csname CCS@#2\endcsname}{%
djmoffat@718:     \ifnum#1>499\textbf{#3; }\else
djmoffat@718:     \ifnum#1>299\textit{#3; }\else
djmoffat@718:     #3; \fi\fi}}
djmoffat@718: 
djmoffat@718: \newcommand\printccsdesc{%
djmoffat@718:   \ifx\@concepts\@empty\else
djmoffat@718:   \if@twocolumn
djmoffat@718:     \section*{CCS Concepts}
djmoffat@718:     \@concepts
djmoffat@718:     \else \small
djmoffat@718:     \quotation{\@concepts}%
djmoffat@718:     \fi
djmoffat@718:     \fi}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \def\doi#1{\def\@doi{#1}}
djmoffat@718: \doi{http://dx.doi.org/10.1145/0000000.0000000}
djmoffat@718: 
djmoffat@718: \oddsidemargin 4.5pc
djmoffat@718: \evensidemargin 4.5pc
djmoffat@718: \advance\oddsidemargin by -1in  % Correct for LaTeX gratuitousness
djmoffat@718: \advance\evensidemargin by -1in % Correct for LaTeX gratuitousness
djmoffat@718: \marginparwidth 0pt             % Margin pars are not allowed.
djmoffat@718: \marginparsep 11pt              % Horizontal space between outer margin and
djmoffat@718:                                 % marginal note
djmoffat@718: 
djmoffat@718:                                 % Top of page:
djmoffat@718: \topmargin 4.5pc                % Nominal distance from top of page to top of
djmoffat@718:                                 % box containing running head.
djmoffat@718: \advance\topmargin by -1in      % Correct for LaTeX gratuitousness
djmoffat@718: \headheight 0pt                 % Height of box containing running head.
djmoffat@718: \headsep 0pt                    % Space between running head and text.
djmoffat@718:                                 % Bottom of page:
djmoffat@718: \footskip 30pt                  % Distance from baseline of box containing foot
djmoffat@718:                                 % to baseline of last line of text.
djmoffat@718: \@ifundefined{footheight}{\newdimen\footheight}{}% this is for LaTeX2e
djmoffat@718: \footheight 12pt                % Height of box containing running foot.
djmoffat@718: 
djmoffat@718: %% Must redefine the top margin so there's room for headers and
djmoffat@718: %% page numbers if you are using the preprint option. Footers
djmoffat@718: %% are OK as is. Olin.
djmoffat@718: \advance\topmargin by -37pt     % Leave 37pt above text for headers
djmoffat@718: \headheight 12pt                % Height of box containing running head.
djmoffat@718: \headsep 25pt                   % Space between running head and text.
djmoffat@718: 
djmoffat@718: \textheight 666pt       % 9 1/4 column height
djmoffat@718: \textwidth 42pc         % Width of text line.
djmoffat@718:                         % For two-column mode:
djmoffat@718: \columnsep 2pc          %    Space between columns
djmoffat@718: \columnseprule 0pt      %    Width of rule between columns.
djmoffat@718: \hfuzz 1pt              % Allow some variation in column width, otherwise it's
djmoffat@718:                         % too hard to typeset in narrow columns.
djmoffat@718: 
djmoffat@718: \footnotesep 5.6pt      % Height of strut placed at the beginning of every
djmoffat@718:                         % footnote =3D height of normal \footnotesize strut,
djmoffat@718:                         % so no extra space between footnotes.
djmoffat@718: 
djmoffat@718: \skip\footins 8.1pt plus 4pt minus 2pt  % Space between last line of text and
djmoffat@718:                                         % top of first footnote.
djmoffat@718: \floatsep 11pt plus 2pt minus 2pt       % Space between adjacent floats moved
djmoffat@718:                                         % to top or bottom of text page.
djmoffat@718: \textfloatsep 18pt plus 2pt minus 4pt   % Space between main text and floats
djmoffat@718:                                         % at top or bottom of page.
djmoffat@718: \intextsep 11pt plus 2pt minus 2pt      % Space between in-text figures and
djmoffat@718:                                         % text.
djmoffat@718: \@ifundefined{@maxsep}{\newdimen\@maxsep}{}% this is for LaTeX2e
djmoffat@718: \@maxsep 18pt                           % The maximum of \floatsep,
djmoffat@718:                                         % \textfloatsep and \intextsep (minus
djmoffat@718:                                         % the stretch and shrink).
djmoffat@718: \dblfloatsep 11pt plus 2pt minus 2pt    % Same as \floatsep for double-column
djmoffat@718:                                         % figures in two-column mode.
djmoffat@718: \dbltextfloatsep 18pt plus 2pt minus 4pt% \textfloatsep for double-column
djmoffat@718:                                         % floats.
djmoffat@718: \@ifundefined{@dblmaxsep}{\newdimen\@dblmaxsep}{}% this is for LaTeX2e
djmoffat@718: \@dblmaxsep 18pt                        % The maximum of \dblfloatsep and
djmoffat@718:                                         % \dbltexfloatsep.
djmoffat@718: \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must be
djmoffat@718:                          % 0pt plus ...)
djmoffat@718: \@fpsep 8pt plus 2fil    % Space between floats on float page/column.
djmoffat@718: \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must be
djmoffat@718:                          % 0pt plus ... )
djmoffat@718: \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
djmoffat@718: \@dblfpsep 8pt plus 2fil % Space between floats on float page.
djmoffat@718: \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
djmoffat@718:                          % 0pt plus ... )
djmoffat@718: \marginparpush 5pt       % Minimum vertical separation between two marginal
djmoffat@718:                          % notes.
djmoffat@718: 
djmoffat@718: \parskip 0pt plus 1pt            % Extra vertical space between paragraphs.
djmoffat@718: \parindent 9pt  % GM July 2000 / was 0pt - width of paragraph indentation.
djmoffat@718: \partopsep 2pt plus 1pt minus 1pt% Extra vertical space, in addition to
djmoffat@718:                                  % \parskip and \topsep, added when user
djmoffat@718:                                  % leaves blank line before environment.
djmoffat@718: 
djmoffat@718: \@lowpenalty   51       % Produced by \nopagebreak[1] or \nolinebreak[1]
djmoffat@718: \@medpenalty  151       % Produced by \nopagebreak[2] or \nolinebreak[2]
djmoffat@718: \@highpenalty 301       % Produced by \nopagebreak[3] or \nolinebreak[3]
djmoffat@718: 
djmoffat@718: \@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
djmoffat@718: \@endparpenalty   -\@lowpenalty % After a list or paragraph environment.
djmoffat@718: \@itempenalty     -\@lowpenalty % Between list items.
djmoffat@718: 
djmoffat@718: %\@namedef{ds@10pt}{\@latexerr{The `10pt' option is not allowed in the `acmconf'
djmoffat@718: \@namedef{ds@10pt}{\ClassError{The `10pt' option is not allowed in the `acmconf'	% January 2008
djmoffat@718:   document style.}\@eha}
djmoffat@718: %\@namedef{ds@11pt}{\@latexerr{The `11pt' option is not allowed in the `acmconf'
djmoffat@718: \@namedef{ds@11pt}{\ClassError{The `11pt' option is not allowed in the `acmconf'	% January 2008
djmoffat@718:   document style.}\@eha}
djmoffat@718: %\@namedef{ds@12pt}{\@latexerr{The `12pt' option is not allowed in the `acmconf'
djmoffat@718: \@namedef{ds@12pt}{\ClassError{The `12pt' option is not allowed in the `acmconf'	% January 2008
djmoffat@718:   document style.}\@eha}
djmoffat@718: 
djmoffat@718: \@options
djmoffat@718: 
djmoffat@718: \lineskip 2pt           % \lineskip is 1pt for all font sizes.
djmoffat@718: \normallineskip 2pt
djmoffat@718: \def\baselinestretch{1}
djmoffat@718: 
djmoffat@718: \abovedisplayskip 9pt plus2pt minus4.5pt%
djmoffat@718: \belowdisplayskip \abovedisplayskip
djmoffat@718: \abovedisplayshortskip  \z@ plus3pt%
djmoffat@718: \belowdisplayshortskip  5.4pt plus3pt minus3pt%
djmoffat@718: \let\@listi\@listI     % Setting of \@listi added 9 Jun 87
djmoffat@718: 
djmoffat@718: \def\small{\@setsize\small{9pt}\viiipt\@viiipt
djmoffat@718: \abovedisplayskip 7.6pt plus 3pt minus 4pt%
djmoffat@718: \belowdisplayskip \abovedisplayskip
djmoffat@718: \abovedisplayshortskip \z@ plus2pt%
djmoffat@718: \belowdisplayshortskip 3.6pt plus2pt minus 2pt
djmoffat@718: \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
djmoffat@718: \topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
djmoffat@718: \itemsep \parsep}}
djmoffat@718: 
djmoffat@718: \def\footnotesize{\@setsize\footnotesize{9pt}\ixpt\@ixpt
djmoffat@718: \abovedisplayskip 6.4pt plus 2pt minus 4pt%
djmoffat@718: \belowdisplayskip \abovedisplayskip
djmoffat@718: \abovedisplayshortskip \z@ plus 1pt%
djmoffat@718: \belowdisplayshortskip 2.7pt plus 1pt minus 2pt
djmoffat@718: \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
djmoffat@718: \topsep 3pt plus 1pt minus 1pt\parsep 2pt plus 1pt minus 1pt
djmoffat@718: \itemsep \parsep}}
djmoffat@718: 
djmoffat@718: \newcount\aucount
djmoffat@718: \newcount\originalaucount
djmoffat@718: \newdimen\auwidth
djmoffat@718: \auwidth=\textwidth
djmoffat@718: \newdimen\auskip
djmoffat@718: \newcount\auskipcount
djmoffat@718: \newdimen\auskip
djmoffat@718: \global\auskip=1pc
djmoffat@718: \newdimen\allauboxes
djmoffat@718: \allauboxes=\auwidth
djmoffat@718: \newtoks\addauthors
djmoffat@718: \newcount\addauflag
djmoffat@718: \global\addauflag=0 %Haven't shown additional authors yet
djmoffat@718: 
djmoffat@718: \newtoks\subtitletext
djmoffat@718: \gdef\subtitle#1{\subtitletext={#1}}
djmoffat@718: 
djmoffat@718: \gdef\additionalauthors#1{\addauthors={#1}}
djmoffat@718: 
djmoffat@718: \gdef\numberofauthors#1{\global\aucount=#1
djmoffat@718: \ifnum\aucount>3\global\originalaucount=\aucount \global\aucount=3\fi %g}  % 3 OK - Gerry March 2007
djmoffat@718: \global\auskipcount=\aucount\global\advance\auskipcount by 1
djmoffat@718: \global\multiply\auskipcount by 2
djmoffat@718: \global\multiply\auskip by \auskipcount
djmoffat@718: \global\advance\auwidth by -\auskip
djmoffat@718: \global\divide\auwidth by \aucount}
djmoffat@718: 
djmoffat@718: % \and was modified to count the number of authors.  GKMT 12 Aug 1999
djmoffat@718: \def\alignauthor{%                  % \begin{tabular}
djmoffat@718: \end{tabular}%
djmoffat@718:   \begin{tabular}[t]{p{\auwidth}}\centering}%
djmoffat@718: 
djmoffat@718: %  *** NOTE *** NOTE *** NOTE *** NOTE ***
djmoffat@718: %  If you have 'font problems' then you may need
djmoffat@718: %  to change these, e.g. 'arialb' instead of "arialbd".
djmoffat@718: %  Gerry Murray 11/11/1999
djmoffat@718: %  *** OR ** comment out block A and activate block B or vice versa.
djmoffat@718: % **********************************************
djmoffat@718: %
djmoffat@718: %  -- Start of block A -- (Type 1 or Truetype fonts)
djmoffat@718: %\newfont{\secfnt}{timesbd at 12pt} % was timenrb originally - now is timesbd
djmoffat@718: %\newfont{\secit}{timesbi at 12pt}   %13 Jan 00 gkmt
djmoffat@718: %\newfont{\subsecfnt}{timesi at 11pt} % was timenrri originally - now is timesi
djmoffat@718: %\newfont{\subsecit}{timesbi at 11pt} % 13 Jan 00 gkmt -- was times changed to timesbi gm 2/4/2000
djmoffat@718: %                         % because "normal" is italic, "italic" is Roman
djmoffat@718: %\newfont{\ttlfnt}{arialbd at 18pt} % was arialb originally - now is arialbd
djmoffat@718: %\newfont{\ttlit}{arialbi at 18pt}    % 13 Jan 00 gkmt
djmoffat@718: %\newfont{\subttlfnt}{arial at 14pt} % was arialr originally - now is arial
djmoffat@718: %\newfont{\subttlit}{ariali at 14pt} % 13 Jan 00 gkmt
djmoffat@718: %\newfont{\subttlbf}{arialbd at 14pt}  % 13 Jan 00 gkmt
djmoffat@718: %\newfont{\aufnt}{arial at 12pt} % was arialr originally - now is arial
djmoffat@718: %\newfont{\auit}{ariali at 12pt} % 13 Jan 00 gkmt
djmoffat@718: %\newfont{\affaddr}{arial at 10pt} % was arialr originally - now is arial
djmoffat@718: %\newfont{\affaddrit}{ariali at 10pt} %13 Jan 00 gkmt
djmoffat@718: %\newfont{\eaddfnt}{arial at 12pt} % was arialr originally - now is arial
djmoffat@718: %\newfont{\ixpt}{times at 9pt} % was timenrr originally - now is times
djmoffat@718: %\newfont{\confname}{timesi at 8pt} % was timenrri - now is timesi
djmoffat@718: %\newfont{\crnotice}{times at 8pt} % was timenrr originally - now is times
djmoffat@718: %\newfont{\ninept}{times at 9pt} % was timenrr originally - now is times
djmoffat@718: 
djmoffat@718: % *********************************************
djmoffat@718: %  -- End of block A --
djmoffat@718: %
djmoffat@718: %
djmoffat@718: % -- Start of block B -- UPDATED FONT NAMES
djmoffat@718: % *********************************************
djmoffat@718: % Gerry Murray 11/30/2006
djmoffat@718: % *********************************************
djmoffat@718: \newfont{\secfnt}{ptmb8t at 12pt}
djmoffat@718: \newfont{\secit}{ptmbi8t at 12pt}    %13 Jan 00 gkmt
djmoffat@718: \newfont{\subsecfnt}{ptmri8t at 11pt}
djmoffat@718: \newfont{\subsecit}{ptmbi8t at 11pt}  % 
djmoffat@718: \newfont{\ttlfnt}{phvb8t at 18pt}
djmoffat@718: \newfont{\ttlit}{phvbo8t at 18pt}    % GM 2/4/2000
djmoffat@718: \newfont{\subttlfnt}{phvr8t at 14pt}
djmoffat@718: \newfont{\subttlit}{phvro8t at 14pt} % GM 2/4/2000
djmoffat@718: \newfont{\subttlbf}{phvb8t at 14pt}  % 13 Jan 00 gkmt
djmoffat@718: \newfont{\aufnt}{phvr8t at 12pt}
djmoffat@718: \newfont{\auit}{phvro8t at 12pt}     % GM 2/4/2000
djmoffat@718: \newfont{\affaddr}{phvr8t at 10pt}
djmoffat@718: \newfont{\affaddrit}{phvro8t at 10pt} % GM 2/4/2000
djmoffat@718: \newfont{\eaddfnt}{phvr8t at 12pt}
djmoffat@718: \newfont{\ixpt}{ptmr8t at 9pt}
djmoffat@718: \newfont{\confname}{ptmri8t at 8pt}
djmoffat@718: \newfont{\crnotice}{ptmr8t at 8pt}
djmoffat@718: \newfont{\ninept}{ptmr8t at 9pt}
djmoffat@718: % +++++++++++++++++++++++++++++++++++++++++++++
djmoffat@718: % -- End of block B --
djmoffat@718: 
djmoffat@718: %\def\email#1{{{\eaddfnt{\vskip 4pt#1}}}}
djmoffat@718: % If we have an email, inside a "shared affiliation" then we need the following instead
djmoffat@718: \def\email#1{{{\eaddfnt{\par #1}}}}       % revised  - GM - 11/30/2006
djmoffat@718: 
djmoffat@718: \def\addauthorsection{\ifnum\originalaucount>6  % was 3 - Gerry March 2007
djmoffat@718:     \section{Additional Authors}\the\addauthors
djmoffat@718:   \fi}
djmoffat@718: 
djmoffat@718: \newcount\savesection
djmoffat@718: \newcount\sectioncntr
djmoffat@718: \global\sectioncntr=1
djmoffat@718: 
djmoffat@718: \setcounter{secnumdepth}{3}
djmoffat@718: 
djmoffat@718: \def\appendix{\par
djmoffat@718: \section*{APPENDIX}
djmoffat@718: \setcounter{section}{0}
djmoffat@718:  \setcounter{subsection}{0}
djmoffat@718:  \def\thesection{\Alph{section}} }
djmoffat@718: 
djmoffat@718: \leftmargini 22.5pt
djmoffat@718: \leftmarginii 19.8pt    % > \labelsep + width of '(m)'
djmoffat@718: \leftmarginiii 16.8pt   % > \labelsep + width of 'vii.'
djmoffat@718: \leftmarginiv 15.3pt    % > \labelsep + width of 'M.'
djmoffat@718: \leftmarginv 9pt
djmoffat@718: \leftmarginvi 9pt
djmoffat@718: 
djmoffat@718: \leftmargin\leftmargini
djmoffat@718: \labelsep 4.5pt
djmoffat@718: \labelwidth\leftmargini\advance\labelwidth-\labelsep
djmoffat@718: 
djmoffat@718: \def\@listI{\leftmargin\leftmargini \parsep 3.6pt plus 2pt minus 1pt%
djmoffat@718: \topsep 7.2pt plus 2pt minus 4pt%
djmoffat@718: \itemsep 3.6pt plus 2pt minus 1pt}
djmoffat@718: 
djmoffat@718: \let\@listi\@listI
djmoffat@718: \@listi
djmoffat@718: 
djmoffat@718: \def\@listii{\leftmargin\leftmarginii
djmoffat@718:    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
djmoffat@718:    \topsep 3.6pt plus 2pt minus 1pt
djmoffat@718:    \parsep 1.8pt plus 0.9pt minus 0.9pt
djmoffat@718:    \itemsep \parsep}
djmoffat@718: 
djmoffat@718: \def\@listiii{\leftmargin\leftmarginiii
djmoffat@718:     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
djmoffat@718:     \topsep 1.8pt plus 0.9pt minus 0.9pt
djmoffat@718:     \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
djmoffat@718:     \itemsep \topsep}
djmoffat@718: 
djmoffat@718: \def\@listiv{\leftmargin\leftmarginiv
djmoffat@718:      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
djmoffat@718: 
djmoffat@718: \def\@listv{\leftmargin\leftmarginv
djmoffat@718:      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
djmoffat@718: 
djmoffat@718: \def\@listvi{\leftmargin\leftmarginvi
djmoffat@718:      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
djmoffat@718: 
djmoffat@718: \def\labelenumi{\theenumi.}
djmoffat@718: \def\theenumi{\arabic{enumi}}
djmoffat@718: 
djmoffat@718: \def\labelenumii{(\theenumii)}
djmoffat@718: \def\theenumii{\alph{enumii}}
djmoffat@718: \def\p@enumii{\theenumi}
djmoffat@718: 
djmoffat@718: \def\labelenumiii{\theenumiii.}
djmoffat@718: \def\theenumiii{\roman{enumiii}}
djmoffat@718: \def\p@enumiii{\theenumi(\theenumii)}
djmoffat@718: 
djmoffat@718: \def\labelenumiv{\theenumiv.}
djmoffat@718: \def\theenumiv{\Alph{enumiv}}
djmoffat@718: \def\p@enumiv{\p@enumiii\theenumiii}
djmoffat@718: 
djmoffat@718: \def\labelitemi{$\bullet$}
djmoffat@718: \def\labelitemii{\bf --}
djmoffat@718: \def\labelitemiii{$\ast$}
djmoffat@718: \def\labelitemiv{$\cdot$}
djmoffat@718: 
djmoffat@718: \def\verse{\let\\=\@centercr
djmoffat@718:   \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
djmoffat@718:           \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
djmoffat@718: \let\endverse\endlist
djmoffat@718: 
djmoffat@718: \def\quotation{\list{}{\listparindent 1.5em
djmoffat@718:     \itemindent\listparindent
djmoffat@718:     \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
djmoffat@718: \let\endquotation=\endlist
djmoffat@718: 
djmoffat@718: \def\quote{\list{}{\rightmargin\leftmargin}\item[]}
djmoffat@718: \let\endquote=\endlist
djmoffat@718: 
djmoffat@718: \def\descriptionlabel#1{\hspace\labelsep \bf #1}
djmoffat@718: \def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
djmoffat@718:        \let\makelabel\descriptionlabel}}
djmoffat@718: 
djmoffat@718: \let\enddescription\endlist
djmoffat@718: 
djmoffat@718: \def\theequation{\arabic{equation}}
djmoffat@718: 
djmoffat@718: \arraycolsep 4.5pt   % Half the space between columns in an array environment.
djmoffat@718: \tabcolsep 5.4pt    % Half the space between columns in a tabular environment.
djmoffat@718: \arrayrulewidth .5pt % Width of rules in array and tabular environment. % (was .4) updated Gerry March 20 2007
djmoffat@718: \doublerulesep 1.8pt % Space between adjacent rules in array or tabular env.
djmoffat@718: 
djmoffat@718: \tabbingsep \labelsep   % Space used by the \' command.  (See LaTeX manual.)
djmoffat@718: 
djmoffat@718: \skip\@mpfootins =\skip\footins
djmoffat@718: 
djmoffat@718: \fboxsep =2.7pt      % Space left between box and text by \fbox and \framebox.
djmoffat@718: \fboxrule =.5pt      % Width of rules in box made by \fbox and \framebox. % (was .4) updated Gerry March 20 2007
djmoffat@718: 
djmoffat@718: \def\thepart{\Roman{part}} % Roman numeral part numbers.
djmoffat@718: \def\thesection       {\arabic{section}}
djmoffat@718: \def\thesubsection    {\thesection.\arabic{subsection}}
djmoffat@718: %\def\thesubsubsection {\thesubsection.\arabic{subsubsection}} % GM 7/30/2002
djmoffat@718: %\def\theparagraph     {\thesubsubsection.\arabic{paragraph}}  % GM 7/30/2002
djmoffat@718: \def\thesubparagraph  {\theparagraph.\arabic{subparagraph}}
djmoffat@718: 
djmoffat@718: \def\@pnumwidth{1.55em}
djmoffat@718: \def\@tocrmarg {2.55em}
djmoffat@718: \def\@dotsep{4.5}
djmoffat@718: \setcounter{tocdepth}{3}
djmoffat@718: 
djmoffat@718: %\def\tableofcontents{\@latexerr{\tableofcontents: Tables of contents are not
djmoffat@718: %  allowed in the `acmconf' document style.}\@eha}
djmoffat@718: 
djmoffat@718: \def\tableofcontents{\ClassError{%
djmoffat@718:     \string\tableofcontents\space is not allowed in the `acmconf' document	% January 2008
djmoffat@718:     style}\@eha}
djmoffat@718: 
djmoffat@718: \def\l@part#1#2{\addpenalty{\@secpenalty}
djmoffat@718:    \addvspace{2.25em plus 1pt}  % space above part line
djmoffat@718:    \begingroup
djmoffat@718:    \@tempdima 3em       % width of box holding part number, used by
djmoffat@718:      \parindent \z@ \rightskip \@pnumwidth      %% \numberline
djmoffat@718:      \parfillskip -\@pnumwidth
djmoffat@718:      {\large \bf        % set line in \large boldface
djmoffat@718:      \leavevmode        % TeX command to enter horizontal mode.
djmoffat@718:      #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
djmoffat@718:      \nobreak           % Never break after part entry
djmoffat@718:    \endgroup}
djmoffat@718: 
djmoffat@718: \def\l@section#1#2{\addpenalty{\@secpenalty} % good place for page break
djmoffat@718:    \addvspace{1.0em plus 1pt}   % space above toc entry
djmoffat@718:    \@tempdima 1.5em             % width of box holding section number
djmoffat@718:    \begingroup
djmoffat@718:     \parindent  \z@ \rightskip \@pnumwidth
djmoffat@718:      \parfillskip -\@pnumwidth
djmoffat@718:      \bf                        % Boldface.
djmoffat@718:      \leavevmode                % TeX command to enter horizontal mode.
djmoffat@718:       \advance\leftskip\@tempdima %% added 5 Feb 88 to conform to
djmoffat@718:       \hskip -\leftskip           %% 25 Jan 88 change to \numberline
djmoffat@718:      #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
djmoffat@718:    \endgroup}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
djmoffat@718: \def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
djmoffat@718: \def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
djmoffat@718: \def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
djmoffat@718: 
djmoffat@718: %\def\listoffigures{\@latexerr{\listoffigures: Lists of figures are not
djmoffat@718: %  allowed in the `acmconf' document style.}\@eha}
djmoffat@718: 
djmoffat@718: \def\listoffigures{\ClassError{%
djmoffat@718:     \string\listoffigures\space is not allowed in the `acmconf' document	% January 2008
djmoffat@718:     style}\@eha}
djmoffat@718: 
djmoffat@718: \def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
djmoffat@718: 
djmoffat@718: %\def\listoftables{\@latexerr{\listoftables: Lists of tables are not
djmoffat@718: %  allowed in the `acmconf' document style.}\@eha}
djmoffat@718: %\let\l@table\l@figure
djmoffat@718: 
djmoffat@718: \def\listoftables{\ClassError{%
djmoffat@718:     \string\listoftables\space is not allowed in the `acmconf' document		% January 2008
djmoffat@718:     style}\@eha}
djmoffat@718:  \let\l@table\l@figure
djmoffat@718: 
djmoffat@718: \def\footnoterule{\kern-3\p@
djmoffat@718:   \hrule width .5\columnwidth   % (was .4) updated Gerry March 20 2007
djmoffat@718:   \kern 2.6\p@}                 % The \hrule has default height of .4pt % (was .4) updated Gerry March 20 2007
djmoffat@718: % ------
djmoffat@718: \long\def\@makefntext#1{\noindent 
djmoffat@718: %\hbox to .5em{\hss$^{\@thefnmark}$}#1}   % original
djmoffat@718: \hbox to .5em{\hss\textsuperscript{\@thefnmark}}#1}  % C. Clifton / GM Oct. 2nd. 2002
djmoffat@718: % -------
djmoffat@718: 
djmoffat@718: \long\def\@maketntext#1{\noindent
djmoffat@718: #1}
djmoffat@718: 
djmoffat@718: \long\def\@maketitlenotetext#1#2{\noindent
djmoffat@718:             \hbox to 1.8em{\hss$^{#1}$}#2}
djmoffat@718: 
djmoffat@718: \setcounter{topnumber}{2}
djmoffat@718: \def\topfraction{.7}
djmoffat@718: \setcounter{bottomnumber}{1}
djmoffat@718: \def\bottomfraction{.3}
djmoffat@718: \setcounter{totalnumber}{3}
djmoffat@718: \def\textfraction{.2}
djmoffat@718: \def\floatpagefraction{.5}
djmoffat@718: \setcounter{dbltopnumber}{2}
djmoffat@718: \def\dbltopfraction{.7}
djmoffat@718: \def\dblfloatpagefraction{.5}
djmoffat@718: 
djmoffat@718: %
djmoffat@718: \long\def\@makecaption#1#2{
djmoffat@718:    \vskip \baselineskip
djmoffat@718:    \setbox\@tempboxa\hbox{\textbf{#1: #2}}
djmoffat@718:    \ifdim \wd\@tempboxa >\hsize % IF longer than one line:
djmoffat@718:        \textbf{#1: #2}\par               %   THEN set as ordinary paragraph.
djmoffat@718:      \else                      %   ELSE  center.
djmoffat@718:        \hbox to\hsize{\hfil\box\@tempboxa\hfil}\par
djmoffat@718:    \fi}
djmoffat@718: 
djmoffat@718: %
djmoffat@718: 
djmoffat@718: \long\def\@makecaption#1#2{
djmoffat@718:    \vskip 10pt
djmoffat@718:    \setbox\@tempboxa\hbox{\textbf{#1: #2}}
djmoffat@718:    \ifdim \wd\@tempboxa >\hsize % IF longer than one line:
djmoffat@718:        \textbf{#1: #2}\par                %   THEN set as ordinary paragraph.
djmoffat@718:      \else                      %   ELSE  center.
djmoffat@718:        \hbox to\hsize{\hfil\box\@tempboxa\hfil}
djmoffat@718:    \fi}
djmoffat@718: 
djmoffat@718: \@ifundefined{figure}{\newcounter {figure}} % this is for LaTeX2e
djmoffat@718: 
djmoffat@718: \def\fps@figure{tbp}
djmoffat@718: \def\ftype@figure{1}
djmoffat@718: \def\ext@figure{lof}
djmoffat@718: \def\fnum@figure{Figure \thefigure}
djmoffat@718: \def\figure{\@float{figure}}
djmoffat@718: %\let\endfigure\end@float
djmoffat@718: \def\endfigure{\end@float} 		% Gerry January 2008
djmoffat@718: \@namedef{figure*}{\@dblfloat{figure}}
djmoffat@718: \@namedef{endfigure*}{\end@dblfloat}
djmoffat@718: 
djmoffat@718: \@ifundefined{table}{\newcounter {table}} % this is for LaTeX2e
djmoffat@718: 
djmoffat@718: \def\fps@table{tbp}
djmoffat@718: \def\ftype@table{2}
djmoffat@718: \def\ext@table{lot}
djmoffat@718: \def\fnum@table{Table \thetable}
djmoffat@718: \def\table{\@float{table}}
djmoffat@718: %\let\endtable\end@float
djmoffat@718: \def\endtable{\end@float}		% Gerry January 2008
djmoffat@718: \@namedef{table*}{\@dblfloat{table}}
djmoffat@718: \@namedef{endtable*}{\end@dblfloat}
djmoffat@718: 
djmoffat@718: \newtoks\titleboxnotes
djmoffat@718: \newcount\titleboxnoteflag
djmoffat@718: 
djmoffat@718: \def\maketitle{\par
djmoffat@718:  \begingroup
djmoffat@718:    \def\thefootnote{\fnsymbol{footnote}}
djmoffat@718:    \def\@makefnmark{\hbox
djmoffat@718:        to 0pt{$^{\@thefnmark}$\hss}}
djmoffat@718:      \twocolumn[\@maketitle]
djmoffat@718: \@thanks
djmoffat@718:  \endgroup
djmoffat@718:  \setcounter{footnote}{0}
djmoffat@718:  \let\maketitle\relax
djmoffat@718:  \let\@maketitle\relax
djmoffat@718:  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@subtitle{}\let\thanks\relax
djmoffat@718:  \@copyrightspace}
djmoffat@718: 
djmoffat@718: %% CHANGES ON NEXT LINES
djmoffat@718: \newif\if@ll % to record which version of LaTeX is in use
djmoffat@718: 
djmoffat@718: \expandafter\ifx\csname LaTeXe\endcsname\relax % LaTeX2.09 is used
djmoffat@718: \else% LaTeX2e is used, so set ll to true
djmoffat@718: \global\@lltrue
djmoffat@718: \fi
djmoffat@718: 
djmoffat@718: \if@ll
djmoffat@718:   \NeedsTeXFormat{LaTeX2e}
djmoffat@718:   \ProvidesClass{sig-alternate} [2013/05/12 v2.7 based on acmproc.cls V1.3 <Nov. 30 '99>]
djmoffat@718:   \RequirePackage{latexsym}% QUERY: are these two really needed?
djmoffat@718:   \let\dooptions\ProcessOptions
djmoffat@718: \else
djmoffat@718:   \let\dooptions\@options
djmoffat@718: \fi
djmoffat@718: %% END CHANGES
djmoffat@718: 
djmoffat@718: \def\@height{height}
djmoffat@718: \def\@width{width}
djmoffat@718: \def\@minus{minus}
djmoffat@718: \def\@plus{plus}
djmoffat@718: \def\hb@xt@{\hbox to}
djmoffat@718: \newif\if@faircopy
djmoffat@718: \@faircopyfalse
djmoffat@718: \def\ds@faircopy{\@faircopytrue}
djmoffat@718: 
djmoffat@718: \def\ds@preprint{\@faircopyfalse}
djmoffat@718: 
djmoffat@718: \@twosidetrue
djmoffat@718: \@mparswitchtrue
djmoffat@718: \def\ds@draft{\overfullrule 5\p@}
djmoffat@718: %% CHANGE ON NEXT LINE
djmoffat@718: \dooptions
djmoffat@718: 
djmoffat@718: \lineskip \p@
djmoffat@718: \normallineskip \p@
djmoffat@718: \def\baselinestretch{1}
djmoffat@718: \def\@ptsize{0} %needed for amssymbols.sty
djmoffat@718: 
djmoffat@718: %% CHANGES ON NEXT LINES
djmoffat@718: \if@ll% allow use of old-style font change commands in LaTeX2e
djmoffat@718: \@maxdepth\maxdepth
djmoffat@718: %
djmoffat@718: \DeclareOldFontCommand{\rm}{\ninept\rmfamily}{\mathrm}
djmoffat@718: \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
djmoffat@718: \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
djmoffat@718: \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
djmoffat@718: \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
djmoffat@718: \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
djmoffat@718: \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
djmoffat@718: \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
djmoffat@718: \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
djmoffat@718: \fi
djmoffat@718: %
djmoffat@718: \if@ll
djmoffat@718:  \renewcommand{\rmdefault}{cmr}  % was 'ttm'
djmoffat@718: % Note! I have also found 'mvr' to work ESPECIALLY well.
djmoffat@718: % Gerry - October 1999
djmoffat@718: % You may need to change your LV1times.fd file so that sc is
djmoffat@718: % mapped to cmcsc - -for smallcaps -- that is if you decide
djmoffat@718: % to change {cmr} to {times} above. (Not recommended)
djmoffat@718:   \renewcommand{\@ptsize}{}
djmoffat@718:   \renewcommand{\normalsize}{%
djmoffat@718:     \@setfontsize\normalsize\@ixpt{10.5\p@}%\ninept%
djmoffat@718:     \abovedisplayskip 6\p@ \@plus2\p@ \@minus\p@
djmoffat@718:     \belowdisplayskip \abovedisplayskip
djmoffat@718:     \abovedisplayshortskip 6\p@ \@minus 3\p@
djmoffat@718:     \belowdisplayshortskip 6\p@ \@minus 3\p@
djmoffat@718:     \let\@listi\@listI
djmoffat@718:   }
djmoffat@718: \else
djmoffat@718:   \def\@normalsize{%changed next to 9 from 10
djmoffat@718:     \@setsize\normalsize{9\p@}\ixpt\@ixpt
djmoffat@718:    \abovedisplayskip 6\p@ \@plus2\p@ \@minus\p@
djmoffat@718:     \belowdisplayskip \abovedisplayskip
djmoffat@718:     \abovedisplayshortskip 6\p@ \@minus 3\p@
djmoffat@718:     \belowdisplayshortskip 6\p@ \@minus 3\p@
djmoffat@718:     \let\@listi\@listI
djmoffat@718:   }%
djmoffat@718: \fi
djmoffat@718: \if@ll
djmoffat@718:   \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt{8\p@}}
djmoffat@718:   \newcommand\tiny{\@setfontsize\tiny\@vpt{6\p@}}
djmoffat@718:   \newcommand\large{\@setfontsize\large\@xiipt{14\p@}}
djmoffat@718:   \newcommand\Large{\@setfontsize\Large\@xivpt{18\p@}}
djmoffat@718:   \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{20\p@}}
djmoffat@718:   \newcommand\huge{\@setfontsize\huge\@xxpt{25\p@}}
djmoffat@718:   \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30\p@}}
djmoffat@718: \else
djmoffat@718:   \def\scriptsize{\@setsize\scriptsize{8\p@}\viipt\@viipt}
djmoffat@718:   \def\tiny{\@setsize\tiny{6\p@}\vpt\@vpt}
djmoffat@718:   \def\large{\@setsize\large{14\p@}\xiipt\@xiipt}
djmoffat@718:   \def\Large{\@setsize\Large{18\p@}\xivpt\@xivpt}
djmoffat@718:   \def\LARGE{\@setsize\LARGE{20\p@}\xviipt\@xviipt}
djmoffat@718:   \def\huge{\@setsize\huge{25\p@}\xxpt\@xxpt}
djmoffat@718:   \def\Huge{\@setsize\Huge{30\p@}\xxvpt\@xxvpt}
djmoffat@718: \fi
djmoffat@718: \normalsize
djmoffat@718: 
djmoffat@718: % make aubox hsize/number of authors up to 3, less gutter
djmoffat@718: % then showbox gutter showbox gutter showbox -- GKMT Aug 99
djmoffat@718: \newbox\@acmtitlebox
djmoffat@718: \def\@maketitle{\newpage
djmoffat@718:  \null
djmoffat@718:  \setbox\@acmtitlebox\vbox{%
djmoffat@718: \baselineskip 20pt
djmoffat@718: \vskip 2em                   % Vertical space above title.
djmoffat@718:    \begin{center}
djmoffat@718:     {\ttlfnt \@title\par}       % Title set in 18pt Helvetica (Arial) bold size.
djmoffat@718:     \vskip 1.5em                % Vertical space after title.
djmoffat@718: %This should be the subtitle.
djmoffat@718: {\subttlfnt \the\subtitletext\par}\vskip 1.25em%\fi
djmoffat@718:     {\baselineskip 16pt\aufnt   % each author set in \12 pt Arial, in a
djmoffat@718:      \lineskip .5em             % tabular environment
djmoffat@718:      \begin{tabular}[t]{c}\@author
djmoffat@718:      \end{tabular}\par}
djmoffat@718:     \vskip 1.5em               % Vertical space after author.
djmoffat@718:    \end{center}}
djmoffat@718:  \dimen0=\ht\@acmtitlebox
djmoffat@718:  \advance\dimen0 by -12.75pc\relax % Increased space for title box -- KBT
djmoffat@718:  \unvbox\@acmtitlebox
djmoffat@718:  \ifdim\dimen0<0.0pt\relax\vskip-\dimen0\fi}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \newcount\titlenotecount
djmoffat@718: \global\titlenotecount=0
djmoffat@718: \newtoks\tntoks
djmoffat@718: \newtoks\tntokstwo
djmoffat@718: \newtoks\tntoksthree
djmoffat@718: \newtoks\tntoksfour
djmoffat@718: \newtoks\tntoksfive
djmoffat@718: 
djmoffat@718: \def\abstract{
djmoffat@718: \ifnum\titlenotecount>0 % was =1
djmoffat@718:     \insert\footins{%
djmoffat@718:     \reset@font\footnotesize
djmoffat@718:         \interlinepenalty\interfootnotelinepenalty
djmoffat@718:         \splittopskip\footnotesep
djmoffat@718:         \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
djmoffat@718:         \hsize\columnwidth \@parboxrestore
djmoffat@718:         \protected@edef\@currentlabel{%
djmoffat@718:         }%
djmoffat@718:         \color@begingroup
djmoffat@718: \ifnum\titlenotecount=1
djmoffat@718:       \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\@finalstrut\strutbox}%
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=2
djmoffat@718:       \@maketntext{%
djmoffat@718:       \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\@finalstrut\strutbox}%
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=3
djmoffat@718:       \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ddagger$}\rule\z@\footnotesep\ignorespaces\the\tntoksthree\@finalstrut\strutbox}%
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=4
djmoffat@718:       \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ddagger$}\rule\z@\footnotesep\ignorespaces\the\tntoksthree\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\S$}\rule\z@\footnotesep\ignorespaces\the\tntoksfour\@finalstrut\strutbox}%
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=5
djmoffat@718:       \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ast$}\rule\z@\footnotesep\ignorespaces\the\tntoks\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\dagger$}\rule\z@\footnotesep\ignorespaces\the\tntokstwo\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\ddagger$}\rule\z@\footnotesep\ignorespaces\the\tntoksthree\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\S$}\rule\z@\footnotesep\ignorespaces\the\tntoksfour\par\@finalstrut\strutbox}%
djmoffat@718: \@maketntext{%
djmoffat@718:          \raisebox{4pt}{$\P$}\rule\z@\footnotesep\ignorespaces\the\tntoksfive\@finalstrut\strutbox}%
djmoffat@718: \fi
djmoffat@718:    \color@endgroup} %g}
djmoffat@718: \fi
djmoffat@718: \setcounter{footnote}{0}
djmoffat@718: \section*{ABSTRACT}\normalsize%\ninept
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\endabstract{\if@twocolumn\else\endquotation\fi}
djmoffat@718: 
djmoffat@718: \def\keywords{\if@twocolumn
djmoffat@718: \section*{Keywords}
djmoffat@718: \else \small
djmoffat@718: \quotation
djmoffat@718: \fi}
djmoffat@718: 
djmoffat@718: \def\terms#1{%
djmoffat@718: %\if@twocolumn
djmoffat@718: %\section*{General Terms}
djmoffat@718: %\else \small
djmoffat@718: %\quotation
djmoffat@718: %\fi
djmoffat@718: }
djmoffat@718: 
djmoffat@718: % -- Classification needs to be a bit smart due to optionals - Gerry/Georgia November 2nd. 1999
djmoffat@718: \newcount\catcount
djmoffat@718: \global\catcount=1
djmoffat@718: 
djmoffat@718: \def\category#1#2#3{%
djmoffat@718: \ifnum\catcount=1
djmoffat@718: \section*{Categories and Subject Descriptors}
djmoffat@718: \advance\catcount by 1\else{\unskip; }\fi
djmoffat@718:     \@ifnextchar [{\@category{#1}{#2}{#3}}{\@category{#1}{#2}{#3}[]}%
djmoffat@718: }
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \def\@category#1#2#3[#4]{%
djmoffat@718:     \begingroup
djmoffat@718:         \let\and\relax
djmoffat@718:             #1 [\textbf{#2}]%
djmoffat@718:             \if!#4!%
djmoffat@718:                 \if!#3!\else : #3\fi
djmoffat@718:             \else
djmoffat@718:                 :\space
djmoffat@718:                 \if!#3!\else #3\kern\z@---\hskip\z@\fi
djmoffat@718:                 \textit{#4}%
djmoffat@718:             \fi
djmoffat@718:     \endgroup
djmoffat@718: }
djmoffat@718: %
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: %%% This section (written by KBT) handles the 1" box in the lower left
djmoffat@718: %%% corner of the left column of the first page by creating a picture,
djmoffat@718: %%% and inserting the predefined string at the bottom (with a negative
djmoffat@718: %%% displacement to offset the space allocated for a non-existent
djmoffat@718: %%% caption).
djmoffat@718: %%%
djmoffat@718: \newtoks\copyrightnotice
djmoffat@718: \def\ftype@copyrightbox{8}
djmoffat@718: \def\@copyrightspace{
djmoffat@718: \@float{copyrightbox}[b]
djmoffat@718: \begin{center}
djmoffat@718: \setlength{\unitlength}{1pc}
djmoffat@718: \begin{picture}(20,6) %Space for copyright notice
djmoffat@718: \put(0,-0.95){\crnotice{\@toappear}}
djmoffat@718: \end{picture}
djmoffat@718: \end{center}
djmoffat@718: \end@float}
djmoffat@718: 
djmoffat@718: \def\@toappear{} % Default setting blank - commands below change this.
djmoffat@718: \long\def\toappear#1{\def\@toappear{\parbox[b]{20pc}{\baselineskip 9pt#1}}}
djmoffat@718: \def\toappearbox#1{\def\@toappear{\raisebox{5pt}{\framebox[20pc]{\parbox[b]{19pc}{#1}}}}}
djmoffat@718: 
djmoffat@718: \newtoks\conf
djmoffat@718: \newtoks\confinfo
djmoffat@718: \def\conferenceinfo#1#2{\global\conf={#1}\global\confinfo{#2}}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: %\def\marginpar{\@latexerr{The \marginpar command is not allowed in the
djmoffat@718: %  `acmconf' document style.}\@eha}
djmoffat@718: 
djmoffat@718: \def\marginpar{\ClassError{%
djmoffat@718:     \string\marginpar\space is not allowed in the `acmconf' document		% January 2008
djmoffat@718:     style}\@eha}
djmoffat@718: 
djmoffat@718: \mark{{}{}}     % Initializes TeX's marks
djmoffat@718: 
djmoffat@718: \def\today{\ifcase\month\or
djmoffat@718:   January\or February\or March\or April\or May\or June\or
djmoffat@718:   July\or August\or September\or October\or November\or December\fi
djmoffat@718:   \space\number\day, \number\year}
djmoffat@718: 
djmoffat@718: \def\@begintheorem#1#2{%
djmoffat@718:     \parskip 0pt % GM July 2000 (for tighter spacing)
djmoffat@718:     \trivlist
djmoffat@718:     \item[%
djmoffat@718:         \hskip 10\p@
djmoffat@718:         \hskip \labelsep
djmoffat@718:         {{\sc #1}\hskip 5\p@\relax#2.}%
djmoffat@718:     ]
djmoffat@718:     \it
djmoffat@718: }
djmoffat@718: \def\@opargbegintheorem#1#2#3{%
djmoffat@718:     \parskip 0pt % GM July 2000 (for tighter spacing)
djmoffat@718:     \trivlist
djmoffat@718:     \item[%
djmoffat@718:         \hskip 10\p@
djmoffat@718:         \hskip \labelsep
djmoffat@718:         {\sc #1\ #2\             % This mod by Gerry to enumerate corollaries
djmoffat@718:    \setbox\@tempboxa\hbox{(#3)}  % and bracket the 'corollary title'
djmoffat@718:         \ifdim \wd\@tempboxa>\z@ % and retain the correct numbering of e.g. theorems
djmoffat@718:             \hskip 5\p@\relax    % if they occur 'around' said corollaries.
djmoffat@718:             \box\@tempboxa       % Gerry - Nov. 1999.
djmoffat@718:         \fi.}%
djmoffat@718:     ]
djmoffat@718:     \it
djmoffat@718: }
djmoffat@718: \newif\if@qeded
djmoffat@718: \global\@qededfalse
djmoffat@718: 
djmoffat@718: % -- original
djmoffat@718: %\def\proof{%
djmoffat@718: %  \vspace{-\parskip} % GM July 2000 (for tighter spacing)
djmoffat@718: %    \global\@qededfalse
djmoffat@718: %    \@ifnextchar[{\@xproof}{\@proof}%
djmoffat@718: %}
djmoffat@718: % -- end of original
djmoffat@718: 
djmoffat@718: % (JSS) Fix for vertical spacing bug - Gerry Murray July 30th. 2002
djmoffat@718: \def\proof{%
djmoffat@718: \vspace{-\lastskip}\vspace{-\parsep}\penalty-51%
djmoffat@718: \global\@qededfalse
djmoffat@718: \@ifnextchar[{\@xproof}{\@proof}%
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\endproof{%
djmoffat@718:     \if@qeded\else\qed\fi
djmoffat@718:     \endtrivlist
djmoffat@718: }
djmoffat@718: \def\@proof{%
djmoffat@718:     \trivlist
djmoffat@718:     \item[%
djmoffat@718:         \hskip 10\p@
djmoffat@718:         \hskip \labelsep
djmoffat@718:         {\sc Proof.}%
djmoffat@718:     ]
djmoffat@718:     \ignorespaces
djmoffat@718: }
djmoffat@718: \def\@xproof[#1]{%
djmoffat@718:     \trivlist
djmoffat@718:     \item[\hskip 10\p@\hskip \labelsep{\sc Proof #1.}]%
djmoffat@718:     \ignorespaces
djmoffat@718: }
djmoffat@718: \def\qed{%
djmoffat@718:     \unskip
djmoffat@718:     \kern 10\p@
djmoffat@718:     \begingroup
djmoffat@718:         \unitlength\p@
djmoffat@718:         \linethickness{.4\p@}%
djmoffat@718:         \framebox(6,6){}%
djmoffat@718:     \endgroup
djmoffat@718:     \global\@qededtrue
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\newdef#1#2{%
djmoffat@718:     \expandafter\@ifdefinable\csname #1\endcsname
djmoffat@718:         {\@definecounter{#1}%
djmoffat@718:          \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}%
djmoffat@718:          \global\@namedef{#1}{\@defthm{#1}{#2}}%
djmoffat@718:          \global\@namedef{end#1}{\@endtheorem}%
djmoffat@718:     }%
djmoffat@718: }
djmoffat@718: \def\@defthm#1#2{%
djmoffat@718:     \refstepcounter{#1}%
djmoffat@718:     \@ifnextchar[{\@ydefthm{#1}{#2}}{\@xdefthm{#1}{#2}}%
djmoffat@718: }
djmoffat@718: \def\@xdefthm#1#2{%
djmoffat@718:     \@begindef{#2}{\csname the#1\endcsname}%
djmoffat@718:     \ignorespaces
djmoffat@718: }
djmoffat@718: \def\@ydefthm#1#2[#3]{%
djmoffat@718:     \trivlist
djmoffat@718:     \item[%
djmoffat@718:         \hskip 10\p@
djmoffat@718:         \hskip \labelsep
djmoffat@718:         {\it #2%
djmoffat@718: %         \savebox\@tempboxa{#3}%
djmoffat@718:          \saveb@x\@tempboxa{#3}%		% January 2008
djmoffat@718:          \ifdim \wd\@tempboxa>\z@
djmoffat@718:             \ \box\@tempboxa
djmoffat@718:          \fi.%
djmoffat@718:         }]%
djmoffat@718:     \ignorespaces
djmoffat@718: }
djmoffat@718: \def\@begindef#1#2{%
djmoffat@718:     \trivlist
djmoffat@718:     \item[%
djmoffat@718:         \hskip 10\p@
djmoffat@718:         \hskip \labelsep
djmoffat@718:         {\it #1\ \rm #2.}%
djmoffat@718:     ]%
djmoffat@718: }
djmoffat@718: \def\theequation{\arabic{equation}}
djmoffat@718: 
djmoffat@718: \newcounter{part}
djmoffat@718: \newcounter{section}
djmoffat@718: \newcounter{subsection}[section]
djmoffat@718: \newcounter{subsubsection}[subsection]
djmoffat@718: \newcounter{paragraph}[subsubsection]
djmoffat@718: \def\thepart{\Roman{part}}
djmoffat@718: \def\thesection{\arabic{section}}
djmoffat@718: \def\thesubsection{\thesection.\arabic{subsection}}
djmoffat@718: \def\thesubsubsection{\thesubsection.\arabic{subsubsection}} %removed \subsecfnt 29 July 2002 gkmt
djmoffat@718: \def\theparagraph{\thesubsubsection.\arabic{paragraph}} %removed \subsecfnt 29 July 2002 gkmt
djmoffat@718: \newif\if@uchead
djmoffat@718: \@ucheadfalse
djmoffat@718: 
djmoffat@718: %% CHANGES: NEW NOTE
djmoffat@718: %% NOTE: OK to use old-style font commands below, since they were
djmoffat@718: %% suitably redefined for LaTeX2e
djmoffat@718: %% END CHANGES
djmoffat@718: \setcounter{secnumdepth}{3}
djmoffat@718: \def\part{%
djmoffat@718:     \@startsection{part}{9}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}
djmoffat@718:         {4\p@}{\normalsize\@ucheadtrue}%
djmoffat@718: }
djmoffat@718: \def\section{%
djmoffat@718:     \@startsection{section}{1}{\z@}{-10\p@ \@plus -4\p@ \@minus -2\p@}% GM
djmoffat@718:     {4\p@}{\baselineskip 14pt\secfnt\@ucheadtrue}%
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\subsection{%
djmoffat@718:     \@startsection{subsection}{2}{\z@}{-8\p@ \@plus -2\p@ \@minus -\p@}
djmoffat@718:     {4\p@}{\secfnt}%
djmoffat@718: }
djmoffat@718: \def\subsubsection{%
djmoffat@718:     \@startsection{subsubsection}{3}{\z@}{-8\p@ \@plus -2\p@ \@minus -\p@}%
djmoffat@718:     {4\p@}{\subsecfnt}%
djmoffat@718: }
djmoffat@718: %\def\paragraph{%
djmoffat@718: %    \vskip 12pt\@startsection{paragraph}{3}{\z@}{6\p@ \@plus \p@}% original
djmoffat@718: %    {-5\p@}{\subsecfnt}%
djmoffat@718: %}
djmoffat@718: %  If one wants sections, subsections and subsubsections numbered,
djmoffat@718: %  but not paragraphs, one usually sets secnumepth to 3.
djmoffat@718: %  For that, the "depth" of paragraphs must be given correctly
djmoffat@718: %  in the definition (``4'' instead of ``3'' as second argument
djmoffat@718: %  of @startsection):
djmoffat@718: \def\paragraph{%
djmoffat@718:     \vskip 12pt\@startsection{paragraph}{4}{\z@}{6\p@ \@plus \p@}%    % GM and Wolfgang May - 11/30/06
djmoffat@718:     {-5\p@}{\subsecfnt}%
djmoffat@718: }
djmoffat@718: \let\@period=.
djmoffat@718: \def\@startsection#1#2#3#4#5#6{%
djmoffat@718:         \if@noskipsec  %gkmt, 11 aug 99
djmoffat@718:         \global\let\@period\@empty
djmoffat@718:         \leavevmode
djmoffat@718:         \global\let\@period.%
djmoffat@718:     \fi
djmoffat@718:       \par %
djmoffat@718:     \@tempskipa #4\relax
djmoffat@718:     \@afterindenttrue
djmoffat@718:     \ifdim \@tempskipa <\z@
djmoffat@718:         \@tempskipa -\@tempskipa
djmoffat@718:         \@afterindentfalse
djmoffat@718:     \fi
djmoffat@718:     \if@nobreak
djmoffat@718:     \everypar{}%
djmoffat@718:     \else
djmoffat@718:         \addpenalty\@secpenalty
djmoffat@718:         \addvspace\@tempskipa
djmoffat@718:     \fi
djmoffat@718: \parskip=0pt % GM July 2000 (non numbered) section heads
djmoffat@718:     \@ifstar
djmoffat@718:         {\@ssect{#3}{#4}{#5}{#6}}
djmoffat@718:         {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}%
djmoffat@718: }
djmoffat@718: \def\@sect#1#2#3#4#5#6[#7]#8{%
djmoffat@718:     \ifnum #2>\c@secnumdepth
djmoffat@718:         \let\@svsec\@empty
djmoffat@718:     \else
djmoffat@718:         \refstepcounter{#1}%
djmoffat@718:         \edef\@svsec{%
djmoffat@718:             \begingroup
djmoffat@718:                 %\ifnum#2>2 \noexpand\rm \fi % changed to next 29 July 2002 gkmt
djmoffat@718:             \ifnum#2>2 \noexpand#6 \fi
djmoffat@718:                 \csname the#1\endcsname
djmoffat@718:             \endgroup
djmoffat@718:             \ifnum #2=1\relax .\fi
djmoffat@718:             \hskip 1em
djmoffat@718:         }%
djmoffat@718:     \fi
djmoffat@718:     \@tempskipa #5\relax
djmoffat@718:     \ifdim \@tempskipa>\z@
djmoffat@718:         \begingroup
djmoffat@718:             #6\relax
djmoffat@718:             \@hangfrom{\hskip #3\relax\@svsec}%
djmoffat@718:             \begingroup
djmoffat@718:                 \interlinepenalty \@M
djmoffat@718:                 \if@uchead
djmoffat@718:                     \uppercase{#8}%
djmoffat@718:                 \else
djmoffat@718:                     #8%
djmoffat@718:                 \fi
djmoffat@718:                 \par
djmoffat@718:             \endgroup
djmoffat@718:         \endgroup
djmoffat@718:         \csname #1mark\endcsname{#7}%
djmoffat@718:         \vskip -12pt  %gkmt, 11 aug 99 and GM July 2000 (was -14) - numbered section head spacing
djmoffat@718: \addcontentsline{toc}{#1}{%
djmoffat@718:             \ifnum #2>\c@secnumdepth \else
djmoffat@718:                 \protect\numberline{\csname the#1\endcsname}%
djmoffat@718:             \fi
djmoffat@718:             #7%
djmoffat@718:         }%
djmoffat@718:     \else
djmoffat@718:         \def\@svsechd{%
djmoffat@718:             #6%
djmoffat@718:             \hskip #3\relax
djmoffat@718:             \@svsec
djmoffat@718:             \if@uchead
djmoffat@718:                 \uppercase{#8}%
djmoffat@718:             \else
djmoffat@718:                 #8%
djmoffat@718:             \fi
djmoffat@718:             \csname #1mark\endcsname{#7}%
djmoffat@718:             \addcontentsline{toc}{#1}{%
djmoffat@718:                 \ifnum #2>\c@secnumdepth \else
djmoffat@718:                     \protect\numberline{\csname the#1\endcsname}%
djmoffat@718:                 \fi
djmoffat@718:                 #7%
djmoffat@718:             }%
djmoffat@718:         }%
djmoffat@718:     \fi
djmoffat@718:     \@xsect{#5}\hskip 1pt
djmoffat@718:     \par
djmoffat@718: }
djmoffat@718: \def\@xsect#1{%
djmoffat@718:     \@tempskipa #1\relax
djmoffat@718:     \ifdim \@tempskipa>\z@
djmoffat@718:         \par
djmoffat@718:         \nobreak
djmoffat@718:         \vskip \@tempskipa
djmoffat@718:         \@afterheading
djmoffat@718:     \else
djmoffat@718:         \global\@nobreakfalse
djmoffat@718:         \global\@noskipsectrue
djmoffat@718:         \everypar{%
djmoffat@718:             \if@noskipsec
djmoffat@718:                 \global\@noskipsecfalse
djmoffat@718:                 \clubpenalty\@M
djmoffat@718:                 \hskip -\parindent
djmoffat@718:                 \begingroup
djmoffat@718:                     \@svsechd
djmoffat@718:                     \@period
djmoffat@718:                 \endgroup
djmoffat@718:                 \unskip
djmoffat@718:                 \@tempskipa #1\relax
djmoffat@718:                 \hskip -\@tempskipa
djmoffat@718:             \else
djmoffat@718:                 \clubpenalty \@clubpenalty
djmoffat@718:                 \everypar{}%
djmoffat@718:             \fi
djmoffat@718:         }%
djmoffat@718:     \fi
djmoffat@718:     \ignorespaces
djmoffat@718: }
djmoffat@718: \def\@trivlist{%
djmoffat@718:     \@topsepadd\topsep
djmoffat@718:     \if@noskipsec
djmoffat@718:         \global\let\@period\@empty
djmoffat@718:         \leavevmode
djmoffat@718:         \global\let\@period.%
djmoffat@718:     \fi
djmoffat@718:     \ifvmode
djmoffat@718:         \advance\@topsepadd\partopsep
djmoffat@718:     \else
djmoffat@718:         \unskip
djmoffat@718:         \par
djmoffat@718:     \fi
djmoffat@718:     \if@inlabel
djmoffat@718:         \@noparitemtrue
djmoffat@718:         \@noparlisttrue
djmoffat@718:     \else
djmoffat@718:         \@noparlistfalse
djmoffat@718:         \@topsep\@topsepadd
djmoffat@718:     \fi
djmoffat@718:     \advance\@topsep \parskip
djmoffat@718:     \leftskip\z@skip
djmoffat@718:     \rightskip\@rightskip
djmoffat@718:     \parfillskip\@flushglue
djmoffat@718:     \@setpar{\if@newlist\else{\@@par}\fi}
djmoffat@718:     \global\@newlisttrue
djmoffat@718:     \@outerparskip\parskip
djmoffat@718: }
djmoffat@718: 
djmoffat@718: %%% Actually, 'abbrev' works just fine as the default
djmoffat@718: %%% Bibliography style.
djmoffat@718: 
djmoffat@718: \typeout{Using 'Abbrev' bibliography style}
djmoffat@718: \newcommand\bibyear[2]{%
djmoffat@718:     \unskip\quad\ignorespaces#1\unskip
djmoffat@718:     \if#2..\quad \else \quad#2 \fi
djmoffat@718: }
djmoffat@718: \newcommand{\bibemph}[1]{{\em#1}}
djmoffat@718: \newcommand{\bibemphic}[1]{{\em#1\/}}
djmoffat@718: \newcommand{\bibsc}[1]{{\sc#1}}
djmoffat@718: \def\@normalcite{%
djmoffat@718:     \def\@cite##1##2{[##1\if@tempswa , ##2\fi]}%
djmoffat@718: }
djmoffat@718: \def\@citeNB{%
djmoffat@718:     \def\@cite##1##2{##1\if@tempswa , ##2\fi}%
djmoffat@718: }
djmoffat@718: \def\@citeRB{%
djmoffat@718:     \def\@cite##1##2{##1\if@tempswa , ##2\fi]}%
djmoffat@718: }
djmoffat@718: \def\start@cite#1#2{%
djmoffat@718:     \edef\citeauthoryear##1##2##3{%
djmoffat@718:         ###1%
djmoffat@718:         \ifnum#2=\z@ \else\ ###2\fi
djmoffat@718:     }%
djmoffat@718:     \ifnum#1=\thr@@
djmoffat@718:         \let\@@cite\@citeyear
djmoffat@718:     \else
djmoffat@718:         \let\@@cite\@citenormal
djmoffat@718:     \fi
djmoffat@718:     \@ifstar{\@citeNB\@@cite}{\@normalcite\@@cite}%
djmoffat@718: }
djmoffat@718: %\def\cite{\start@cite23}
djmoffat@718: \DeclareRobustCommand\cite{\start@cite23}		% January 2008
djmoffat@718: \def\citeNP{\cite*}					% No Parentheses e.g. 5
djmoffat@718: %\def\citeA{\start@cite10}
djmoffat@718: \DeclareRobustCommand\citeA{\start@cite10}		% January 2008
djmoffat@718: \def\citeANP{\citeA*}
djmoffat@718: %\def\shortcite{\start@cite23}				
djmoffat@718: \DeclareRobustCommand\shortcite{\start@cite23}		% January 2008
djmoffat@718: \def\shortciteNP{\shortcite*}
djmoffat@718: %\def\shortciteA{\start@cite20}
djmoffat@718: \DeclareRobustCommand\shortciteA{\start@cite20}		% January 2008
djmoffat@718: \def\shortciteANP{\shortciteA*}
djmoffat@718: %\def\citeyear{\start@cite30}
djmoffat@718: \DeclareRobustCommand\citeyear{\start@cite30}		% January 2008
djmoffat@718: \def\citeyearNP{\citeyear*}
djmoffat@718: %\def\citeN{%
djmoffat@718: \DeclareRobustCommand\citeN{%				% January 2008
djmoffat@718:     \@citeRB
djmoffat@718:     \def\citeauthoryear##1##2##3{##1\ [##3%
djmoffat@718:         \def\reserved@a{##1}%
djmoffat@718:         \def\citeauthoryear####1####2####3{%
djmoffat@718:             \def\reserved@b{####1}%
djmoffat@718:             \ifx\reserved@a\reserved@b
djmoffat@718:                 ####3%
djmoffat@718:             \else
djmoffat@718:                 \errmessage{Package acmart Error: author mismatch
djmoffat@718:                          in \string\citeN^^J^^J%
djmoffat@718:                     See the acmart package documentation for explanation}%
djmoffat@718:             \fi
djmoffat@718:         }%
djmoffat@718:     }%
djmoffat@718:     \@ifstar\@citeyear\@citeyear
djmoffat@718: }
djmoffat@718: %\def\shortciteN{%
djmoffat@718: \DeclareRobustCommand\shortciteN{%			% January 2008
djmoffat@718:     \@citeRB
djmoffat@718:     \def\citeauthoryear##1##2##3{##2\ [##3%
djmoffat@718:         \def\reserved@a{##2}%
djmoffat@718:         \def\citeauthoryear####1####2####3{%
djmoffat@718:             \def\reserved@b{####2}%
djmoffat@718:             \ifx\reserved@a\reserved@b
djmoffat@718:                 ####3%
djmoffat@718:             \else
djmoffat@718:                 \errmessage{Package acmart Error: author mismatch
djmoffat@718:                          in \string\shortciteN^^J^^J%
djmoffat@718:                     See the acmart package documentation for explanation}%
djmoffat@718:             \fi
djmoffat@718:         }%
djmoffat@718:     }%
djmoffat@718:     \@ifstar\@citeyear\@citeyear  % GM July 2000
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\@citenormal{%
djmoffat@718:     \@ifnextchar [{\@tempswatrue\@citex;}%
djmoffat@718: % original                 {\@tempswafalse\@citex,[]}% was ; Gerry 2/24/00
djmoffat@718: {\@tempswafalse\@citex[]}%  	% GERRY FIX FOR BABEL 3/20/2009
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\@citeyear{%
djmoffat@718:     \@ifnextchar [{\@tempswatrue\@citex,}%
djmoffat@718: % original                  {\@tempswafalse\@citex,[]}%
djmoffat@718: {\@tempswafalse\@citex[]}%	%  GERRY FIX FOR BABEL 3/20/2009
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \def\@citex#1[#2]#3{%
djmoffat@718:     \let\@citea\@empty
djmoffat@718:     \@cite{%
djmoffat@718:         \@for\@citeb:=#3\do{%
djmoffat@718:             \@citea
djmoffat@718: % original            \def\@citea{#1 }%
djmoffat@718:             \def\@citea{#1, }% 	% GERRY FIX FOR BABEL 3/20/2009 -- SO THAT YOU GET [1, 2] IN THE BODY TEXT
djmoffat@718:             \edef\@citeb{\expandafter\@iden\@citeb}%
djmoffat@718:             \if@filesw
djmoffat@718:                 \immediate\write\@auxout{\string\citation{\@citeb}}%
djmoffat@718:             \fi
djmoffat@718:             \@ifundefined{b@\@citeb}{%
djmoffat@718:                 {\bf ?}%
djmoffat@718:                 \@warning{%
djmoffat@718:                     Citation `\@citeb' on page \thepage\space undefined%
djmoffat@718:                 }%
djmoffat@718:             }%
djmoffat@718:             {\csname b@\@citeb\endcsname}%
djmoffat@718:         }%
djmoffat@718:     }{#2}%
djmoffat@718: }
djmoffat@718: %\let\@biblabel\@gobble   % Dec. 2008 - Gerry
djmoffat@718: % ----
djmoffat@718: \def\@biblabelnum#1{[#1]} % Gerry's solution #1 - for Natbib -- April 2009
djmoffat@718: \let\@biblabel=\@biblabelnum  % Gerry's solution #1 - for Natbib -- April 2009
djmoffat@718: \def\newblock{\relax} % Gerry Dec. 2008
djmoffat@718: % ---
djmoffat@718: \newdimen\bibindent
djmoffat@718: \setcounter{enumi}{1}
djmoffat@718: \bibindent=0em
djmoffat@718: \def\thebibliography#1{% 
djmoffat@718: \ifnum\addauflag=0\addauthorsection\global\addauflag=1\fi
djmoffat@718:      \section[References]{%    <=== OPTIONAL ARGUMENT ADDED HERE
djmoffat@718:         {References} % was uppercased but this affects pdf bookmarks (SP/GM October 2004)
djmoffat@718:           {\vskip -9pt plus 1pt} % GM Nov. 2006 / GM July 2000 (for somewhat tighter spacing) 
djmoffat@718:          \@mkboth{{\refname}}{{\refname}}%
djmoffat@718:      }%
djmoffat@718:      \list{[\arabic{enumi}]}{%
djmoffat@718:          \settowidth\labelwidth{[#1]}%
djmoffat@718:          \leftmargin\labelwidth
djmoffat@718:          \advance\leftmargin\labelsep
djmoffat@718:          \advance\leftmargin\bibindent
djmoffat@718:          \parsep=0pt\itemsep=1pt % GM July 2000
djmoffat@718:          \itemindent -\bibindent
djmoffat@718:          \listparindent \itemindent
djmoffat@718:          \usecounter{enumi}
djmoffat@718:      }%
djmoffat@718:      \let\newblock\@empty
djmoffat@718:      \raggedright % GM July 2000
djmoffat@718:      \sloppy
djmoffat@718:      \sfcode`\.=1000\relax
djmoffat@718: }
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \gdef\balancecolumns
djmoffat@718: {\vfill\eject
djmoffat@718: \global\@colht=\textheight
djmoffat@718: \global\ht\@cclv=\textheight
djmoffat@718: }
djmoffat@718: 
djmoffat@718: \newcount\colcntr
djmoffat@718: \global\colcntr=0
djmoffat@718: %\newbox\savebox
djmoffat@718: \newbox\saveb@x				% January 2008
djmoffat@718: 
djmoffat@718: \gdef \@makecol {%
djmoffat@718: \global\advance\colcntr by 1
djmoffat@718: \ifnum\colcntr>2 \global\colcntr=1\fi
djmoffat@718:    \ifvoid\footins
djmoffat@718:      \setbox\@outputbox \box\@cclv
djmoffat@718:    \else
djmoffat@718:      \setbox\@outputbox \vbox{%
djmoffat@718: \boxmaxdepth \@maxdepth
djmoffat@718:        \@tempdima\dp\@cclv
djmoffat@718:        \unvbox \@cclv
djmoffat@718:        \vskip-\@tempdima
djmoffat@718:        \vskip \skip\footins
djmoffat@718:        \color@begingroup
djmoffat@718:          \normalcolor
djmoffat@718:          \footnoterule
djmoffat@718:          \unvbox \footins
djmoffat@718:        \color@endgroup
djmoffat@718:        }%
djmoffat@718:    \fi
djmoffat@718:    \xdef\@freelist{\@freelist\@midlist}%
djmoffat@718:    \global \let \@midlist \@empty
djmoffat@718:    \@combinefloats
djmoffat@718:    \ifvbox\@kludgeins
djmoffat@718:      \@makespecialcolbox
djmoffat@718:    \else
djmoffat@718:      \setbox\@outputbox \vbox to\@colht {%
djmoffat@718: \@texttop
djmoffat@718:        \dimen@ \dp\@outputbox
djmoffat@718:        \unvbox \@outputbox
djmoffat@718:    \vskip -\dimen@
djmoffat@718:        \@textbottom
djmoffat@718:        }%
djmoffat@718:    \fi
djmoffat@718:    \global \maxdepth \@maxdepth
djmoffat@718: }
djmoffat@718: \def\titlenote{\@ifnextchar[\@xtitlenote{\stepcounter\@mpfn
djmoffat@718: \global\advance\titlenotecount by 1
djmoffat@718: \ifnum\titlenotecount=1
djmoffat@718:     \raisebox{9pt}{$\ast$}
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=2
djmoffat@718:     \raisebox{9pt}{$\dagger$}
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=3
djmoffat@718:     \raisebox{9pt}{$\ddagger$}
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=4
djmoffat@718: \raisebox{9pt}{$\S$}
djmoffat@718: \fi
djmoffat@718: \ifnum\titlenotecount=5
djmoffat@718: \raisebox{9pt}{$\P$}
djmoffat@718: \fi
djmoffat@718:          \@titlenotetext
djmoffat@718: }}
djmoffat@718: 
djmoffat@718: \long\def\@titlenotetext#1{\insert\footins{%
djmoffat@718: \ifnum\titlenotecount=1\global\tntoks={#1}\fi
djmoffat@718: \ifnum\titlenotecount=2\global\tntokstwo={#1}\fi
djmoffat@718: \ifnum\titlenotecount=3\global\tntoksthree={#1}\fi
djmoffat@718: \ifnum\titlenotecount=4\global\tntoksfour={#1}\fi
djmoffat@718: \ifnum\titlenotecount=5\global\tntoksfive={#1}\fi
djmoffat@718:     \reset@font\footnotesize
djmoffat@718:     \interlinepenalty\interfootnotelinepenalty
djmoffat@718:     \splittopskip\footnotesep
djmoffat@718:     \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
djmoffat@718:     \hsize\columnwidth \@parboxrestore
djmoffat@718:     \protected@edef\@currentlabel{%
djmoffat@718:     }%
djmoffat@718:     \color@begingroup
djmoffat@718:    \color@endgroup}}
djmoffat@718: 
djmoffat@718: %%%%%%%%%%%%%%%%%%%%%%%%%
djmoffat@718: \ps@plain
djmoffat@718: \baselineskip=11pt
djmoffat@718: \let\thepage\relax % For NO page numbers - GM Nov. 30th. 1999 and July 2000
djmoffat@718: \def\setpagenumber#1{\global\setcounter{page}{#1}}
djmoffat@718: %\pagenumbering{arabic}  % Arabic page numbers GM July 2000
djmoffat@718: \twocolumn             % Double column.
djmoffat@718: \flushbottom           % Even bottom -- alas, does not balance columns at end of document
djmoffat@718: \pagestyle{plain}
djmoffat@718: 
djmoffat@718: % Need Copyright Year and Copyright Data to be user definable (in .tex file).
djmoffat@718: % Gerry Nov. 30th. 1999
djmoffat@718: \newtoks\copyrtyr
djmoffat@718: \newtoks\acmcopyr
djmoffat@718: \newtoks\boilerplate
djmoffat@718: \global\acmcopyr={X-XXXXX-XX-X/XX/XX}  % Default - 5/11/2001 *** Gerry
djmoffat@718: \global\copyrtyr={\the\year}                % Default - 3/3/2003 *** Gerry
djmoffat@718: \def\acmPrice#1{\gdef\@acmPrice{#1}}
djmoffat@718: \acmPrice{} %article price  % Changed to 15 - June 2012 - Gerry
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \def\CopyrightYear#1{\global\copyrtyr{#1}}
djmoffat@718: \def\crdata#1{\global\acmcopyr{#1}}
djmoffat@718: \def\permission#1{\global\boilerplate{#1}}
djmoffat@718: 
djmoffat@718: % ISBN
djmoffat@718: %
djmoffat@718: \def\isbn#1{\global\acmcopyr={#1}}
djmoffat@718: \isbn{978-1-4503-2138-9}
djmoffat@718: 
djmoffat@718: \RequirePackage{url}
djmoffat@718: \urlstyle{rm}
djmoffat@718: \def\doi#1{\def\@doi{#1}}
djmoffat@718: \doi{10.1145/1235}
djmoffat@718: \def\printdoi#1{\url{#1}}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: % Copyright
djmoffat@718: \RequirePackage{waccopyright}
djmoffat@718: \setcopyright{none}
djmoffat@718: 
djmoffat@718: %
djmoffat@718: \global\boilerplate={\@copyrightpermission}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \newtoks\copyrightetc
djmoffat@718: \global\copyrightetc{%
djmoffat@718: {\noindent\confname\ \the\conf\ \the\confinfo}\par\smallskip
djmoffat@718:   \if@printcopyright
djmoffat@718:     \copyright\ \the\copyrtyr\ \@copyrightowner
djmoffat@718:   \fi
djmoffat@718:   \if@acmowned ISBN \else\ifnum\acm@copyrightmode=2 ISBN \else %\par\smallskip ~ 
djmoffat@718: \fi\fi
djmoffat@718: % \the\acmcopyr
djmoffat@718: \ifx\@acmPrice\@empty.\else\dots\@acmPrice\fi\par%\smallskip
djmoffat@718: %{DOI: \small\expandafter\printdoi\expandafter{\@doi}%
djmoffat@718: } 
djmoffat@718: \toappear{\fontsize{7pt}{8pt}\fontfamily{ptm}\selectfont
djmoffat@718:   \the\boilerplate\par\smallskip
djmoffat@718:  \the\copyrightetc}
djmoffat@718: %\DeclareFixedFont{\altcrnotice}{OT1}{tmr}{m}{n}{8}  % << patch needed for accenting e.g. Montreal - Gerry, May 2007
djmoffat@718: %\DeclareFixedFont{\altconfname}{OT1}{tmr}{m}{it}{8}  % << patch needed for accenting in italicized confname - Gerry, May 2007
djmoffat@718: %
djmoffat@718: %{\altconfname{{\the\conf}}} {\altcrnotice\the\confinfo\par} \the\copyrightetc.}  % << Gerry, May 2007
djmoffat@718: %
djmoffat@718: % The following section (i.e. 3 .sty inclusions) was added in May 2007 so as to fix the problems that many
djmoffat@718: % authors were having with accents. Sometimes accents would occur, but the letter-character would be of a different
djmoffat@718: % font. Conversely the letter-character font would be correct but, e.g. a 'bar' would appear superimposed on the
djmoffat@718: % character instead of, say, an unlaut/diaresis. Sometimes the letter-character would NOT appear at all.
djmoffat@718: % Using [T1]{fontenc} outright was not an option as this caused 99% of the authors to 'produce' a Type-3 (bitmapped)
djmoffat@718: % PDF file - useless for production. 
djmoffat@718: %
djmoffat@718: % For proper (font) accenting we NEED these packages to be part of the .cls file i.e. 'ae', 'aecompl' and 'aeguil' 
djmoffat@718: % ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
djmoffat@718: %% This is file `ae.sty' 
djmoffat@718: \def\fileversion{1.3}
djmoffat@718: \def\filedate{2001/02/12}
djmoffat@718: \NeedsTeXFormat{LaTeX2e}
djmoffat@718: %\ProvidesPackage{ae}[\filedate\space\fileversion\space  % GM
djmoffat@718: % Almost European Computer Modern]                       % GM - keeping the log file clean(er)
djmoffat@718: \newif\if@ae@slides \@ae@slidesfalse
djmoffat@718: \DeclareOption{slides}{\@ae@slidestrue}
djmoffat@718: \ProcessOptions
djmoffat@718: \fontfamily{aer}
djmoffat@718: \RequirePackage[T1]{fontenc}
djmoffat@718: \if@ae@slides
djmoffat@718:     \renewcommand{\sfdefault}{laess}
djmoffat@718:     \renewcommand{\rmdefault}{laess} % no roman
djmoffat@718:     \renewcommand{\ttdefault}{laett}
djmoffat@718: \else
djmoffat@718:     \renewcommand{\sfdefault}{aess}
djmoffat@718:     \renewcommand{\rmdefault}{aer}
djmoffat@718:     \renewcommand{\ttdefault}{aett}
djmoffat@718: \fi
djmoffat@718: \DeclareRobustCommand{\ttfamily}{\fontencoding{T1}\fontfamily{lmtt}\selectfont}
djmoffat@718: \endinput
djmoffat@718: %% 
djmoffat@718: %% End of file `ae.sty'.
djmoffat@718: %
djmoffat@718: %
djmoffat@718: \def\fileversion{0.9}
djmoffat@718: \def\filedate{1998/07/23}
djmoffat@718: \NeedsTeXFormat{LaTeX2e}
djmoffat@718: %\ProvidesPackage{aecompl}[\filedate\space\fileversion\space   % GM
djmoffat@718: %T1 Complements for AE fonts (D. Roegel)]                      % GM -- keeping the log file clean(er)
djmoffat@718:  
djmoffat@718: \def\@ae@compl#1{{\fontencoding{T1}\fontfamily{cmr}\selectfont\symbol{#1}}}
djmoffat@718: \def\guillemotleft{\@ae@compl{19}}
djmoffat@718: \def\guillemotright{\@ae@compl{20}}
djmoffat@718: \def\guilsinglleft{\@ae@compl{14}}
djmoffat@718: \def\guilsinglright{\@ae@compl{15}}
djmoffat@718: \def\TH{\@ae@compl{222}}
djmoffat@718: \def\NG{\@ae@compl{141}}
djmoffat@718: \def\ng{\@ae@compl{173}}
djmoffat@718: \def\th{\@ae@compl{254}}
djmoffat@718: \def\DJ{\@ae@compl{208}}
djmoffat@718: \def\dj{\@ae@compl{158}}
djmoffat@718: \def\DH{\@ae@compl{208}}
djmoffat@718: \def\dh{\@ae@compl{240}}
djmoffat@718: \def\@perthousandzero{\@ae@compl{24}}
djmoffat@718: \def\textperthousand{\%\@perthousandzero}
djmoffat@718: \def\textpertenthousand{\%\@perthousandzero\@perthousandzero}
djmoffat@718: \endinput
djmoffat@718: %
djmoffat@718: %
djmoffat@718: %% This is file `aeguill.sty' 
djmoffat@718: % This file gives french guillemets (and not guillemots!)
djmoffat@718: % built with the Polish CMR fonts (default), WNCYR fonts, the LASY fonts 
djmoffat@718: % or with the EC fonts. 
djmoffat@718: % This is useful in conjunction with the ae package
djmoffat@718: % (this package loads the ae package in case it has not been loaded)
djmoffat@718: %  and with or without the french(le) package.
djmoffat@718: %
djmoffat@718: % In order to get the guillemets, it is necessary to either type
djmoffat@718: % \guillemotleft and \guillemotright, or to use an 8 bit encoding
djmoffat@718: % (such as ISO-Latin1) which selects these two commands, 
djmoffat@718: % or, if you use the french package (but not the frenchle package), 
djmoffat@718: % to type << or >>.
djmoffat@718: %
djmoffat@718: % By default, you get the Polish CMR guillemets; if this package is loaded
djmoffat@718: % with the `cm' option, you get the LASY guillemets; with `ec,' you
djmoffat@718: % get the EC guillemets, and with `cyr,' you get the cyrillic guillemets.
djmoffat@718: %
djmoffat@718: % In verbatim mode, you always get the EC/TT guillemets.
djmoffat@718: %
djmoffat@718: % The default option is interesting in conjunction with PDF,
djmoffat@718: % because there is a Type 1 version of the Polish CMR fonts
djmoffat@718: % and these guillemets are very close in shape to the EC guillemets.
djmoffat@718: % There are no free Type 1 versions of the EC fonts.
djmoffat@718: %
djmoffat@718: % Support for Polish CMR guillemets was kindly provided by 
djmoffat@718: % Rolf Niepraschk <niepraschk@ptb.de> in version 0.99 (2000/05/22).
djmoffat@718: % Bernd Raichle provided extensive simplifications to the code
djmoffat@718: % for version 1.00.
djmoffat@718: %
djmoffat@718: % This package is released under the LPPL.
djmoffat@718: %
djmoffat@718: % Changes:
djmoffat@718: %   Date        version
djmoffat@718: %   2001/04/12  1.01    the frenchle and french package are now distinguished.
djmoffat@718: %
djmoffat@718: \def\fileversion{1.01}
djmoffat@718: \def\filedate{2001/04/12}
djmoffat@718: \NeedsTeXFormat{LaTeX2e}
djmoffat@718: %\ProvidesPackage{aeguill}[2001/04/12 1.01 %    % GM
djmoffat@718: %AE fonts with french guillemets (D. Roegel)]   % GM - keeping the log file clean(er)
djmoffat@718: %\RequirePackage{ae}  % GM May 2007 - already embedded here
djmoffat@718: 
djmoffat@718: \newcommand{\@ae@switch}[4]{#4}
djmoffat@718: \DeclareOption{ec}{\renewcommand\@ae@switch[4]{#1}}
djmoffat@718: \DeclareOption{cm}{\renewcommand\@ae@switch[4]{#2}}
djmoffat@718: \DeclareOption{cyr}{\renewcommand\@ae@switch[4]{#3}}
djmoffat@718: \DeclareOption{pl}{\renewcommand\@ae@switch[4]{#4}}
djmoffat@718: 
djmoffat@718: 
djmoffat@718: %
djmoffat@718: % Load necessary packages
djmoffat@718: %
djmoffat@718: \@ae@switch{% ec
djmoffat@718:   % do nothing
djmoffat@718: }{% cm
djmoffat@718:   \RequirePackage{latexsym}%  GM - May 2007 - already 'mentioned as required' up above
djmoffat@718: }{% cyr
djmoffat@718:   \RequirePackage[OT2,T1]{fontenc}%
djmoffat@718: }{% pl
djmoffat@718:   \RequirePackage[OT4,T1]{fontenc}%
djmoffat@718: }
djmoffat@718: 
djmoffat@718: % The following command will be compared to \frenchname,
djmoffat@718: % as defined in french.sty and frenchle.sty.
djmoffat@718: \def\aeguillfrenchdefault{french}%
djmoffat@718: 
djmoffat@718: \let\guill@verbatim@font\verbatim@font
djmoffat@718: \def\verbatim@font{\guill@verbatim@font\ecguills{cmtt}%
djmoffat@718:                    \let\guillemotleft\@oguills\let\guillemotright\@fguills}
djmoffat@718: 
djmoffat@718: \begingroup \catcode`\<=13 \catcode`\>=13
djmoffat@718: \def\x{\endgroup
djmoffat@718:  \def\ae@lfguill{<<}%
djmoffat@718:  \def\ae@rfguill{>>}%
djmoffat@718: }\x
djmoffat@718: 
djmoffat@718: \newcommand{\ecguills}[1]{%
djmoffat@718:   \def\selectguillfont{\fontencoding{T1}\fontfamily{#1}\selectfont}%
djmoffat@718:   \def\@oguills{{\selectguillfont\symbol{19}}}%
djmoffat@718:   \def\@fguills{{\selectguillfont\symbol{20}}}%
djmoffat@718:   } 
djmoffat@718: 
djmoffat@718: \newcommand{\aeguills}{%
djmoffat@718:   \ae@guills
djmoffat@718:   % We redefine \guillemotleft and \guillemotright
djmoffat@718:   % in order to catch them when they are used 
djmoffat@718:   % with \DeclareInputText (in latin1.def for instance)
djmoffat@718:   % We use \auxWARNINGi as a safe indicator that french.sty is used.
djmoffat@718:   \gdef\guillemotleft{\ifx\auxWARNINGi\undefined
djmoffat@718:                          \@oguills % neither french.sty nor frenchle.sty
djmoffat@718:                       \else
djmoffat@718:                          \ifx\aeguillfrenchdefault\frenchname
djmoffat@718:                            \ae@lfguill  % french.sty
djmoffat@718:                          \else
djmoffat@718:                            \@oguills    % frenchle.sty
djmoffat@718:                          \fi
djmoffat@718:                       \fi}%
djmoffat@718:   \gdef\guillemotright{\ifx\auxWARNINGi\undefined
djmoffat@718:                          \@fguills % neither french.sty nor frenchle.sty
djmoffat@718:                        \else
djmoffat@718:                          \ifx\aeguillfrenchdefault\frenchname
djmoffat@718:                            \ae@rfguill  % french.sty
djmoffat@718:                          \else
djmoffat@718:                            \@fguills    % frenchle.sty
djmoffat@718:                          \fi
djmoffat@718:                        \fi}%
djmoffat@718:   }
djmoffat@718: 
djmoffat@718: %
djmoffat@718: % Depending on the class option
djmoffat@718: % define the internal command \ae@guills
djmoffat@718: \@ae@switch{% ec
djmoffat@718:   \newcommand{\ae@guills}{%
djmoffat@718:     \ecguills{cmr}}%
djmoffat@718: }{% cm
djmoffat@718:   \newcommand{\ae@guills}{%
djmoffat@718:     \def\selectguillfont{\fontencoding{U}\fontfamily{lasy}%
djmoffat@718:             \fontseries{m}\fontshape{n}\selectfont}%
djmoffat@718:     \def\@oguills{\leavevmode\nobreak
djmoffat@718:                 \hbox{\selectguillfont (\kern-.20em(\kern.20em}\nobreak}%
djmoffat@718:     \def\@fguills{\leavevmode\nobreak
djmoffat@718:                 \hbox{\selectguillfont \kern.20em)\kern-.2em)}%
djmoffat@718:                 \ifdim\fontdimen\@ne\font>\z@\/\fi}}%
djmoffat@718: }{% cyr
djmoffat@718:   \newcommand{\ae@guills}{%
djmoffat@718:     \def\selectguillfont{\fontencoding{OT2}\fontfamily{wncyr}\selectfont}%
djmoffat@718:     \def\@oguills{{\selectguillfont\symbol{60}}}%
djmoffat@718:     \def\@fguills{{\selectguillfont\symbol{62}}}}
djmoffat@718: }{% pl
djmoffat@718:   \newcommand{\ae@guills}{%
djmoffat@718:     \def\selectguillfont{\fontencoding{OT4}\fontfamily{cmr}\selectfont}%
djmoffat@718:     \def\@oguills{{\selectguillfont\symbol{174}}}%
djmoffat@718:     \def\@fguills{{\selectguillfont\symbol{175}}}}
djmoffat@718: }
djmoffat@718: 
djmoffat@718: 
djmoffat@718: \AtBeginDocument{%
djmoffat@718:   \ifx\GOfrench\undefined
djmoffat@718:     \aeguills
djmoffat@718:   \else
djmoffat@718:     \let\aeguill@GOfrench\GOfrench
djmoffat@718:     \gdef\GOfrench{\aeguill@GOfrench \aeguills}%
djmoffat@718:   \fi
djmoffat@718:   }
djmoffat@718: 
djmoffat@718: \endinput
djmoffat@718: %
djmoffat@718: 




