Skip to content

Commit 4db8b93

Browse files
committed
update acmart.cls to v2.10
also move the version number to the start of the docs (and update it)
1 parent 58a0267 commit 4db8b93

File tree

2 files changed

+34
-11
lines changed

2 files changed

+34
-11
lines changed

scribble-doc/scribblings/scribble/acmart.scrbl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
language is like @racketmodname[scribble/base], but configured with
1212
LaTeX style defaults to use the @hyperlink[acmart-url]{@tt{acmart}}
1313
class for typesetting publications for the Association of Computing
14-
Machinery.}
15-
@margin-note{@tt{acmart} documentation: @link["https://portalparts.acm.org/hippo/latex_templates/acmart.pdf"]{[link]}}
14+
Machinery.
15+
16+
It is based on v2.10 of Boris Veytsman's LaTeX package, which has
17+
@link["https://portalparts.acm.org/hippo/latex_templates/acmart.pdf"]{its
18+
own documention}.
19+
}
1620

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

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

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

8790
@tabular[#:style 'boxed

scribble-lib/scribble/acmart/acmart.cls

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
\NeedsTeXFormat{LaTeX2e}
4040
\ProvidesClass{acmart}
41-
[2024/08/25 v2.09 Typesetting articles for the Association for Computing Machinery]
41+
[2024/10/19 v2.10 Typesetting articles for the Association for Computing Machinery]
4242
\def\@classname{acmart}
4343
\InputIfFileExists{acmart-preload-hook.tex}{%
4444
\ClassWarning{\@classname}{%
@@ -925,6 +925,10 @@
925925
\let\@vspacer\@vspacer@orig}
926926
\AtBeginEnvironment{listing*}{\let\@vspace\@vspace@orig
927927
\let\@vspacer\@vspacer@orig}
928+
\AtBeginEnvironment{lstinputlisting}{\let\@vspace\@vspace@orig
929+
\let\@vspacer\@vspacer@orig}
930+
\AtBeginEnvironment{lstinputlisting*}{\let\@vspace\@vspace@orig
931+
\let\@vspacer\@vspacer@orig}
928932

929933
\RequirePackage{caption, float}
930934
\captionsetup[table]{position=top}
@@ -1684,10 +1688,12 @@
16841688
\stepcounter{footnote}\footnotetext{#1}}%
16851689
\fi}
16861690
\newcommand\authornotemark[1][\relax]{%
1687-
\ifx#1\relax\relax\relax
1688-
\g@addto@macro\addresses{\@authornotemark}%
1689-
\else
1690-
\g@addto@macro\addresses{\@@authornotemark{#1}}%
1691+
\if@ACM@anonymous\else
1692+
\ifx#1\relax\relax\relax
1693+
\g@addto@macro\addresses{\@authornotemark}%
1694+
\else
1695+
\g@addto@macro\addresses{\@@authornotemark{#1}}%
1696+
\fi
16911697
\fi}
16921698
\def\acmVolume#1{\def\@acmVolume{#1}}
16931699
\acmVolume{1}
@@ -1824,7 +1830,7 @@
18241830
\fi}
18251831
\AtEndDocument{%
18261832
\ifx\@received\@empty\else
1827-
\par\bigskip\noindent\small\normalfont\@received\par
1833+
\par\bigskip\noindent{\small\normalfont\@received\par}%
18281834
\fi}
18291835
\define@choicekey+{ACM}{articletype}[\ACM@ArticleType\ACM@ArticleType@nr]{%
18301836
Research,Review,Discussion,Invited,Position}[Review]{%
@@ -2038,7 +2044,7 @@
20382044
Government and is in the public domain. Non-exclusive copying or
20392045
redistribution is allowed, provided that the article citation is
20402046
given and the authors and agency are clearly identified as its
2041-
source. All others Request permissions from
2047+
source. Request permissions from
20422048
owner\hspace*{.5pt}/author(s).
20432049
\or % usgovmixed
20442050
ACM acknowledges that this contribution was authored or co-authored
@@ -3319,6 +3325,20 @@
33193325
\def\@subsecfont{\bfseries\Large\section@raggedright}
33203326
\or %acmcp
33213327
\fi
3328+
\AtBeginDocument{%
3329+
\@for\@tempa:=-1,0,1,2,3,4,5\do{%
3330+
\@ifundefined{r@tocindent\@tempa}{%
3331+
\@xp\gdef\csname r@tocindent\@tempa\endcsname{0pt}}{}%
3332+
}%
3333+
}
3334+
\def\@writetocindents{%
3335+
\begingroup
3336+
\@for\@tempa:=-1,0,1,2,3,4,5\do{%
3337+
\immediate\write\@auxout{%
3338+
\string\newlabel{tocindent\@tempa}{%
3339+
\csname r@tocindent\@tempa\endcsname}}%
3340+
}%
3341+
\endgroup}
33223342
\def\@adddotafter#1{#1\@addpunct{.}}
33233343
\def\@addspaceafter#1{#1\@addpunct{\enspace}}
33243344
\if@ACM@acmcp

0 commit comments

Comments
 (0)