Skip to content

Commit

Permalink
update acmart.cls to v2.10
Browse files Browse the repository at this point in the history
also move the version number to the start of the docs (and update it)
  • Loading branch information
rfindler committed Nov 28, 2024
1 parent 58a0267 commit 4db8b93
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
11 changes: 7 additions & 4 deletions scribble-doc/scribblings/scribble/acmart.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
language is like @racketmodname[scribble/base], but configured with
LaTeX style defaults to use the @hyperlink[acmart-url]{@tt{acmart}}
class for typesetting publications for the Association of Computing
Machinery.}
@margin-note{@tt{acmart} documentation: @link["https://portalparts.acm.org/hippo/latex_templates/acmart.pdf"]{[link]}}
Machinery.

It is based on v2.10 of Boris Veytsman's LaTeX package, which has
@link["https://portalparts.acm.org/hippo/latex_templates/acmart.pdf"]{its
own documention}.
}

@bold{Note:} a @racketmodname[scribble/acmart] document must include a
@racket[title] and @racket[author].
Expand Down Expand Up @@ -80,8 +84,7 @@ number of options may be used:

If multiple font size options are used, all but the last are ignored.

The latest @link["https://github.com/borisveytsman/acmart/releases/tag/v2.05"]{@tt{acmart} release}
(version 2.05, 2024-04-03, by Boris Veytsman)
The official @tt{acmart} release
provides these defaults and descriptions:

@tabular[#:style 'boxed
Expand Down
34 changes: 27 additions & 7 deletions scribble-lib/scribble/acmart/acmart.cls
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{acmart}
[2024/08/25 v2.09 Typesetting articles for the Association for Computing Machinery]
[2024/10/19 v2.10 Typesetting articles for the Association for Computing Machinery]
\def\@classname{acmart}
\InputIfFileExists{acmart-preload-hook.tex}{%
\ClassWarning{\@classname}{%
Expand Down Expand Up @@ -925,6 +925,10 @@
\let\@vspacer\@vspacer@orig}
\AtBeginEnvironment{listing*}{\let\@vspace\@vspace@orig
\let\@vspacer\@vspacer@orig}
\AtBeginEnvironment{lstinputlisting}{\let\@vspace\@vspace@orig
\let\@vspacer\@vspacer@orig}
\AtBeginEnvironment{lstinputlisting*}{\let\@vspace\@vspace@orig
\let\@vspacer\@vspacer@orig}

\RequirePackage{caption, float}
\captionsetup[table]{position=top}
Expand Down Expand Up @@ -1684,10 +1688,12 @@
\stepcounter{footnote}\footnotetext{#1}}%
\fi}
\newcommand\authornotemark[1][\relax]{%
\ifx#1\relax\relax\relax
\g@addto@macro\addresses{\@authornotemark}%
\else
\g@addto@macro\addresses{\@@authornotemark{#1}}%
\if@ACM@anonymous\else
\ifx#1\relax\relax\relax
\g@addto@macro\addresses{\@authornotemark}%
\else
\g@addto@macro\addresses{\@@authornotemark{#1}}%
\fi
\fi}
\def\acmVolume#1{\def\@acmVolume{#1}}
\acmVolume{1}
Expand Down Expand Up @@ -1824,7 +1830,7 @@
\fi}
\AtEndDocument{%
\ifx\@received\@empty\else
\par\bigskip\noindent\small\normalfont\@received\par
\par\bigskip\noindent{\small\normalfont\@received\par}%
\fi}
\define@choicekey+{ACM}{articletype}[\ACM@ArticleType\ACM@ArticleType@nr]{%
Research,Review,Discussion,Invited,Position}[Review]{%
Expand Down Expand Up @@ -2038,7 +2044,7 @@
Government and is in the public domain. Non-exclusive copying or
redistribution is allowed, provided that the article citation is
given and the authors and agency are clearly identified as its
source. All others Request permissions from
source. Request permissions from
owner\hspace*{.5pt}/author(s).
\or % usgovmixed
ACM acknowledges that this contribution was authored or co-authored
Expand Down Expand Up @@ -3319,6 +3325,20 @@
\def\@subsecfont{\bfseries\Large\section@raggedright}
\or %acmcp
\fi
\AtBeginDocument{%
\@for\@tempa:=-1,0,1,2,3,4,5\do{%
\@ifundefined{r@tocindent\@tempa}{%
\@xp\gdef\csname r@tocindent\@tempa\endcsname{0pt}}{}%
}%
}
\def\@writetocindents{%
\begingroup
\@for\@tempa:=-1,0,1,2,3,4,5\do{%
\immediate\write\@auxout{%
\string\newlabel{tocindent\@tempa}{%
\csname r@tocindent\@tempa\endcsname}}%
}%
\endgroup}
\def\@adddotafter#1{#1\@addpunct{.}}
\def\@addspaceafter#1{#1\@addpunct{\enspace}}
\if@ACM@acmcp
Expand Down

0 comments on commit 4db8b93

Please sign in to comment.