diff options
author | Karl Berry <karl@freefriends.org> | 2017-08-17 21:17:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-08-17 21:17:58 +0000 |
commit | fd85503e6c3803e3e9fe6db90e0239a636801c6a (patch) | |
tree | 68a33d77c48871442457232279bab47a4fff4df0 /Master | |
parent | b8ff3abffd353bbb67365864f1abdf3c9ff91fa1 (diff) |
acmart (17aug17)
git-svn-id: svn://tug.org/texlive/trunk@45058 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
17 files changed, 450 insertions, 201 deletions
diff --git a/Master/texmf-dist/doc/latex/acmart/README b/Master/texmf-dist/doc/latex/acmart/README index 589713836ae..4ebcfd0efae 100644 --- a/Master/texmf-dist/doc/latex/acmart/README +++ b/Master/texmf-dist/doc/latex/acmart/README @@ -129,4 +129,15 @@ Version 1.41 Rearranged bib files Version 1.42 Deleted ACM badges Bug fixes -
\ No newline at end of file + +Version 1.43 Bug fixes + +Version 1.44 Bug fixes. + Empty DOI and ISBN suppress printing DOI or ISBN lines + Separated theorem code into acmthm.sty, loaded by defualt. + Article number can be set for proceedings. + New commands: \acmBooktile, \editor. + Reference citation format updated. + +Version 1.45 Workaround for a Libertine bug. Thanks to LianTze Lim + from Overleaf
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/acmart/acmart.pdf b/Master/texmf-dist/doc/latex/acmart/acmart.pdf Binary files differindex 68a1d582d9c..7f816f83d95 100644 --- a/Master/texmf-dist/doc/latex/acmart/acmart.pdf +++ b/Master/texmf-dist/doc/latex/acmart/acmart.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/acmguide.pdf b/Master/texmf-dist/doc/latex/acmart/acmguide.pdf Binary files differindex 356ef1744f3..e53a69d22fc 100644 --- a/Master/texmf-dist/doc/latex/acmart/acmguide.pdf +++ b/Master/texmf-dist/doc/latex/acmart/acmguide.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf b/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf Binary files differindex 55608854ab9..5e52c112bf4 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf b/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf Binary files differindex f75fef3816d..110c640ca6f 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf b/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf Binary files differindex d4427100b23..56658a9b68d 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf b/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf Binary files differindex 901cf57d210..deae14a5aec 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf Binary files differindex c2bf6d1d4ac..8674c3b78a3 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf Binary files differindex f38ab8d55bc..cd11ebb5181 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf Binary files differindex 2e229c2e0da..31d95a0ac67 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf Binary files differindex 1ed46049ce9..4842f3d54d0 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigconf.tex b/Master/texmf-dist/doc/latex/acmart/sample-sigconf.tex index af6e4dc54c1..96487815d3c 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigconf.tex +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigconf.tex @@ -26,8 +26,16 @@ \acmYear{1997} \copyrightyear{2016} + +\acmArticle{4} \acmPrice{15.00} +% These commands are optional +%\acmBooktitle{Transactions of the ACM Woodstock conference} +\editor{Jennifer B. Sartor} +\editor{Theo D'Hondt} +\editor{Wolfgang De Meuter} + \begin{document} \title{SIG Proceedings Paper in LaTeX Format} diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf Binary files differindex a533b8fdfc7..9a274ab7c85 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf diff --git a/Master/texmf-dist/source/latex/acmart/acmart.dtx b/Master/texmf-dist/source/latex/acmart/acmart.dtx index 0e485ad3445..a95593b235c 100644 --- a/Master/texmf-dist/source/latex/acmart/acmart.dtx +++ b/Master/texmf-dist/source/latex/acmart/acmart.dtx @@ -15,8 +15,8 @@ % The Current Maintainer of this work is Boris Veytsman, % <borisv@lk.net> % -% This work consists of the file acmart.dtx, the derived file -% acmart.cls, the files ACM-Reference-Format.bst, and templates +% This work consists of the file acmart.dtx, the derived files +% acmart.cls, acmthm.sty, the files ACM-Reference-Format.bst, and templates % sample-acmlarge.tex, sample-acmsmall.tex, sample-acmtog.tex, % samplebody-conf.tex, samplebody-journals.tex, sample-manuscript.tex, % sample-sigchi-a.tex, sample-sigchi.tex, @@ -98,12 +98,27 @@ % package. % % I am grateful to -% Matthew Fluet, +% Michael D.~Adams, +% Leif Andersen, +% Dirk Beyer, +% Michael Ekstrand, +% Matthew Fluet, +% Paolo G.~Giarrusso, +% Ben Greenman, +% LianTze Lim, +% Ben Liblit, +% Frank Mittelbach, +% Ross Moore, % John Owens, +% Joel Nider, +% Tobias Pape, +% Mathias Rav, +% Matteo Riondato, % Craig Rodkin, % Bernard Rous, % David Shamma, -% Stephen Spencer +% Stephen Spencer, +% John Wickerson, % and many others for their invaluable help. % % The development version of the package is available at @@ -133,9 +148,10 @@ % and rather rely on their \TeX\ distributions to provide it. If you % decide to install the package yourself, follow the standard rules: % \begin{enumerate} -% \item Run \progname{latex} on |acmart.ins|. This will produce the file -% |acmart.cls|. -% \item Put the file |acmart.cls| and the bibliography files |*.bst| +% \item Run \progname{latex} on |acmart.ins|. This will produce the files +% |acmart.cls| and |acmthm.sty| +% \item Put the files |acmart.cls|, |acmthm.sty| +% and the bibliography files |*.bst| % to the places where \LaTeX{} can find them (see \cite{TeXFAQ} or % the documentation for your \TeX{} system).\label{item:install} % \item Update the database of file names. Again, see \cite{TeXFAQ} @@ -162,7 +178,6 @@ % \item \textsl{comment}, \url{http://www.ctan.org/pkg/comment} % \item \textsl{cm-super}, \url{http://www.ctan.org/pkg/cm-super} % \item \textsl{cmap}, \url{http://www.ctan.org/pkg/cmap} -% \item \textsl{cleveref}, \url{http://www.ctan.org/pkg/cleveref} % \item \textsl{draftwatermark}, \url{http://www.ctan.org/pkg/draftwatermark} % \item \textsl{environ}, \url{http://www.ctan.org/pkg/environ} % \item \textsl{fancyhdr}, \url{http://www.ctan.org/pkg/fancyhdr} @@ -185,6 +200,7 @@ % \item \textsl{newtx}, \url{http://www.ctan.org/pkg/newtx} % \item \textsl{oberdiek}, \url{http://www.ctan.org/pkg/oberdiek} % \item \textsl{pdftex-def}, \url{http://www.ctan.org/pkg/pdftex-def} +% \item \textsl{refcount}, \url{http://www.ctan.org/pkg/refcount} % \item \textsl{setspace}, \url{http://www.ctan.org/pkg/setspace} % \item \textsl{textcase}, \url{http://www.ctan.org/pkg/textcase} % \item \textsl{totpages}, \url{http://www.ctan.org/pkg/totpages} @@ -322,6 +338,8 @@ % timestamp & false & Whether to put a time stamp in the % footer of each page\\ % authordraft & false & Whether author's draft mode is enabled\\ +% acmthm & true & Whether to load |acmthm.sty|, see +% Section~\ref{sec:ug_theorems}\\ % \bottomrule % \end{tabularx} % \end{table} @@ -438,8 +456,7 @@ % arguments are the following: % \begin{description} % \item[short name:] the abbreviated name of the conference (optional). -% \item[name:] the name of the conference \emph{or} the name of the -% book as set by the editor. +% \item[name:] the name of the conference. % \item[date:] the date(s) of the conference. % \item[venue:] the place of the conference. % \end{description} @@ -450,10 +467,30 @@ % \acmConference{SA'15 Art Papers}{November 02--06, 2015}{Kobe, Japan} % \end{verbatim} % +% \DescribeMacro{\acmBooktitle}% +% By default we assume that the conference proceedings are published +% in the book named \emph{Proceedings of \textsc{CONFERENCE}}, where +% \textsc{CONFERENCE} is the name of the conference inferred from the +% command \cs{acmConference} above. However, sometimes the book title +% is different. The command \cs{acmBooktitle} may be used to set this +% title, for example, +% \begin{verbatim} +% \acmBooktitle{Companion to the first International Conference on the +% Art, Science and Engineering of Programming (Programming '17)} +% \end{verbatim} +% +% \DescribeMacro{\editor}% +% In most cases conference proceedings are edited. You can use the +% command \cs{editor}\oarg{editor} to set the editor of the volume. +% This command can be repeated, for example, +% \begin{verbatim} +% \editor{Jennifer B. Sartor} +% \editor{Theo D'Hondt} +% \editor{Wolfgang De Meuter} +% \end{verbatim} +% % -% Normally this command is entered either by the editor or by the typesetter. -% -% \DescribeMacro{\title} +% \DescribeMacro{\title}% % The command |\title|, as in \progname{amsart} class, has two arguments: one % optional, and one mandatory: % \begin{flushleft} @@ -766,6 +803,8 @@ % \acmYear{2010} % \acmMonth{3} % \end{verbatim} +% Note that \cs{acmArticle} is used not only for journals, but also +% for some conference proceedings. % % \DescribeMacro{\acmArticleSeq}% % The articles in the same issue of a journal have a \emph{sequential @@ -776,6 +815,7 @@ % \acmArticle{39} % The sequence number will be 39 by default % \acmArticleSeq{5} % We redefine it to 5 % \end{verbatim} +% Setting this number to zero suppresses the blob. % % \DescribeMacro{\acmSubmissionID}% % If you paper got a Submission~ID from the Conference Management @@ -792,7 +832,7 @@ % \end{verbatim} % Note that you do not need to put the dollar sign here, just the % amount. By default the price is \$15.00, unless the copyright is -% set to |usgov| or |rightsretained|, when it is suppressed Note that to +% set to |usgov| or |rightsretained|, when it is suppressed. Note that to % override the defaults you need to set the price \emph{after} the % \cs{setcopyright} command to override the default. Also, the % command |\acmPrice{}| suppresses the printing of the price. @@ -804,7 +844,8 @@ % \begin{verbatim} % \acmISBN{978-1-4503-3916-2} % \end{verbatim} -% +% Setting it to empty string, as |\acmISBN{}|, suppresses printing of +% ISBN. % % \DescribeMacro{\acmDOI}% % The macro \cs{acmDOI}\marg{DOI} sets the DOI number of the article, for @@ -812,7 +853,8 @@ % \begin{verbatim} % \acmDOI{10.1145/9999997.9999999} % \end{verbatim} -% It is normally set by the typesetter. +% It is normally set by the typesetter. Setting it to empty +% string, |\acmDOI{}| suppresses DOI. % % % \DescribeMacro{\acmBadgeR}% @@ -1188,7 +1230,17 @@ % \end{description} % % -% +% These definitions are in the separate style file |acmthm.sty|, which +% is loaded by default. However, sometimes the user might want to +% delay loading this package, for example, if she wants for load +% package like |cleveref| first. In this case use the option +% |acmthm=false| in the preamble, for example, +% \begin{verbatim} +% \documentclass[acmsmall, acmthm=false]{acmart} +% \usepackage{cleveref} +% \usepackage{acmthm} +% \end{verbatim} +% % % %\subsection{Online-only and offline-only material} @@ -1256,7 +1308,7 @@ % thanks inside this environment. % % As for |printonly| and |screenonly| environments, -% |\begin{acks}| and |\end{acls}| should start the +% |\begin{acks}| and |\end{acks}| should start the % line of their own (no leading or trailing spaces). % % \DescribeMacro{\grantsponsor}% @@ -1577,7 +1629,8 @@ \ProvidesFile{acmart.dtx} %</gobble> %<class>\ProvidesClass{acmart} -[2017/07/02 v1.42 Typesetting articles for Association of +%<acmthm>\ProvidesPackage{acmthm} +[2017/08/15 v1.45 Typesetting articles for Association of Computing Machinery] % \end{macrocode} % @@ -1640,7 +1693,10 @@ Computing Machinery] % \changes{v1.40}{2017/06/16}{Added new copyright version: % licensedcagov} % \changes{v1.41}{2017/06/25}{Added new badges} -% \changes{v1.41}{2017/07/02}{Deleted ACM badges} +% \changes{v1.42}{2017/07/02}{Deleted ACM badges} +% \changes{v1.44}{2017/07/30}{Added package refcount} +% \changes{v1.44}{2017/07/30}{Deleted package cleveref} +% \changes{v1.44}{2017/07/30}{Put theorem defs in a separate style} % % % And the driver code: @@ -1732,6 +1788,22 @@ Computing Machinery] % % \end{macro} % +% \begin{macro}{\if@ACM@acmthm} +% \changes{v1.44}{2017/07/30}{Added macro} +% Whether we load |acmthm| +% \begin{macrocode} +\define@boolkey+{acmart.cls}[@ACM@]{acmthm}[true]{% + \if@ACM@acmthm + \PackageInfo{\@classname}{Requiring acmthm}% + \else + \PackageInfo{\@classname}{Suppressing acmthm}% + \fi}{\PackageError{\@classname}{Option acmthm can be either true or + false}} +\ExecuteOptionsX{acmthm=true} +% \end{macrocode} +% +% \end{macro} +% % % \begin{macro}{\if@ACM@review} % Whether we use review mode @@ -1968,8 +2040,10 @@ Computing Machinery] % \end{macrocode} % % -% We need |totpages| package to calculate the number of pages +% We need |totpages| package to calculate the number of pages and +% |refcount| to use the number % \begin{macrocode} +\RequirePackage{refcount} \RequirePackage{totpages} % \end{macrocode} % @@ -2228,10 +2302,11 @@ Computing Machinery] % % \begin{macro}{\@startsection} % \changes{v1.31}{2017/03/04}{Rededined macro} +% \changes{v1.43}{2017/07/09}{Added \cs{makeatletter}} % Amsart redefines \cs{startsection}. Here we redefine it again to % make TOC working % \begin{macrocode} -\def\@starttoc#1#2{\begingroup +\def\@starttoc#1#2{\begingroup\makeatletter \setTrue{#1}% \par\removelastskip\vskip\z@skip \@startsection{section}\@M\z@{\linespacing\@plus\linespacing}% @@ -2308,7 +2383,6 @@ Computing Machinery] \else \hypersetup{hidelinks} \fi -\RequirePackage{cleveref} % \end{macrocode} % % Bibliography mangling. @@ -3245,6 +3319,50 @@ Computing Machinery] % % \end{macro} % +% \begin{macro}{\acmBooktitle} +% \changes{v1.44}{2017/08/11}{Added macro} +% \begin{macro}{\@acmBooktitle} +% \changes{v1.44}{2017/08/11}{Added macro} +% The book title of the conference: +% \begin{macrocode} +\def\acmBooktitle#1{\gdef\@acmBooktitle{#1}} +\acmBooktitle{Proceedings of \acmConference@name + \ifx\acmConference@name\acmConference@shortname\else + \ (\acmConference@shortname)\fi} +% \end{macrocode} +% +% \end{macro} +% \end{macro} +% +% \begin{macro}{\@editorsAbbrev} +% \changes{v1.44}{2017/08/11}{Added macro} +% How to abbreviate editors +% \begin{macrocode} +\def\@editorsAbbrev{(Ed.)} +% \end{macrocode} +% +% \end{macro} +% +% \begin{macro}{\@acmEditors} +% \changes{v1.44}{2017/08/11}{Added macro} +% The list of editors +\def\@acmEditors{} +% \end{macro} +% +% \begin{macro}{\editor} +% \changes{v1.44}{2017/08/11}{Added macro} +% Add new editor to the list +% \begin{macrocode} +\def\editor#1{\ifx\@acmEditors\@empty + \gdef\@acmEditors{#1}% + \else + \gdef\@editorsAbbrev{(Eds.)}% + \g@addto@macro\@acmEditors{\and#1}% +\fi} +% \end{macrocode} +% +% \end{macro} +% % \begin{macro}{\subtitle} % The subtitle macro % \begin{macrocode} @@ -3500,16 +3618,18 @@ Computing Machinery] % % \begin{macro}{\acmArticle} % \changes{v1.17}{2016/07/10}{The default is now numerical} +% \changes{v1.44}{2017/08/111}{The default is now empty} % The current article % \begin{macrocode} \def\acmArticle#1{\def\@acmArticle{#1}} -\acmArticle{1} +\acmArticle{} % \end{macrocode} % % \end{macro} % % \begin{macro}{\acmArticleSeq} % \changes{v1.04}{2016/04/26}{Name change by Matthew Fluet} +% \changes{v1.44}{2017/08/11}{Now acmArticle might be empty} % The sequence number % \begin{macrocode} \def\acmArticleSeq#1{\def\@acmArticleSeq{#1}} @@ -4089,16 +4209,10 @@ Computing Machinery] source. \or % usgovmixed ACM acknowledges that this contribution was authored or co-authored - by an employee, or contractor of the national government. As such, - the Government retains a nonexclusive, royalty-free right to + by an employee, contractor, or affiliate of the United States government. As such, + the United States government retains a nonexclusive, royalty-free right to publish or reproduce this article, or to allow others to do so, for - Government purposes only. Permission to make digital or hard copies - for personal or classroom use is granted. Copies must 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. To copy otherwise, distribute, republish, or post, - requires prior specific permission and\hspace*{.5pt}/or a - fee. Request permissions from permissions@acm.org. + government purposes only. \or % cagov This article was authored by employees of the Government of Canada. As such, the Canadian government retains all interest in the @@ -4252,6 +4366,8 @@ Computing Machinery] % \changes{v1.34}{2017/04/09}{Added date to the bibstrip in conf proceedings} % \changes{v1.34}{2017/04/09}{The \cs{terms} command is now obsolete} % \changes{v1.34}{2017/04/11}{Rearranged bibstrip} +% \changes{v1.44}{2017/07/30}{Empty DOI or ISBN are not printed (by +% Michael Ekstrand)} % The (in)famous \cs{maketitle}. Note that in sigchi-a mode authors % are \emph{not} in the title box. % @@ -4319,7 +4435,7 @@ Computing Machinery] \if@ACM@journal \emph{\@journalName}% \else - \emph{Proceedings of \acmConference@name, \acmConference@date}% + \emph{\@acmBooktitle}% \fi \ifx\@acmDOI\@empty . @@ -4332,9 +4448,9 @@ Computing Machinery] \ifx\@acmPrice\@empty\else\ \$\@acmPrice\fi\\ \@formatdoi{\@acmDOI}% \else % Conference - ACM~ISBN~\@acmISBN - \ifx\@acmPrice\@empty.\else\dots\$\@acmPrice\fi\\ - \@formatdoi{\@acmDOI}% + \ifx\@acmISBN\@empty\else ACM~ISBN~\@acmISBN + \ifx\@acmPrice\@empty.\else\dots\$\@acmPrice\fi\\\fi + \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi% \fi \fi \fi} @@ -4488,16 +4604,18 @@ Computing Machinery] % % \begin{macro}{\@titlefont} % \changes{v1.06}{2016/05/01}{Added macro} +% \changes{v1.45}{2017/08/15}{Switched \cs{bfeseries}\cs{sffamily} to +% \cs{sffamily}\cs{bfseries}} % The font to typeset title % \begin{macrocode} \def\@titlefont{% \ifcase\ACM@format@nr \relax % manuscript - \LARGE\bfseries\sffamily + \LARGE\sffamily\bfseries \or % acmsmall - \LARGE\bfseries\sffamily + \LARGE\sffamily\bfseries \or % acmlarge - \LARGE\bfseries\sffamily + \LARGE\sffamily\bfseries \or % acmtog \Huge\sffamily \or % sigconf @@ -4697,13 +4815,11 @@ Computing Machinery] % \changes{v1.15}{2016/07/03}{Added macro} % \changes{v1.33}{2017/03/28}{Added obeypunctuation code} % \changes{v1.40}{2017/05/27}{Fixed bugs with extra spaces} +% \changes{v1.43}{2017/07/11}{Added comma before country for journals} % Theoretically we can define the macros for \cs{affiliation} inside % the \cs{@mkauthors}-style commands. However, this would lead to a % strange error if an author uses them outside \cs{affiliation}. Of % course we can make them produce an error message, but\ldots -% -% We follow the strange American tradtion of no comma before zip -% code. % \begin{macrocode} \def\streetaddress#1{\unskip\ignorespaces} \def\postcode#1{\unskip\ignorespaces} @@ -4713,7 +4829,7 @@ Computing Machinery] \def\city#1{\unskip\ignorespaces} \def\state#1{\unskip\ignorespaces} \newcommand\department[2][0]{} - \def\country#1{\unskip\ignorespaces} + \def\country#1{\if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} \else \def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% \def\institution#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% @@ -5128,26 +5244,32 @@ Computing Machinery] % \changes{v1.17}{2016/07/10}{Added \cs{nobreak}} % \changes{v1.31}{2017/03/04}{Disabled linebreak} % \changes{v1.34}{2017/04/09}{Deleted DOI from doi numbers} +% \changes{v1.44}{2017/07/30}{If the paper has just one page, use +% `page' instead of `pages'} % Print bibcitation format % \begin{macrocode} -\def\@mkbibcitation{\bgroup +\def\@mkbibcitation{\bgroup + \def\@pages@word{\ifnum\getrefnumber{TotPages}=1\relax page\else pages\fi}% \def\footnotemark{}% \def\\{\unskip{} \ignorespaces}% \def\footnote{\ClassError{\@classname}{Please do note use footnotes inside \string\title{} or \string\author{} command! Use \string\titlenote{} or \string\authornote{} instead!}}% - \par\medskip\small\noindent{\bfseries ACM Reference format:}\par\nobreak + \def\@article@string{\ifx\@acmArticle\@empty{\ }\else, + Article~\@acmArticle\ \fi}% + \par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak \noindent\authors. \@acmYear. \@title. \if@ACM@journal \textit{\@journalNameShort} - \@acmVolume, \@acmNumber, Article~\@acmArticle\ (\@acmPubDate), - \ref{TotPages}~pages. + \@acmVolume, \@acmNumber \@article@string (\@acmPubDate), + \ref{TotPages}~\@pages@word. \else - In \textit{Proceedings of \acmConference@name, \acmConference@venue, - \acmConference@date - \ifx\acmConference@name\acmConference@shortname\else - \ (\acmConference@shortname)\fi - ,} \ref{TotPages}~pages. + In \textit{\@acmBooktitle}% + \ifx\@acmEditors\@empty\textit{.}\else + \andify\@acmEditors\textit{, }\@acmEditors~\@editorsAbbrev.% + \fi\ + ACM, New York, NY, USA% + \@article@string\unskip, \ref{TotPages}~\@pages@word. \fi\par \noindent\@formatdoi{\@acmDOI} \par\egroup} @@ -5424,9 +5546,13 @@ Computing Machinery] % \end{macro} % % \begin{macro}{\@folioblob} +% \changes{v1.44}{2017/08/11}{Suppress the blob if acmArticleSeq is empty} +% \changes{v1.45}{2017/08/15}{Switched \cs{bfeseries}\cs{sffamily} to +% \cs{sffamily}\cs{bfseries}} % The macro to typeset the folio blob. % \begin{macrocode} -\def\@folioblob{\@tempcnta=\@acmArticleSeq\relax +\def\@folioblob{\@tempcnta=0\@acmArticleSeq\relax + \ifnum\@tempcnta=0\relax\else % \end{macrocode} % First, we calculate \cs{@acmArticleSeq} modulo \cs{@folio@max} % \begin{macrocode} @@ -5448,8 +5574,8 @@ Computing Machinery] \rule{\@folio@wd}{\@folio@ht}}}% \parbox{\@folio@wd}{% \centering - \textcolor{white}{\LARGE\bfseries\sffamily\@acmArticle}}}} - \end{picture}} + \textcolor{white}{\LARGE\sffamily\bfseries\@acmArticle}}}} + \end{picture}\fi} % \end{macrocode} % @@ -5510,6 +5636,24 @@ Computing Machinery] % % \end{macro} % +% \begin{macro}{\ACM@restore@pagestyle} +% \changes{v1.44}{2017/07/30}{Added macro} +% The following code by Ross Moore protects against changes by +% |totpages| package: +% \begin{macrocode} +\let\ACM@ps@plain\ps@plain +\let\ACM@ps@myheadings\ps@myheadings +\let\ACM@ps@headings\ps@headings +\def\ACM@restore@pagestyle{% + \let\ps@plain\ACM@ps@plain + \let\ps@myheadings\ACM@ps@myheadings + \let\ps@headings\ACM@ps@headings} +\AtBeginDocument{\ACM@restore@pagestyle} +% \end{macrocode} +% +% +% \end{macro} +% % %\subsection{Sectioning} %\label{sec:sectioninng} @@ -5557,8 +5701,10 @@ Computing Machinery] % \begin{macro}{\@subsecfont} % \begin{macro}{\@subsubsecfont} % \begin{macro}{\@parfont} -% \changes{v1.12}{2016/05/30}{Moved to \cs{section@raggedright}}% +% \changes{v1.12}{2016/05/30}{Moved to \cs{section@raggedright}}% % \changes{v1.40}{2017/06/04}{Switched to MakeTextUppercase} +% \changes{v1.45}{2017/08/15}{Switched \cs{bfeseries}\cs{sffamily} to +% \cs{sffamily}\cs{bfseries}} % Fonts for sections etc. are different for different formats. % \begin{macrocode} \def\@secfont{\sffamily\bfseries\section@raggedright\MakeTextUppercase} @@ -5579,8 +5725,8 @@ Computing Machinery] \def\@secfont{\bfseries\Large\section@raggedright\MakeTextUppercase} \def\@subsecfont{\bfseries\Large\section@raggedright} \or % siggraph - \def\@secfont{\bfseries\sffamily\Large\section@raggedright\MakeTextUppercase} - \def\@subsecfont{\bfseries\sffamily\Large\section@raggedright} + \def\@secfont{\sffamily\bfseries\Large\section@raggedright\MakeTextUppercase} + \def\@subsecfont{\sffamily\bfseries\Large\section@raggedright} \or % sigplan \def\@secfont{\bfseries\Large\section@raggedright} \def\@subsecfont{\bfseries\section@raggedright} @@ -5601,12 +5747,12 @@ Computing Machinery] \def\@subparfont{\itshape} \or % sigchi \setcounter{secnumdepth}{1} - \def\@secfont{\bfseries\sffamily\section@raggedright\MakeTextUppercase} - \def\@subsecfont{\bfseries\sffamily\section@raggedright} + \def\@secfont{\sffamily\bfseries\section@raggedright\MakeTextUppercase} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} \or % sigchi-a \setcounter{secnumdepth}{0} - \def\@secfont{\bfseries\sffamily\section@raggedright\MakeTextUppercase} - \def\@subsecfont{\bfseries\sffamily\section@raggedright} + \def\@secfont{\sffamily\bfseries\section@raggedright\MakeTextUppercase} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} \fi % \end{macrocode} % @@ -5650,10 +5796,18 @@ Computing Machinery] %\subsection{Theorems} %\label{sec:theorems} % -% +% The conditional loading +% \begin{macrocode} +\if@ACM@acmthm + \RequirePackage{acmthm} +\fi +% \end{macrocode} +% % \begin{macro}{\@acmplainbodyfont} % The font to typeset the |acmplain| theorem style body. % \begin{macrocode} +%</class> +%<*acmthm> \def\@acmplainbodyfont{\itshape} % \end{macrocode} % @@ -5850,12 +6004,13 @@ Computing Machinery] }{% \popQED\endtrivlist\@endpefalse } +%</acmthm> +%<*class> % \end{macrocode} % % \end{macro} % % -% %\subsection{Acknowledgments} %\label{sec:acks} % diff --git a/Master/texmf-dist/source/latex/acmart/acmart.ins b/Master/texmf-dist/source/latex/acmart/acmart.ins index 8d93280a2c2..aa74c69ed32 100644 --- a/Master/texmf-dist/source/latex/acmart/acmart.ins +++ b/Master/texmf-dist/source/latex/acmart/acmart.ins @@ -12,16 +12,18 @@ \askforoverwritefalse \generate{% - \file{acmart.cls}{\from{acmart.dtx}{class}}} + \file{acmart.cls}{\from{acmart.dtx}{class}} + \file{acmthm.sty}{\from{acmart.dtx}{acmthm}} +} \obeyspaces \Msg{*****************************************************}% \Msg{* Congratulations! You successfully generated the *}% \Msg{* acmart package. *}% \Msg{* *}% -\Msg{* Please move the file acmart.cls to where LaTeX *}% -\Msg{* files are stored in your system. The manual is *}% -\Msg{* acmart.pdf. *}% +\Msg{* Please move the files acmart.cls and acmthm.sty *}% +\Msg{* to the location where LaTeX files are stored in *}% +\Msg{* your system. The manual is acmart.pdf. *}% \Msg{* *}% \Msg{* The package is released under LPPL *}% \Msg{* *}% diff --git a/Master/texmf-dist/tex/latex/acmart/acmart.cls b/Master/texmf-dist/tex/latex/acmart/acmart.cls index d8ba43830b8..28dcf587305 100644 --- a/Master/texmf-dist/tex/latex/acmart/acmart.cls +++ b/Master/texmf-dist/tex/latex/acmart/acmart.cls @@ -37,7 +37,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{acmart} -[2017/07/02 v1.42 Typesetting articles for Association of +[2017/08/15 v1.45 Typesetting articles for Association of Computing Machinery] \def\@classname{acmart} \InputIfFileExists{acmart-preload-hook.tex}{% @@ -71,6 +71,14 @@ Computing Machinery] \fi}{\PackageError{\@classname}{Option screen can be either true or false}} \ExecuteOptionsX{screen=false} +\define@boolkey+{acmart.cls}[@ACM@]{acmthm}[true]{% + \if@ACM@acmthm + \PackageInfo{\@classname}{Requiring acmthm}% + \else + \PackageInfo{\@classname}{Suppressing acmthm}% + \fi}{\PackageError{\@classname}{Option acmthm can be either true or + false}} +\ExecuteOptionsX{acmthm=true} \define@boolkey+{acmart.cls}[@ACM@]{review}[true]{% \if@ACM@review \PackageInfo{\@classname}{Using review mode}% @@ -190,6 +198,7 @@ Computing Machinery] \ClassInfo{\@classname}{Using fontsize \ACM@fontsize} \LoadClass[\ACM@fontsize, reqno]{amsart} \RequirePackage{microtype} +\RequirePackage{refcount} \RequirePackage{totpages} \RequirePackage{environ} \if@ACM@manuscript @@ -383,7 +392,7 @@ Computing Machinery] \def\@svsechd{#4{\hskip #1\relax #5}}% \fi \@xsect{#3}} -\def\@starttoc#1#2{\begingroup +\def\@starttoc#1#2{\begingroup\makeatletter \setTrue{#1}% \par\removelastskip\vskip\z@skip \@startsection{section}\@M\z@{\linespacing\@plus\linespacing}% @@ -431,7 +440,6 @@ Computing Machinery] \else \hypersetup{hidelinks} \fi -\RequirePackage{cleveref} \if@ACM@natbib \let\citeN\cite \let\cite\citep @@ -1029,6 +1037,18 @@ Computing Machinery] \fi} \acmConference[Conference'17]{ACM Conference}{July 2017}{Washington, DC, USA} +\def\acmBooktitle#1{\gdef\@acmBooktitle{#1}} +\acmBooktitle{Proceedings of \acmConference@name + \ifx\acmConference@name\acmConference@shortname\else + \ (\acmConference@shortname)\fi} +\def\@editorsAbbrev{(Ed.)} +\def\@acmEditors{} +\def\editor#1{\ifx\@acmEditors\@empty + \gdef\@acmEditors{#1}% + \else + \gdef\@editorsAbbrev{(Eds.)}% + \g@addto@macro\@acmEditors{\and#1}% +\fi} \def\subtitle#1{\def\@subtitle{#1}} \subtitle{} \newcount\num@authorgroups @@ -1135,7 +1155,7 @@ Computing Machinery] \def\acmNumber#1{\def\@acmNumber{#1}} \acmNumber{1} \def\acmArticle#1{\def\@acmArticle{#1}} -\acmArticle{1} +\acmArticle{} \def\acmArticleSeq#1{\def\@acmArticleSeq{#1}} \acmArticleSeq{\@acmArticle} \def\acmYear#1{\def\@acmYear{#1}} @@ -1385,16 +1405,10 @@ Computing Machinery] source. \or % usgovmixed ACM acknowledges that this contribution was authored or co-authored - by an employee, or contractor of the national government. As such, - the Government retains a nonexclusive, royalty-free right to + by an employee, contractor, or affiliate of the United States government. As such, + the United States government retains a nonexclusive, royalty-free right to publish or reproduce this article, or to allow others to do so, for - Government purposes only. Permission to make digital or hard copies - for personal or classroom use is granted. Copies must 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. To copy otherwise, distribute, republish, or post, - requires prior specific permission and\hspace*{.5pt}/or a - fee. Request permissions from permissions@acm.org. + government purposes only. \or % cagov This article was authored by employees of the Government of Canada. As such, the Canadian government retains all interest in the @@ -1535,7 +1549,7 @@ Computing Machinery] \if@ACM@journal \emph{\@journalName}% \else - \emph{Proceedings of \acmConference@name, \acmConference@date}% + \emph{\@acmBooktitle}% \fi \ifx\@acmDOI\@empty . @@ -1548,9 +1562,9 @@ Computing Machinery] \ifx\@acmPrice\@empty\else\ \$\@acmPrice\fi\\ \@formatdoi{\@acmDOI}% \else % Conference - ACM~ISBN~\@acmISBN - \ifx\@acmPrice\@empty.\else\dots\$\@acmPrice\fi\\ - \@formatdoi{\@acmDOI}% + \ifx\@acmISBN\@empty\else ACM~ISBN~\@acmISBN + \ifx\@acmPrice\@empty.\else\dots\$\@acmPrice\fi\\\fi + \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi% \fi \fi \fi} @@ -1676,11 +1690,11 @@ Computing Machinery] \def\@titlefont{% \ifcase\ACM@format@nr \relax % manuscript - \LARGE\bfseries\sffamily + \LARGE\sffamily\bfseries \or % acmsmall - \LARGE\bfseries\sffamily + \LARGE\sffamily\bfseries \or % acmlarge - \LARGE\bfseries\sffamily + \LARGE\sffamily\bfseries \or % acmtog \Huge\sffamily \or % sigconf @@ -1795,7 +1809,7 @@ Computing Machinery] \def\city#1{\unskip\ignorespaces} \def\state#1{\unskip\ignorespaces} \newcommand\department[2][0]{} - \def\country#1{\unskip\ignorespaces} + \def\country#1{\if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} \else \def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% \def\institution#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% @@ -2016,23 +2030,27 @@ Computing Machinery] \ignorespaces\@abstract\par}% \fi\egroup} \def\@mkbibcitation{\bgroup + \def\@pages@word{\ifnum\getrefnumber{TotPages}=1\relax page\else pages\fi}% \def\footnotemark{}% \def\\{\unskip{} \ignorespaces}% \def\footnote{\ClassError{\@classname}{Please do note use footnotes inside \string\title{} or \string\author{} command! Use \string\titlenote{} or \string\authornote{} instead!}}% - \par\medskip\small\noindent{\bfseries ACM Reference format:}\par\nobreak + \def\@article@string{\ifx\@acmArticle\@empty{\ }\else, + Article~\@acmArticle\ \fi}% + \par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak \noindent\authors. \@acmYear. \@title. \if@ACM@journal \textit{\@journalNameShort} - \@acmVolume, \@acmNumber, Article~\@acmArticle\ (\@acmPubDate), - \ref{TotPages}~pages. + \@acmVolume, \@acmNumber \@article@string (\@acmPubDate), + \ref{TotPages}~\@pages@word. \else - In \textit{Proceedings of \acmConference@name, \acmConference@venue, - \acmConference@date - \ifx\acmConference@name\acmConference@shortname\else - \ (\acmConference@shortname)\fi - ,} \ref{TotPages}~pages. + In \textit{\@acmBooktitle}% + \ifx\@acmEditors\@empty\textit{.}\else + \andify\@acmEditors\textit{, }\@acmEditors~\@editorsAbbrev.% + \fi\ + ACM, New York, NY, USA% + \@article@string\unskip, \ref{TotPages}~\@pages@word. \fi\par \noindent\@formatdoi{\@acmDOI} \par\egroup} @@ -2197,7 +2215,8 @@ Computing Machinery] \@folio@voffset=.55in\relax \def\@folio@max{10} \fi -\def\@folioblob{\@tempcnta=\@acmArticleSeq\relax +\def\@folioblob{\@tempcnta=0\@acmArticleSeq\relax + \ifnum\@tempcnta=0\relax\else \loop \ifnum\@tempcnta>\@folio@max\relax \advance\@tempcnta by - \@folio@max @@ -2213,8 +2232,8 @@ Computing Machinery] \rule{\@folio@wd}{\@folio@ht}}}% \parbox{\@folio@wd}{% \centering - \textcolor{white}{\LARGE\bfseries\sffamily\@acmArticle}}}} - \end{picture}} + \textcolor{white}{\LARGE\sffamily\bfseries\@acmArticle}}}} + \end{picture}\fi} \fancypagestyle{firstpagestyle}{% \fancyhf{}% @@ -2261,6 +2280,14 @@ Computing Machinery] \fi \fi } +\let\ACM@ps@plain\ps@plain +\let\ACM@ps@myheadings\ps@myheadings +\let\ACM@ps@headings\ps@headings +\def\ACM@restore@pagestyle{% + \let\ps@plain\ACM@ps@plain + \let\ps@myheadings\ACM@ps@myheadings + \let\ps@headings\ACM@ps@headings} +\AtBeginDocument{\ACM@restore@pagestyle} \renewcommand\section{\@startsection{section}{1}{\z@}% {-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% {.25\baselineskip}% @@ -2303,8 +2330,8 @@ Computing Machinery] \def\@secfont{\bfseries\Large\section@raggedright\MakeTextUppercase} \def\@subsecfont{\bfseries\Large\section@raggedright} \or % siggraph - \def\@secfont{\bfseries\sffamily\Large\section@raggedright\MakeTextUppercase} - \def\@subsecfont{\bfseries\sffamily\Large\section@raggedright} + \def\@secfont{\sffamily\bfseries\Large\section@raggedright\MakeTextUppercase} + \def\@subsecfont{\sffamily\bfseries\Large\section@raggedright} \or % sigplan \def\@secfont{\bfseries\Large\section@raggedright} \def\@subsecfont{\bfseries\section@raggedright} @@ -2325,110 +2352,19 @@ Computing Machinery] \def\@subparfont{\itshape} \or % sigchi \setcounter{secnumdepth}{1} - \def\@secfont{\bfseries\sffamily\section@raggedright\MakeTextUppercase} - \def\@subsecfont{\bfseries\sffamily\section@raggedright} + \def\@secfont{\sffamily\bfseries\section@raggedright\MakeTextUppercase} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} \or % sigchi-a \setcounter{secnumdepth}{0} - \def\@secfont{\bfseries\sffamily\section@raggedright\MakeTextUppercase} - \def\@subsecfont{\bfseries\sffamily\section@raggedright} + \def\@secfont{\sffamily\bfseries\section@raggedright\MakeTextUppercase} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} \fi \def\@adddotafter#1{#1\@addpunct{.}} \def\@addspaceafter#1{#1\@addpunct{\enspace}} \providecommand*\@dotsep{4.5} -\def\@acmplainbodyfont{\itshape} -\def\@acmplainindent{\parindent} -\def\@acmplainheadfont{\scshape} -\def\@acmplainnotefont{\@empty} -\ifcase\ACM@format@nr -\relax % manuscript -\or % acmsmall -\or % acmlarge -\or % acmtog -\or % sigconf -\or % siggraph -\or % sigplan - \def\@acmplainbodyfont{\itshape} - \def\@acmplainindent{\z@} - \def\@acmplainheadfont{\bfseries} - \def\@acmplainnotefont{\normalfont} -\or % sigchi -\or % sigchi-a +\if@ACM@acmthm + \RequirePackage{acmthm} \fi -\newtheoremstyle{acmplain}% - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space above - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space below - {\@acmplainbodyfont}% body font - {\@acmplainindent}% indent amount - {\@acmplainheadfont}% head font - {.}% punctuation after head - {.5em}% spacing after head - {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec -\def\@acmdefinitionbodyfont{\normalfont} -\def\@acmdefinitionindent{\parindent} -\def\@acmdefinitionheadfont{\itshape} -\def\@acmdefinitionnotefont{\@empty} -\ifcase\ACM@format@nr -\relax % manuscript -\or % acmsmall -\or % acmlarge -\or % acmtog -\or % sigconf -\or % siggraph -\or % sigplan - \def\@acmdefinitionbodyfont{\normalfont} - \def\@acmdefinitionindent{\z@} - \def\@acmdefinitionheadfont{\bfseries} - \def\@acmdefinitionnotefont{\normalfont} -\or % sigchi -\or % sigchi-a -\fi -\newtheoremstyle{acmdefinition}% - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space above - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space below - {\@acmdefinitionbodyfont}% body font - {\@acmdefinitionindent}% indent amount - {\@acmdefinitionheadfont}% head font - {.}% punctuation after head - {.5em}% spacing after head - {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec -\theoremstyle{acmplain} -\newtheorem{theorem}{Theorem}[section] -\newtheorem{conjecture}[theorem]{Conjecture} -\newtheorem{proposition}[theorem]{Proposition} -\newtheorem{lemma}[theorem]{Lemma} -\newtheorem{corollary}[theorem]{Corollary} -\theoremstyle{acmdefinition} -\newtheorem{example}[theorem]{Example} -\newtheorem{definition}[theorem]{Definition} -\theoremstyle{acmplain} -\def\@proofnamefont{\scshape} -\def\@proofindent{\indent} -\ifcase\ACM@format@nr -\relax % manuscript -\or % acmsmall -\or % acmlarge -\or % acmtog -\or % sigconf -\or % siggraph -\or % sigplan - \def\@proofnamefont{\itshape} - \def\@proofindent{\noindent} -\or % sigchi -\or % sigchi-a -\fi -\renewenvironment{proof}[1][\proofname]{\par - \pushQED{\qed}% - \normalfont \topsep6\p@\@plus6\p@\relax - \trivlist - \item[\@proofindent\hskip\labelsep - {\@proofnamefont #1\@addpunct{.}}]\ignorespaces -}{% - \popQED\endtrivlist\@endpefalse -} \specialcomment{acks}{% \begingroup \section*{Acknowledgments} diff --git a/Master/texmf-dist/tex/latex/acmart/acmthm.sty b/Master/texmf-dist/tex/latex/acmart/acmthm.sty new file mode 100644 index 00000000000..86d34a69027 --- /dev/null +++ b/Master/texmf-dist/tex/latex/acmart/acmthm.sty @@ -0,0 +1,137 @@ +%% +%% This is file `acmthm.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% acmart.dtx (with options: `acmthm') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from acmthm.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file acmart.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\ProvidesPackage{acmthm} +[2017/08/15 v1.45 Typesetting articles for Association of +Computing Machinery] +\def\@acmplainbodyfont{\itshape} +\def\@acmplainindent{\parindent} +\def\@acmplainheadfont{\scshape} +\def\@acmplainnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmplainbodyfont{\itshape} + \def\@acmplainindent{\z@} + \def\@acmplainheadfont{\bfseries} + \def\@acmplainnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\fi +\newtheoremstyle{acmplain}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmplainbodyfont}% body font + {\@acmplainindent}% indent amount + {\@acmplainheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec +\def\@acmdefinitionbodyfont{\normalfont} +\def\@acmdefinitionindent{\parindent} +\def\@acmdefinitionheadfont{\itshape} +\def\@acmdefinitionnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmdefinitionbodyfont{\normalfont} + \def\@acmdefinitionindent{\z@} + \def\@acmdefinitionheadfont{\bfseries} + \def\@acmdefinitionnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\fi +\newtheoremstyle{acmdefinition}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmdefinitionbodyfont}% body font + {\@acmdefinitionindent}% indent amount + {\@acmdefinitionheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec +\theoremstyle{acmplain} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{conjecture}[theorem]{Conjecture} +\newtheorem{proposition}[theorem]{Proposition} +\newtheorem{lemma}[theorem]{Lemma} +\newtheorem{corollary}[theorem]{Corollary} +\theoremstyle{acmdefinition} +\newtheorem{example}[theorem]{Example} +\newtheorem{definition}[theorem]{Definition} +\theoremstyle{acmplain} +\def\@proofnamefont{\scshape} +\def\@proofindent{\indent} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@proofnamefont{\itshape} + \def\@proofindent{\noindent} +\or % sigchi +\or % sigchi-a +\fi +\renewenvironment{proof}[1][\proofname]{\par + \pushQED{\qed}% + \normalfont \topsep6\p@\@plus6\p@\relax + \trivlist + \item[\@proofindent\hskip\labelsep + {\@proofnamefont #1\@addpunct{.}}]\ignorespaces +}{% + \popQED\endtrivlist\@endpefalse +} +\endinput +%% +%% End of file `acmthm.sty'. |