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