diff --git a/collects/scribble/sigplan/sigplanconf.cls b/collects/scribble/sigplan/sigplanconf.cls index 4120cbda..19a4871f 100644 --- a/collects/scribble/sigplan/sigplanconf.cls +++ b/collects/scribble/sigplan/sigplanconf.cls @@ -10,7 +10,7 @@ % Author: Paul C. Anagnostopoulos % Windfall Software % 978 371-2316 -% paul@windfall.com +% sigplan-style [atsign] acm.org % % Created: 12 September 2004 % @@ -20,7 +20,7 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesClass{sigplanconf}[2007/03/13 v1.5 ACM SIGPLAN Proceedings] +\ProvidesClass{sigplanconf}[2010/05/24 v2.4 ACM SIGPLAN Proceedings] % The following few pages contain LaTeX programming extensions adapted % from the ZzTeX macro package. @@ -191,11 +191,12 @@ % ------- +\@setflag \@authoryear = \@false \@setflag \@blockstyle = \@false \@setflag \@copyrightwanted = \@true \@setflag \@explicitsize = \@false \@setflag \@mathtime = \@false -\@setflag \@natbib = \@false +\@setflag \@natbib = \@true \@setflag \@ninepoint = \@true \newcount{\@numheaddepth} \@numheaddepth = 3 \@setflag \@onecolumn = \@false @@ -224,6 +225,8 @@ \DeclareOption{a5paper}{\@unsupportedoption{a5paper}} +\DeclareOption{authoryear}{\@setflag \@authoryear = \@true} + \DeclareOption{b5paper}{\@unsupportedoption{b5paper}} \DeclareOption{blockstyle}{\@setflag \@blockstyle = \@true} @@ -246,12 +249,16 @@ \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} @@ -497,7 +504,6 @@ \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}% \bibfont - \softraggedright%%%\sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% @@ -508,11 +514,17 @@ \if \@natbib -\usepackage{natbib} +\if \@authoryear + \typeout{Using natbib package with 'authoryear' citation style.} + \usepackage[authoryear,sort,square]{natbib} + \bibpunct{[}{]}{;}{a}{}{,} % Change 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} -\bibpunct{(}{)}{;}{A}{}{,} -\let \ncite = \cite -\let \cite = \citep \fi @@ -551,7 +563,7 @@ \def \ftype@copyrightbox {8} \def \@toappear {} \def \@permission {} - +\def \@reprintprice {} \def \@copyrightspace {% \@float{copyrightbox}[b]% @@ -581,7 +593,7 @@ \vspace{2pt} \noindent \textsl{\@conferencename}\quad \@conferenceinfo \par \noindent Copyright \copyright\ \@copyrightyear\ ACM \@copyrightdata - \dots \$5.00\par} + \dots \@reprintprice\par} \newcommand{\permission}[1]{% \gdef \@permission {#1}} @@ -646,6 +658,11 @@ \vspace{2pt} \noindent \textsl{\@conferencename}\quad \@conferenceinfo \par ACM \@copyrightdata.}} + +\newcommand{\reprintprice}[1]{% + \gdef \@reprintprice {#1}} + +\reprintprice{\$10.00} % Enunciations % ------------ @@ -978,7 +995,11 @@ \begin{center} \@settitlebanner \let \thanks = \titlenote - \noindent \LARGE \bfseries \@titletext \par + {\leftskip = 0pt plus 0.25\linewidth + \rightskip = 0pt plus 0.25 \linewidth + \parfillskip = 0pt + \spaceskip = .7em + \noindent \LARGE \bfseries \@titletext \par} \vskip 6pt \noindent \Large \@subtitletext \par \vskip 12pt @@ -1061,7 +1082,7 @@ \@fnmark = {\P}\or \@fnmark = {\ast\ast}% \fi -% \,$^{\the\@fnmark}$% + \,$^{\the\@fnmark}$% \edef \reserved@a {\noexpand\@appendtotext{% \noexpand\@titlefootnote{\the\@fnmark}}}% \reserved@a{#1}} @@ -1196,9 +1217,35 @@ % 2006.08.24 PCA 1.4 Fix bug in \maketitle case command. -% 2007.03.13 PCA 1.5 The title banner only display with the +% 2007.03.13 PCA 1.5 The title banner only displays with the % 'preprint' option. % 2007.06.06 PCA 1.6 Use \bibfont in \thebibliography. % Add 'natbib' option to load and configure % the natbib package. + +% 2007.11.20 PCA 1.7 Balance line lengths in centered article +% title (thanks to Norman Ramsey). + +% 2009.01.26 PCA 1.8 Change natbib \bibpunct values. + +% 2009.03.24 PCA 1.9 Change natbib to use the 'numbers' option. +% Change templates to use 'natbib' option. + +% 2009.09.01 PCA 2.0 Add \reprintprice command (suggested by +% Stephen Chong). + +% 2009.09.08 PCA 2.1 Make 'natbib' the default; add 'nonatbib'. +% SB Add 'authoryear' and 'numbers' (default) to +% control citation style when using natbib. +% Add \bibpunct to change punctuation for +% 'authoryear' style. + +% 2009.09.21 PCA 2.2 Add \softraggedright to the thebibliography +% environment. Also add to template so it will +% happen with natbib. + +% 2009.09.30 PCA 2.3 Remove \softraggedright from thebibliography. +% Just include in the template. + +% 2010.05.24 PCA 2.4 Obfuscate author's email address.