forked from jamesbornholt/sigplan-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sigplanconf.cls
1414 lines (1075 loc) · 42.3 KB
/
sigplanconf.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%-----------------------------------------------------------------------------
%
% LaTeX Class/Style File
%
% Name: sigplanconf.cls
%
% Purpose: A LaTeX 2e class file for SIGPLAN conference proceedings.
% This class file supercedes acm_proc_article-sp,
% sig-alternate, and sigplan-proc.
%
% Author: Paul C. Anagnostopoulos
% Windfall Software
% 978 371-2316
% paul [atsign] windfall.com
%
% Created: 12 September 2004
%
% Revisions: See end of file.
%
% This work is licensed under the Creative Commons Attribution License.
% To view a copy of this license, visit
% http://creativecommons.org/licenses/by/3.0/
% or send a letter to Creative Commons, 171 2nd Street, Suite 300,
% San Francisco, California, 94105, U.S.A.
%
% Program Chairs may be tempted to make changes to the SIGPLAN LaTeX style
% sigplanconf.cls. Please don't do this! The style is carefully considered,
% and the result of over a decade's discussion and development. If you have a
% change request, send it to the SIGPLAN Information Director
% infodir_sigplan@acm.org. If you absolutely must change the formatting,
% define a new class file (eg myconf1999.cls) that imports sigplanconf.cls, or
% define a style file (eg myconf1999.sty) for authors to use in their papers.
% Contact the Information Director for details and examples. Please, UNDER NO
% CIRCUMSTANCES should you modify the file sigplanconf.cls and release it onto
% the internet---that way lies madness for future conferences!
%
%-----------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{sigplanconf}[2015/12/03 v3.2 ACM SIGPLAN Proceedings]
% The following few pages contain LaTeX programming extensions adapted
% from the ZzTeX macro package.
% Token Hackery
% ----- -------
\def \@expandaftertwice {\expandafter\expandafter\expandafter}
\def \@expandafterthrice {\expandafter\expandafter\expandafter\expandafter
\expandafter\expandafter\expandafter}
% This macro discards the next token.
\def \@discardtok #1{}% token
% This macro removes the `pt' following a dimension.
{\catcode `\p = 12 \catcode `\t = 12
\gdef \@remover #1pt{#1}
} % \catcode
% This macro extracts the contents of a macro and returns it as plain text.
% Usage: \expandafter\@defof \meaning\macro\@mark
\def \@defof #1:->#2\@mark{#2}
% Control Sequence Names
% ------- -------- -----
\def \@name #1{% {\tokens}
\csname \expandafter\@discardtok \string#1\endcsname}
\def \@withname #1#2{% {\command}{\tokens}
\expandafter#1\csname \expandafter\@discardtok \string#2\endcsname}
% Flags (Booleans)
% ----- ----------
% The boolean literals \@true and \@false are appropriate for use with
% the \if command, which tests the codes of the next two characters.
\def \@true {TT}
\def \@false {FL}
\def \@setflag #1=#2{\edef #1{#2}}% \flag = boolean
% IF and Predicates
% -- --- ----------
% A "predicate" is a macro that returns \@true or \@false as its value.
% Such values are suitable for use with the \if conditional. For example:
%
% \if \@oddp{\x} <then-clause> \else <else-clause> \fi
% A predicate can be used with \@setflag as follows:
%
% \@setflag \flag = {<predicate>}
% Here are the predicates for TeX's repertoire of conditional
% commands. These might be more appropriately interspersed with
% other definitions in this module, but what the heck.
% Some additional "obvious" predicates are defined.
\def \@eqlp #1#2{\ifnum #1 = #2\@true \else \@false \fi}
\def \@neqlp #1#2{\ifnum #1 = #2\@false \else \@true \fi}
\def \@lssp #1#2{\ifnum #1 < #2\@true \else \@false \fi}
\def \@gtrp #1#2{\ifnum #1 > #2\@true \else \@false \fi}
\def \@zerop #1{\ifnum #1 = 0\@true \else \@false \fi}
\def \@onep #1{\ifnum #1 = 1\@true \else \@false \fi}
\def \@posp #1{\ifnum #1 > 0\@true \else \@false \fi}
\def \@negp #1{\ifnum #1 < 0\@true \else \@false \fi}
\def \@oddp #1{\ifodd #1\@true \else \@false \fi}
\def \@evenp #1{\ifodd #1\@false \else \@true \fi}
\def \@rangep #1#2#3{\if \@orp{\@lssp{#1}{#2}}{\@gtrp{#1}{#3}}\@false \else
\@true \fi}
\def \@tensp #1{\@rangep{#1}{10}{19}}
\def \@dimeqlp #1#2{\ifdim #1 = #2\@true \else \@false \fi}
\def \@dimneqlp #1#2{\ifdim #1 = #2\@false \else \@true \fi}
\def \@dimlssp #1#2{\ifdim #1 < #2\@true \else \@false \fi}
\def \@dimgtrp #1#2{\ifdim #1 > #2\@true \else \@false \fi}
\def \@dimzerop #1{\ifdim #1 = 0pt\@true \else \@false \fi}
\def \@dimposp #1{\ifdim #1 > 0pt\@true \else \@false \fi}
\def \@dimnegp #1{\ifdim #1 < 0pt\@true \else \@false \fi}
\def \@vmodep {\ifvmode \@true \else \@false \fi}
\def \@hmodep {\ifhmode \@true \else \@false \fi}
\def \@mathmodep {\ifmmode \@true \else \@false \fi}
\def \@textmodep {\ifmmode \@false \else \@true \fi}
\def \@innermodep {\ifinner \@true \else \@false \fi}
\long\def \@codeeqlp #1#2{\if #1#2\@true \else \@false \fi}
\long\def \@cateqlp #1#2{\ifcat #1#2\@true \else \@false \fi}
\long\def \@tokeqlp #1#2{\ifx #1#2\@true \else \@false \fi}
\long\def \@xtokeqlp #1#2{\expandafter\ifx #1#2\@true \else \@false \fi}
\long\def \@definedp #1{%
\expandafter\ifx \csname \expandafter\@discardtok \string#1\endcsname
\relax \@false \else \@true \fi}
\long\def \@undefinedp #1{%
\expandafter\ifx \csname \expandafter\@discardtok \string#1\endcsname
\relax \@true \else \@false \fi}
\def \@emptydefp #1{\ifx #1\@empty \@true \else \@false \fi}% {\name}
\let \@emptylistp = \@emptydefp
\long\def \@emptyargp #1{% {#n}
\@empargp #1\@empargq\@mark}
\long\def \@empargp #1#2\@mark{%
\ifx #1\@empargq \@true \else \@false \fi}
\def \@empargq {\@empargq}
\def \@emptytoksp #1{% {\tokenreg}
\expandafter\@emptoksp \the#1\@mark}
\long\def \@emptoksp #1\@mark{\@emptyargp{#1}}
\def \@voidboxp #1{\ifvoid #1\@true \else \@false \fi}
\def \@hboxp #1{\ifhbox #1\@true \else \@false \fi}
\def \@vboxp #1{\ifvbox #1\@true \else \@false \fi}
\def \@eofp #1{\ifeof #1\@true \else \@false \fi}
% Flags can also be used as predicates, as in:
%
% \if \flaga <then-clause> \else <else-clause> \fi
% Now here we have predicates for the common logical operators.
\def \@notp #1{\if #1\@false \else \@true \fi}
\def \@andp #1#2{\if #1%
\if #2\@true \else \@false \fi
\else
\@false
\fi}
\def \@orp #1#2{\if #1%
\@true
\else
\if #2\@true \else \@false \fi
\fi}
\def \@xorp #1#2{\if #1%
\if #2\@false \else \@true \fi
\else
\if #2\@true \else \@false \fi
\fi}
% Arithmetic
% ----------
\def \@increment #1{\advance #1 by 1\relax}% {\count}
\def \@decrement #1{\advance #1 by -1\relax}% {\count}
% Options
% -------
\@setflag \@authoryear = \@true
\@setflag \@blockstyle = \@false
\@setflag \@copyrightwanted = \@true
\@setflag \@explicitsize = \@false
\@setflag \@legacycopyright = \@false
\@setflag \@mathtime = \@false
\@setflag \@natbib = \@true
\@setflag \@ninepoint = \@true
\newcount{\@numheaddepth} \@numheaddepth = 3
\@setflag \@onecolumn = \@false
\@setflag \@preprint = \@false
\@setflag \@reprint = \@false
\@setflag \@tenpoint = \@false
\@setflag \@times = \@false
% Note that all the dangerous article class options are trapped.
\DeclareOption{9pt}{\@setflag \@ninepoint = \@true
\@setflag \@explicitsize = \@true}
\DeclareOption{10pt}{\PassOptionsToClass{10pt}{article}%
\@setflag \@ninepoint = \@false
\@setflag \@tenpoint = \@true
\@setflag \@explicitsize = \@true}
\DeclareOption{11pt}{\PassOptionsToClass{11pt}{article}%
\@setflag \@ninepoint = \@false
\@setflag \@explicitsize = \@true}
\DeclareOption{12pt}{\@unsupportedoption{12pt}}
\DeclareOption{a4paper}{\@unsupportedoption{a4paper}}
\DeclareOption{a5paper}{\@unsupportedoption{a5paper}}
\DeclareOption{authoryear}{\@setflag \@authoryear = \@true}
\DeclareOption{b5paper}{\@unsupportedoption{b5paper}}
\DeclareOption{blockstyle}{\@setflag \@blockstyle = \@true}
\DeclareOption{cm}{\@setflag \@times = \@false}
\DeclareOption{computermodern}{\@setflag \@times = \@false}
\DeclareOption{executivepaper}{\@unsupportedoption{executivepaper}}
\DeclareOption{indentedstyle}{\@setflag \@blockstyle = \@false}
\DeclareOption{landscape}{\@unsupportedoption{landscape}}
\DeclareOption{legacycopyright}{\@setflag \@legacycopyright = \@true}
\DeclareOption{legalpaper}{\@unsupportedoption{legalpaper}}
\DeclareOption{letterpaper}{\@unsupportedoption{letterpaper}}
\DeclareOption{mathtime}{\@setflag \@mathtime = \@true}
\DeclareOption{natbib}{\@setflag \@natbib = \@true}
\DeclareOption{nonatbib}{\@setflag \@natbib = \@false}
\DeclareOption{nocopyrightspace}{\@setflag \@copyrightwanted = \@false}
\DeclareOption{notitlepage}{\@unsupportedoption{notitlepage}}
\DeclareOption{numberedpars}{\@numheaddepth = 4}
\DeclareOption{numbers}{\@setflag \@authoryear = \@false}
%%%\DeclareOption{onecolumn}{\@setflag \@onecolumn = \@true}
\DeclareOption{preprint}{\@setflag \@preprint = \@true}
\DeclareOption{reprint}{\@setflag \@reprint = \@true}
\DeclareOption{times}{\@setflag \@times = \@true}
\DeclareOption{titlepage}{\@unsupportedoption{titlepage}}
\DeclareOption{twocolumn}{\@setflag \@onecolumn = \@false}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ExecuteOptions{9pt,indentedstyle,times}
\@setflag \@explicitsize = \@false
\ProcessOptions
\if \@onecolumn
\if \@notp{\@explicitsize}%
\@setflag \@ninepoint = \@false
\PassOptionsToClass{11pt}{article}%
\fi
\PassOptionsToClass{twoside,onecolumn}{article}
\else
\PassOptionsToClass{twoside,twocolumn}{article}
\fi
\LoadClass{article}
\def \@unsupportedoption #1{%
\ClassError{proc}{The standard '#1' option is not supported.}}
% This can be used with the 'reprint' option to get the final folios.
\def \setpagenumber #1{%
\setcounter{page}{#1}}
\AtEndDocument{\label{sigplanconf@finalpage}}
% Utilities
% ---------
\newcommand{\setvspace}[2]{%
#1 = #2
\advance #1 by -1\parskip}
% Document Parameters
% -------- ----------
% Page:
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
\setlength{\topmargin}{1in}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\if \@onecolumn
\setlength{\evensidemargin}{.75in}
\setlength{\oddsidemargin}{.75in}
\else
\setlength{\evensidemargin}{.75in}
\setlength{\oddsidemargin}{.75in}
\fi
% Text area:
\newdimen{\standardtextwidth}
\setlength{\standardtextwidth}{42pc}
\if \@onecolumn
\setlength{\textwidth}{40.5pc}
\else
\setlength{\textwidth}{\standardtextwidth}
\fi
\setlength{\topskip}{8pt}
\setlength{\columnsep}{2pc}
\setlength{\textheight}{54.5pc}
% Running foot:
\setlength{\footskip}{30pt}
% Paragraphs:
\if \@blockstyle
\setlength{\parskip}{5pt plus .1pt minus .5pt}
\setlength{\parindent}{0pt}
\else
\setlength{\parskip}{0pt}
\setlength{\parindent}{12pt}
\fi
\setlength{\lineskip}{.5pt}
\setlength{\lineskiplimit}{\lineskip}
\frenchspacing
\pretolerance = 400
\tolerance = \pretolerance
\setlength{\emergencystretch}{5pt}
\clubpenalty = 10000
\widowpenalty = 10000
\setlength{\hfuzz}{.5pt}
% Standard vertical spaces:
\newskip{\standardvspace}
\setvspace{\standardvspace}{5pt plus 1pt minus .5pt}
% Margin paragraphs:
\setlength{\marginparwidth}{36pt}
\setlength{\marginparsep}{2pt}
\setlength{\marginparpush}{8pt}
\setlength{\skip\footins}{8pt plus 3pt minus 1pt}
\setlength{\footnotesep}{9pt}
\renewcommand{\footnoterule}{%
\hrule width .5\columnwidth height .33pt depth 0pt}
\renewcommand{\@makefntext}[1]{%
\noindent \@makefnmark \hspace{1pt}#1}
% Floats:
\setcounter{topnumber}{4}
\setcounter{bottomnumber}{1}
\setcounter{totalnumber}{4}
\renewcommand{\fps@figure}{tp}
\renewcommand{\fps@table}{tp}
\renewcommand{\topfraction}{0.90}
\renewcommand{\bottomfraction}{0.30}
\renewcommand{\textfraction}{0.10}
\renewcommand{\floatpagefraction}{0.75}
\setcounter{dbltopnumber}{4}
\renewcommand{\dbltopfraction}{\topfraction}
\renewcommand{\dblfloatpagefraction}{\floatpagefraction}
\setlength{\floatsep}{18pt plus 4pt minus 2pt}
\setlength{\textfloatsep}{18pt plus 4pt minus 3pt}
\setlength{\intextsep}{10pt plus 4pt minus 3pt}
\setlength{\dblfloatsep}{18pt plus 4pt minus 2pt}
\setlength{\dbltextfloatsep}{20pt plus 4pt minus 3pt}
% Miscellaneous:
\errorcontextlines = 5
% Fonts
% -----
\if \@times
\renewcommand{\rmdefault}{ptm}%
\if \@mathtime
\usepackage[mtbold,noTS1]{mathtime}%
\else
%%% \usepackage{mathptmx}%
\fi
\else
\relax
\fi
\if \@ninepoint
\renewcommand{\normalsize}{%
\@setfontsize{\normalsize}{9pt}{10pt}%
\setlength{\abovedisplayskip}{5pt plus 1pt minus .5pt}%
\setlength{\belowdisplayskip}{\abovedisplayskip}%
\setlength{\abovedisplayshortskip}{3pt plus 1pt minus 2pt}%
\setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
\renewcommand{\tiny}{\@setfontsize{\tiny}{5pt}{6pt}}
\renewcommand{\scriptsize}{\@setfontsize{\scriptsize}{7pt}{8pt}}
\renewcommand{\small}{%
\@setfontsize{\small}{8pt}{9pt}%
\setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt}%
\setlength{\belowdisplayskip}{\abovedisplayskip}%
\setlength{\abovedisplayshortskip}{2pt plus 1pt}%
\setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
\renewcommand{\footnotesize}{%
\@setfontsize{\footnotesize}{8pt}{9pt}%
\setlength{\abovedisplayskip}{4pt plus 1pt minus .5pt}%
\setlength{\belowdisplayskip}{\abovedisplayskip}%
\setlength{\abovedisplayshortskip}{2pt plus 1pt}%
\setlength{\belowdisplayshortskip}{\abovedisplayshortskip}}
\renewcommand{\large}{\@setfontsize{\large}{11pt}{13pt}}
\renewcommand{\Large}{\@setfontsize{\Large}{14pt}{18pt}}
\renewcommand{\LARGE}{\@setfontsize{\LARGE}{18pt}{20pt}}
\renewcommand{\huge}{\@setfontsize{\huge}{20pt}{25pt}}
\renewcommand{\Huge}{\@setfontsize{\Huge}{25pt}{30pt}}
\else\if \@tenpoint
\relax
\else
\relax
\fi\fi
% Abstract
% --------
\renewenvironment{abstract}{%
\section*{Abstract}%
\normalsize}{%
}
% Bibliography
% ------------
\renewenvironment{thebibliography}[1]
{\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\bibfont
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\if \@natbib
\if \@authoryear
\typeout{Using natbib package with 'authoryear' citation style.}
\usepackage[authoryear,square]{natbib}
\bibpunct{(}{)}{;}{a}{}{,} % Change fences to parentheses;
% citation separator to semicolon;
% eliminate comma between author and year.
\let \cite = \citep
\else
\typeout{Using natbib package with 'numbers' citation style.}
\usepackage[numbers,sort&compress,square]{natbib}
\fi
\setlength{\bibsep}{3pt plus .5pt minus .25pt}
\fi
\def \bibfont {\small}
% Categories
% ----------
\@setflag \@firstcategory = \@true
\newcommand{\category}[3]{%
\if \@firstcategory
\paragraph*{Categories and Subject Descriptors}%
\@setflag \@firstcategory = \@false
\else
\unskip ;\hspace{.75em}%
\fi
\@ifnextchar [{\@category{#1}{#2}{#3}}{\@category{#1}{#2}{#3}[]}}
\def \@category #1#2#3[#4]{%
{\let \and = \relax
#1 [\textit{#2}]%
\if \@emptyargp{#4}%
\if \@notp{\@emptyargp{#3}}: #3\fi
\else
:\space
\if \@notp{\@emptyargp{#3}}#3---\fi
\textrm{#4}%
\fi}}
% Copyright Notice
% --------- ------
\def \ftype@copyrightbox {8}
\def \@toappear {}
\def \@permission {}
\def \@reprintprice {}
\def \@copyrightspace {%
\@float{copyrightbox}[b]%
\vbox to 1in{%
\vfill
\parbox[b]{20pc}{%
\tiny
\if \@preprint
[Copyright notice will appear here
once 'preprint' option is removed.]\par
\else
\@toappear
\fi
\if \@reprint
\noindent Reprinted from \@conferencename,
\@proceedings,
\@conferenceinfo,
pp.~\number\thepage--\pageref{sigplanconf@finalpage}.\par
\fi}}%
\end@float}
\long\def \toappear #1{%
\def \@toappear {#1}}
\toappear{%
\if \@andp{\@legacycopyright}{\@emptydefp{\@permission}}%
\noindent (No legacy permission statement was specified.)\par
\else
\noindent \@permission \par
\fi
\vspace{2pt}
\noindent \textsl{\@conferencename}\quad \@conferenceinfo \par
\noindent Copyright \copyright\ \@copyrightyear\ ACM \@copyrightdata
\dots \@reprintprice\par
\setcopyrightdoi}
\def \publicationrights #1{% {type}
\if \@definedp{\rightsstatement#1}%
\gdef \@permission {\@name{\rightsstatement#1}}%
\else
\@latex@error{The publication right '#1' is invalid}{}%
\fi}
\expandafter\def \csname rightsstatementauthor-pays\endcsname{%
Permission to make digital or hard copies of part or all 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. Copyrights for
third-party components of this work must be honored. For all other uses,
contact the Owner/Author.}
% This is the default rights statement.
\def \rightsstatementlicensed {%
Permission to make digital or hard copies of part or all 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. Copyrights for
components of this work owned by others than ACM must be honored.
Abstracting with credit is permitted. To copy otherwise, to republish, to
post on servers, or to redistribute to lists, contact the Owner/Author.
Request permissions from permissions@acm.org or Publications Dept., ACM,
Inc., fax +1~(212) 869-0481. Copyright \@copyrightyear\ held by Owner/Author.
Publication Rights Licensed to ACM.}
\if \@notp{\@legacycopyright}%
\publicationrights{licensed}%
\fi
\def \rightsstatementtransferred {%
Permission to make digital or hard copies of part or all 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. Copyrights for
components of this work owned by others than ACM must be honored.
Abstracting with credit is permitted. To copy otherwise, to republish, to
post on servers, or to redistribute to lists, requires prior specific
permission and/or a fee. Request permissions from permissions@acm.org or
Publications Dept., ACM, Inc., fax +1~(212) 869-0481.}
\newcommand{\reprintprice}[1]{%
\gdef \@reprintprice {#1}}
\reprintprice{\$15.00}
\def \setcopyrightdoi {%
\if \@emptydefp{\@copyrightdoi}%
\if \@andp{\@notp{\@preprint}}{\@notp{\@legacycopyright}}%
\@latex@warning{Copyright DOI has not been provided
(\noexpand\copyrightdoi)}{}%
\fi
\else
\noindent DOI: http://dx.doi.org/10.1145/\@copyrightdoi\par
\fi}
% Legacy commands.
\newcommand{\permission}[1]{%
\gdef \@permission {#1}}
%%%\permission{%
%%% Permission to make digital or hard copies of part or all 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. Copyrights for
%%% components of this work owned by others than ACM must be honored.
%%% Abstracting with credit is permitted. To copy otherwise, to republish, to
%%% post on servers, or to redistribute to lists, requires prior specific
%%% permission and/or a fee. Request permissions from permissions@acm.org or
%%% Publications Dept., ACM, Inc., fax +1 (212) 869-0481.}
% Here we have some alternate permission statements and copyright lines:
\newcommand{\ACMCanadapermission}{%
\@legacycopyrighterror{\ACMCanadapermission}%
\permission{%
Copyright \@copyrightyear\ Association for Computing Machinery.
ACM acknowledges that
this contribution was authored or co-authored by an affiliate of the
National Research Council of Canada (NRC).
As such, the Crown in Right of
Canada retains an equal interest in the copyright, however granting
nonexclusive, royalty-free right to publish or reproduce this article,
or to allow others to do so, provided that clear attribution
is also given to the authors and the NRC.}}
\newcommand{\ACMUSpermission}{%
\@legacycopyrighterror{\ACMUSpermission}%
\permission{%
Copyright \@copyrightyear\ Association for
Computing Machinery. ACM acknowledges that
this contribution was authored or co-authored
by a contractor or affiliate
of the U.S. Government. As such, the Government retains a nonexclusive,
royalty-free right to publish or reproduce this article,
or to allow others to do so, for Government purposes only.}}
\newcommand{\authorpermission}{%
\@legacycopyrighterror{\authorpermission}%
\permission{%
Permission to make digital or hard copies of part or all 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. Copyrights for
third-party components of this work must be honored. For all other uses,
contact the Owner/Authorxxx.}%
\toappear{%
\noindent \@permission \par
\vspace{2pt}
\noindent \textsl{\@conferencename}\quad \@conferenceinfo \par
ACM \@copyrightdata.}}
\newcommand{\Sunpermission}{%
\@legacycopyrighterror{\Sunpermission}%
\permission{%
Copyright is held by Sun Microsystems, Inc.}%
\toappear{%
\noindent \@permission \par
\vspace{2pt}
\noindent \textsl{\@conferencename}\quad \@conferenceinfo \par
ACM \@copyrightdata.}}
\newcommand{\USpublicpermission}{%
\@legacycopyrighterror{\USpublicpermission}%
\permission{%
This paper is authored by an employee(s) of the United States
Government and is in the public domain.}%
\toappear{%
\noindent \@permission \par
\vspace{2pt}
\noindent \textsl{\@conferencename}\quad \@conferenceinfo \par
ACM \@copyrightdata.}}
\newcommand{\authorversion}[4]{%
\@legacycopyrighterror{\authorversion}%
\permission{%
Copyright \copyright\ ACM, #1. This is the author's version of the work.
It is posted here by permission of ACM for your personal use.
Not for redistribution. The definitive version was published in
#2, #3, http://doi.acm.org/10.1145/#4.}}
\def \exclusivelicense {%
\@latex@error{Deprecated;
you probably want `\noexpand\publicationrights{licensed}'}{}}
\def \permissiontopublish {%
\@latex@error{Deprecated;
you probably want `\noexpand\publicationrights{author-pays}'}{}}
\def \@legacycopyrighterror #1{%
\if \@notp{\@legacycopyright}%
\@latex@error{Copyright permission '\noexpand#1' is deprecated; use
'legacycopyright' class option to allow it}{}%
\fi}
% Enunciations
% ------------
\def \@begintheorem #1#2{% {name}{number}
\trivlist
\item[\hskip \labelsep \textsc{#1 #2.}]%
\itshape\selectfont
\ignorespaces}
\def \@opargbegintheorem #1#2#3{% {name}{number}{title}
\trivlist
\item[%
\hskip\labelsep \textsc{#1\ #2}%
\if \@notp{\@emptyargp{#3}}\nut (#3).\fi]%
\itshape\selectfont
\ignorespaces}
% Figures
% -------
\@setflag \@caprule = \@true
\long\def \@makecaption #1#2{%
\addvspace{4pt}
\if \@caprule
\hrule width \hsize height .33pt
\vspace{4pt}
\fi
\setbox \@tempboxa = \hbox{\@setfigurenumber{#1.}\nut #2}%
\if \@dimgtrp{\wd\@tempboxa}{\hsize}%
\noindent \@setfigurenumber{#1.}\nut #2\par
\else
\centerline{\box\@tempboxa}%
\fi}
\newcommand{\nocaptionrule}{%
\@setflag \@caprule = \@false}
\def \@setfigurenumber #1{%
{\rmfamily \bfseries \selectfont #1}}
% Hierarchy
% ---------
\setcounter{secnumdepth}{\@numheaddepth}
\newskip{\@sectionaboveskip}
\setvspace{\@sectionaboveskip}{10pt plus 3pt minus 2pt}
\newskip{\@sectionbelowskip}
\if \@blockstyle
\setlength{\@sectionbelowskip}{0.1pt}%
\else
\setlength{\@sectionbelowskip}{4pt}%
\fi
\renewcommand{\section}{%
\@startsection
{section}%
{1}%
{0pt}%
{-\@sectionaboveskip}%
{\@sectionbelowskip}%
{\large \bfseries \raggedright}}
\newskip{\@subsectionaboveskip}
\setvspace{\@subsectionaboveskip}{8pt plus 2pt minus 2pt}
\newskip{\@subsectionbelowskip}
\if \@blockstyle
\setlength{\@subsectionbelowskip}{0.1pt}%
\else
\setlength{\@subsectionbelowskip}{4pt}%
\fi
\renewcommand{\subsection}{%
\@startsection%
{subsection}%
{2}%
{0pt}%
{-\@subsectionaboveskip}%
{\@subsectionbelowskip}%
{\normalsize \bfseries \raggedright}}
\renewcommand{\subsubsection}{%
\@startsection%
{subsubsection}%
{3}%
{0pt}%
{-\@subsectionaboveskip}
{\@subsectionbelowskip}%
{\normalsize \bfseries \raggedright}}
\newskip{\@paragraphaboveskip}
\setvspace{\@paragraphaboveskip}{6pt plus 2pt minus 2pt}
\renewcommand{\paragraph}{%
\@startsection%
{paragraph}%
{4}%
{0pt}%
{\@paragraphaboveskip}
{-1em}%
{\normalsize \bfseries \if \@times \itshape \fi}}
\renewcommand{\subparagraph}{%
\@startsection%
{subparagraph}%
{4}%
{0pt}%
{\@paragraphaboveskip}
{-1em}%
{\normalsize \itshape}}
% Standard headings:
\newcommand{\acks}{\section*{Acknowledgments}}
\newcommand{\keywords}{\paragraph*{Keywords}}
\newcommand{\terms}{\paragraph*{General Terms}}
% Identification
% --------------
\def \@conferencename {}
\def \@conferenceinfo {}
\def \@copyrightyear {}
\def \@copyrightdata {[to be supplied]}
\def \@copyrightdoi {}
\def \@proceedings {[Unknown Proceedings]}
\newcommand{\conferenceinfo}[2]{%
\gdef \@conferencename {#1}%
\gdef \@conferenceinfo {#2}}
\newcommand{\copyrightyear}[1]{%
\gdef \@copyrightyear {#1}}
\let \CopyrightYear = \copyrightyear
\newcommand{\copyrightdata}[1]{%
\gdef \@copyrightdata {#1}}
\let \crdata = \copyrightdata
\newcommand{\proceedings}[1]{%
\gdef \@proceedings {#1}}
\def \copyrightDOI #1{%
\gdef \@copyrightdoi {#1}}
\let \copyrightdoi = \copyrightDOI
% Lists
% -----
\setlength{\leftmargini}{13pt}
\setlength\leftmarginii{13pt}
\setlength\leftmarginiii{13pt}
\setlength\leftmarginiv{13pt}
\setlength{\labelsep}{3.5pt}
\setlength{\topsep}{\standardvspace}
\if \@blockstyle
\setlength{\itemsep}{1pt}
\setlength{\parsep}{3pt}
\else
\setlength{\itemsep}{1pt}
\setlength{\parsep}{3pt}
\fi
\renewcommand{\labelitemi}{{\small \centeroncapheight{\textbullet}}}
\renewcommand{\labelitemii}{\centeroncapheight{\rule{2.5pt}{2.5pt}}}
\renewcommand{\labelitemiii}{$-$}
\renewcommand{\labelitemiv}{{\Large \textperiodcentered}}
\renewcommand{\@listi}{%
\leftmargin = \leftmargini
\listparindent = 0pt}
%%% \itemsep = 1pt
%%% \parsep = 3pt}
%%% \listparindent = \parindent}
\let \@listI = \@listi
\renewcommand{\@listii}{%
\leftmargin = \leftmarginii
\topsep = 1pt
\labelwidth = \leftmarginii
\advance \labelwidth by -\labelsep
\listparindent = \parindent}
\renewcommand{\@listiii}{%
\leftmargin = \leftmarginiii
\labelwidth = \leftmarginiii
\advance \labelwidth by -\labelsep
\listparindent = \parindent}
\renewcommand{\@listiv}{%
\leftmargin = \leftmarginiv
\labelwidth = \leftmarginiv
\advance \labelwidth by -\labelsep
\listparindent = \parindent}
% Mathematics
% -----------
\def \theequation {\arabic{equation}}