ACM Conference的Latex论文模板与说明

2022-11-22 08:56:49 浏览数 (2)

转载请注明出处:小锋学长生活大爆炸[xfxuezhang.blog.csdn.net]

目录

cls文件说明

ACM会议论文模板


cls文件说明

原版文件链接:https://conferences.sigcomm.org/sigcomm/2013/misc/sig-alternate-10pt.cls

(其实就是翻译一下...)

代码语言:javascript复制
% SIG-ALTERNATE.CLS - VERSION 2.4
% 与 "ACM_PROC_ARTICLE-SP.CLS" V3.2SP 兼容
% Gerald Murray - 2009年4月22日
%
% ---- '更新'说明的开始  ----
%
% 更新了10pt版本,以符合advertised的格式要求
% (leading 11.9pt -> 12.0pt, textheight 660pt -> 666pt) - Dec 9 2009
% Geoff Voelker
%
% Changed $5 fee to $10 - Gerry
% April 22nd. 2009 - 修正了'Natbib'不兼容问题 - Gerry
% April 22nd. 2009 - 修正了 "Babel "的不兼容问题 - Gerry
% April 22nd. 2009 - 插入了各种错误修复和改进 - Gerry
%
% To produce Type 1 fonts in the document plus allow for 'normal LaTeX accenting' in the critical areas;
% title, author block, section-heads, confname, etc. etc. 
% 也就是说,这个版本更新的全部目的是为了不诉诸于 "inelegant accent patches"。
% After much research, three extra .sty packages were added to the the tail (ae, aecompl, aeguill) to solve,
% in particular, the accenting problem(s). We _could_ ask authors (via instructions/sample file) to 'include' these in
% the source .tex file - in the preamble - but if everything is already provided ('behind the scenes' - embedded IN the .cls)
% then this is less work for authors and also makes everything appear 'vanilla'.
% NOTE: all 'patchwork accenting" has been commented out (here) and is no longer 'used' in the sample .tex file (either).
% Gerry June 2007
%
% Patch for accenting in conference name/location. Gerry May 3rd. 2007
% Rule widths changed to .5, author count (>6) fixed, roll-back for Type 3 problem. Gerry March 20th. 2007
%
% Changes made to enable easier reviewing by fixing font size to 10pt - Jan. 3th. 2007
% Anja Feldmann
%
% Changes made to 'modernize' the fontnames but esp. for MikTeX users V2.4/2.5 - Nov. 30th. 2006
% Updated the email definition to allow for its use inside of 'shared affiliations' - Nov. 30th. 2006
% Fixed the 'section number depth value' - Nov. 30th. 2006
%
% Footnotes inside table cells using minipage (Oct. 2002)
% Georgia fixed bug in sub-sub-section numbering in paragraphs (July 29th. 2002)
% JS/GM fix to vertical spacing before Proofs (July 30th. 2002)
%
% Made the Permission Statement / Conference Info / Copyright Info
% 'user definable' in the source .tex file OR automatic if
% not specified.
%
% 允许在使用正常/现代字体名称的系统和使用 "Type 1 "或 "Truetype "字体的系统之间切换默认字体。
% 详见LINE NUMBER 255。
% Also provided for enumerated/annotated Corollaries 'surrounded' by
% enumerated Theorems (line 848).
% Gerry November 11th. 1999
%
% ----'更新'说明的结束 ----
%
deffileversion{v2.4-10pt}          % for ACM's tracking purposes
deffiledate{April 22, 2009}    % Gerry Murray's tracking data
defdocdate {Wednesday 22nd. April 2009} % Gerry Murray (with deltas to doc}
usepackage{epsfig}
usepackage{amssymb}
usepackage{amsmath}
usepackage{amsfonts}
% 在Arial/Helvetica中需要这个accents
%usepackage[T1]{fontenc}  % Gerry March 12, 2007 - causes Type 3 problems (body text)
%usepackage{textcomp}
%
% SIG-ALTERNATE DOCUMENT STYLE
% G.K.M. Tobin August-October 1999
%    adapted from ARTICLE document style by Ken Traub, Olin Shivers
%    also using elements of esub2acm.cls
% HEAVILY MODIFIED, SUBSEQUENTLY, BY GERRY MURRAY 2000
% ARTICLE DOCUMENT STYLE -- Released 16 March 1988
%    for LaTeX version 2.09
% Copyright (C) 1988 by Leslie Lamport
%
%
%%% sig-alternate.cls是一种 "ALTERNATE "文档样式,用于制作ACM会议的camera-ready页。
%%% 这个文件并不严格遵守sigs(董事会认可的)程序风格。
%%% 它的设计是为了产生一个 "tighter "的文件,以回应对页面预算的关注。
%%% 这种风格的主要特点是:
%%%
%%% 1)  两列.
%%% 2)  侧边和顶边距为4.5pc,底边距为6pc,列间距为 2pc,因此列宽20个,高55.5pcc(6pc=3D 1in,约)。
%%% 3)  第一页有标题信息,在第一栏底部有6个额外的空间,用于ACM版权声明。
%%% 4)  文字为9pt,基线为10pt;标题(除主标题外)为9pt黑体。
%%%
%%%
%%% 有一些你必须遵守的限制:
%%%
%%% 1)  你不能改变字体大小;ACM希望你使用9pt。
%%% 3)  你必须用maketitle命令开始你的论文。 在使用maketitle之前,你必须有title和author命令。 
%%%     如果你有一个date命令,它将被忽略;论文上不会出现日期,因为论文集的封面上会有一个日期。
%%% 4)  旁白段落、目录、数字和表格清单以及页面标题都是禁止的。
%%% 5)  `figure`环境将产生一个一列宽的数字;如果你想要一个两列宽的数字,请使用`figure*'。
%%%
%
%%% 版权空间:
%%% 这个样式在第1页的底部自动保留了1英寸的空白空间。 这个空间可以选择使用 toappear{...} 命令来填充一些文字。 
%%% 如果使用,这个命令必须在 maketitle 命令之前。 如果定义了这个命令,并且[preprint]是打开的,那么这个空间就
%%% 会被{...}文本填充(在底部);否则,它就是空白的。 如果使用 toappearbox{...} 而不是 toappear{...},那么
%%% 文本周围将画一个方框(如果[preprint]开启)。
%%%
%%% 一个典型的用法是这样的:
%%%     toappear{To appear in the Ninth AES Conference on Medievil Lithuanian
%%%               Embalming Technique, June 1991, Alfaretta, Georgia.}
%%% 这将包括在preprint本中,而不包括在会议版本中。


%%%
%%% 警告:
%%% 一些dvi-ps转换器启发式地允许字符从它们的真实位置漂移几个像素。这在用于章节标题的9pt无衬线粗体字中可能会很明显。
%%% 你可以通过-e选项关闭这种hackery:
%%%     dvips -e 0 foo.dvi >foo.ps
%%%
typeout{Document Class 'sig-alternate' <22nd. April '09>.  Modified by G.K.M. Tobin/Gerry Murray}
typeout{Based in part upon document Style `acmconf' <22 May 89>. Hacked 4/91 by}
typeout{shivers@cs.cmu.edu, 4/93 by theobald@cs.mcgill.ca}
typeout{Excerpts were taken from (Journal Style) 'esub2acm.cls'.}
typeout{****** Bugs/comments/suggestions/technicalities to Gerry Murray -- murray@hq.acm.org ******}
typeout{Questions on the style, SIGS policies, etc. to Adrienne Griscti griscti@acm.org}
oddsidemargin 4.5pc
evensidemargin 4.5pc
advanceoddsidemargin by -1in  % Correct for LaTeX gratuitousness
advanceevensidemargin by -1in % Correct for LaTeX gratuitousness
marginparwidth 0pt             % Margin pars are not allowed.
marginparsep 11pt              % Horizontal space between outer margin and
                                % marginal note

                                % Top of page:
topmargin 4.5pc                % Nominal distance from top of page to top of
                                % box containing running head.
advancetopmargin by -1in      % Correct for LaTeX gratuitousness
headheight 0pt                 % Height of box containing running head.
headsep 0pt                    % Space between running head and text.
                                % Bottom of page:
footskip 30pt                  % Distance from baseline of box containing foot
                                % to baseline of last line of text.
@ifundefined{footheight}{newdimenfootheight}{}% this is for LaTeX2e
footheight 12pt                % Height of box containing running foot.

%% 如果你使用preprint选项,必须重新定义上边距,以便为页眉和页码留出空间。页脚可以保持原样. Olin.
advancetopmargin by -37pt     % Leave 37pt above text for headers
headheight 12pt                % Height of box containing running head.
headsep 25pt                   % Space between running head and text.

textheight 666pt       % 9 1/4 column height
textwidth 42pc         % Width of text line.
                        % For two-column mode:
columnsep 2pc          %    Space between columns
columnseprule 0pt      %    Width of rule between columns.
hfuzz 1pt              % Allow some variation in column width, otherwise it's
                        % too hard to typeset in narrow columns.

footnotesep 5.6pt      % Height of strut placed at the beginning of every
                        % footnote =3D height of normal footnotesize strut,
                        % so no extra space between footnotes.

skipfootins 8.1pt plus 4pt minus 2pt  % Space between last line of text and
                                        % top of first footnote.
floatsep 11pt plus 2pt minus 2pt       % Space between adjacent floats moved
                                        % to top or bottom of text page.
textfloatsep 18pt plus 2pt minus 4pt   % Space between main text and floats
                                        % at top or bottom of page.
intextsep 11pt plus 2pt minus 2pt      % Space between in-text figures and
                                        % text.
@ifundefined{@maxsep}{newdimen@maxsep}{}% this is for LaTeX2e
@maxsep 18pt                           % The maximum of floatsep,
                                        % textfloatsep and intextsep (minus
                                        % the stretch and shrink).
dblfloatsep 11pt plus 2pt minus 2pt    % Same as floatsep for double-column
                                        % figures in two-column mode.
dbltextfloatsep 18pt plus 2pt minus 4pt% textfloatsep for double-column
                                        % floats.
@ifundefined{@dblmaxsep}{newdimen@dblmaxsep}{}% this is for LaTeX2e
@dblmaxsep 18pt                        % The maximum of dblfloatsep and
                                        % dbltexfloatsep.
@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must be
                         % 0pt plus ...)
@fpsep 8pt plus 2fil    % Space between floats on float page/column.
@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must be
                         % 0pt plus ... )
@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
@dblfpsep 8pt plus 2fil % Space between floats on float page.
@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
                         % 0pt plus ... )
marginparpush 5pt       % Minimum vertical separation between two marginal
                         % notes.

parskip 0pt plus 1pt            % Extra vertical space between paragraphs.
parindent 10pt  % GM July 2000 / was 0pt - width of paragraph indentation. %% Adjusted for 10pt
partopsep 2pt plus 1pt minus 1pt% Extra vertical space, in addition to
                                 % parskip and topsep, added when user
                                 % leaves blank line before environment.

@lowpenalty   51       % Produced by nopagebreak[1] or nolinebreak[1]
@medpenalty  151       % Produced by nopagebreak[2] or nolinebreak[2]
@highpenalty 301       % Produced by nopagebreak[3] or nolinebreak[3]

@beginparpenalty -@lowpenalty % Before a list or paragraph environment.
@endparpenalty   -@lowpenalty % After a list or paragraph environment.
@itempenalty     -@lowpenalty % Between list items.

%@namedef{ds@10pt}{@latexerr{The `10pt' option is not allowed in the `acmconf'
%@namedef{ds@10pt}{ClassError{The `10pt' option is not allowed in the `acmconf'	% January 2008
%  document style.}@eha} %% Adjusted for 10pt
%@namedef{ds@11pt}{@latexerr{The `11pt' option is not allowed in the `acmconf'
@namedef{ds@11pt}{ClassError{The `11pt' option is not allowed in the `acmconf'	% January 2008
  document style.}@eha}
%@namedef{ds@12pt}{@latexerr{The `12pt' option is not allowed in the `acmconf'
@namedef{ds@12pt}{ClassError{The `12pt' option is not allowed in the `acmconf'	% January 2008
  document style.}@eha}

@options

lineskip 2pt           % lineskip is 1pt for all font sizes.
normallineskip 2pt
defbaselinestretch{1}

abovedisplayskip 10pt plus2pt minus4.5pt% %% Adjusted for 10pt
belowdisplayskip abovedisplayskip
abovedisplayshortskip  z@ plus3pt%
belowdisplayshortskip  5.4pt plus3pt minus3pt%
let@listi@listI     % Setting of @listi added 9 Jun 87

defsmall{@setsizesmall{9.2pt}viiipt@viiipt %% Adjusted for 10pt
abovedisplayskip 7.6pt plus 3pt minus 4pt%
belowdisplayskip abovedisplayskip
abovedisplayshortskip z@ plus2pt%
belowdisplayshortskip 3.6pt plus2pt minus 2pt
def@listi{leftmarginleftmargini %% Added 22 Dec 87
topsep 4pt plus 2pt minus 2ptparsep 2pt plus 1pt minus 1pt
itemsep parsep}}

deffootnotesize{@setsizefootnotesize{10pt}ixpt@ixpt %% Adjusted for 10pt
abovedisplayskip 6.4pt plus 2pt minus 4pt%
belowdisplayskip abovedisplayskip
abovedisplayshortskip z@ plus 1pt%
belowdisplayshortskip 2.7pt plus 1pt minus 2pt
def@listi{leftmarginleftmargini %% Added 22 Dec 87
topsep 3pt plus 1pt minus 1ptparsep 2pt plus 1pt minus 1pt
itemsep parsep}}

newcountaucount
newcountoriginalaucount
newdimenauwidth
auwidth=textwidth
newdimenauskip
newcountauskipcount
newdimenauskip
globalauskip=1pc
newdimenallauboxes
allauboxes=auwidth
newtoksaddauthors
newcountaddauflag
globaladdauflag=0 %Haven't shown additional authors yet

newtokssubtitletext
gdefsubtitle#1{subtitletext={#1}}

gdefadditionalauthors#1{addauthors={#1}}

gdefnumberofauthors#1{globalaucount=#1
ifnumaucount>3globaloriginalaucount=aucount globalaucount=3fi %g}  % 3 OK - Gerry March 2007
globalauskipcount=aucountglobaladvanceauskipcount by 1
globalmultiplyauskipcount by 2
globalmultiplyauskip by auskipcount
globaladvanceauwidth by -auskip
globaldivideauwidth by aucount}

% and was modified to count the number of authors.  GKMT 12 Aug 1999
defalignauthor{%                  % begin{tabular}
end{tabular}%
  begin{tabular}[t]{p{auwidth}}centering}%

%  *** 注意 *** 注意 *** 注意 *** 注意 ***
%  如果你有 "字体问题",那么你可能需要改变这些字体,例如用 "alarb "代替 "alarbd".
%  Gerry Murray 11/11/1999
%  *** 或者 ** comment out block A and activate block B or vice versa.
% **********************************************
%
%  -- Start of block A -- (Type 1 或 Truetype fonts)
%newfont{secfnt}{timesbd at 12pt} % was timenrb originally - now is timesbd
%newfont{secit}{timesbi at 12pt}    Jan 00 gkmt
%newfont{subsecfnt}{timesi at 11pt} % was timenrri originally - now is timesi
%newfont{subsecit}{timesbi at 11pt} % 13 Jan 00 gkmt -- was times changed to timesbi gm 2/4/2000
%                         % because "normal" is italic, "italic" is Roman
%newfont{ttlfnt}{arialbd at 18pt} % was arialb originally - now is arialbd
%newfont{ttlit}{arialbi at 18pt}    % 13 Jan 00 gkmt
%newfont{subttlfnt}{arial at 14pt} % was arialr originally - now is arial
%newfont{subttlit}{ariali at 14pt} % 13 Jan 00 gkmt
%newfont{subttlbf}{arialbd at 14pt}  % 13 Jan 00 gkmt
%newfont{aufnt}{arial at 12pt} % was arialr originally - now is arial
%newfont{auit}{ariali at 12pt} % 13 Jan 00 gkmt
%newfont{affaddr}{arial at 10pt} % was arialr originally - now is arial
%newfont{affaddrit}{ariali at 10pt}  Jan 00 gkmt
%newfont{eaddfnt}{arial at 12pt} % was arialr originally - now is arial
%newfont{ixpt}{times at 10pt} % was timenrr originally - now is times %% Adjusted for 10pt
%newfont{confname}{timesi at 8pt} % was timenrri - now is timesi
%newfont{crnotice}{times at 8pt} % was timenrr originally - now is times
%newfont{ninept}{times at 10pt} % was timenrr originally - now is times %% Adjusted for 10pt

% *********************************************
%  -- End of block A --
%
%
% -- Start of block B -- UPDATED FONT NAMES
% *********************************************
% Gerry Murray 11/30/2006
% *********************************************
newfont{secfnt}{ptmb8t at 12pt}
newfont{secit}{ptmbi8t at 12pt}     Jan 00 gkmt
newfont{subsecfnt}{ptmri8t at 11pt}
newfont{subsecit}{ptmbi8t at 11pt}  % 
newfont{ttlfnt}{phvb8t at 18pt}
newfont{ttlit}{phvbo8t at 18pt}    % GM 2/4/2000
newfont{subttlfnt}{phvr8t at 14pt}
newfont{subttlit}{phvro8t at 14pt} % GM 2/4/2000
newfont{subttlbf}{phvb8t at 14pt}  % 13 Jan 00 gkmt
newfont{aufnt}{phvr8t at 12pt}
newfont{auit}{phvro8t at 12pt}     % GM 2/4/2000
newfont{affaddr}{phvr8t at 10pt}
newfont{affaddrit}{phvro8t at 10pt} % GM 2/4/2000
newfont{eaddfnt}{phvr8t at 12pt}
newfont{ixpt}{ptmr8t at 10pt}  %% Adjusted for 10pt
newfont{confname}{ptmri8t at 8pt}
newfont{crnotice}{ptmr8t at 8pt}
newfont{ninept}{ptmr8t at 10pt} %% Adjusted for 10pt
%                                              
% -- End of block B --

%defemail#1{{{eaddfnt{vskip 4pt#1}}}}
% 如果我们有一个电子邮件,在一个 "shared affiliation"内,那么我们需要以下内容来代替
defemail#1{{{eaddfnt{par #1}}}}       % revised  - GM - 11/30/2006

defaddauthorsection{ifnumoriginalaucount>6  % was 3 - Gerry March 2007
    section{Additional Authors}theaddauthors
  fi}

newcountsavesection
newcountsectioncntr
globalsectioncntr=1

setcounter{secnumdepth}{3}

defappendix{par
section*{APPENDIX}
setcounter{section}{0}
 setcounter{subsection}{0}
 defthesection{Alph{section}} }

leftmargini 22.5pt
leftmarginii 19.8pt    % > labelsep   width of '(m)'
leftmarginiii 16.8pt   % > labelsep   width of 'vii.'
leftmarginiv 15.3pt    % > labelsep   width of 'M.'
leftmarginv 9pt
leftmarginvi 9pt

leftmarginleftmargini
labelsep 4.5pt
labelwidthleftmarginiadvancelabelwidth-labelsep

def@listI{leftmarginleftmargini parsep 3.6pt plus 2pt minus 1pt%
topsep 7.2pt plus 2pt minus 4pt%
itemsep 3.6pt plus 2pt minus 1pt}

let@listi@listI
@listi

def@listii{leftmarginleftmarginii
   labelwidthleftmarginiiadvancelabelwidth-labelsep
   topsep 3.6pt plus 2pt minus 1pt
   parsep 1.8pt plus 0.9pt minus 0.9pt
   itemsep parsep}

def@listiii{leftmarginleftmarginiii
    labelwidthleftmarginiiiadvancelabelwidth-labelsep
    topsep 1.8pt plus 0.9pt minus 0.9pt
    parsep z@ partopsep 1pt plus 0pt minus 1pt
    itemsep topsep}

def@listiv{leftmarginleftmarginiv
     labelwidthleftmarginivadvancelabelwidth-labelsep}

def@listv{leftmarginleftmarginv
     labelwidthleftmarginvadvancelabelwidth-labelsep}

def@listvi{leftmarginleftmarginvi
     labelwidthleftmarginviadvancelabelwidth-labelsep}

deflabelenumi{theenumi.}
deftheenumi{arabic{enumi}}

deflabelenumii{(theenumii)}
deftheenumii{alph{enumii}}
defp@enumii{theenumi}

deflabelenumiii{theenumiii.}
deftheenumiii{roman{enumiii}}
defp@enumiii{theenumi(theenumii)}

deflabelenumiv{theenumiv.}
deftheenumiv{Alph{enumiv}}
defp@enumiv{p@enumiiitheenumiii}

deflabelitemi{$bullet$}
deflabelitemii{bf --}
deflabelitemiii{$ast$}
deflabelitemiv{$cdot$}

defverse{let\=@centercr
  list{}{itemsepz@ itemindent -1.5emlistparindent itemindent
          rightmarginleftmarginadvanceleftmargin 1.5em}item[]}
letendverseendlist

defquotation{list{}{listparindent 1.5em
    itemindentlistparindent
    rightmarginleftmargin parsep 0pt plus 1pt}item[]}
letendquotation=endlist

defquote{list{}{rightmarginleftmargin}item[]}
letendquote=endlist

defdescriptionlabel#1{hspacelabelsep bf #1}
defdescription{list{}{labelwidthz@ itemindent-leftmargin
       letmakelabeldescriptionlabel}}

letenddescriptionendlist

deftheequation{arabic{equation}}

arraycolsep 4.5pt   % Half the space between columns in an array environment.
tabcolsep 5.4pt    % Half the space between columns in a tabular environment.
arrayrulewidth .5pt % Width of rules in array and tabular environment. % (was .4) updated Gerry March 20 2007
doublerulesep 1.8pt % Space between adjacent rules in array or tabular env.

tabbingsep labelsep   % Space used by the ' command.  (See LaTeX manual.)

skip@mpfootins =skipfootins

fboxsep =2.7pt      % Space left between box and text by fbox and framebox.
fboxrule =.5pt      % Width of rules in box made by fbox and framebox. % (was .4) updated Gerry March 20 2007

defthepart{Roman{part}} % Roman numeral part numbers.
defthesection       {arabic{section}}
defthesubsection    {thesection.arabic{subsection}}
%defthesubsubsection {thesubsection.arabic{subsubsection}} % GM 7/30/2002
%deftheparagraph     {thesubsubsection.arabic{paragraph}}  % GM 7/30/2002
defthesubparagraph  {theparagraph.arabic{subparagraph}}

def@pnumwidth{1.55em}
def@tocrmarg {2.55em}
def@dotsep{4.5}
setcounter{tocdepth}{3}

%deftableofcontents{@latexerr{tableofcontents: Tables of contents are not
%  allowed in the `acmconf' document style.}@eha}

deftableofcontents{ClassError{%
    stringtableofcontentsspace is not allowed in the `acmconf' document	% January 2008
    style}@eha}

defl@part#1#2{addpenalty{@secpenalty}
   addvspace{2.25em plus 1pt}  % space above part line
   begingroup
   @tempdima 3em       % width of box holding part number, used by
     parindent z@ rightskip @pnumwidth      %% numberline
     parfillskip -@pnumwidth
     {large bf        % set line in large boldface
     leavevmode        % TeX command to enter horizontal mode.
     #1hfil hbox to@pnumwidth{hss #2}}par
     nobreak           % Never break after part entry
   endgroup}

defl@section#1#2{addpenalty{@secpenalty} % good place for page break
   addvspace{1.0em plus 1pt}   % space above toc entry
   @tempdima 1.5em             % width of box holding section number
   begingroup
    parindent  z@ rightskip @pnumwidth
     parfillskip -@pnumwidth
     bf                        % Boldface.
     leavevmode                % TeX command to enter horizontal mode.
      advanceleftskip@tempdima %% added 5 Feb 88 to conform to
      hskip -leftskip           %% 25 Jan 88 change to numberline
     #1nobreakhfil nobreakhbox to@pnumwidth{hss #2}par
   endgroup}


defl@subsection{@dottedtocline{2}{1.5em}{2.3em}}
defl@subsubsection{@dottedtocline{3}{3.8em}{3.2em}}
defl@paragraph{@dottedtocline{4}{7.0em}{4.1em}}
defl@subparagraph{@dottedtocline{5}{10em}{5em}}

%deflistoffigures{@latexerr{listoffigures: Lists of figures are not
%  allowed in the `acmconf' document style.}@eha}

deflistoffigures{ClassError{%
    stringlistoffiguresspace is not allowed in the `acmconf' document	% January 2008
    style}@eha}

defl@figure{@dottedtocline{1}{1.5em}{2.3em}}

%deflistoftables{@latexerr{listoftables: Lists of tables are not
%  allowed in the `acmconf' document style.}@eha}
%letl@tablel@figure

deflistoftables{ClassError{%
    stringlistoftablesspace is not allowed in the `acmconf' document		% January 2008
    style}@eha}
 letl@tablel@figure

deffootnoterule{kern-3p@
  hrule width .5columnwidth   % (was .4) updated Gerry March 20 2007
  kern 2.6p@}                 % The hrule has default height of .4pt % (was .4) updated Gerry March 20 2007
% ------
longdef@makefntext#1{noindent 
%hbox to .5em{hss$^{@thefnmark}$}#1}   % original
hbox to .5em{hsstextsuperscript{@thefnmark}}#1}  % C. Clifton / GM Oct. 2nd. 2002
% -------

longdef@maketntext#1{noindent
#1}

longdef@maketitlenotetext#1#2{noindent
            hbox to 1.8em{hss$^{#1}$}#2}

setcounter{topnumber}{2}
deftopfraction{.7}
setcounter{bottomnumber}{1}
defbottomfraction{.3}
setcounter{totalnumber}{3}
deftextfraction{.2}
deffloatpagefraction{.5}
setcounter{dbltopnumber}{2}
defdbltopfraction{.7}
defdblfloatpagefraction{.5}

%
longdef@makecaption#1#2{
   vskip baselineskip
   setbox@tempboxahbox{textbf{#1: #2}}
   ifdim wd@tempboxa >hsize % IF longer than one line:
       textbf{#1: #2}par               %   THEN set as ordinary paragraph.
     else                      %   ELSE  center.
       hbox tohsize{hfilbox@tempboxahfil}par
   fi}

%

longdef@makecaption#1#2{
   vskip 10pt
   setbox@tempboxahbox{textbf{#1: #2}}
   ifdim wd@tempboxa >hsize % IF longer than one line:
       textbf{#1: #2}par                %   THEN set as ordinary paragraph.
     else                      %   ELSE  center.
       hbox tohsize{hfilbox@tempboxahfil}
   fi}

@ifundefined{figure}{newcounter {figure}} % this is for LaTeX2e

deffps@figure{tbp}
defftype@figure{1}
defext@figure{lof}
deffnum@figure{Figure thefigure}
deffigure{@float{figure}}
%letendfigureend@float
defendfigure{end@float} 		% Gerry January 2008
@namedef{figure*}{@dblfloat{figure}}
@namedef{endfigure*}{end@dblfloat}

@ifundefined{table}{newcounter {table}} % this is for LaTeX2e

deffps@table{tbp}
defftype@table{2}
defext@table{lot}
deffnum@table{Table thetable}
deftable{@float{table}}
%letendtableend@float
defendtable{end@float}		% Gerry January 2008
@namedef{table*}{@dblfloat{table}}
@namedef{endtable*}{end@dblfloat}

newtokstitleboxnotes
newcounttitleboxnoteflag

defmaketitle{par
 begingroup
   defthefootnote{fnsymbol{footnote}}
   def@makefnmark{hbox
       to 0pt{$^{@thefnmark}$hss}}
     twocolumn[@maketitle]
@thanks
 endgroup
 setcounter{footnote}{0}
 letmaketitlerelax
 let@maketitlerelax
 gdef@thanks{}gdef@author{}gdef@title{}gdef@subtitle{}letthanksrelax
% @copyrightspace %% Adjusted for 10pt submission format
}

%% CHANGES ON NEXT LINES
newifif@ll % to record which version of LaTeX is in use

expandafterifxcsname LaTeXeendcsnamerelax % LaTeX2.09 is used
else% LaTeX2e is used, so set ll to true
global@lltrue
fi

if@ll
  NeedsTeXFormat{LaTeX2e}
  ProvidesClass{sig-alternate} [2009/04/22 - V2.4 - based on acmproc.cls V1.3 <Nov. 30 '99>]
  RequirePackage{latexsym}% QUERY: are these two really needed?
  letdooptionsProcessOptions
else
  letdooptions@options
fi
%% END CHANGES

def@height{height}
def@width{width}
def@minus{minus}
def@plus{plus}
defhb@xt@{hbox to}
newifif@faircopy
@faircopyfalse
defds@faircopy{@faircopytrue}

defds@preprint{@faircopyfalse}

@twosidetrue
@mparswitchtrue
defds@draft{overfullrule 5p@}
%% CHANGE ON NEXT LINE
dooptions

lineskip p@
normallineskip p@
defbaselinestretch{1}
def@ptsize{0} %needed for amssymbols.sty

%% CHANGES ON NEXT LINES
if@ll% allow use of old-style font change commands in LaTeX2e
@maxdepthmaxdepth
%
DeclareOldFontCommand{rm}{nineptrmfamily}{mathrm}
DeclareOldFontCommand{sf}{normalfontsffamily}{mathsf}
DeclareOldFontCommand{tt}{normalfontttfamily}{mathtt}
DeclareOldFontCommand{bf}{normalfontbfseries}{mathbf}
DeclareOldFontCommand{it}{normalfontitshape}{mathit}
DeclareOldFontCommand{sl}{normalfontslshape}{@nomathsl}
DeclareOldFontCommand{sc}{normalfontscshape}{@nomathsc}
DeclareRobustCommand*{cal}{@fontswitch{relax}{mathcal}}
DeclareRobustCommand*{mit}{@fontswitch{relax}{mathnormal}}
fi
%
if@ll
 renewcommand{rmdefault}{cmr}  % was 'ttm'
% 注意! 我还发现'mvr'工作得特别好。
% Gerry - October 1999
% 你可能需要修改你的LV1times.fd文件,使sc被映射到cmcsc - -for smallcaps -- 也就是如果你决定将上面的{cmr}改为{times}。(不推荐)
  renewcommand{@ptsize}{}
  renewcommand{normalsize}{%
%    @setfontsizenormalsize@ixpt{10.5p@}%ninept%
    @setfontsizenormalsize@xpt{12p@}%tenpt% %% Adjusted for 10pt
    abovedisplayskip 6p@ @plus2p@ @minusp@
    belowdisplayskip abovedisplayskip
    abovedisplayshortskip 6p@ @minus 3p@
    belowdisplayshortskip 6p@ @minus 3p@
    let@listi@listI
  }
else
  def@normalsize{%changed next to 9 from 10 %% Adjusted for 10pt
%    @setsizenormalsize{10p@}ixpt@ixpt
    @setsizenormalsize{10p@}xpt@xpt %% Adjusted for 10pt
   abovedisplayskip 6p@ @plus2p@ @minusp@
    belowdisplayskip abovedisplayskip
    abovedisplayshortskip 6p@ @minus 3p@
    belowdisplayshortskip 6p@ @minus 3p@
    let@listi@listI
  }%
fi
if@ll
  newcommandscriptsize{@setfontsizescriptsize@viipt{8p@}}
  newcommandtiny{@setfontsizetiny@vpt{6p@}}
  newcommandlarge{@setfontsizelarge@xiipt{14p@}}
  newcommandLarge{@setfontsizeLarge@xivpt{18p@}}
  newcommandLARGE{@setfontsizeLARGE@xviipt{20p@}}
  newcommandhuge{@setfontsizehuge@xxpt{25p@}}
  newcommandHuge{@setfontsizeHuge@xxvpt{30p@}}
else
  defscriptsize{@setsizescriptsize{8p@}viipt@viipt}
  deftiny{@setsizetiny{6p@}vpt@vpt}
  deflarge{@setsizelarge{14p@}xiipt@xiipt}
  defLarge{@setsizeLarge{18p@}xivpt@xivpt}
  defLARGE{@setsizeLARGE{20p@}xviipt@xviipt}
  defhuge{@setsizehuge{25p@}xxpt@xxpt}
  defHuge{@setsizeHuge{30p@}xxvpt@xxvpt}
fi
normalsize

% make aubox hsize/number of authors up to 3, less gutter
% then showbox gutter showbox gutter showbox -- GKMT Aug 99
newbox@acmtitlebox
def@maketitle{newpage
 null
 setbox@acmtitleboxvbox{%
baselineskip 20pt
vskip 2em                   % Vertical space above title.
   begin{center}
    {ttlfnt @titlepar}       % Title set in 18pt Helvetica (Arial) bold size.
    vskip 1.5em                % Vertical space after title.
%This should be the subtitle.
{subttlfnt thesubtitletextpar}vskip 1.25em%fi
    {baselineskip 16ptaufnt   % each author set in 12 pt Arial, in a
     lineskip .5em             % tabular environment
     begin{tabular}[t]{c}@author
     end{tabular}par}
    vskip 1.5em               % Vertical space after author.
   end{center}}
 dimen0=ht@acmtitlebox
 advancedimen0 by -12.75pcrelax % Increased space for title box -- KBT
 unvbox@acmtitlebox
 ifdimdimen0<0.0ptrelaxvskip-dimen0fi}


newcounttitlenotecount
globaltitlenotecount=0
newtokstntoks
newtokstntokstwo
newtokstntoksthree
newtokstntoksfour
newtokstntoksfive

defabstract{
ifnumtitlenotecount>0 % was =1
    insertfootins{%
    reset@fontfootnotesize
        interlinepenaltyinterfootnotelinepenalty
        splittopskipfootnotesep
        splitmaxdepth dpstrutbox floatingpenalty @MM
        hsizecolumnwidth @parboxrestore
        protected@edef@currentlabel{%
        }%
        color@begingroup
ifnumtitlenotecount=1
      @maketntext{%
         raisebox{4pt}{$ast$}rulez@footnotesepignorespacesthetntoks@finalstrutstrutbox}%
fi
ifnumtitlenotecount=2
      @maketntext{%
      raisebox{4pt}{$ast$}rulez@footnotesepignorespacesthetntokspar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$dagger$}rulez@footnotesepignorespacesthetntokstwo@finalstrutstrutbox}%
fi
ifnumtitlenotecount=3
      @maketntext{%
         raisebox{4pt}{$ast$}rulez@footnotesepignorespacesthetntokspar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$dagger$}rulez@footnotesepignorespacesthetntokstwopar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$ddagger$}rulez@footnotesepignorespacesthetntoksthree@finalstrutstrutbox}%
fi
ifnumtitlenotecount=4
      @maketntext{%
         raisebox{4pt}{$ast$}rulez@footnotesepignorespacesthetntokspar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$dagger$}rulez@footnotesepignorespacesthetntokstwopar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$ddagger$}rulez@footnotesepignorespacesthetntoksthreepar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$S$}rulez@footnotesepignorespacesthetntoksfour@finalstrutstrutbox}%
fi
ifnumtitlenotecount=5
      @maketntext{%
         raisebox{4pt}{$ast$}rulez@footnotesepignorespacesthetntokspar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$dagger$}rulez@footnotesepignorespacesthetntokstwopar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$ddagger$}rulez@footnotesepignorespacesthetntoksthreepar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$S$}rulez@footnotesepignorespacesthetntoksfourpar@finalstrutstrutbox}%
@maketntext{%
         raisebox{4pt}{$P$}rulez@footnotesepignorespacesthetntoksfive@finalstrutstrutbox}%
fi
   color@endgroup} %g}
fi
setcounter{footnote}{0}
%section*{ABSTRACT}normalsize%ninept
section*{ABSTRACT}ninept%ninept %% Adjusted for 10pt
}

defendabstract{if@twocolumnelseendquotationfi}

defkeywords{if@twocolumn
section*{Keywords}
else small
quotation
fi}

defterms{if@twocolumn
section*{General Terms}
else small
quotation
fi}

% -- Classification needs to be a bit smart due to optionals - Gerry/Georgia November 2nd. 1999
newcountcatcount
globalcatcount=1

defcategory#1#2#3{%
ifnumcatcount=1
section*{Categories and Subject Descriptors}
advancecatcount by 1else{unskip; }fi
    @ifnextchar [{@category{#1}{#2}{#3}}{@category{#1}{#2}{#3}[]}%
}

def@category#1#2#3[#4]{%
    begingroup
        letandrelax
            #1 [textbf{#2}]%
            if!#4!%
                if!#3!else : #3fi
            else
                :space
                if!#3!else #3kernz@---hskipz@fi
                textit{#4}%
            fi
    endgroup
}
%

%%% 本节(由KBT编写)通过创建一张图片来处理第一页左栏左下角的1英寸方框,
%%% 并在底部插入预定义的字符串(用负位移来抵消为不存在的标题分配的空间)。
%%%
%newtokscopyrightnotice  %% Adjusted for 10pt submission format
%defftype@copyrightbox{8}
%def@copyrightspace{
%@float{copyrightbox}[b]
%begin{center}
%setlength{unitlength}{1pc}
%begin{picture}(20,6) %Space for copyright notice
%put(0,-0.95){crnotice{@toappear}}
%end{picture}
%end{center}
%end@float}

def@toappear{} % Default setting blank - commands below change this.
%longdeftoappear#1{def@toappear{parbox[b]{20pc}{baselineskip 9pt#1}}}
%deftoappearbox#1{def@toappear{raisebox{5pt}{framebox[20pc]{parbox[b]{19pc}{#1}}}}}

newtoksconf
newtoksconfinfo
defconferenceinfo#1#2{globalconf={#1}globalconfinfo{#2}}


%defmarginpar{@latexerr{The marginpar command is not allowed in the
%  `acmconf' document style.}@eha}

defmarginpar{ClassError{%
    stringmarginparspace is not allowed in the `acmconf' document		% January 2008
    style}@eha}

mark{{}{}}     % Initializes TeX's marks

deftoday{ifcasemonthor
  Januaryor Februaryor Marchor Aprilor Mayor Juneor
  Julyor Augustor Septemberor Octoberor Novemberor Decemberfi
  spacenumberday, numberyear}

def@begintheorem#1#2{%
    parskip 0pt % GM July 2000 (for tighter spacing)
    trivlist
    item[%
        hskip 10p@
        hskip labelsep
        {{sc #1}hskip 5p@relax#2.}%
    ]
    it
}
def@opargbegintheorem#1#2#3{%
    parskip 0pt % GM July 2000 (for tighter spacing)
    trivlist
    item[%
        hskip 10p@
        hskip labelsep
        {sc #1 #2             % This mod by Gerry to enumerate corollaries
   setbox@tempboxahbox{(#3)}  % and bracket the 'corollary title'
        ifdim wd@tempboxa>z@ % and retain the correct numbering of e.g. theorems
            hskip 5p@relax    % if they occur 'around' said corollaries.
            box@tempboxa       % Gerry - Nov. 1999.
        fi.}%
    ]
    it
}
newifif@qeded
global@qededfalse

% -- original
%defproof{%
%  vspace{-parskip} % GM July 2000 (for tighter spacing)
%    global@qededfalse
%    @ifnextchar[{@xproof}{@proof}%
%}
% -- end of original

% (JSS) Fix for vertical spacing bug - Gerry Murray July 30th. 2002
defproof{%
vspace{-lastskip}vspace{-parsep}penalty-51%
global@qededfalse
@ifnextchar[{@xproof}{@proof}%
}

defendproof{%
    if@qededelseqedfi
    endtrivlist
}
def@proof{%
    trivlist
    item[%
        hskip 10p@
        hskip labelsep
        {sc Proof.}%
    ]
    ignorespaces
}
def@xproof[#1]{%
    trivlist
    item[hskip 10p@hskip labelsep{sc Proof #1.}]%
    ignorespaces
}
defqed{%
    unskip
    kern 10p@
    begingroup
        unitlengthp@
        linethickness{.4p@}%
        framebox(6,6){}%
    endgroup
    global@qededtrue
}

defnewdef#1#2{%
    expandafter@ifdefinablecsname #1endcsname
        {@definecounter{#1}%
         expandafterxdefcsname the#1endcsname{@thmcounter{#1}}%
         global@namedef{#1}{@defthm{#1}{#2}}%
         global@namedef{end#1}{@endtheorem}%
    }%
}
def@defthm#1#2{%
    refstepcounter{#1}%
    @ifnextchar[{@ydefthm{#1}{#2}}{@xdefthm{#1}{#2}}%
}
def@xdefthm#1#2{%
    @begindef{#2}{csname the#1endcsname}%
    ignorespaces
}
def@ydefthm#1#2[#3]{%
    trivlist
    item[%
        hskip 10p@
        hskip labelsep
        {it #2%
%         savebox@tempboxa{#3}%
         saveb@x@tempboxa{#3}%		% January 2008
         ifdim wd@tempboxa>z@
             box@tempboxa
         fi.%
        }]%
    ignorespaces
}
def@begindef#1#2{%
    trivlist
    item[%
        hskip 10p@
        hskip labelsep
        {it #1 rm #2.}%
    ]%
}
deftheequation{arabic{equation}}

newcounter{part}
newcounter{section}
newcounter{subsection}[section]
newcounter{subsubsection}[subsection]
newcounter{paragraph}[subsubsection]
defthepart{Roman{part}}
defthesection{arabic{section}}
defthesubsection{thesection.arabic{subsection}}
defthesubsubsection{thesubsection.arabic{subsubsection}} %removed subsecfnt 29 July 2002 gkmt
deftheparagraph{thesubsubsection.arabic{paragraph}} %removed subsecfnt 29 July 2002 gkmt
newifif@uchead
@ucheadfalse

%% CHANGES: NEW NOTE
%% 注意:可以使用下面的旧式字体命令,因为它们已经为LaTeX2e适当地重新定义了。
%% END CHANGES
setcounter{secnumdepth}{3}
defpart{%
    @startsection{part}{9}{z@}{-10p@ @plus -4p@ @minus -2p@}
        {4p@}{normalsize@ucheadtrue}%
}
defsection{%
    @startsection{section}{1}{z@}{-10p@ @plus -4p@ @minus -2p@}% GM
    {4p@}{baselineskip 14ptsecfnt@ucheadtrue}%
}

defsubsection{%
    @startsection{subsection}{2}{z@}{-8p@ @plus -2p@ @minus -p@}
    {4p@}{secfnt}%
}
defsubsubsection{%
    @startsection{subsubsection}{3}{z@}{-8p@ @plus -2p@ @minus -p@}%
    {4p@}{subsecfnt}%
}
%defparagraph{%
%    vskip 12pt@startsection{paragraph}{3}{z@}{6p@ @plus p@}% original
%    {-5p@}{subsecfnt}%
%}
%  如果希望对章节、分节和小节进行编号,但不希望对段落进行编号,通常将secnumepth设置为3。
%  为此,必须在定义中正确给出段落的 "depth"("4 "而不是 "3 "作为@startsection的第二个参数)。
defparagraph{%
    vskip 12pt@startsection{paragraph}{4}{z@}{6p@ @plus p@}%    % GM and Wolfgang May - 11/30/06
    {-5p@}{subsecfnt}%
}
let@period=.
def@startsection#1#2#3#4#5#6{%
        if@noskipsec  %gkmt, 11 aug 99
        globallet@period@empty
        leavevmode
        globallet@period.%
    fi
      par %
    @tempskipa #4relax
    @afterindenttrue
    ifdim @tempskipa <z@
        @tempskipa -@tempskipa
        @afterindentfalse
    fi
    if@nobreak
    everypar{}%
    else
        addpenalty@secpenalty
        addvspace@tempskipa
    fi
parskip=0pt % GM July 2000 (non numbered) section heads
    @ifstar
        {@ssect{#3}{#4}{#5}{#6}}
        {@dblarg{@sect{#1}{#2}{#3}{#4}{#5}{#6}}}%
}
def@sect#1#2#3#4#5#6[#7]#8{%
    ifnum #2>c@secnumdepth
        let@svsec@empty
    else
        refstepcounter{#1}%
        edef@svsec{%
            begingroup
                %ifnum#2>2 noexpandrm fi % changed to next 29 July 2002 gkmt
            ifnum#2>2 noexpand#6 fi
                csname the#1endcsname
            endgroup
            ifnum #2=1relax .fi
            hskip 1em
        }%
    fi
    @tempskipa #5relax
    ifdim @tempskipa>z@
        begingroup
            #6relax
            @hangfrom{hskip #3relax@svsec}%
            begingroup
                interlinepenalty @M
                if@uchead
                    uppercase{#8}%
                else
                    #8%
                fi
                par
            endgroup
        endgroup
        csname #1markendcsname{#7}%
        vskip -12pt  %gkmt, 11 aug 99 and GM July 2000 (was -14) - numbered section head spacing
addcontentsline{toc}{#1}{%
            ifnum #2>c@secnumdepth else
                protectnumberline{csname the#1endcsname}%
            fi
            #7%
        }%
    else
        def@svsechd{%
            #6%
            hskip #3relax
            @svsec
            if@uchead
                uppercase{#8}%
            else
                #8%
            fi
            csname #1markendcsname{#7}%
            addcontentsline{toc}{#1}{%
                ifnum #2>c@secnumdepth else
                    protectnumberline{csname the#1endcsname}%
                fi
                #7%
            }%
        }%
    fi
    @xsect{#5}hskip 1pt
    par
}
def@xsect#1{%
    @tempskipa #1relax
    ifdim @tempskipa>z@
        par
        nobreak
        vskip @tempskipa
        @afterheading
    else
        global@nobreakfalse
        global@noskipsectrue
        everypar{%
            if@noskipsec
                global@noskipsecfalse
                clubpenalty@M
                hskip -parindent
                begingroup
                    @svsechd
                    @period
                endgroup
                unskip
                @tempskipa #1relax
                hskip -@tempskipa
            else
                clubpenalty @clubpenalty
                everypar{}%
            fi
        }%
    fi
    ignorespaces
}
def@trivlist{%
    @topsepaddtopsep
    if@noskipsec
        globallet@period@empty
        leavevmode
        globallet@period.%
    fi
    ifvmode
        advance@topsepaddpartopsep
    else
        unskip
        par
    fi
    if@inlabel
        @noparitemtrue
        @noparlisttrue
    else
        @noparlistfalse
        @topsep@topsepadd
    fi
    advance@topsep parskip
    leftskipz@skip
    rightskip@rightskip
    parfillskip@flushglue
    @setpar{if@newlistelse{@@par}fi}
    global@newlisttrue
    @outerparskipparskip
}

%%% 实际上,'abbrev'作为默认值就可以了。
%%% Bibliography style.

typeout{Using 'Abbrev' bibliography style}
newcommandbibyear[2]{%
    unskipquadignorespaces#1unskip
    if#2..quad else quad#2 fi
}
newcommand{bibemph}[1]{{em#1}}
newcommand{bibemphic}[1]{{em#1/}}
newcommand{bibsc}[1]{{sc#1}}
def@normalcite{%
    def@cite##1##2{[##1if@tempswa , ##2fi]}%
}
def@citeNB{%
    def@cite##1##2{##1if@tempswa , ##2fi}%
}
def@citeRB{%
    def@cite##1##2{##1if@tempswa , ##2fi]}%
}
defstart@cite#1#2{%
    edefciteauthoryear##1##2##3{%
        ###1%
        ifnum#2=z@ else ###2fi
    }%
    ifnum#1=thr@@
        let@@cite@citeyear
    else
        let@@cite@citenormal
    fi
    @ifstar{@citeNB@@cite}{@normalcite@@cite}%
}
%defcite{start@cite23}
DeclareRobustCommandcite{start@cite23}		% January 2008
defciteNP{cite*}					% No Parentheses e.g. 5
%defciteA{start@cite10}
DeclareRobustCommandciteA{start@cite10}		% January 2008
defciteANP{citeA*}
%defshortcite{start@cite23}				
DeclareRobustCommandshortcite{start@cite23}		% January 2008
defshortciteNP{shortcite*}
%defshortciteA{start@cite20}
DeclareRobustCommandshortciteA{start@cite20}		% January 2008
defshortciteANP{shortciteA*}
%defciteyear{start@cite30}
DeclareRobustCommandciteyear{start@cite30}		% January 2008
defciteyearNP{citeyear*}
%defciteN{%
DeclareRobustCommandciteN{%				% January 2008
    @citeRB
    defciteauthoryear##1##2##3{##1 [##3%
        defreserved@a{##1}%
        defciteauthoryear####1####2####3{%
            defreserved@b{####1}%
            ifxreserved@areserved@b
                ####3%
            else
                errmessage{Package acmart Error: author mismatch
                         in stringciteN^^J^^J%
                    See the acmart package documentation for explanation}%
            fi
        }%
    }%
    @ifstar@citeyear@citeyear
}
%defshortciteN{%
DeclareRobustCommandshortciteN{%			% January 2008
    @citeRB
    defciteauthoryear##1##2##3{##2 [##3%
        defreserved@a{##2}%
        defciteauthoryear####1####2####3{%
            defreserved@b{####2}%
            ifxreserved@areserved@b
                ####3%
            else
                errmessage{Package acmart Error: author mismatch
                         in stringshortciteN^^J^^J%
                    See the acmart package documentation for explanation}%
            fi
        }%
    }%
    @ifstar@citeyear@citeyear  % GM July 2000
}

def@citenormal{%
    @ifnextchar [{@tempswatrue@citex;}%
% original                 {@tempswafalse@citex,[]}% was ; Gerry 2/24/00
{@tempswafalse@citex[]}%  	% GERRY FIX FOR BABEL 3/20/2009
}

def@citeyear{%
    @ifnextchar [{@tempswatrue@citex,}%
% original                  {@tempswafalse@citex,[]}%
{@tempswafalse@citex[]}%	%  GERRY FIX FOR BABEL 3/20/2009
}

def@citex#1[#2]#3{%
    let@citea@empty
    @cite{%
        @for@citeb:=#3do{%
            @citea
% original            def@citea{#1 }%
            def@citea{#1, }% 	% GERRY FIX FOR BABEL 3/20/2009 -- SO THAT YOU GET [1, 2] IN THE BODY TEXT
            edef@citeb{expandafter@iden@citeb}%
            if@filesw
                immediatewrite@auxout{stringcitation{@citeb}}%
            fi
            @ifundefined{b@@citeb}{%
                {bf ?}%
                @warning{%
                    Citation `@citeb' on page thepagespace undefined%
                }%
            }%
            {csname b@@citebendcsname}%
        }%
    }{#2}%
}
%let@biblabel@gobble   % Dec. 2008 - Gerry
% ----
def@biblabelnum#1{[#1]} % Gerry's solution #1 - for Natbib -- April 2009
let@biblabel=@biblabelnum  % Gerry's solution #1 - for Natbib -- April 2009
defnewblock{relax} % Gerry Dec. 2008
% ---
newdimenbibindent
setcounter{enumi}{1}
bibindent=0em
defthebibliography#1{% 
ifnumaddauflag=0addauthorsectionglobaladdauflag=1fi
     section[References]{%    <=== OPTIONAL ARGUMENT ADDED HERE
        {References} % was uppercased but this affects pdf bookmarks (SP/GM October 2004)
          {vskip -9pt plus 1pt} % GM Nov. 2006 / GM July 2000 (for somewhat tighter spacing) 
         @mkboth{{refname}}{{refname}}%
     }%
     list{[arabic{enumi}]}{%
         settowidthlabelwidth{[#1]}%
         leftmarginlabelwidth
         advanceleftmarginlabelsep
         advanceleftmarginbibindent
         parsep=0ptitemsep=0pt % GM July 2000  %% Adjusted for 10pt
         itemindent -bibindent
         listparindent itemindent
         usecounter{enumi}
     }%
     letnewblock@empty
     raggedright % GM July 2000
     sloppy
     sfcode`.=1000relax
}


gdefbalancecolumns
{vfilleject
global@colht=textheight
globalht@cclv=textheight
}

newcountcolcntr
globalcolcntr=0
%newboxsavebox
newboxsaveb@x				% January 2008

gdef @makecol {%
globaladvancecolcntr by 1
ifnumcolcntr>2 globalcolcntr=1fi
   ifvoidfootins
     setbox@outputbox box@cclv
   else
     setbox@outputbox vbox{%
boxmaxdepth @maxdepth
       @tempdimadp@cclv
       unvbox @cclv
       vskip-@tempdima
       vskip skipfootins
       color@begingroup
         normalcolor
         footnoterule
         unvbox footins
       color@endgroup
       }%
   fi
   xdef@freelist{@freelist@midlist}%
   global let @midlist @empty
   @combinefloats
   ifvbox@kludgeins
     @makespecialcolbox
   else
     setbox@outputbox vbox to@colht {%
@texttop
       dimen@ dp@outputbox
       unvbox @outputbox
   vskip -dimen@
       @textbottom
       }%
   fi
   global maxdepth @maxdepth
}
deftitlenote{@ifnextchar[@xtitlenote{stepcounter@mpfn
globaladvancetitlenotecount by 1
ifnumtitlenotecount=1
    raisebox{10pt}{$ast$}  %% Adjusted for 10pt
fi
ifnumtitlenotecount=2
    raisebox{10pt}{$dagger$}  %% Adjusted for 10pt
fi
ifnumtitlenotecount=3
    raisebox{10pt}{$ddagger$}  %% Adjusted for 10pt
fi
ifnumtitlenotecount=4
raisebox{10pt}{$S$}  %% Adjusted for 10pt
fi
ifnumtitlenotecount=5
raisebox{10pt}{$P$}  %% Adjusted for 10pt
fi
         @titlenotetext
}}

longdef@titlenotetext#1{insertfootins{%
ifnumtitlenotecount=1globaltntoks={#1}fi
ifnumtitlenotecount=2globaltntokstwo={#1}fi
ifnumtitlenotecount=3globaltntoksthree={#1}fi
ifnumtitlenotecount=4globaltntoksfour={#1}fi
ifnumtitlenotecount=5globaltntoksfive={#1}fi
    reset@fontfootnotesize
    interlinepenaltyinterfootnotelinepenalty
    splittopskipfootnotesep
    splitmaxdepth dpstrutbox floatingpenalty @MM
    hsizecolumnwidth @parboxrestore
    protected@edef@currentlabel{%
    }%
    color@begingroup
   color@endgroup}}

%%%%%%%%%%%%%%%%%%%%%%%%%
ps@plain
baselineskip=11pt
letthepagerelax % For NO page numbers - GM Nov. 30th. 1999 and July 2000
defsetpagenumber#1{globalsetcounter{page}{#1}}
pagenumbering{arabic}  % Arabic page numbers GM July 2000    %% Adjusted for 10pt submission
twocolumn             % Double column.
flushbottom           % Even bottom -- alas, does not balance columns at end of document
%pagestyle{plain}     %% Adjusted for 10pt

% 需要版权年和版权数据是用户可定义的(在.tex文件中)。
% Gerry Nov. 30th. 1999
newtokscopyrtyr
newtoksacmcopyr
newtoksboilerplate
globalacmcopyr={X-XXXXX-XX-X/XX/XX}  % Default - 5/11/2001 *** Gerry
globalcopyrtyr={20XX}                % Default - 3/3/2003 *** Gerry
defCopyrightYear#1{globalcopyrtyr{#1}}
defcrdata#1{globalacmcopyr{#1}}
defpermission#1{globalboilerplate{#1}}
%
globalboilerplate={Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page.  To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee.}
newtokscopyrightetc
globalcopyrightetc{Copyright thecopyrtyr ACM theacmcopyr ...$10.00}
%toappear{theboilerplatepar    %% Adjusted for 10pt
%{confname{theconf}} theconfinfopar thecopyrightetc.}
%DeclareFixedFont{altcrnotice}{OT1}{tmr}{m}{n}{8}  % << patch needed for accenting e.g. Montreal - Gerry, May 2007
%DeclareFixedFont{altconfname}{OT1}{tmr}{m}{it}{8}  % << patch needed for accenting in italicized confname - Gerry, May 2007
%
%{altconfname{{theconf}}} {altcrnoticetheconfinfopar} thecopyrightetc.}  % << Gerry, May 2007
%
% 以下部分(即3个.sty内含物)是在2007年5月增加的,以解决许多作者在重音方面的问题。有时,重音会出现,但字母-字符会是不同的字体。
% 相反,letter-character的字体将是正确的,但是,例如,一个 "bar"会叠加在字符上,而不是,例如,一个unlaut/diaresis。有时,
% letter-character根本就不会出现。直接使用[T1]{fontenc}不是一个选项,因为这导致99%的作者 "produce"一个Type-3(位图)的 PDF文件--对生产来说毫无用处。
%
% 为了实现正确的(字体)accenting ,我们需要这些软件包成为.cls文件的一部分,即 "ae"、"aecompl "和 "aeguil"。
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%% This is file `ae.sty' 
deffileversion{1.3}
deffiledate{2001/02/12}
NeedsTeXFormat{LaTeX2e}
%ProvidesPackage{ae}[filedatespacefileversionspace  % GM
% Almost European Computer Modern]                       % GM - keeping the log file clean(er)
newifif@ae@slides @ae@slidesfalse
DeclareOption{slides}{@ae@slidestrue}
ProcessOptions
fontfamily{aer}
RequirePackage[T1]{fontenc}
if@ae@slides
    renewcommand{sfdefault}{laess}
    renewcommand{rmdefault}{laess} % no roman
    renewcommand{ttdefault}{laett}
else
    renewcommand{sfdefault}{aess}
    renewcommand{rmdefault}{aer}
    renewcommand{ttdefault}{aett}
fi
endinput
%% 
%% End of file `ae.sty'.
%
%
deffileversion{0.9}
deffiledate{1998/07/23}
NeedsTeXFormat{LaTeX2e}
%ProvidesPackage{aecompl}[filedatespacefileversionspace   % GM
%T1 Complements for AE fonts (D. Roegel)]                      % GM -- keeping the log file clean(er)
 
def@ae@compl#1{{fontencoding{T1}fontfamily{cmr}selectfontsymbol{#1}}}
defguillemotleft{@ae@compl{19}}
defguillemotright{@ae@compl{20}}
defguilsinglleft{@ae@compl{14}}
defguilsinglright{@ae@compl{15}}
defTH{@ae@compl{222}}
defNG{@ae@compl{141}}
defng{@ae@compl{173}}
defth{@ae@compl{254}}
defDJ{@ae@compl{208}}
defdj{@ae@compl{158}}
defDH{@ae@compl{208}}
defdh{@ae@compl{240}}
def@perthousandzero{@ae@compl{24}}
deftextperthousand{%@perthousandzero}
deftextpertenthousand{%@perthousandzero@perthousandzero}
endinput
%
%
%% This is file `aeguill.sty' 
% 该文件提供了用波兰CMR字体(默认)、WNCYR字体、LASY字体或EC字体制作的french guillemets(而不是guillemets!)。
% 这个包与ae包一起使用(如果ae包没有被加载,这个包会加载ae包),无论是否有french(le)包,都很有用。
%
% 为了获得guillemets,有必要输入guillemotleft和guillemotright,或者使用8位编码(如ISO-Latin1)来选择这两个命令,
% 或者,如果你使用french包(但不是frenchle包),输入<<或>>。
%
% 默认情况下,你会得到波兰语的CMR字样;如果这个包被加载了`cm'选项,你会得到LASY guillemets;使用`ec',
% 你会得到EC guillemets;使用`cyr',你会得到cyrillic guillemets.
%
% 在逐字记录模式下,你总是能得到EC/TT guillemets.
%
% 默认选项与PDF结合起来很有意思,因为有一个波兰CMR字体的Type 1版本,这些格子的形状与EC格子非常接近。
% 没有免费的EC字体的Type 1版本。
%
% Rolf Niepraschk <niepraschk@ptb.de>在0.99版本(2000/05/22)中友好地提供了对波兰CMR guillemets 的支持。
% Bernd Raichle对1.00版本的代码进行了广泛的简化。为1.00版提供了大量的简化代码。
%
% 这个软件包是根据LPPL发布的。
%
% Changes:
%   Date        version
%   2001/04/12  1.01    the frenchle and french package are now distinguished.
%
deffileversion{1.01}
deffiledate{2001/04/12}
NeedsTeXFormat{LaTeX2e}
%ProvidesPackage{aeguill}[2001/04/12 1.01 %    % GM
� fonts with french guillemets (D. Roegel)]   % GM - keeping the log file clean(er)
%RequirePackage{ae}  % GM May 2007 - already embedded here

newcommand{@ae@switch}[4]{#4}
DeclareOption{ec}{renewcommand@ae@switch[4]{#1}}
DeclareOption{cm}{renewcommand@ae@switch[4]{#2}}
DeclareOption{cyr}{renewcommand@ae@switch[4]{#3}}
DeclareOption{pl}{renewcommand@ae@switch[4]{#4}}
ExecuteOptions{pl}
ProcessOptions

%
% Load necessary packages
%
@ae@switch{% ec
  % do nothing
}{% cm
  RequirePackage{latexsym}%  GM - May 2007 - already 'mentioned as required' up above
}{% cyr
  RequirePackage[OT2,T1]{fontenc}%
}{% pl
  RequirePackage[OT4,T1]{fontenc}%
}

% The following command will be compared to frenchname,
% as defined in french.sty and frenchle.sty.
defaeguillfrenchdefault{french}%

letguill@verbatim@fontverbatim@font
defverbatim@font{guill@verbatim@fontecguills{cmtt}%
                   letguillemotleft@oguillsletguillemotright@fguills}

begingroup catcode`<=13 catcode`>=13
defx{endgroup
 defae@lfguill{<<}%
 defae@rfguill{>>}%
}x

newcommand{ecguills}[1]{%
  defselectguillfont{fontencoding{T1}fontfamily{#1}selectfont}%
  def@oguills{{selectguillfontsymbol{19}}}%
  def@fguills{{selectguillfontsymbol{20}}}%
  } 

newcommand{aeguills}{%
  ae@guills
  % We redefine guillemotleft and guillemotright
  % in order to catch them when they are used 
  % with DeclareInputText (in latin1.def for instance)
  % We use auxWARNINGi as a safe indicator that french.sty is used.
  gdefguillemotleft{ifxauxWARNINGiundefined
                         @oguills % neither french.sty nor frenchle.sty
                      else
                         ifxaeguillfrenchdefaultfrenchname
                           ae@lfguill  % french.sty
                         else
                           @oguills    % frenchle.sty
                         fi
                      fi}%
  gdefguillemotright{ifxauxWARNINGiundefined
                         @fguills % neither french.sty nor frenchle.sty
                       else
                         ifxaeguillfrenchdefaultfrenchname
                           ae@rfguill  % french.sty
                         else
                           @fguills    % frenchle.sty
                         fi
                       fi}%
  }

%
% Depending on the class option
% define the internal command ae@guills
@ae@switch{% ec
  newcommand{ae@guills}{%
    ecguills{cmr}}%
}{% cm
  newcommand{ae@guills}{%
    defselectguillfont{fontencoding{U}fontfamily{lasy}%
            fontseries{m}fontshape{n}selectfont}%
    def@oguills{leavevmodenobreak
                hbox{selectguillfont (kern-.20em(kern.20em}nobreak}%
    def@fguills{leavevmodenobreak
                hbox{selectguillfont kern.20em)kern-.2em)}%
                ifdimfontdimen@nefont>z@/fi}}%
}{% cyr
  newcommand{ae@guills}{%
    defselectguillfont{fontencoding{OT2}fontfamily{wncyr}selectfont}%
    def@oguills{{selectguillfontsymbol{60}}}%
    def@fguills{{selectguillfontsymbol{62}}}}
}{% pl
  newcommand{ae@guills}{%
    defselectguillfont{fontencoding{OT4}fontfamily{cmr}selectfont}%
    def@oguills{{selectguillfontsymbol{174}}}%
    def@fguills{{selectguillfontsymbol{175}}}}
}


AtBeginDocument{%
  ifxGOfrenchundefined
    aeguills
  else
    letaeguill@GOfrenchGOfrench
    gdefGOfrench{aeguill@GOfrench aeguills}%
  fi
  }

endinput
%

ACM会议论文模板

官网:ACM Primary Article Template

在这下载:

 效果

但注意cls文件用哪个

0 人点赞