| 1 |
% \iffalse |
| 2 |
% |
| 3 |
% Copyright 2016-2025, Association for Computing Machinery |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either |
| 6 |
% version 1.3 of this license or (at your option) any |
| 7 |
% later version. |
| 8 |
% The latest version of the license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3 or later is part of all distributions of |
| 11 |
% LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status `maintained'. |
| 14 |
% |
| 15 |
% The Current Maintainer of this work is Boris Veytsman, |
| 16 |
% <[email protected]> |
| 17 |
% |
| 18 |
% This work consists of the file acmart.dtx, the derived file |
| 19 |
% acmart.cls, the files ACM-Reference-Format.bst, and templates |
| 20 |
% sample-acmlarge.tex, sample-acmsmall.tex, sample-acmtog.tex, |
| 21 |
% samplebody-conf.tex, samplebody-journals.tex, sample-manuscript.tex, |
| 22 |
% sample-sigconf-authordraft.tex, sample-sigconf.tex, |
| 23 |
% sample-sigplan.tex |
| 24 |
% |
| 25 |
% \fi |
| 26 |
% |
| 27 |
% |
| 28 |
%% \CharacterTable |
| 29 |
%% {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 |
| 30 |
%% 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 |
| 31 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 32 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 33 |
%% Dollar \$ Percent \% Ampersand \& |
| 34 |
%% Acute accent \' Left paren \( Right paren \) |
| 35 |
%% Asterisk \* Plus \+ Comma \, |
| 36 |
%% Minus \- Point \. Solidus \/ |
| 37 |
%% Colon \: Semicolon \; Less than \< |
| 38 |
%% Equals \= Greater than \> Question mark \? |
| 39 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 40 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 41 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 42 |
%% Right brace \} Tilde \~} |
| 43 |
% |
| 44 |
% |
| 45 |
% \MakeShortVerb{|} |
| 46 |
% \def\guide{acmguide} |
| 47 |
% \iffalse |
| 48 |
% From |
| 49 |
% http://tex.stackexchange.com/questions/117892/can-i-convert-a-string-to-catcode-11 by egreg |
| 50 |
% \fi |
| 51 |
% \begingroup |
| 52 |
% \everyeof{\noexpand} |
| 53 |
% \endlinechar=-1 |
| 54 |
% \xdef\currentjob{\scantokens\expandafter{\jobname}} |
| 55 |
% \endgroup |
| 56 |
% |
| 57 |
% \ifx\currentjob\guide\OnlyDescription\fi |
| 58 |
% \GetFileInfo{acmart.dtx} |
| 59 |
% \title{\LaTeX{} Class for the \emph{Association for Computing |
| 60 |
% Machinery}\thanks{\copyright 2016--2025, Association for Computing Machinery}} |
| 61 |
% \author{Boris Veytsman\thanks{% |
| 62 |
% \href{mailto:[email protected]}{\texttt{[email protected]}}, |
| 63 |
% \href{mailto:[email protected]}{\texttt{[email protected]}}}} |
| 64 |
% \date{\filedate, \fileversion} |
| 65 |
% \maketitle |
| 66 |
% \begin{abstract} |
| 67 |
% This package provides a class for typesetting publications of |
| 68 |
% the Association for Computing Machinery. |
| 69 |
% \end{abstract} |
| 70 |
% \tableofcontents |
| 71 |
% |
| 72 |
% \clearpage |
| 73 |
% |
| 74 |
%\section{Introduction} |
| 75 |
%\label{sec:intro} |
| 76 |
% |
| 77 |
% The Association for Computing |
| 78 |
% Machinery\footnote{\url{http://www.acm.org/}} is the world's largest |
| 79 |
% educational and scientific computing society, which delivers |
| 80 |
% resources that advance computing as a science and a |
| 81 |
% profession. It was one of the |
| 82 |
% early adopters of \TeX\ for its typesetting. |
| 83 |
% |
| 84 |
% It provided several different classes for a number of journals and |
| 85 |
% conference proceedings. Unfortunately during the years since these |
| 86 |
% classes were written, the code was patched many times, and |
| 87 |
% supporting different versions of the classes became difficult. |
| 88 |
% |
| 89 |
% This new consolidated template package replaces all previous |
| 90 |
% independent class files and packages and provides a single |
| 91 |
% up-to-date LaTeX package with optional calls. The package uses only |
| 92 |
% free \TeX\ packages and fonts included in \TeX Live, Mik\TeX\ and |
| 93 |
% other popular \TeX\ distributions. The new ACM templates use a new |
| 94 |
% font set (libertine) which will need to be installed on your machine |
| 95 |
% before using the templates. Please download and install the |
| 96 |
% libertine font set before writing your paper. Fonts used in the |
| 97 |
% template cannot be substituted; margin adjustments are not allowed. |
| 98 |
% |
| 99 |
% I am grateful to |
| 100 |
% Michael D.~Adams, |
| 101 |
% Leif Andersen, |
| 102 |
% Lawrence Christopher Angrave, |
| 103 |
% Dirk Beyer, |
| 104 |
% Andrew Black, |
| 105 |
% Joachim Breitner, |
| 106 |
% Yegor Bugayenko, |
| 107 |
% Benjamin Byholm, |
| 108 |
% John Collins, |
| 109 |
% Roberto Di Cosmo, |
| 110 |
% Nils Anders Danielsson, |
| 111 |
% Michael Ekstrand, |
| 112 |
% Matthew Fluet, |
| 113 |
% Paolo G.~Giarrusso, |
| 114 |
% Ben Greenman, |
| 115 |
% Enrico Gregorio, |
| 116 |
% Jamie Davis, |
| 117 |
% Ulrike Fischer, |
| 118 |
% Jason Hemann, |
| 119 |
% Peter Kemp, |
| 120 |
% Luis Leiva, |
| 121 |
% Ben Liblit, |
| 122 |
% Rholais Lii, |
| 123 |
% LianTze Lim, |
| 124 |
% Kuldeep S. Meel, |
| 125 |
% Kai Mindermann, |
| 126 |
% Frank Mittelbach, |
| 127 |
% Serguei Mokhov, |
| 128 |
% Ross Moore, |
| 129 |
% John Owens, |
| 130 |
% Joel Nider, |
| 131 |
% Scott Pakin, |
| 132 |
% Tobias Pape, |
| 133 |
% Henning Pohl, |
| 134 |
% Philip Quinn, |
| 135 |
% Mathias Rav, |
| 136 |
% Andreas Reichinger, |
| 137 |
% Matteo Riondato, |
| 138 |
% Craig Rodkin, |
| 139 |
% Bernard Rous, |
| 140 |
% Feras Saad, |
| 141 |
% Kerry A. Seitz, Jr., |
| 142 |
% M Senthilkumar, |
| 143 |
% David Shamma, |
| 144 |
% Gabriel Scherer, |
| 145 |
% Kartik Singhal, |
| 146 |
% Christoph Sommer, |
| 147 |
% Stephen Spencer, |
| 148 |
% Shin Hwei Tan, |
| 149 |
% Daniel Thomas, |
| 150 |
% Shari Trewin, |
| 151 |
% Zack Weinberg, |
| 152 |
% John Wickerson |
| 153 |
% and many others for their invaluable help. |
| 154 |
% |
| 155 |
% The development version of the package is available at |
| 156 |
% \url{https://github.com/borisveytsman/acmart}. |
| 157 |
% |
| 158 |
%\section{User's guide} |
| 159 |
%\label{sec:ug} |
| 160 |
% |
| 161 |
% |
| 162 |
% This class uses many commands and customizaton options, so it might |
| 163 |
% appear intimidating for a casual user. Do not panic! Many of these |
| 164 |
% commands and options can be safely left with their default values |
| 165 |
% or the values recommended by your conference or journal editors. If |
| 166 |
% you have problems or questions, do not hesitate to ask me directly |
| 167 |
% or the community at \url{https://github.com/borisveytsman/acmart}, |
| 168 |
% \url{https://tex.stackexchange.com} or the closest \TeX\ Users |
| 169 |
% Group. The world-wide \TeX\ Users Group is at |
| 170 |
% \url{https://tug.org/}; please consider joining us if you use \TeX\ |
| 171 |
% regularly. |
| 172 |
% |
| 173 |
%\subsection{Installation} |
| 174 |
%\label{sec:ug_install} |
| 175 |
% |
| 176 |
% Most probably, you already have this package installed in your |
| 177 |
% favorite \TeX\ distribution; if not, you may want to upgrade. You |
| 178 |
% may need to upgrade it anyway since this package uses a number of |
| 179 |
% relatively recent packages, especially the ones related to fonts. |
| 180 |
% |
| 181 |
% The latest released version of this package can be found on CTAN: |
| 182 |
% \url{https://www.ctan.org/pkg/acmart}. The development version can |
| 183 |
% be found on GitHub: \url{https://github.com/borisveytsman/acmart}. |
| 184 |
% At this address you can file a bug report---or even contribute your |
| 185 |
% own enhancement by making a pull request. |
| 186 |
% |
| 187 |
% Please note that the version on Github is a development (or |
| 188 |
% experimental) version: please download it for testing new features. |
| 189 |
% The production version is the one on CTAN and ACM sites. |
| 190 |
% |
| 191 |
% Most users should not attempt to install this package themselves |
| 192 |
% but should rather rely on their \TeX\ distributions to provide it. If you |
| 193 |
% decide to install the package yourself, follow the standard rules: |
| 194 |
% \begin{enumerate} |
| 195 |
% \item Run |latex acmart.ins|. This will produce the file |
| 196 |
% |acmart.cls| |
| 197 |
% \item Put the files |acmart.cls|, |acm-jdslogo.png|, |
| 198 |
% and |ACM-Reference-Format.bst| |
| 199 |
% in places where \LaTeX{} can find them (see \cite{TeXFAQ} or |
| 200 |
% the documentation for your \TeX{} system).\label{item:install} |
| 201 |
% \item Update the database of file names. Again, see \cite{TeXFAQ} |
| 202 |
% or the documentation for your \TeX{} system for the system-specific |
| 203 |
% details.\label{item:update} |
| 204 |
% \item The file |acmart.pdf| provides the documentation for the |
| 205 |
% package. (This is probably the file you are reading now.) |
| 206 |
% \end{enumerate} |
| 207 |
% As an alternative to items~\ref{item:install} and~\ref{item:update} |
| 208 |
% you can just put the files in the working directory where your |
| 209 |
% |.tex| file is. |
| 210 |
% |
| 211 |
% |
| 212 |
% This class uses a number of other packages. They are included in all |
| 213 |
% major \TeX\ distributions (\TeX Live, Mac\TeX, Mik\TeX) of 2015 and |
| 214 |
% later, so you probably have them installed. Just in case here is |
| 215 |
% the list of these packages: |
| 216 |
% \begin{itemize} |
| 217 |
% \item \textsl{amsart}, \url{https://ctan.org/pkg/amsart}, |
| 218 |
% \item \textsl{babel}, \url{https://ctan.org/pkg/babel}, |
| 219 |
% \item \textsl{balance}, \url{https://ctan.org/pkg/balance}, |
| 220 |
% \item \textsl{booktabs}, \url{https://ctan.org/pkg/booktabs}, |
| 221 |
% \item \textsl{caption}, \url{https://ctan.org/pkg/caption}, |
| 222 |
% \item \textsl{cmap}, \url{https://ctan.org/pkg/cmap}, |
| 223 |
% \item \textsl{comment}, \url{https://ctan.org/pkg/comment}, |
| 224 |
% \item \textsl{doclicense}, \url{https://ctan.org/pkg/doclicense}, |
| 225 |
% \item \textsl{draftwatermark}, \url{https://ctan.org/pkg/draftwatermark}, |
| 226 |
% \item \textsl{environ}, \url{https://ctan.org/pkg/environ}, |
| 227 |
% \item \textsl{etoolbox}, \url{https://ctan.org/pkg/etoolbox}, |
| 228 |
% \item \textsl{fancyhdr}, \url{https://ctan.org/pkg/fancyhdr}, |
| 229 |
% \item \textsl{float}, \url{https://ctan.org/pkg/float}, |
| 230 |
% \item \textsl{fontenc}, \url{https://ctan.org/pkg/fontenc}, |
| 231 |
% \item \textsl{framed}, \url{https://ctan.org/pkg/framed}, |
| 232 |
% \item \textsl{geometry}, \url{https://ctan.org/pkg/geometry}, |
| 233 |
% \item \textsl{graphicx}, \url{https://ctan.org/pkg/graphicx}, |
| 234 |
% \item \textsl{hyperref}, \url{https://ctan.org/pkg/hyperref}, |
| 235 |
% \item \textsl{hyperxmp}, \url{https://ctan.org/pkg/hyperxmp}, |
| 236 |
% \item \textsl{iftex}, \url{https://ctan.org/pkg/iftex}, |
| 237 |
% \item \textsl{libertine}, \url{https://ctan.org/pkg/libertine}, |
| 238 |
% \item \textsl{manyfoot}, \url{https://ctan.org/pkg/manyfoot}, |
| 239 |
% \item \textsl{microtype}, \url{https://ctan.org/pkg/microtype}, |
| 240 |
% \item \textsl{natbib}, \url{https://ctan.org/pkg/natbib}, |
| 241 |
% \item \textsl{newtxmath}, \url{https://ctan.org/pkg/newtxmath}, |
| 242 |
% \item \textsl{pbalance}, \url{https://ctan.org/pkg/pbalance}, |
| 243 |
% \item \textsl{refcount}, \url{https://ctan.org/pkg/refcount}, |
| 244 |
% \item \textsl{setspace}, \url{https://ctan.org/pkg/setspace}, |
| 245 |
% \item \textsl{totpages}, \url{https://ctan.org/pkg/totpages}, |
| 246 |
% \item \textsl{unicode-math}, \url{https://ctan.org/pkg/unicode-math}, |
| 247 |
% \item \textsl{xcolor}, \url{https://ctan.org/pkg/xcolor}, |
| 248 |
% \item \textsl{xkeyval}, \url{https://ctan.org/pkg/xkeyval}, |
| 249 |
% \item \textsl{xstring}, \url{https://ctan.org/pkg/xstring}, |
| 250 |
% \item \textsl{zi4}, \url{https://ctan.org/pkg/zi4}, |
| 251 |
% \item \textsl{zref-savepos}, \url{https://ctan.org/pkg/zref-savepos}, |
| 252 |
% \item \textsl{zref-user}, \url{https://ctan.org/pkg/zref-user}. |
| 253 |
% \end{itemize} |
| 254 |
% |
| 255 |
% |
| 256 |
%\subsection{Invocation and options} |
| 257 |
%\label{sec:invocation} |
| 258 |
% |
| 259 |
% To use this class, put in the preamble of your document |
| 260 |
% \begin{quote} |
| 261 |
% \cs{documentclass}\oarg{options}|{acmart}| |
| 262 |
% \end{quote} |
| 263 |
% There are several options corresponding to the type of the document and |
| 264 |
% its general appearance. They are described below. Generally |
| 265 |
% speaking, the options have |key=value| forms, for example, |
| 266 |
% \begin{verbatim} |
| 267 |
% \documentclass[format=acmsmall, screen=true, review=false]{acmart} |
| 268 |
% \end{verbatim} |
| 269 |
% |
| 270 |
% |
| 271 |
% The option |format| describes the format of the output. There are |
| 272 |
% several possible values for this option, for example, |
| 273 |
% \begin{verbatim} |
| 274 |
% \documentclass[format=acmtog]{acmart} |
| 275 |
% \end{verbatim} |
| 276 |
% Actually the words |format=| can be omitted, e.g., |
| 277 |
% \begin{verbatim} |
| 278 |
% \documentclass[acmtog, review=false]{acmart} |
| 279 |
% \end{verbatim} |
| 280 |
% The possible formats are listed in Table~\ref{tab:opts_format}. |
| 281 |
% Note that formats starting with |acm| are intended for journals, |
| 282 |
% transactions, and course materials, while formats starting with |
| 283 |
% |sig| are intended for proceedings published as books. |
| 284 |
% |
| 285 |
% Sometimes conference proceedings are published as a special issue |
| 286 |
% (or issues) of an ACM journal. In this case, you should use the |
| 287 |
% journal format. The templates |sample-acmsmall-conf.tex| and |
| 288 |
% |sample-acmtog-conf.tex| show how to enter conference information. |
| 289 |
% Note that you need to comment out |\acmJournal{...}| line for such |
| 290 |
% papers to get the conference information in the footers and headers. |
| 291 |
% |
| 292 |
% \begin{table} |
| 293 |
% \centering |
| 294 |
% \caption{The possible values for the \texttt{format} option} |
| 295 |
% \label{tab:opts_format} |
| 296 |
% \begin{tabularx}{\textwidth}{>{\ttfamily}lX} |
| 297 |
% \toprule |
| 298 |
% \normalfont Value & Meaning\\ |
| 299 |
% \midrule |
| 300 |
% manuscript & A manuscript. This is the default. \\ |
| 301 |
% acmsmall & Small single-column format. Used for ACMJCSS, |
| 302 |
% ACMJDS, AILET, CIE, CSUR, |
| 303 |
% FAC, GAMES, JACM, JATS, JDIQ, JDS, JEA, JERIC, |
| 304 |
% JETC, JRC, PACMCGIT, PACMHCI, PACMMOD, PACMNET, |
| 305 |
% PACMPL, PACMSE, POMACS, TAAS, TACCESS, TACO, TAIS, TAISAP, |
| 306 |
% TALG, TALLIP (formerly TALIP), TCPS, TDS, |
| 307 |
% TEAC, TECS, TELO, THRI, TIIS, TIOT, TISSEC, TIST, TKDD, TMIS, |
| 308 |
% TOCE, TOCHI, TOCL, |
| 309 |
% TOCS, TOCT, TODAES, TODS, TOIS, TOIT, TOMACS, TOMM (formerly |
| 310 |
% TOMCCAP), TOMPECS, TOMS, TOPC, TOPLAS, TOPML, TOPS, TORS |
| 311 |
% TOS, TOSEM, TOSN, TQC, TRETS, |
| 312 |
% TSAS, TSC, TSLP, and TWEB, including special issues. \\ |
| 313 |
% acmlarge & Large single-column format. Used for DLT, DTRAP, HEALTH, |
| 314 |
% IMWUT, JOCCH, and TAP, including special issues. \\ |
| 315 |
% acmtog & Large double-column format. Used for |
| 316 |
% TOG, including annual conference Technical Papers.\\ |
| 317 |
% sigconf & Proceedings format for most ACM |
| 318 |
% conferences (with the exception of SIGPLAN) and all ICPS |
| 319 |
% volumes.\\ |
| 320 |
% sigplan & Proceedings format for SIGPLAN conferences.\\ |
| 321 |
% acmengage & ACM EngageCSEdu Course materials.\\ |
| 322 |
% acmcp & ACM cover page. \\ |
| 323 |
% \bottomrule |
| 324 |
% \end{tabularx} |
| 325 |
% \end{table} |
| 326 |
% |
| 327 |
% Starting in 2020, ACM retired formats |sigchi| and |sigchi-a|. |
| 328 |
% SIGCHI conferences now use |sigconf| format for their publications. |
| 329 |
% If a file uses |sigchi| format, a warning is issued, and the format |
| 330 |
% is automatically switched to |sigconf|. Format |sigchi-a| can be |
| 331 |
% used for non-ACM documents only (see Section~\ref{sec:sigchi-a}). |
| 332 |
% The format |acmcp| is used for ACM cover pages discussed in |
| 333 |
% Section~\ref{sec:ug_acmcp}. |
| 334 |
% |
| 335 |
% |
| 336 |
% There are several Boolean options that can take |true| or |false| |
| 337 |
% values. They are listed in Table~\ref{tab:opts_bool}. The words |
| 338 |
% |=true| can be omitted when setting a Boolean option, so instead of |
| 339 |
% |screen=true| one can write just |screen|, for example, |
| 340 |
% \begin{verbatim} |
| 341 |
% \documentclass[acmsmall, screen, review]{acmart} |
| 342 |
% \end{verbatim} |
| 343 |
% The option |review| is useful when combined with the |manuscript| format |
| 344 |
% option. It provides a version suitable for reviewers and |
| 345 |
% copy editors. |
| 346 |
% |
| 347 |
% Two samples in the |samples| directory, |manuscript| and |
| 348 |
% |acmsmall-submission|, show manuscripts formatted for submission to |
| 349 |
% ACM. |
| 350 |
% |
| 351 |
% The default for the option |screen| depends on the publication. At |
| 352 |
% present it is |false| for all publications \emph{but} PACM, since |
| 353 |
% PACM is now electronic-only. Thus PACM titles~(see |
| 354 |
% Table~\ref{tab:pubs}) set this option to |true|. In the future this |
| 355 |
% option may involve additional features suitable for on-screen |
| 356 |
% versions of articles. |
| 357 |
% |
| 358 |
% The option |natbib| is used when the corresponding |
| 359 |
% \BibTeX\ style is based on |natbib|. In most cases you do not need |
| 360 |
% to set it. See |
| 361 |
% Section~\ref{sec:ug_bibliography}. |
| 362 |
% |
| 363 |
% The option |anonymous| is used |
| 364 |
% for anonymous review processes and causes all author information to be |
| 365 |
% obscured. |
| 366 |
% |
| 367 |
% The option |timestamp| is used to include a time stamp in the |
| 368 |
% footer of each page. When preparing a document, this can help avoid |
| 369 |
% confusing different revisions. The footer also includes the page range of |
| 370 |
% the document. This helps detect missing pages in hard copies. |
| 371 |
% |
| 372 |
% The option |authordraft| is intended for author's drafts that are not |
| 373 |
% intended for distribution. It typesets a copyright block to give the |
| 374 |
% author an idea of its size and the overall size of the paper but |
| 375 |
% overprints it with the phrase ``Unpublished working draft. Not for |
| 376 |
% distribution.'', which is also used as a watermark. This option sets |
| 377 |
% |timestamp| and |review| to |true|, but these can be |
| 378 |
% overriden by setting these options to |false| \emph{after} |
| 379 |
% setting |authordraft| to |true|. |
| 380 |
% |
| 381 |
% The option |balance| determines whether the last page in the two |
| 382 |
% column mode has balanced columns. By default it is |true|; however, |
| 383 |
% it may lead to problems for some documents. When there are many |
| 384 |
% figures near the end of the document, the attempts to balance |
| 385 |
% columns may lead to the loss of the figures. Set this option to |false| if |
| 386 |
% you encounter problems. An alternative is the |
| 387 |
% (experimental) option |pbalance|, which uses the new package |
| 388 |
% |pbalance|. You may want to try |pbalance=true| to see if you get |
| 389 |
% better results. |
| 390 |
% |
| 391 |
% The option |urlbreakonhyphens| determines whether URLs can be split |
| 392 |
% between lines after hyphens. By default it is true. Set it to |
| 393 |
% |false| to disallow these breaks. |
| 394 |
% |
| 395 |
% \begin{table} |
| 396 |
% \centering |
| 397 |
% \caption{Boolean options} |
| 398 |
% \label{tab:opts_bool} |
| 399 |
% \begin{tabularx}{\textwidth}{>{\ttfamily}l>{\ttfamily}lX} |
| 400 |
% \toprule |
| 401 |
% \normalfont Option & \normalfont Default & Meaning\\ |
| 402 |
% \midrule |
| 403 |
% review & false & A review version: lines are numbered and |
| 404 |
% hyperlinks are colored\\ |
| 405 |
% screen & {\rmfamily see text} & A screen version: |
| 406 |
% hyperlinks are colored\\ |
| 407 |
% natbib & true & Whether to use the |natbib| package (see |
| 408 |
% Section~\ref{sec:ug_bibliography})\\ |
| 409 |
% anonymous & false & Whether to make author(s) anonymous\\ |
| 410 |
% authorversion & false & Whether to generate a special |
| 411 |
% version for the authors' personal use or posting (see |
| 412 |
% Section~\ref{sec:ug_topmatter})\\ |
| 413 |
% nonacm & false & Use the class typesetting options for |
| 414 |
% a non-ACM document, which will not include the conference/journal |
| 415 |
% header and footers. Currenly such documents allow only a |
| 416 |
% Creative Commons license.\\ |
| 417 |
% timestamp & false & Whether to put a time stamp in the |
| 418 |
% footer of each page\\ |
| 419 |
% authordraft & false & Whether author's-draft mode is enabled\\ |
| 420 |
% acmthm & true & Whether to define theorem-like environments, see |
| 421 |
% Section~\ref{sec:ug_theorems}\\ |
| 422 |
% balance & true & Whether to balance the last page in two column |
| 423 |
% mode\\ |
| 424 |
% pbalance & false & Whether to balance the last page in two column |
| 425 |
% mode using pbalance package\\ |
| 426 |
% urlbreakonhyphens & true & Whether to break urls on hyphens\\ |
| 427 |
% \bottomrule |
| 428 |
% \end{tabularx} |
| 429 |
% \end{table} |
| 430 |
% |
| 431 |
% The option |language| is used to define the languages for the |
| 432 |
% multi-language papers. It is discussed in |
| 433 |
% Section~\ref{sec:ug_i13n}. |
| 434 |
% |
| 435 |
%\subsection{Top matter} |
| 436 |
%\label{sec:ug_topmatter} |
| 437 |
% |
| 438 |
% A number of commands set up \emph{top matter} or (in |
| 439 |
% computer science jargon) \emph{metadata} for an article. They |
| 440 |
% establish the publication name, article title, authors, DOI and |
| 441 |
% other data. Some of these commands, like \cs{title} and \cs{author}, |
| 442 |
% should be put by the authors. Others, like \cs{acmVolume} and |
| 443 |
% \cs{acmDOI}---by the editors. Below we describe these commands and |
| 444 |
% mention who should issue them. These macros should be used |
| 445 |
% \emph{before} the \cs{maketitle} command. Note that in previous |
| 446 |
% versions of ACM classes some of these commands should be used before |
| 447 |
% \cs{maketitle}, and some after it. Now they all must be used before |
| 448 |
% \cs{maketitle}. |
| 449 |
% |
| 450 |
% |
| 451 |
% This class internally loads the |amsart| class, so many top-matter |
| 452 |
% commands are inherited from |amsart|~\cite{Downes04:amsart}. |
| 453 |
% |
| 454 |
% \DescribeMacro{\acmJournal}% |
| 455 |
% The macro \cs{acmJournal}\marg{shortName} sets the name of the |
| 456 |
% journal or transaction for journals and transactions. The argument |
| 457 |
% is the short name of the publication \emph{in uppercase}, for |
| 458 |
% example, |
| 459 |
% \begin{verbatim} |
| 460 |
% \acmJournal{TOMS} |
| 461 |
% \end{verbatim} |
| 462 |
% The currently recognized journals are listed in |
| 463 |
% Table~\ref{tab:pubs}. Note that conference proceedings published in |
| 464 |
% \emph{book} form do not set this macro. |
| 465 |
% |
| 466 |
% |
| 467 |
% |
| 468 |
% \DescribeMacro{\acmConference}% |
| 469 |
% The macro |
| 470 |
% \cs{acmConference}\oarg{short name}\marg{name}\marg{date}\marg{venue} is |
| 471 |
% used for conference proceedings published in the book form. The |
| 472 |
% arguments are the following: |
| 473 |
% \begin{description} |
| 474 |
% \item[short name:] the abbreviated name of the conference (optional). |
| 475 |
% \item[name:] the name of the conference. |
| 476 |
% \item[date:] the date(s) of the conference. |
| 477 |
% \item[venue:] the place of the conference. |
| 478 |
% \end{description} |
| 479 |
% Examples: |
| 480 |
% \begin{verbatim} |
| 481 |
% \acmConference[TD'15]{Technical Data Conference}{November |
| 482 |
% 12--16}{Dallas, TX, USA} |
| 483 |
% \acmConference{SA'15 Art Papers}{November 02--06, 2015}{Kobe, Japan} |
| 484 |
% \end{verbatim} |
| 485 |
% |
| 486 |
% \DescribeMacro{\acmBooktitle}% |
| 487 |
% By default we assume that conference proceedings are published |
| 488 |
% in the book named \emph{Proceedings of \textsc{CONFERENCE}}, where |
| 489 |
% \textsc{CONFERENCE} is the name of the conference inferred from the |
| 490 |
% command \cs{acmConference} above. However, sometimes the book title |
| 491 |
% is different. The command \cs{acmBooktitle} can be used to set this |
| 492 |
% title, for example, |
| 493 |
% \begin{verbatim} |
| 494 |
% \acmBooktitle{Companion to the first International Conference on the |
| 495 |
% Art, Science and Engineering of Programming (Programming '17)} |
| 496 |
% \end{verbatim} |
| 497 |
% |
| 498 |
% |
| 499 |
% An ACM paper should have either \cs{acmJournal} or |
| 500 |
% \cs{acmConference} command. If it has both (or more) commands, the |
| 501 |
% last one takes precedence. Note that if you have the command |
| 502 |
% \cs{acmConference} in a journal format like |acmsmall|, the class |
| 503 |
% will use conference format for bibstrip and reference citation |
| 504 |
% formatting. In the samples directory there is a file |
| 505 |
% |sample-acmsmall-conf.tex| with the example of this usage. |
| 506 |
% |
| 507 |
% An ACM Engage material should \emph{not} use \cs{acmJournal} or |
| 508 |
% \cs{acmConference} command. It may use \cs{acmBooktitle} to |
| 509 |
% override the default \emph{ACM EngageCSEdu}. It should use \cs{acmYear} |
| 510 |
% to set the date of the material. |
| 511 |
% |
| 512 |
% |
| 513 |
% |
| 514 |
% \DescribeMacro{\editor}% |
| 515 |
% In most cases, conference proceedings are edited. You can use the |
| 516 |
% command \cs{editor}\marg{editor} to set the editor of the volume. |
| 517 |
% This command can be repeated, for example, |
| 518 |
% \begin{verbatim} |
| 519 |
% \editor{Jennifer B. Sartor} |
| 520 |
% \editor{Theo D'Hondt} |
| 521 |
% \editor{Wolfgang De Meuter} |
| 522 |
% \end{verbatim} |
| 523 |
% |
| 524 |
% |
| 525 |
% \DescribeMacro{\title}% |
| 526 |
% The command |\title|, as in the |amsart| class, has two arguments: one |
| 527 |
% optional, and one mandatory: |
| 528 |
% \begin{flushleft} |
| 529 |
% |\title[|\meta{ShortTitle}|]{|\meta{FullTitle}|}| |
| 530 |
% \end{flushleft} |
| 531 |
% The mandatory argument is the full title of the article. The |
| 532 |
% optional argument, if present, defines the shorter version of the |
| 533 |
% title for running heads. If the optional argument is absent, the |
| 534 |
% full title is used instead. |
| 535 |
% |
| 536 |
% It is expected that this command is inserted by the author of the |
| 537 |
% manuscript. |
| 538 |
% |
| 539 |
% \DescribeMacro{\subtitle}% |
| 540 |
% Besides title, ACM classes allow a subtitle, set with the |
| 541 |
% \cs{subtitle}\marg{subtitle} macro. |
| 542 |
% |
| 543 |
% The commands for specifying authors are highly structured. |
| 544 |
% The reason is they serve double duty: the authors' information is |
| 545 |
% typeset in the manuscript \emph{and} is used by the metadata |
| 546 |
% extraction tools for indexing and cataloguing. Therefore it is very |
| 547 |
% important to follow the guidelines exactly. |
| 548 |
% |
| 549 |
% \DescribeMacro{\author}% |
| 550 |
% \DescribeMacro{\orcid} |
| 551 |
% \DescribeMacro{\affiliation}% |
| 552 |
% \DescribeMacro{\email}% |
| 553 |
% The basic commands are \cs{author}, \cs{orcid} (for the researchers |
| 554 |
% registered with ORCID, \url{http://www.orcid.org/}), \cs{affiliation} and |
| 555 |
% \cs{email}. In the simplest case, you enter them in this order: |
| 556 |
% \begin{verbatim} |
| 557 |
% \author{...} |
| 558 |
% \orcid{...} |
| 559 |
% \affiliation{...} |
| 560 |
% \email{...} |
| 561 |
% \end{verbatim} |
| 562 |
% Do \emph{not} use the \LaTeX\ \cs{and} macro or commas, or \verb|\\| |
| 563 |
% between the authors! Each author deserves his or |
| 564 |
% her own \cs{author} command. An attempt to list several authors or |
| 565 |
% their e-mails in one command leads to a warning or an error. This |
| 566 |
% is not a bug, but the expected behavior. |
| 567 |
% |
| 568 |
% Note that some formats do not typeset e-mails or ORCID identifiers. |
| 569 |
% Do not worry: the metadata tools will get them. |
| 570 |
% |
| 571 |
% ACM strongly encourages that you include ORCIDs for all authors |
| 572 |
% before compiling or submitting for review and/or production |
| 573 |
% processing. |
| 574 |
% |
| 575 |
% If you do not have an ORCID, you may get one for free by |
| 576 |
% registering at \url{http://www.orcid.org/}. |
| 577 |
% |
| 578 |
% |
| 579 |
% Sometimes an author has several affiliations. In this case, the |
| 580 |
% \cs{affiliation} command should be repeated: |
| 581 |
% \begin{verbatim} |
| 582 |
% \author{...} |
| 583 |
% \orcid{...} |
| 584 |
% \affiliation{...} |
| 585 |
% \affiliation{...} |
| 586 |
% \email{...} |
| 587 |
% \end{verbatim} |
| 588 |
% Similarly you can repeat the \cs{email} command. |
| 589 |
% |
| 590 |
% You may have several authors with the same affiliation, different |
| 591 |
% affiliations, or overlapping affiliations (author~$A_1$ is affiliated |
| 592 |
% with institutions $I_1$ and $I_2$, while author $A_2$ is affiliated |
| 593 |
% with $I_2$ only, author $A_3$ is affiliated with |
| 594 |
% $I_1$ and $I_3$, etc.). The recommended solution is to put the |
| 595 |
% \cs{affiliation} commands after each author, possibly repeating them: |
| 596 |
% \begin{verbatim} |
| 597 |
% \author{...} |
| 598 |
% \orcid{...} |
| 599 |
% \affiliation{...} |
| 600 |
% \affiliation{...} |
| 601 |
% \email{...} |
| 602 |
% \author{...} |
| 603 |
% \orcid{...} |
| 604 |
% \affiliation{...} |
| 605 |
% \email{...} |
| 606 |
% \author{...} |
| 607 |
% \orcid{...} |
| 608 |
% \affiliation{...} |
| 609 |
% \affiliation{...} |
| 610 |
% \email{...} |
| 611 |
% \end{verbatim} |
| 612 |
% In some cases, when several authors share the same affiliation, you can |
| 613 |
% try to save space using the format |
| 614 |
% \begin{verbatim} |
| 615 |
% \author{...} |
| 616 |
% \email{...} |
| 617 |
% \author{...} |
| 618 |
% \email{...} |
| 619 |
% \affiliation{...} |
| 620 |
% \end{verbatim} |
| 621 |
% However, this format is not generally recommended. |
| 622 |
% |
| 623 |
% \DescribeMacro{\additionalaffiliation}% |
| 624 |
% In some cases, too many affiliations can take too much space. The |
| 625 |
% command \cs{additionalaffiliation}\marg{affiliation} creates a |
| 626 |
% footnote after an author's name with the words ``Also with |
| 627 |
% \marg{affiliation}''. You should use this command only as a last |
| 628 |
% resort. An example of usage is: |
| 629 |
% \begin{verbatim} |
| 630 |
% \author{G. Tobin} |
| 631 |
% \author{Ben Trovato} |
| 632 |
% \additionalaffiliation{% |
| 633 |
% \institution{The Th{\o}rv{\"a}ld Group} |
| 634 |
% \city{Hekla} |
| 635 |
% \country{Iceland}} |
| 636 |
% \affiliation{% |
| 637 |
% \institution{Institute for Clarity in Documentation} |
| 638 |
% \city{Dublin} |
| 639 |
% \state{Ohio}} |
| 640 |
% \end{verbatim} |
| 641 |
% Here Trovato and Tobin share their affiliation with the Institute |
| 642 |
% for Clarity in Documentation, but only Ben Trovato is affiliated |
| 643 |
% with The Th{\o}rv{\"a}ld Group. |
| 644 |
% |
| 645 |
% |
| 646 |
% \DescribeMacro{\position}% |
| 647 |
% \DescribeMacro{\institution}% |
| 648 |
% \DescribeMacro{\department}% |
| 649 |
% \DescribeMacro{\city}% |
| 650 |
% \DescribeMacro{\state}% |
| 651 |
% \DescribeMacro{\country}% |
| 652 |
% The \cs{affiliation} and \cs{additionalaffiliation} commands are |
| 653 |
% further structured to interact with the metadata extraction tools. |
| 654 |
% Inside these commands you should use the \cs{position}, |
| 655 |
% \cs{institution}, \cs{department}, \cs{city}, |
| 656 |
% \cs{state}, and \cs{country} macros to indicate the |
| 657 |
% corresponding parts of the affiliation. Note that in some cases |
| 658 |
% (for example, journals) these parts are not printed in the resulting |
| 659 |
% copy, but they \emph{are} necessary since they are used by the XML |
| 660 |
% metadata extraction programs. Do \emph{not} put commas or |\\| |
| 661 |
% between the elements of \cs{affiliation}. They will be provided |
| 662 |
% automatically. |
| 663 |
% |
| 664 |
% The fields \cs{institution}, \cs{city} and \cs{country} are |
| 665 |
% mandatory. If they are not provided, an error or a warning is |
| 666 |
% issued. Currently the absence of \cs{country} produces an error; |
| 667 |
% ACM may change this in the future. |
| 668 |
% |
| 669 |
% Starting 2024, ACM no longer collects or print postal addresses of |
| 670 |
% the authors. Thus the commands \cs{streetaddress} and |
| 671 |
% \cs{postcode}, present in the previous versions of the class, now |
| 672 |
% produce a warining. |
| 673 |
% |
| 674 |
% |
| 675 |
% An example of the author block: |
| 676 |
% \begin{verbatim} |
| 677 |
% \author{A. U. Thor} |
| 678 |
% \orcid{1234-4564-1234-4565} |
| 679 |
% \affiliation{% |
| 680 |
% \institution{University of New South Wales} |
| 681 |
% \department{School of Biomedical Engineering} |
| 682 |
% \city{Sidney} |
| 683 |
% \state{NSW} |
| 684 |
% \country{Australia}} |
| 685 |
% \email{[email protected]} |
| 686 |
% \author{A. N. Other} |
| 687 |
% \affiliation{% |
| 688 |
% \institution{University of New South Wales} |
| 689 |
% \city{Sidney} |
| 690 |
% \state{NSW} |
| 691 |
% \country{Australia}} |
| 692 |
% \author{C. O. Respondent} |
| 693 |
% \orcid{1234-4565-4564-1234} |
| 694 |
% \affiliation{% |
| 695 |
% \institution{University of Pennsylvania} |
| 696 |
% \city{Philadelphia} |
| 697 |
% \state{PA} |
| 698 |
% \country{USA}} |
| 699 |
% \affiliation{% |
| 700 |
% \institution{University of New South Wales} |
| 701 |
% \city{Sidney} |
| 702 |
% \state{NSW} |
| 703 |
% \country{Australia}} |
| 704 |
% \end{verbatim} |
| 705 |
% |
| 706 |
% Note that the old ACM conference formats did not allow more than six |
| 707 |
% authors and required some effort from authors to achieve |
| 708 |
% alignment. The new format is much better in this. |
| 709 |
% |
| 710 |
% Sometimes an author works in several departments within the same |
| 711 |
% insitution. There could be two situations: the departments are |
| 712 |
% independent, or one department is within another. In the first |
| 713 |
% case, just repeat the command \cs{department} several times. To |
| 714 |
% handle the second case the command has an optional numerical |
| 715 |
% parameter. The departments with higher numbers are higher in the |
| 716 |
% organizational chart. Compare |
| 717 |
% \begin{verbatim} |
| 718 |
% \affiliation{% |
| 719 |
% \department[0]{Department of Lunar Studies} % 0 is the default |
| 720 |
% \department[1]{John Doe Institute} % higher than 0 |
| 721 |
% \institution{University of San Serriffe} |
| 722 |
% \country{San Serriffe}} |
| 723 |
% \end{verbatim} |
| 724 |
% and |
| 725 |
% \begin{verbatim} |
| 726 |
% \affiliation{% |
| 727 |
% \department{Department of Lunar Studies} % Not in the John Doe Institute! |
| 728 |
% \department{John Doe Institute} |
| 729 |
% \institution{University of San Serriffe} |
| 730 |
% \country{San Serriffe}} |
| 731 |
% \end{verbatim} |
| 732 |
% |
| 733 |
% |
| 734 |
% |
| 735 |
% \DescribeMacro{\thanks}% |
| 736 |
% Like |amsart| (and unlike standard \LaTeX{}), we allow |
| 737 |
% |\thanks| only \emph{outside} of the commands |\title| and |\author|. |
| 738 |
% This command is obsolete and should \emph{not} be used in most |
| 739 |
% cases. Do not list your acknowledgments or grant sponsors here. |
| 740 |
% Put this information in the |acks| environment (see |
| 741 |
% Section~\ref{sec:ug_acks}). |
| 742 |
% |
| 743 |
% \DescribeMacro{\authorsaddresses}% |
| 744 |
% In some formats, addresses are printed as a footnote on the first |
| 745 |
% page. By default \LaTeX\ typesets them itself using the information |
| 746 |
% you give it. However, you can override its choice using the |
| 747 |
% commmand \cs{authorsaddresses}\marg{contact addresses}, for example, |
| 748 |
% \begin{verbatim} |
| 749 |
% \authorsaddresses{% |
| 750 |
% Authors' addresses: G.~Zhou, Computer Science Department, College of |
| 751 |
% William and Mary, 104 Jameson Rd, Williamsburg, PA 23185, US; |
| 752 |
% V.~B\'eranger, Inria Paris-Rocquencourt, Rocquencourt, France; |
| 753 |
% A.~Patel, Rajiv Gandhi University, Rono-Hills, Doimukh, Arunachal |
| 754 |
% Pradesh, India; H.~Chan, Tsinghua University, 30 Shuangqing Rd, |
| 755 |
% Haidian Qu, Beijing Shi, China; T.~Yan, Eaton Innovation Center, |
| 756 |
% Prague, Czech Republic; T.~He, C.~Huang, J.~A.~Stankovic University |
| 757 |
% of Virginia, School of Engineering Charlottesville, VA 22903, USA; |
| 758 |
% T. F. Abdelzaher, (Current address) NASA Ames Research Center, |
| 759 |
% Moffett Field, California 94035.} |
| 760 |
% \end{verbatim} |
| 761 |
% You can \emph{suppress} printing authors' addresses by setting them |
| 762 |
% to an empty string: |\authorsaddresses{}|. Please note that |
| 763 |
% authors' addresses are mandatory for journal articles. |
| 764 |
% |
| 765 |
% \DescribeMacro{\titlenote}% |
| 766 |
% \DescribeMacro{\subtitlenote}% |
| 767 |
% \DescribeMacro{\authornote}% |
| 768 |
% While the command \cs{thanks} generates a note without a footnote |
| 769 |
% mark, sometimes the authors might need notes more tightly connected |
| 770 |
% to the title, subtitle or author. The commands \cs{titlenote}, |
| 771 |
% \cs{subtitlenote} and \cs{authornote} that follow the corresponding |
| 772 |
% commands (\cs{title}, \cs{subtitle} and \cs{author}) generate such |
| 773 |
% notes. For example, |
| 774 |
% \begin{verbatim} |
| 775 |
% \title{This is a title} |
| 776 |
% \titlenote{This is a titlenote} |
| 777 |
% \author{A. U. Thor} |
| 778 |
% \authornote{This is an authornote} |
| 779 |
% \end{verbatim} |
| 780 |
% |
| 781 |
% Please never use a \cs{footnote} inside an \cs{author} or \cs{title} |
| 782 |
% command since this confuses the metadata extraction software. (Actually |
| 783 |
% these commands now produce errors.) |
| 784 |
% |
| 785 |
% \DescribeMacro{\authornotemark}% |
| 786 |
% Sometimes one may need to have the same footnote connected to |
| 787 |
% several authors. The command \cs{authornotemark}\oarg{number} adds |
| 788 |
% just the footnote mark, for example, |
| 789 |
% \begin{verbatim} |
| 790 |
% \author{A. U. Thor} |
| 791 |
% \authornote{Both authors contributed equally to the paper} |
| 792 |
% ... |
| 793 |
% \author{A. N. Other} |
| 794 |
% \authornotemark[1] |
| 795 |
% \end{verbatim} |
| 796 |
% The correct numbering of these marks is the responsibility of the |
| 797 |
% user. |
| 798 |
% |
| 799 |
% \DescribeMacro{\acmVolume}% |
| 800 |
% \DescribeMacro{\acmNumber}% |
| 801 |
% \DescribeMacro{\acmArticle}% |
| 802 |
% \DescribeMacro{\acmYear}% |
| 803 |
% \DescribeMacro{\acmMonth}% |
| 804 |
% The macros \cs{acmVolume}, \cs{acmNumber}, \cs{acmArticle}, |
| 805 |
% \cs{acmYear} and \cs{acmMonth} are inserted by the editor and set |
| 806 |
% the journal volume, issue, article number, year and month |
| 807 |
% corrspondingly. The arguments of all these commands, including |
| 808 |
% \cs{acmMonth}, is numerical. For example, |
| 809 |
% \begin{verbatim} |
| 810 |
% \acmVolume{9} |
| 811 |
% \acmNumber{4} |
| 812 |
% \acmArticle{39} |
| 813 |
% \acmYear{2010} |
| 814 |
% \acmMonth{3} |
| 815 |
% \end{verbatim} |
| 816 |
% Note that \cs{acmArticle} is used not only for journals but also |
| 817 |
% for some conference proceedings. |
| 818 |
% |
| 819 |
% \DescribeMacro{\acmArticleSeq}% |
| 820 |
% The articles in the same issue of a journal have a \emph{sequence |
| 821 |
% number}. By default it is the same as the article number, |
| 822 |
% but the command \cs{acmArticleSeq}\marg{n} can be used to change it: |
| 823 |
% \begin{verbatim} |
| 824 |
% \acmArticle{39} % The sequence number will be 39 by default |
| 825 |
% \acmArticleSeq{5} % We redefine it to 5 |
| 826 |
% \end{verbatim} |
| 827 |
% |
| 828 |
% \DescribeMacro{\acmSubmissionID}% |
| 829 |
% If your paper got a Submission~ID from the Conference Management |
| 830 |
% System, put it here: |
| 831 |
% \begin{verbatim} |
| 832 |
% \acmSubmissionID{123-A56-BU3} |
| 833 |
% \end{verbatim} |
| 834 |
% |
| 835 |
% |
| 836 |
% |
| 837 |
% \DescribeMacro{\acmISBN}% |
| 838 |
% Book-like volumes have ISBN numbers attached to them. The macro |
| 839 |
% \cs{acmISBN}\marg{ISBN} sets it. Normally it is set by the |
| 840 |
% typesetter, for example, |
| 841 |
% \begin{verbatim} |
| 842 |
% \acmISBN{978-1-4503-3916-2} |
| 843 |
% \end{verbatim} |
| 844 |
% Setting it to the empty string, as |\acmISBN{}|, suppresses printing the |
| 845 |
% ISBN. |
| 846 |
% |
| 847 |
% \DescribeMacro{\acmDOI}% |
| 848 |
% The macro \cs{acmDOI}\marg{DOI} sets the DOI of the article, for |
| 849 |
% example, |
| 850 |
% \begin{verbatim} |
| 851 |
% \acmDOI{10.1145/9999997.9999999} |
| 852 |
% \end{verbatim} |
| 853 |
% It is normally set by the typesetter. Setting it to the empty |
| 854 |
% string, as |\acmDOI{}|, suppresses the DOI. |
| 855 |
% |
| 856 |
% |
| 857 |
% \DescribeMacro{\acmBadge}% |
| 858 |
% Some conference articles get special distinctions, for example, the |
| 859 |
% artifact evaluation for PPoPP~2016 |
| 860 |
% (see~\url{http://ctuning.org/ae/ppopp2016.html}). These articles |
| 861 |
% display special badges supplied by the conference organizers. This |
| 862 |
% class provides command to add these badges: |
| 863 |
% \cs{acmBadge}\oarg{url}\marg{graphics}. |
| 864 |
% The arguments have the following meaning: \oarg{url}, if provided, |
| 865 |
% sets the link to the badge authority in the screen version, while |
| 866 |
% \marg{graphics} sets the graphics file with the badge image. The |
| 867 |
% file must be a cropped square, which is scaled to a standard size in |
| 868 |
% the output. For example, if the badge image is |ae-logo.pdf|, the |
| 869 |
% command is |
| 870 |
% \begin{verbatim} |
| 871 |
% \acmBadge[http://ctuning.org/ae/ppopp2016.html]{ae-logo} |
| 872 |
% \end{verbatim} |
| 873 |
% The command can be repeated, if a paper has several badges. |
| 874 |
% |
| 875 |
% |
| 876 |
% \DescribeMacro{\startPage}% |
| 877 |
% The macro \cs{startPage}\marg{page} sets the first page of the |
| 878 |
% article in a journal or book. It is used by the typesetter. |
| 879 |
% |
| 880 |
% |
| 881 |
% \DescribeMacro{\terms}% |
| 882 |
% \DescribeMacro{\keywords}% |
| 883 |
% The command |
| 884 |
% \cs{keywords}\marg{keyword, keyword,\ldots} sets keywords for the |
| 885 |
% article. They must be |
| 886 |
% separated by commas, for example, |
| 887 |
% \begin{verbatim} |
| 888 |
% \keywords{wireless sensor networks, media access control, |
| 889 |
% multi-channel, radio interference, time synchronization} |
| 890 |
% \end{verbatim} |
| 891 |
% |
| 892 |
% \DescribeEnv{CCSXML}% |
| 893 |
% \DescribeMacro{\ccsdesc}% |
| 894 |
% ACM publications are classified according to the ACM Computing |
| 895 |
% Classification Scheme (CCS). CCS codes are used both in the typeset |
| 896 |
% version of the publications \emph{and} in the metadata in various |
| 897 |
% databases. Therefore you need to provide both \TeX\ commands and XML |
| 898 |
% metadata with the paper. |
| 899 |
% |
| 900 |
% The tool at \url{http://dl.acm.org/ccs.cfm} can be used to generate |
| 901 |
% CCS codes. After you select the topics, click on ``Generate CCS |
| 902 |
% codes'' to get results like the following: |
| 903 |
% \begin{verbatim} |
| 904 |
% \begin{CCSXML} |
| 905 |
% <ccs2012> |
| 906 |
% <concept> |
| 907 |
% <concept_id>10010520.10010553.10010562</concept_id> |
| 908 |
% <concept_desc>Computer systems organization~Embedded systems</concept_desc> |
| 909 |
% <concept_significance>500</concept_significance> |
| 910 |
% </concept> |
| 911 |
% <concept> |
| 912 |
% <concept_id>10010520.10010575.10010755</concept_id> |
| 913 |
% <concept_desc>Computer systems organization~Redundancy</concept_desc> |
| 914 |
% <concept_significance>300</concept_significance> |
| 915 |
% </concept> |
| 916 |
% <concept> |
| 917 |
% <concept_id>10010520.10010553.10010554</concept_id> |
| 918 |
% <concept_desc>Computer systems organization~Robotics</concept_desc> |
| 919 |
% <concept_significance>100</concept_significance> |
| 920 |
% </concept> |
| 921 |
% <concept> |
| 922 |
% <concept_id>10003033.10003083.10003095</concept_id> |
| 923 |
% <concept_desc>Networks~Network reliability</concept_desc> |
| 924 |
% <concept_significance>100</concept_significance> |
| 925 |
% </concept> |
| 926 |
% </ccs2012> |
| 927 |
% \end{CCSXML} |
| 928 |
% |
| 929 |
% \ccsdesc[500]{Computer systems organization~Embedded systems} |
| 930 |
% \ccsdesc[300]{Computer systems organization~Redundancy} |
| 931 |
% \ccsdesc{Computer systems organization~Robotics} |
| 932 |
% \ccsdesc[100]{Networks~Network reliability} |
| 933 |
% \end{verbatim} |
| 934 |
% |
| 935 |
% You just need to copy this code and paste it in your paper anywhere |
| 936 |
% before \verb|\maketitle|. |
| 937 |
% |
| 938 |
% CCS Concepts and user-defined keywords are required for all articles |
| 939 |
% over two pages in length, and are optional for one- and two-page |
| 940 |
% articles (or abstracts). |
| 941 |
% |
| 942 |
% \DescribeMacro{\setcopyright} |
| 943 |
% There are several possibilities for the copyright of the papers |
| 944 |
% published by the ACM: the authors may license the paper |
| 945 |
% to the ACM, some or all authors might be employees of the |
| 946 |
% US or Canadian governments, etc. Accordingly the command |
| 947 |
% \verb|\setcopyright{...}| is introduced. Its argument is the |
| 948 |
% copyright status of the paper, for example, |
| 949 |
% \verb|\setcopyright{acmcopyright}|. The possible values for this |
| 950 |
% command are listed in Table~\ref{tab:setcopyright}. This command |
| 951 |
% must be placed in the preamble, before |\begin{document}|. |
| 952 |
% Additional information about ACM copyright rules is discussed in |
| 953 |
% Section~\ref{sec:ug_cc}. |
| 954 |
% |
| 955 |
% \begin{table} |
| 956 |
% \centering |
| 957 |
% \caption{Parameters for the \texttt{\textbackslash setcopyright} command} |
| 958 |
% \label{tab:setcopyright} |
| 959 |
% \begin{tabularx}{\textwidth}{lX} |
| 960 |
% \toprule |
| 961 |
% Parameter & Meaning\\ |
| 962 |
% \midrule |
| 963 |
% \texttt{none} & The copyright and permission information is not |
| 964 |
% typeset. (This is the option for some ACM conferences.) \\ |
| 965 |
% \texttt{acmlicensed} & The authors retain the copyright but |
| 966 |
% license the publication rights to ACM\@. \\ |
| 967 |
% \texttt{rightsretained} & The authors retain the copyright and |
| 968 |
% publication rights to themselves or somebody else. \\ |
| 969 |
% \texttt{usgov} & All the authors are employees of the US |
| 970 |
% government. \\ |
| 971 |
% \texttt{usgovmixed} & Some authors are employees of the US |
| 972 |
% government. \\ |
| 973 |
% \texttt{cagov} & All the authors are employees of the Canadian |
| 974 |
% government. \\ |
| 975 |
% \texttt{cagovmixed} & Some authors are employees of the Canadian |
| 976 |
% government. \\ |
| 977 |
% \texttt{licensedusgovmixed} & Some authors are employees of the US |
| 978 |
% government, and the publication rights are licensed to ACM\@. \\ |
| 979 |
% \texttt{licensedcagov} & All the authors are employees of the Canadian |
| 980 |
% government, and the publication rights are licensed to ACM\@. \\ |
| 981 |
% \texttt{licensedcagovmixed} & Some authors are employees of the |
| 982 |
% Canadian |
| 983 |
% government, and the publication rights are licensed to ACM\@. \\ |
| 984 |
% \texttt{othergov} & Authors are employees of a |
| 985 |
% government other than the US or Canada. \\ |
| 986 |
% \texttt{licensedothergov} & Authors are employees of a |
| 987 |
% government other than the US or Canada, and the publication rights |
| 988 |
% are licensed to ACM\@. \\ |
| 989 |
% \texttt{iw3c2w3} & Special statement for conferences organized |
| 990 |
% by IW3C2.\\ |
| 991 |
% \texttt{iw3c2w3g} & Special statement for conferences organized |
| 992 |
% by IW3C2, when some authors are approved Google employees.\\ |
| 993 |
% \texttt{cc} & Creative Commons license. If this key is set, |
| 994 |
% \textsl{doclicense} images are used to typeset the license. See |
| 995 |
% also \cs{setcctype} command. \\ |
| 996 |
% \texttt{acmcopyright} & The authors transfer the copyright to the |
| 997 |
% ACM. This choice is no longer available for the |
| 998 |
% non-commissioned authors and will trigger a warning.\\ |
| 999 |
% \bottomrule |
| 1000 |
% \end{tabularx} |
| 1001 |
% \end{table} |
| 1002 |
% |
| 1003 |
% \DescribeMacro{\setcctype}% |
| 1004 |
% If Creative Commons license is used, the package by default chooses |
| 1005 |
% CC-BY 4.0 Attribution 4.0 International license. You can override |
| 1006 |
% this choice by the command \cs{setcctype}\oarg{version}\marg{type}, |
| 1007 |
% where \oarg{version} can be either 3.0 or 4.0 (4.0 by default), and |
| 1008 |
% \marg{type} can be one of |zero|, |by|, |by-sa|, |by-nd|, |
| 1009 |
% |by-nc|, |by-nc-sa|, |by-nc-nd| (see |
| 1010 |
% \url{https://creativecommons.org/licenses/} for the explanation). |
| 1011 |
% This command should be used in the preamble only. |
| 1012 |
% |
| 1013 |
% Material published under Creative Commons license should include |
| 1014 |
% the corresponding icon. A modern \TeX\ distribution includes these |
| 1015 |
% icons in the package \textsl{doclicense}. In case your distribution |
| 1016 |
% does not have them, ACM provides a file \path{ccicons.zip} with |
| 1017 |
% these icons. Just unzip it in the same directory where your |
| 1018 |
% document is. |
| 1019 |
% |
| 1020 |
% The ACM submission software should generate the right command for you |
| 1021 |
% to paste into your file. |
| 1022 |
% |
| 1023 |
% |
| 1024 |
% \DescribeMacro{\copyrightyear}% |
| 1025 |
% Each copyright statement must have the year of copyright. By |
| 1026 |
% default it is the same as \cs{acmYear}, but you can override this |
| 1027 |
% using the macro \cs{copyrightyear}, e.g., |
| 1028 |
% \begin{verbatim} |
| 1029 |
% \acmYear{2016} |
| 1030 |
% \copyrightyear{2015} |
| 1031 |
% \end{verbatim} |
| 1032 |
% |
| 1033 |
% There is a special case for a personal copy that the authors may be |
| 1034 |
% allowed to generate for their use or a posting on a personal site |
| 1035 |
% (check the instructions for the specific journal or conference for |
| 1036 |
% the details). The document option |authorversion=true| produces a |
| 1037 |
% special form of the copyright statement for this case. Note that |
| 1038 |
% you still need the \cs{setcopyright} command and (optionally) |
| 1039 |
% \cs{copyrightyear} command to tell \TeX\ about the copyright owner and |
| 1040 |
% year. Also, you should be aware that due to the different sizes of |
| 1041 |
% the permssion blocks for the printed version and authors' version, |
| 1042 |
% the page breaks might be different between them. |
| 1043 |
% |
| 1044 |
% \DescribeEnv{abstract}% |
| 1045 |
% The environment |abstract| must \emph{precede} the \cs{maketitle} |
| 1046 |
% command. Again, this is different from the standard \LaTeX. |
| 1047 |
% Putting |abstract| after \cs{maketitle} will trigger an error. |
| 1048 |
% |
| 1049 |
% |
| 1050 |
% \DescribeEnv{teaserfigure}% |
| 1051 |
% A special kind of figure is used for many two-column conference |
| 1052 |
% proceedings. This figure is placed just after the authors but |
| 1053 |
% before the main text. The environment |teaserfigure| is used for these |
| 1054 |
% figures. This environment must be used \emph{before} |
| 1055 |
% \cs{maketitle}, for example, |
| 1056 |
% \begin{verbatim} |
| 1057 |
% \begin{teaserfigure} |
| 1058 |
% \includegraphics[width=\textwidth]{sampleteaser} |
| 1059 |
% \caption{This is a teaser} |
| 1060 |
% \label{fig:teaser} |
| 1061 |
% \end{teaserfigure} |
| 1062 |
% \end{verbatim} |
| 1063 |
% |
| 1064 |
% |
| 1065 |
% \DescribeMacro{\settopmatter}% |
| 1066 |
% Some information in the top matter is printed for certain journals |
| 1067 |
% or proceedings and suppressed for others. You can override these |
| 1068 |
% defaults using the command \cs{settopmatter}\marg{settings}. The |
| 1069 |
% settings and their meanings are listed in |
| 1070 |
% Table~\ref{tab:settopmatter}. For example, |
| 1071 |
% \begin{verbatim} |
| 1072 |
% \settopmatter{printacmref=false, printccs=true, printfolios=true} |
| 1073 |
% \end{verbatim} |
| 1074 |
% The parameter |authorsperrow| requires some explanation. In |
| 1075 |
% conference proceedings authors' information is typeset in boxes, |
| 1076 |
% several boxes per row (see |sample-sigconf.pdf|, |
| 1077 |
% |sample-sigplan.pdf|, etc.). The number of boxes per row is |
| 1078 |
% determined automatically. If you want to override this, |
| 1079 |
% you can do it using this parameter, for example, |
| 1080 |
% \begin{verbatim} |
| 1081 |
% \settopmatter{authorsperrow=4} |
| 1082 |
% \end{verbatim} |
| 1083 |
% However, in most cases you should \emph{not} do this and should use the |
| 1084 |
% default settings. Setting |authorsperrow| to $0$ will revert it to the |
| 1085 |
% default settings. |
| 1086 |
% |
| 1087 |
% The parameter |printacmref| specifies whether to print the ACM |
| 1088 |
% bibliographic entry (default), or not. Note that this entry is |
| 1089 |
% required for all articles over one page in length, and is optional |
| 1090 |
% for one-page articles (abstracts). |
| 1091 |
% |
| 1092 |
% \begin{table} |
| 1093 |
% \centering |
| 1094 |
% \caption{Settings for the \cs{settopmatter} command} |
| 1095 |
% \label{tab:settopmatter} |
| 1096 |
% \begin{tabularx}{\textwidth}{llX} |
| 1097 |
% \toprule |
| 1098 |
% Parameter & Values & Meaning\\ |
| 1099 |
% \midrule |
| 1100 |
% |printccs| & true/false & Whether to print CCS categories\\ |
| 1101 |
% |printacmref| & true/false & Whether to print the ACM bibliographic |
| 1102 |
% entry\\ |
| 1103 |
% |printfolios| & true/false & Whether to print page numbers |
| 1104 |
% (folios)\\ |
| 1105 |
% |authorsperrow| & numeric & Number of authors per row for the title |
| 1106 |
% page in |
| 1107 |
% conference proceedings formats\\ |
| 1108 |
% \bottomrule |
| 1109 |
% \end{tabularx} |
| 1110 |
% \end{table} |
| 1111 |
% |
| 1112 |
% |
| 1113 |
% \DescribeMacro{\received}% |
| 1114 |
% The command \cs{received}\oarg{stage}\marg{date} sets the history of |
| 1115 |
% the publication. The~\oarg{stage} argument is optional; the default |
| 1116 |
% is |Received| for the first date and |revised| for the subsequent |
| 1117 |
% ones. For example, |
| 1118 |
% \begin{verbatim} |
| 1119 |
% \received{20 February 2007} |
| 1120 |
% \received[revised]{12 March 2009} |
| 1121 |
% \received[accepted]{5 June 2009} |
| 1122 |
% \end{verbatim} |
| 1123 |
% |
| 1124 |
% |
| 1125 |
% \DescribeMacro{\maketitle}% |
| 1126 |
% The macro \cs{maketitle} must be the last command in the top-matter |
| 1127 |
% group. That is it must follow the commands defined in this section. |
| 1128 |
% |
| 1129 |
% |
| 1130 |
% \DescribeMacro{\shortauthors}% |
| 1131 |
% \emph{After} the command \cs{maketitle}, the macro \cs{shortauthors} |
| 1132 |
% stores the names of the authors for the running head. You can |
| 1133 |
% redefine it if the list of author's name is too long, e.g., |
| 1134 |
% \begin{verbatim} |
| 1135 |
% \maketitle |
| 1136 |
% \renewcommand{\shortauthors}{Zhou et al.} |
| 1137 |
% \end{verbatim} |
| 1138 |
% |
| 1139 |
% |
| 1140 |
%\subsection{Top matter of ACM Engage materials} |
| 1141 |
%\label{sec:ug_engage} |
| 1142 |
% |
| 1143 |
% ACM Engage materials resemble conference proceedings, but have some |
| 1144 |
% special features. First, as a rule, they are released under a |
| 1145 |
% Creative Commons license. By default CC-BY is used. However, if |
| 1146 |
% you want to use another variant of CC license, use \cs{setcctype} |
| 1147 |
% command, for example, |\setcctype{by-nc}|. Second, abstract is |
| 1148 |
% called \emph{synopsis}. Third, there are special top matter items |
| 1149 |
% used for the materials, such as \emph{Course,} \emph{Resource Type,} |
| 1150 |
% \emph{Programming Language,} \emph{CS Topics}. |
| 1151 |
% |
| 1152 |
% \DescribeMacro{\setengagemetadata}% |
| 1153 |
% These items are set with the command |
| 1154 |
% \cs{setengagemetadata}\marg{name}\marg{value}, for example, |
| 1155 |
% \begin{verbatim} |
| 1156 |
% \setengagemetadata{Course}{CS1} |
| 1157 |
% \setengagemetadata{Programming Language}{Python} |
| 1158 |
% \setengagemetadata{Knowledge Unit}{Programming Concepts} |
| 1159 |
% \setengagemetadata{CS Topics}{Functions, Data Types, Expressions, |
| 1160 |
% Mathematical Reasoning} |
| 1161 |
% \end{verbatim} |
| 1162 |
% |
| 1163 |
% Note that the type of Creative Commons license, if such license is |
| 1164 |
% used, is automatically added to the metadata. |
| 1165 |
% |
| 1166 |
% |
| 1167 |
%\subsection{ACM cover page} |
| 1168 |
%\label{sec:ug_acmcp} |
| 1169 |
% |
| 1170 |
% ACM cover pages are forms of extended abstracts that are added to |
| 1171 |
% journals at the late stage. Authors prepare them as separate |
| 1172 |
% \texttt{.tex} files using |acmcp| format. At present only JDS uses |
| 1173 |
% them, but in the future this may change. |
| 1174 |
% |
| 1175 |
% There are several top matter commands specific for this format. |
| 1176 |
% |
| 1177 |
% \DescribeMacro{\acmArticleType}% |
| 1178 |
% There are five article types accepted by JDS: \emph{Research} (the |
| 1179 |
% default), \emph{Review}, \emph{Discussion}, \emph{Invited}, and |
| 1180 |
% \emph{Position}. The command \cs{acmArticleType}\marg{type} sets the |
| 1181 |
% article type, for example |
| 1182 |
% \begin{verbatim} |
| 1183 |
% \acmArticleType{Review} |
| 1184 |
% \end{verbatim} |
| 1185 |
% |
| 1186 |
% \DescribeMacro{\acmCodeLink}% |
| 1187 |
% \DescribeMacro{\acmDataLink}% |
| 1188 |
% The commands \cs{acmCodeDataLink}\marg{link} and |
| 1189 |
% \cs{acmDataLink}\marg{link} set the links to the data and code |
| 1190 |
% accompanying the paper, for example, |
| 1191 |
% \begin{verbatim} |
| 1192 |
% \acmCodeLink{https://github.com/repository/code} |
| 1193 |
% \acmDataLink{https://datadryad.org/stash/dataset/doi:DOI} |
| 1194 |
% \end{verbatim} |
| 1195 |
% You may repeat these commands if you have several repositories. |
| 1196 |
% |
| 1197 |
% |
| 1198 |
% \cs{acmContributions}% |
| 1199 |
% The command \cs{acmContributions}\marg{contributions} sets the |
| 1200 |
% contributions of the authors, for example, |
| 1201 |
% \begin{verbatim} |
| 1202 |
% \acmContributions{AW designed the study, CD performed it, all |
| 1203 |
% authors contributed to the writing.} |
| 1204 |
% \end{verbatim} |
| 1205 |
% |
| 1206 |
% ACM cover page should have the following obligatory sections: |
| 1207 |
% \begin{itemize} |
| 1208 |
% \item Problem statement, |
| 1209 |
% \item Methods, |
| 1210 |
% \item Results, |
| 1211 |
% \item Significance. |
| 1212 |
% \end{itemize} |
| 1213 |
% |
| 1214 |
% Sometimes the addresses extracted from the authors' data are too |
| 1215 |
% long to fit on the page. In this case the command |
| 1216 |
% \cs{authorsaddresses} can be use to override them, for example, |
| 1217 |
% \begin{verbatim} |
| 1218 |
% \authorsaddresses{Corresponding author: Ben Trovato, |
| 1219 |
% \href{mailto:[email protected]}{[email protected]}; |
| 1220 |
% Institute for Clarity in Documentation, P.O. Box 1212, Dublin, |
| 1221 |
% Ohio, USA, 43017-6221} |
| 1222 |
% \end{verbatim} |
| 1223 |
% |
| 1224 |
% The design of the cover page may require additional runs of latex to |
| 1225 |
% make the elements of the page align. |
| 1226 |
% |
| 1227 |
%\subsection{Internationalization} |
| 1228 |
%\label{sec:ug_i13n} |
| 1229 |
% |
| 1230 |
% ACM accepts publications in languages other than English, as well as |
| 1231 |
% papers in English with translations of titles, subtitles, keywords |
| 1232 |
% and abstracts into other languages. Papers in languages other than |
| 1233 |
% English usually have titles, subtitles (if applicable), keywords and |
| 1234 |
% abstracts in English. Note that CCS concepts are always typeset in |
| 1235 |
% English. |
| 1236 |
% |
| 1237 |
% To submit these papers you need to set the option |language| in the |
| 1238 |
% \cs{documentclass} command. This option can be repeated, for |
| 1239 |
% example, |
| 1240 |
% \begin{verbatim} |
| 1241 |
% \documentclass[sigconf, language=french, language=english]{acmart} |
| 1242 |
% \end{verbatim} |
| 1243 |
% The last language in the list is the main language of the paper, |
| 1244 |
% i.e. the one for the main title, abstract, body, etc. The other |
| 1245 |
% languages are \emph{secondary,} and used for translated titles, |
| 1246 |
% keywords, abstracts. Thus the paper above is written in English, |
| 1247 |
% and has a secondary abstract and a secondary title in French. On |
| 1248 |
% the other hand, a paper in French with secondary titles and abstracts |
| 1249 |
% in English and German should use, for example |
| 1250 |
% \begin{verbatim} |
| 1251 |
% \documentclass[sigconf, |
| 1252 |
% language=german, |
| 1253 |
% language=english, |
| 1254 |
% language=french]{acmart} |
| 1255 |
% \end{verbatim} |
| 1256 |
% |
| 1257 |
% |
| 1258 |
% This key can use any language defined in \textsl{babel} |
| 1259 |
% package~\cite{Braams22:Babel} (currently the package is tested with |
| 1260 |
% English, French, German and Spanish languages; other languages may |
| 1261 |
% require a translation of \cs{keywordsname} macro). Actually |
| 1262 |
% \textsl{acmart} loads \textsl{babel} internally, so you can use the |
| 1263 |
% facilities provided by this package. |
| 1264 |
% |
| 1265 |
% |
| 1266 |
% If this key is set, you have access to several additional top matter |
| 1267 |
% commands. |
| 1268 |
% |
| 1269 |
% \DescribeMacro{\translatedtitle}% |
| 1270 |
% \DescribeMacro{\translatedsubtitle}% |
| 1271 |
% \DescribeMacro{\translatedkeywords}% |
| 1272 |
% The commands \cs{translatedtitle}\marg{language}{title}, |
| 1273 |
% \cs{translatedsubtitle}\marg{language}{subtitle} and |
| 1274 |
% \cs{translatedkeywords}{language}{keywords} are used to set title, |
| 1275 |
% subtitle and keywords in the secondary language. For example, a |
| 1276 |
% paper in English with French title and abstract may set |
| 1277 |
% \begin{verbatim} |
| 1278 |
% \title{A note on computational complexity} |
| 1279 |
% \translatedtitle{french}{Remarque sur la complexit\'e de calcul} |
| 1280 |
% \end{verbatim} |
| 1281 |
% while a paper in French should set |
| 1282 |
% \begin{verbatim} |
| 1283 |
% \title{Remarque sur la complexit\'e de calcul} |
| 1284 |
% \translatedtitle{english}{A note on computational complexity} |
| 1285 |
% \end{verbatim} |
| 1286 |
% |
| 1287 |
% \DescribeEnv{translatedabstract}% |
| 1288 |
% Similarly, |translatedabstract| environment has a mandatory language |
| 1289 |
% argument, for example, |
| 1290 |
% \begin{verbatim} |
| 1291 |
% \begin{translatedastract}{english} |
| 1292 |
% This is the English version of the abstract |
| 1293 |
% \end{translatedastract} |
| 1294 |
% \end{verbatim} |
| 1295 |
% |
| 1296 |
% You can repeat these commands if a paper has more than one secondary |
| 1297 |
% language. |
| 1298 |
% |
| 1299 |
% Use the standard commands (\cs{title}, \cs{subtitle}, |
| 1300 |
% \cs{keywords}, |abstract|) for the main language of the paper. |
| 1301 |
% |
| 1302 |
%\subsection{Algorithms} |
| 1303 |
%\label{sec:ug_algorithms} |
| 1304 |
% |
| 1305 |
% There are now several good packages for typesetting |
| 1306 |
% algorithms~\cite{Fiorio15, Brito09, Heinz15}, and the authors are |
| 1307 |
% free to choose their favorite one. |
| 1308 |
% |
| 1309 |
% |
| 1310 |
% |
| 1311 |
%\subsection{Figures and tables} |
| 1312 |
%\label{sec:ug_floats} |
| 1313 |
% |
| 1314 |
% The new ACM styles use the standard \LaTeX\ interface for figures and |
| 1315 |
% tables. There are some important items to be aware of, however. |
| 1316 |
% |
| 1317 |
% \begin{enumerate} |
| 1318 |
% \item The captions for figures must be entered \emph{after} the |
| 1319 |
% figure bodies and for tables \emph{before} the table bodies. |
| 1320 |
% \item The ACM uses the standard types for figures and tables and adds |
| 1321 |
% several new ones. In total there are the following types: |
| 1322 |
% \begin{description} |
| 1323 |
% \item[figure, table:] a standard figure or table taking a full text |
| 1324 |
% width in one-column formats and one column width in two-column formats. |
| 1325 |
% \item[figure*, table*] in two-column formats, a special figure or |
| 1326 |
% table taking a full text width. |
| 1327 |
% \item[teaserfigure:] a special figure before \cs{maketitle}. |
| 1328 |
% \end{description} |
| 1329 |
% |
| 1330 |
% \item Accordingly, when scaling images, one should use the |
| 1331 |
% following sizes: |
| 1332 |
% \begin{enumerate} |
| 1333 |
% \item For |teaserfigure|, |figure| in one-column mode or |figure*| in |
| 1334 |
% two-column mode, use \cs{textwidth}. In one-column mode, you can also |
| 1335 |
% use \cs{columnwidth}, which coincides with \cs{textwidth} in this |
| 1336 |
% case. |
| 1337 |
% \item For |figure| in two-column mode, use \cs{columnwidth}. |
| 1338 |
% \end{enumerate} |
| 1339 |
% |
| 1340 |
% \end{enumerate} |
| 1341 |
% |
| 1342 |
% It is strongly recommended to use the package |booktabs|~\cite{Fear05} |
| 1343 |
% and follow its main principles of typography with respect to tables: |
| 1344 |
% \begin{enumerate} |
| 1345 |
% \item Never, ever use vertical rules. |
| 1346 |
% \item Never use double rules. |
| 1347 |
% \end{enumerate} |
| 1348 |
% It is also a good idea not to overuse horizontal rules. |
| 1349 |
% |
| 1350 |
% For table \emph{footnotes} you have several options described in the TeX |
| 1351 |
% FAQ~\cite{TeXFAQ}. The simplest one is to use a \cs{minipage} |
| 1352 |
% environment: |
| 1353 |
% \begin{verbatim} |
| 1354 |
% \begin{table} |
| 1355 |
% \caption{Simulation Configuration} |
| 1356 |
% \label{tab:conf} |
| 1357 |
% \begin{minipage}{\columnwidth} |
| 1358 |
% \begin{center} |
| 1359 |
% \begin{tabular}{ll} |
| 1360 |
% \toprule |
| 1361 |
% TERRAIN\footnote{This is a table footnote. This is a |
| 1362 |
% table footnote. This is a table footnote.} & |
| 1363 |
% (200\,m$\times$200\,m) Square\\ |
| 1364 |
% Node Number & 289\\ |
| 1365 |
% Node Placement & Uniform\\ |
| 1366 |
% Application & Many-to-Many/Gossip CBR Streams\\ |
| 1367 |
% Payload Size & 32 bytes\\ |
| 1368 |
% Routing Layer & GF\\ |
| 1369 |
% MAC Layer & CSMA/MMSN\\ |
| 1370 |
% Radio Layer & RADIO-ACCNOISE\\ |
| 1371 |
% Radio Bandwidth & 250Kbps\\ |
| 1372 |
% Radio Range & 20m--45m\\ |
| 1373 |
% \bottomrule |
| 1374 |
% \end{tabular} |
| 1375 |
% \end{center} |
| 1376 |
% \bigskip |
| 1377 |
% \footnotesize\emph{Source:} This is a table |
| 1378 |
% sourcenote. This is a table sourcenote. This is a table |
| 1379 |
% sourcenote. |
| 1380 |
% |
| 1381 |
% \emph{Note:} This is a table footnote. |
| 1382 |
% \end{minipage} |
| 1383 |
% \end{table} |
| 1384 |
% \end{verbatim} |
| 1385 |
% |
| 1386 |
% |
| 1387 |
% Tables and figures are by default centered. However, in some cases |
| 1388 |
% (for example, when you use several subimages per figure) you may |
| 1389 |
% need to override this. A good way to do so is to put the contents |
| 1390 |
% into a \cs{minipage} of the width \cs{columnwidth}. |
| 1391 |
% |
| 1392 |
% |
| 1393 |
%\subsection{Descriptions of images} |
| 1394 |
%\label{sec:descriptions} |
| 1395 |
% |
| 1396 |
% \DescribeMacro{\Description}% |
| 1397 |
% Some readers of ACM publications might be visually challenged. |
| 1398 |
% These readers might use a voice-over software to read aloud the |
| 1399 |
% papers. It is important to provide them a description of each |
| 1400 |
% image used in the paper. |
| 1401 |
% |
| 1402 |
% The command \cs{Description}\oarg{short description}\marg{long |
| 1403 |
% description} should be placed inside every \texttt{figure}, |
| 1404 |
% \texttt{teaserfigure} or \texttt{marginfigure} environment to |
| 1405 |
% provide a description of the image(s) used in the figure. Unlike |
| 1406 |
% \cs{caption}, which is used alongside the image, \cs{Description} is |
| 1407 |
% intended to be used instead of the image, for example, |
| 1408 |
% \begin{verbatim} |
| 1409 |
% \begin{figure} |
| 1410 |
% \centering |
| 1411 |
% \includegraphics{voltage} |
| 1412 |
% \Description{A bell-like histogram centered at $0.5$~V with most |
| 1413 |
% measurements between $0.2$~V and $0.8$~V} |
| 1414 |
% \caption{Histogram of the measurements of voltage} |
| 1415 |
% \label{fig:voltage} |
| 1416 |
% \end{figure} |
| 1417 |
% \end{verbatim} |
| 1418 |
% At present the lack of descriptions generates a warning at |
| 1419 |
% compilation. |
| 1420 |
% |
| 1421 |
%\subsection{Theorems} |
| 1422 |
%\label{sec:ug_theorems} |
| 1423 |
% |
| 1424 |
% The ACM classes define two theorem styles and several pre-defined |
| 1425 |
% theorem environments: |
| 1426 |
% \begin{description} |
| 1427 |
% \item[acmplain:] this is the style used for |
| 1428 |
% |theorem|, |
| 1429 |
% |conjecture|, |
| 1430 |
% |proposition|, |
| 1431 |
% |lemma| and |
| 1432 |
% |corollary|, and |
| 1433 |
% \item[acmdefinition:] this is the style used for |
| 1434 |
% |example| and |
| 1435 |
% |definition|. |
| 1436 |
% \end{description} |
| 1437 |
% |
| 1438 |
% |
| 1439 |
% These environments are defined by default. In the unusual |
| 1440 |
% circumstance that a user does not wish to have these environments |
| 1441 |
% defined, the option |acmthm=false| in the preamble will suppress |
| 1442 |
% them. |
| 1443 |
% |
| 1444 |
% Sometimes authors want to define new theorem-like constructs that |
| 1445 |
% use |theorem| counters. These constructs must be defined either after |
| 1446 |
% |\begin{document}|, or delayed using \cs{AtEndPreamble} macro, |
| 1447 |
% for example, |
| 1448 |
% \begin{verbatim} |
| 1449 |
% \AtEndPreamble{% |
| 1450 |
% \theoremstyle{acmdefinition} |
| 1451 |
% \newtheorem{remark}[theorem]{Remark}} |
| 1452 |
% \end{verbatim} |
| 1453 |
% |
| 1454 |
% If you use \textsl{cleveref} and share counters between the |
| 1455 |
% theorem-like constructs, you need to explicitly tell |
| 1456 |
% \textsl{cleveref} the kind of the construct you use, for example, |
| 1457 |
% \begin{verbatim} |
| 1458 |
% \newtheorem{theorem}{Theorem}[section] |
| 1459 |
% \newtheorem{lemma}[theorem]{Lemma} |
| 1460 |
% % Theorems and lemmas share counters |
| 1461 |
% ... |
| 1462 |
% \begin{theorem}\label{thm:test} % This is a theorem |
| 1463 |
% ... |
| 1464 |
% \begin{lemma}\label[lemma]{test-lemma} % This is a lemma |
| 1465 |
% \end{verbatim} |
| 1466 |
% |
| 1467 |
%\subsection{Online-only and offline-only material} |
| 1468 |
%\label{sec:ug_screen} |
| 1469 |
% |
| 1470 |
% \DescribeEnv{printonly}% |
| 1471 |
% \DescribeEnv{screenonly}% |
| 1472 |
% Some supplementary material in ACM publications is put online but |
| 1473 |
% not in the printed version. The text inside the environment |
| 1474 |
% |screenonly| will be typeset only when the option |screen| (see |
| 1475 |
% Section~\ref{sec:invocation}) is set to |true|. Conversely, the |
| 1476 |
% text inside the environment |printonly| is typeset only when this |
| 1477 |
% option is set to |false|. For example, |
| 1478 |
% \begin{verbatim} |
| 1479 |
% \section{Supplementary materials} |
| 1480 |
% |
| 1481 |
% \begin{printonly} |
| 1482 |
% Supplementary materials are available in the online version of this paper. |
| 1483 |
% \end{printonly} |
| 1484 |
% |
| 1485 |
% \begin{screenonly} |
| 1486 |
% (The actual supplementary materials.) |
| 1487 |
% \end{screenonly} |
| 1488 |
% \end{verbatim} |
| 1489 |
% |
| 1490 |
% We use the |comment| package for typesetting this code, so |
| 1491 |
% |\begin| and |\end| should start on a line of their own with |
| 1492 |
% no leading or trailing spaces. |
| 1493 |
% |
| 1494 |
%\subsection{Note about anonymous mode} |
| 1495 |
%\label{sec:ug_anonymous} |
| 1496 |
% |
| 1497 |
% \DescribeEnv{anonsuppress}% |
| 1498 |
% When the option |anonymous| is selected, \TeX\ suppresses author |
| 1499 |
% information (including the number of authors) for an anonymous review. |
| 1500 |
% However, sometimes the information identifying the authors may be |
| 1501 |
% present in the body of the paper. For example, |
| 1502 |
% \begin{verbatim} |
| 1503 |
% \begin{anonsuppress} |
| 1504 |
% This is the continuation of the previous work by the author |
| 1505 |
% \cite{prev1, prev2}. |
| 1506 |
% \end{anonsuppress} |
| 1507 |
% \end{verbatim} |
| 1508 |
% |
| 1509 |
% As for the |printonly| and |screenonly| environments, |
| 1510 |
% |\begin{anonsuppress}| and |\end{anonsuppress}| should start on a |
| 1511 |
% line of their own with no leading or trailing spaces. |
| 1512 |
% |
| 1513 |
% \DescribeMacro{\anon}% |
| 1514 |
% To suppress short snippets of information, use the command |
| 1515 |
% \cs{anon}\oarg{substitute}\marg{suppressed-text}. By default |
| 1516 |
% \oarg{substitute} is the word ANONYMOUS. Examples: |
| 1517 |
% \begin{verbatim} |
| 1518 |
% This work was performed at \anon{NSA}. |
| 1519 |
% This work was performed at \anon[No Such Agency]{NSA}. |
| 1520 |
% \end{verbatim} |
| 1521 |
% |
| 1522 |
% |
| 1523 |
%\subsection{Acknowledgments} |
| 1524 |
%\label{sec:ug_acks} |
| 1525 |
% |
| 1526 |
% The traditional ``Acknowledgments'' section is conventionally used |
| 1527 |
% to thank persons and granting agencies for their help and support. |
| 1528 |
% However, there are several important considerations about this |
| 1529 |
% section. |
| 1530 |
% |
| 1531 |
% First, in anonymous mode this section must be omitted: it gives |
| 1532 |
% too much information to reviewers. Second, data about |
| 1533 |
% grants is extracted and stored separately by the postprocessing |
| 1534 |
% software. ACM classes provide facilities for both these tasks. |
| 1535 |
% |
| 1536 |
% \DescribeEnv{acks}% |
| 1537 |
% The environment |acks| starts an unnumbered section |
| 1538 |
% ``Acknowledgments'' unless the anonymous mode is chosen. Put all |
| 1539 |
% thanks inside this environment. |
| 1540 |
% |
| 1541 |
% As for the |printonly| and |screenonly| environments, |
| 1542 |
% |\begin{acks}| and |\end{acks}| should start on a |
| 1543 |
% line of their own with no leading or trailing spaces or comments. |
| 1544 |
% |
| 1545 |
% \DescribeMacro{\grantsponsor}% |
| 1546 |
% \DescribeMacro{\grantnum}% |
| 1547 |
% All financial support \emph{must} be listed using the commands |
| 1548 |
% \cs{grantsponsor} and \cs{grantnum}. These commands tell the |
| 1549 |
% postprocessing software about the granting organization and |
| 1550 |
% grant. The format of these commands is the following: |
| 1551 |
% \begin{quote} |
| 1552 |
% \cs{grantsponsor}\marg{sponsorID}\marg{name}\marg{url}\\ |
| 1553 |
% \cs{grantnum}\oarg{url}\marg{sponsorID}\marg{number}. |
| 1554 |
% \end{quote} |
| 1555 |
% Here \marg{sponsorID} is the unique ID used to match grants to |
| 1556 |
% sponsors, \marg{name} is the name of the sponsor, \marg{url} is its |
| 1557 |
% URL, and \marg{number} is the grant number. The \marg{sponsorID} of |
| 1558 |
% the \cs{grantnum} command must correspond to the \marg{sponsorID} of a |
| 1559 |
% \cs{grantsponsor} command. Some awards have their own web pages, |
| 1560 |
% which you can include using the optional argument of the \cs{grantnum} |
| 1561 |
% command. |
| 1562 |
% |
| 1563 |
% At present \marg{sponsorID} is chosen by the authors and can be an |
| 1564 |
% arbitrary key in the same way the label of a \cs{cite} is arbitrarily |
| 1565 |
% chosen. There might be a change to this policy if the ACM decides to |
| 1566 |
% create a global database of sponsoring organizations. |
| 1567 |
% |
| 1568 |
% Example: |
| 1569 |
% \begin{verbatim} |
| 1570 |
% \begin{acks} |
| 1571 |
% The authors would like to thank Dr. Yuhua Li for providing the |
| 1572 |
% matlab code of the \textit{BEPS} method. |
| 1573 |
% |
| 1574 |
% The authors would also like to thank the anonymous referees for |
| 1575 |
% their valuable comments and helpful suggestions. This work is |
| 1576 |
% supported by the \grantsponsor{my-grant-GS501100001809}{National Natural |
| 1577 |
% Science Foundation of |
| 1578 |
% China}{https://doi.org/10.13039/501100001809} under Grant |
| 1579 |
% No.:~\grantnum{GS501100001809}{61273304} |
| 1580 |
% and~\grantnum[http://www.nnsf.cn/youngscientists]{GS501100001809}{Young |
| 1581 |
% Scientists' Support Program}. |
| 1582 |
% \end{acks} |
| 1583 |
% \end{verbatim} |
| 1584 |
% |
| 1585 |
% |
| 1586 |
%\subsection{Bibliography} |
| 1587 |
%\label{sec:ug_bibliography} |
| 1588 |
% |
| 1589 |
% The ACM lets you use either Bib\TeX\ or Bib\LaTeX\ to process your references: |
| 1590 |
% they require slightly different setup of your \LaTeX\ file, as detailed in |
| 1591 |
% the following subsections. |
| 1592 |
%\subsubsection{Processing using Bib\TeX} |
| 1593 |
% This uses the |natbib| package for formatting references and |
| 1594 |
% the Bib\TeX\ style file \path{ACM-Reference-Format.bst} for Bib\TeX\ |
| 1595 |
% processing. You can disable loading of |natbib| using the |
| 1596 |
% option |natbib=false| in \cs{documentclass}. However, it is not |
| 1597 |
% recommended, as well as the use of Bib\TeX\ styles other than |
| 1598 |
% \path{ACM-Reference-Format.bst}, and may delay the processing of the |
| 1599 |
% manuscript. |
| 1600 |
% |
| 1601 |
% |
| 1602 |
% \DescribeMacro{\citestyle}% |
| 1603 |
% If you use |natbib|, you can select one of two predefined citation |
| 1604 |
% styles using the command \cs{citestyle}: the author-year format |
| 1605 |
% |acmauthoryear| or the numeric format |acmnumeric|. For example, |
| 1606 |
% \begin{verbatim} |
| 1607 |
% \citestyle{acmauthoryear} |
| 1608 |
% \end{verbatim} |
| 1609 |
% Note that numeric citations are the default mode for most formats. |
| 1610 |
% |
| 1611 |
% \DescribeMacro{\setcitestyle}% |
| 1612 |
% You can further customize |natbib| using |
| 1613 |
% the \cs{setcitestyle} command, for example, |
| 1614 |
% \begin{verbatim} |
| 1615 |
% \setcitestyle{numbers,sort&compress} |
| 1616 |
% \end{verbatim} |
| 1617 |
% |
| 1618 |
% One of the more common versions is |
| 1619 |
% \begin{verbatim} |
| 1620 |
% \setcitestyle{nosort} |
| 1621 |
% \end{verbatim} |
| 1622 |
% It is useful if you do not like the way |natbib| sorts citation |
| 1623 |
% lists. |
| 1624 |
% |
| 1625 |
% If you use |natbib|, then commands like \cs{citep} and |
| 1626 |
% \cs{citeauthor} are automatically supported. The command |
| 1627 |
% \cs{shortcite} is the same as \cs{cite} in numerical mode and cites |
| 1628 |
% the year in author-date mode. |
| 1629 |
% |
| 1630 |
% Note that before version~1.48 the command \cs{citeyear} put the year |
| 1631 |
% in parentheses. In version~1.48 and later it produces just the |
| 1632 |
% year; the command \cs{citeyearpar} can be used to emulate its old |
| 1633 |
% behavior. |
| 1634 |
% |
| 1635 |
% There are several customized \BibTeX\ entry types and fields in the ACM |
| 1636 |
% style file \path{ACM-Reference-Format.bst} that you may want to be |
| 1637 |
% aware of. You can find many examples on the Web page |
| 1638 |
% \url{https://www.acm.org/publications/authors/bibtex-formatting}. |
| 1639 |
% |
| 1640 |
% |
| 1641 |
%\subsubsection{URL, DOI, eprint} |
| 1642 |
% |
| 1643 |
% |
| 1644 |
% |
| 1645 |
% The style supports the fields \path{doi} and \path{url}, for example, |
| 1646 |
% \begin{verbatim} |
| 1647 |
% doi = "10.1145/1188913.1188915", |
| 1648 |
% url = "http://ccrma.stanford.edu/~jos/bayes/bayes.pdf", |
| 1649 |
% \end{verbatim} |
| 1650 |
% Normally the printing of URL is suppressed if DOI is present. |
| 1651 |
% However, there is a special field \path{distinctURL}. If it is |
| 1652 |
% present and is not zero, URL is printed even if DOI is present. |
| 1653 |
% |
| 1654 |
% The dynamic nature of Internet makes URLs not permanent: sometimes |
| 1655 |
% they disappear or change. The problem of ``stale links'' exists |
| 1656 |
% from the early days of WWW. That is why ACM prefers DOIs to URLs: |
| 1657 |
% unlike the latter, the former are supposed to work forever. |
| 1658 |
% However, if you really need to use URLs, there are two facilities |
| 1659 |
% that help to mitigate some problems with the URLs. The field |
| 1660 |
% \path{lastaccessed} gives the date when the given URL was visited |
| 1661 |
% and had the information you saw. Presumably, some service like |
| 1662 |
% Internet Wayback Machine (\url{https://web.archive.org/}) allows the |
| 1663 |
% reader to retrieve this link at the given date. Moreover, sometimes |
| 1664 |
% a page is explicitly archived by this or other service. In this |
| 1665 |
% case the field \path{archived} will give the reference ot the |
| 1666 |
% archival version. Examples: |
| 1667 |
% \begin{verbatim} |
| 1668 |
% lastaccessed = {March 2, 2005}, |
| 1669 |
% archived = {https://web.archive.org/web/20240505055615} |
| 1670 |
% \end{verbatim} |
| 1671 |
% |
| 1672 |
% |
| 1673 |
% The style supports the arXiv-recommended fields \path{eprint} and |
| 1674 |
% (optionally) \path{primaryclass}, for example, |
| 1675 |
% \begin{verbatim} |
| 1676 |
% eprint = "960935712", |
| 1677 |
% primaryclass = "cs", |
| 1678 |
% \end{verbatim} |
| 1679 |
|
| 1680 |
%\subsubsection{Special entry types} |
| 1681 |
%\label{sec:preprints} |
| 1682 |
% |
| 1683 |
% |
| 1684 |
% |
| 1685 |
% |
| 1686 |
% |
| 1687 |
% There are several special entry types. Types \path{online} and |
| 1688 |
% \path{game} are used for Web pages and games, for example, |
| 1689 |
% \begin{verbatim} |
| 1690 |
% @online{Thornburg01, |
| 1691 |
% author = "Harry Thornburg", |
| 1692 |
% year = "2001", |
| 1693 |
% title = "Introduction to Bayesian Statistics", |
| 1694 |
% url = "http://ccrma.stanford.edu/~jos/bayes/bayes.html", |
| 1695 |
% month = mar, |
| 1696 |
% lastaccessed = "March 2, 2005", |
| 1697 |
% } |
| 1698 |
% \end{verbatim} |
| 1699 |
% Entry types \path{artifactsoftware}, \path{artifactdataset} |
| 1700 |
% (with synonyms \path{software} and \path{dataset}) can be used to |
| 1701 |
% cite software artifacts and datasets, for example, |
| 1702 |
% \begin{verbatim} |
| 1703 |
% @ArtifactSoftware{R, |
| 1704 |
% title = {R: A Language and Environment for Statistical Computing}, |
| 1705 |
% author = {{R Core Team}}, |
| 1706 |
% organization = {R Foundation for Statistical Computing}, |
| 1707 |
% address = {Vienna, Austria}, |
| 1708 |
% year = {2019}, |
| 1709 |
% url = {https://www.R-project.org/}, |
| 1710 |
%} |
| 1711 |
% @ArtifactDataset{UMassCitations, |
| 1712 |
% author = {Sam Anzaroot and Andrew McCallum}, |
| 1713 |
% title = {{UMass} Citation Field Extraction Dataset}, |
| 1714 |
% year = 2013, |
| 1715 |
% url = |
| 1716 |
% {http://www.iesl.cs.umass.edu/data/data-umasscitationfield}, |
| 1717 |
% lastaccessed = {May 27, 2019} |
| 1718 |
% } |
| 1719 |
% \end{verbatim} |
| 1720 |
% |
| 1721 |
% |
| 1722 |
% For these entry types you can use the \path{lastaccessed} field to add |
| 1723 |
% the access date for the URL and \path{archived} field to add the |
| 1724 |
% archival link. |
| 1725 |
% |
| 1726 |
% |
| 1727 |
% |
| 1728 |
% There are two ways to enter video or audio sources in the |
| 1729 |
% bibliograpy corresponding to two different possibilies. For |
| 1730 |
% standalone sources available online, you can use an \path{online} |
| 1731 |
% entry and set its \path{howpublished} field. For example, |
| 1732 |
% \begin{verbatim} |
| 1733 |
% @online{Obama08, |
| 1734 |
% author = "Barack Obama", |
| 1735 |
% year = "2008", |
| 1736 |
% title = "A more perfect union", |
| 1737 |
% howpublished = "Video", |
| 1738 |
% day = "5", |
| 1739 |
% url = "http://video.google.com/videoplay?docid=6528042696351994555", |
| 1740 |
% month = mar, |
| 1741 |
% lastaccessed = "March 21, 2008", |
| 1742 |
% } |
| 1743 |
% \end{verbatim} |
| 1744 |
% |
| 1745 |
% For sources available as supplemental material attached to |
| 1746 |
% conference proceedings and similar documents, you can use the usual |
| 1747 |
% \path{inproceedings} entry type and set its \path{howpublished} |
| 1748 |
% field: |
| 1749 |
% \begin{verbatim} |
| 1750 |
% @Inproceedings{Novak03, |
| 1751 |
% author = "Dave Novak", |
| 1752 |
% title = "Solder man", |
| 1753 |
% booktitle = "ACM SIGGRAPH 2003 Video Review on Animation theater Program", |
| 1754 |
% year = "2003", |
| 1755 |
% publisher = "ACM Press", |
| 1756 |
% address = "New York, NY", |
| 1757 |
% pages = "4", |
| 1758 |
% month = "March 21, 2008", |
| 1759 |
% doi = "10.9999/woot07-S422", |
| 1760 |
% howpublished = "Video", |
| 1761 |
% } |
| 1762 |
% \end{verbatim} |
| 1763 |
% |
| 1764 |
% Sometimes you need to cite a complete issue of a journal. The |
| 1765 |
% \path{periodical} entry type is intended for this: |
| 1766 |
% \begin{verbatim} |
| 1767 |
% @periodical{JCohen96, |
| 1768 |
% key = "Cohen", |
| 1769 |
% editor = "Jacques Cohen", |
| 1770 |
% title = "Special issue: Digital Libraries", |
| 1771 |
% journal = "Communications of the {ACM}", |
| 1772 |
% volume = "39", |
| 1773 |
% number = "11", |
| 1774 |
% month = nov, |
| 1775 |
% year = "1996", |
| 1776 |
% } |
| 1777 |
% \end{verbatim} |
| 1778 |
% |
| 1779 |
% Sometimes a work is presented at meeting, but is not (yet) |
| 1780 |
% published in the proceedings. The entry type \path{presentation} is |
| 1781 |
% used for this purpose. The field \path{venue} is used for the place |
| 1782 |
% of the meeting: |
| 1783 |
% \begin{verbatim} |
| 1784 |
% @Presentation{Reiser2014, |
| 1785 |
% author = {Brian J. Reiser}, |
| 1786 |
% year = 2014, |
| 1787 |
% title = {Designing coherent storylines aligned with NGSS for the |
| 1788 |
% K-12 classroom}, |
| 1789 |
% venue = {National Science Education Leadership Association |
| 1790 |
% Meeting, Boston, MA, USA}, |
| 1791 |
% url = {https://www.academia.edu/6884962/} |
| 1792 |
% } |
| 1793 |
% \end{verbatim} |
| 1794 |
% The URL, if present, may be accompanied by \path{lastaccessed} and |
| 1795 |
% \path{archived} links. |
| 1796 |
% |
| 1797 |
% A preprint can be cited using the entry |
| 1798 |
% \path{preprint}, for example, |
| 1799 |
% \begin{verbatim} |
| 1800 |
% @preprint{AnzarootPBM14, |
| 1801 |
% author = {Sam Anzaroot and |
| 1802 |
% Alexandre Passos and |
| 1803 |
% David Belanger and |
| 1804 |
% Andrew McCallum}, |
| 1805 |
% title = {Learning Soft Linear Constraints with Application to |
| 1806 |
% Citation Field Extraction}, |
| 1807 |
% year = {2014}, |
| 1808 |
% archivePrefix = {arXiv}, |
| 1809 |
% eprint = {1403.1349}, |
| 1810 |
% doi = {10.48550/arXiv.1403.1349} |
| 1811 |
% } |
| 1812 |
% \end{verbatim} |
| 1813 |
% |
| 1814 |
% Sometimes you need to cite an article under review. ACM prefers the |
| 1815 |
% authors to use preprints for this purpose, but sometimes it is not |
| 1816 |
% feasible. In this case you can use the entry \path{underreview}, |
| 1817 |
% for example, |
| 1818 |
% \begin{verbatim} |
| 1819 |
% @underreview{Baggett2025, |
| 1820 |
% author = {R. Baggett and M. Simecek and C. Chambellan |
| 1821 |
% and K. Tsui and M. Fraune}, |
| 1822 |
% year = 2025, |
| 1823 |
% title = {Fluidity in the Phased Framework of Technology |
| 1824 |
% Acceptance: Case Study to Gain a Holistic Understanding |
| 1825 |
% of (Older Adult) Participant Advancement Through |
| 1826 |
% Acceptance Phases with Mobile Telepresence Robots}, |
| 1827 |
% journal = {Robotics Aut. Systems} |
| 1828 |
% } |
| 1829 |
% \end{verbatim} |
| 1830 |
% |
| 1831 |
% |
| 1832 |
%\subsubsection{Dates and sorting} |
| 1833 |
% |
| 1834 |
% |
| 1835 |
% If you do not know the year of publication, the style will add |
| 1836 |
% ``[n.\,d.]'' (for ``no date'') to the entry. |
| 1837 |
% |
| 1838 |
% If you do not know the author (this is often the case for online |
| 1839 |
% entries), use the |key| field to add a key for sorting and citations, |
| 1840 |
% for example, |
| 1841 |
% \begin{verbatim} |
| 1842 |
% @online{TUGInstmem, |
| 1843 |
% key = {TUG}, |
| 1844 |
% year = 2017, |
| 1845 |
% title = "Institutional members of the {\TeX} Users Group", |
| 1846 |
% url = "http://wwtug.org/instmem.html", |
| 1847 |
% lastaccessed = "May 27, 2017", |
| 1848 |
% } |
| 1849 |
% \end{verbatim} |
| 1850 |
% |
| 1851 |
% A note about sorting. The current ACM bibliography styles always |
| 1852 |
% sort the entries according to authors names and publication year. |
| 1853 |
% There is a controversy about sorting names with ``von'' or ``van'' |
| 1854 |
% part: should Ludwig van Beethoven be sorted under ``V'' or under |
| 1855 |
% ``B''? The American practice is to use ``van'' in sorting, i.e. to |
| 1856 |
% file van Beethoven under ``V''. However, some authorities recommend |
| 1857 |
% to sort Dutch persons according to their last names (see |
| 1858 |
% e.g. \url{https://www.ifla.org/files/assets/cataloguing/pubs/names-of-persons_1996.pdf}). |
| 1859 |
% While I do not want to take a part in this dispute, I would like to |
| 1860 |
% point to the old ``noopsort'' trick by Oren Patashnik. Add to the |
| 1861 |
% \texttt{.bib} file the line |
| 1862 |
% \begin{verbatim} |
| 1863 |
% @PREAMBLE{"\providecommand{\noopsort}[1]{}"} |
| 1864 |
% \end{verbatim} |
| 1865 |
% and then encode the author as |
| 1866 |
% \begin{verbatim} |
| 1867 |
% author = {Ludwig {\noopsort{Beethoven}}van Beethoven}, |
| 1868 |
% \end{verbatim} |
| 1869 |
% This will make the author to be sorted as ``Beethoven'' rather than |
| 1870 |
% ``van Beethoven''. |
| 1871 |
% |
| 1872 |
% The current bst style defines a number of macros for common journal |
| 1873 |
% names. In particular, all journals listed in Table~\ref{tab:pubs} |
| 1874 |
% are includes, so you can use strings like |journal = taccess| for |
| 1875 |
% \emph{ACM Transactions on Accessible Computing}. |
| 1876 |
% |
| 1877 |
%\subsubsection{Processing using Bib\LaTeX} |
| 1878 |
% You will find in this package two sets of style files for Bib\LaTeX, |
| 1879 |
% \verb|acmnumeric| and \verb|acmauthoryear|, that mimic the behavior |
| 1880 |
% of the ACM-Reference-Format.bst Bib\TeX\ style. They provide you |
| 1881 |
% access to all the power of Bib\LaTeX\ and already include |
| 1882 |
% support for advanced citation of software artifacts from the |
| 1883 |
% \verb|biblatex-software| package, also separately available on CTAN. |
| 1884 |
% Look at the \verb|biblatex-software| documentation to learn more about |
| 1885 |
% what it offers. |
| 1886 |
% |
| 1887 |
% There are a few key differences in how the \LaTeX\ sources are set up |
| 1888 |
% when using Bib\LaTeX\ instead of Bib\TeX, that we summarize briefly |
| 1889 |
% here (please refer to the official Bib\LaTeX\ documentation for more details). |
| 1890 |
% |
| 1891 |
% First of all, you need to pass the \verb|natbib=false| option to the document class, |
| 1892 |
% and remove the \verb|\citestyle{acmauthoryear}| command from the sources (if present). |
| 1893 |
% |
| 1894 |
% Then, in the preamble of your document you need to load the Bib\LaTeX\ package |
| 1895 |
% and select the approriate bibliography style, as follows |
| 1896 |
% \begin{verbatim} |
| 1897 |
% \RequirePackage[ |
| 1898 |
% datamodel=acmdatamodel, |
| 1899 |
% style=acmnumeric, % use style=acmauthoryear for publications that require it |
| 1900 |
% ]{biblatex} |
| 1901 |
% \end{verbatim} |
| 1902 |
% |
| 1903 |
% Also in the preamble, you need to declare the bibliography sources files |
| 1904 |
% using the \verb|\addbibresource| command (one \verb|\addbibresource| |
| 1905 |
% command per source file), e.g.: |
| 1906 |
% \begin{verbatim} |
| 1907 |
% \addbibresource{software.bib} |
| 1908 |
% \addbibresource{sample-base.bib} |
| 1909 |
% \end{verbatim} |
| 1910 |
% |
| 1911 |
% At the end of the document, where you want the bibliography to appear, |
| 1912 |
% you need to place the command \verb|\printbibliography|. |
| 1913 |
% |
| 1914 |
% Look at the \verb|sample-*-biblatex.tex| files that can be found in the samples |
| 1915 |
% directory after running \verb|make| for templates showcasing |
| 1916 |
% these Bib\LaTeX\ styles. |
| 1917 |
|
| 1918 |
%\subsection{Colors} |
| 1919 |
%\label{sec:ug_colors} |
| 1920 |
% |
| 1921 |
% While printed ACM publications are usually black and white, |screen| |
| 1922 |
% mode allows the use of colors. The ACM classes pre-define several |
| 1923 |
% colors according to~\cite{ACMIdentityStandards}: |ACMBlue|, |
| 1924 |
% |ACMYellow|, |ACMOrange|, |ACMRed|, |ACMLightBlue|, |ACMGreen|, |
| 1925 |
% |ACMPurple| and |ACMDarkBlue|. You can use them in color |
| 1926 |
% assignments. |
| 1927 |
% |
| 1928 |
% The ACM provides the following recommendation on color use. |
| 1929 |
% |
| 1930 |
% The most accessible approach would be to ensure that your article is |
| 1931 |
% still readable when printed in greyscale. The most notable reasons |
| 1932 |
% for this are: |
| 1933 |
% \begin{enumerate} |
| 1934 |
% \item The most common type of inherited Color Vision Deficiency |
| 1935 |
% (CVD) is red-green (in which similar-brightness colors that differ |
| 1936 |
% only in their amounts of red or green are often confused), and it |
| 1937 |
% affects up to 8\% of males and 0.5\% of females of Northern European |
| 1938 |
% descent. |
| 1939 |
% \item The most common type of acquired Color Vision Deficiency (CVD) |
| 1940 |
% is blue-yellow (including mild cases for many older adults). |
| 1941 |
% \item Most printing is in black and white. |
| 1942 |
% \item Situational impairments (e.g., bright sunlight shining on a |
| 1943 |
% mobile screen) tend to reduce the entire color gamut, reducing color |
| 1944 |
% discriminability. |
| 1945 |
% \end{enumerate} |
| 1946 |
% |
| 1947 |
% \textbf{Note:} It is \emph{not} safe to encode information using |
| 1948 |
% only variations in color (i.e., only differences in hue and/or |
| 1949 |
% saturation) as there is bound to be someone affected! |
| 1950 |
% |
| 1951 |
% To ensure that you are using the most accessible colors, the ACM |
| 1952 |
% recommends that you choose sets of colors to help ensure suitable |
| 1953 |
% variations in when printed in greyscale by using either of the following tools: |
| 1954 |
% \begin{enumerate} |
| 1955 |
% \item ColourBrewer: \url{http://colorbrewer2.org/} |
| 1956 |
% \item ACE: The Accessible Colour Evaluator: |
| 1957 |
% \url{http://daprlab.com/ace/} for designing WCAG 2.0 compliant |
| 1958 |
% palettes. |
| 1959 |
% \end{enumerate} |
| 1960 |
% |
| 1961 |
% |
| 1962 |
% |
| 1963 |
%\subsubsection{Manual bibliography} |
| 1964 |
%\label{sec:ug_manual_bibliography} |
| 1965 |
% |
| 1966 |
% Some people create bibliographies manually, writing down |
| 1967 |
% \cs{bibitem} commands explicitly. This approach is \emph{not} |
| 1968 |
% recommended for ACM styles. The reason is, ACM submissions, besides |
| 1969 |
% being typeset, are also processed by special programs that extract |
| 1970 |
% metadata and references. Bibliographies created automatically with |
| 1971 |
% ACM styles contain customized macros for these programs, for |
| 1972 |
% example, |
| 1973 |
% \begin{verbatim} |
| 1974 |
% \bibitem[Ablamowicz and Fauser(2007)]% |
| 1975 |
% {Ablamowicz07} |
| 1976 |
% \bibfield{author}{\bibinfo{person}{Rafal Ablamowicz} {and} |
| 1977 |
% \bibinfo{person}{Bertfried Fauser}.} \bibinfo{year}{2007}\natexlab{}. |
| 1978 |
% \newblock \bibinfo{booktitle}{\emph{CLIFFORD: a Maple 11 Package for Clifford |
| 1979 |
% Algebra Computations, version 11}}. |
| 1980 |
% \newblock |
| 1981 |
% \urldef\tempurl% |
| 1982 |
% \url{http://math.tntech.edu/rafal/cliff11/index.html} |
| 1983 |
% \showURL{% |
| 1984 |
% Retrieved February 28, 2008 from \tempurl} |
| 1985 |
% \end{verbatim} |
| 1986 |
% |
| 1987 |
% Manual bibliographies without these macros may slow down the |
| 1988 |
% publication process, and thus are not recommended for ACM |
| 1989 |
% submissions. |
| 1990 |
% |
| 1991 |
%\subsection{Other notable packages and typographic remarks} |
| 1992 |
%\label{sec:ug_other} |
| 1993 |
% |
| 1994 |
% Several other packages are recommended for specialized tasks. |
| 1995 |
% |
| 1996 |
% The package |subcaption|~\cite{Sommerfeldt13:Subcaption} is |
| 1997 |
% recommended for complex figures with several subplots or subfigures |
| 1998 |
% that require separate subcaptioning. The packages |
| 1999 |
% |nomencl|~\cite{Nomencl} and |
| 2000 |
% |glossaries|~\cite{Talbot16:Glossaries} can be used for the |
| 2001 |
% automatic creation of the lists of symbols and concepts used. |
| 2002 |
% |
| 2003 |
% |
| 2004 |
% By default |acmart| prevents all widows and orphans (i.e., lonely |
| 2005 |
% lines at the beginning or end of the page) and hyphenation at |
| 2006 |
% the end of the page. This is done by the rather strict settings |
| 2007 |
% \begin{verbatim} |
| 2008 |
% \widowpenalty=10000 |
| 2009 |
% \clubpenalty=10000 |
| 2010 |
% \brokenpenalty=10000 |
| 2011 |
% \end{verbatim} |
| 2012 |
% However, this may lead to frustrating results when the authors must |
| 2013 |
% obey a page limit. Setting these penalties to smaller values may |
| 2014 |
% help if you absolutely need to. |
| 2015 |
% |
| 2016 |
% Another problem might be the too strict line breaking rules. Again, |
| 2017 |
% a strategically placed \cs{sloppy} command or putting the |
| 2018 |
% problematic paragraph inside \texttt{sloppypar} environment might |
| 2019 |
% help---but beware, the results might be, well, sloppy. |
| 2020 |
% |
| 2021 |
% Note that the uppercasing in section titles is done using |
| 2022 |
% the |textcase| package~\cite{Carlisle04:Textcase}, so the command |
| 2023 |
% \cs{NoCaseChange} inside the title may help to prevent extraneous |
| 2024 |
% uppercasing. |
| 2025 |
% |
| 2026 |
% |
| 2027 |
%\subsection{Counting words} |
| 2028 |
%\label{sec:ug_counting} |
| 2029 |
% |
| 2030 |
% Some ACM conferences use word count limits for papers. The |
| 2031 |
% calculation of word number for a paper with math, tables and figures |
| 2032 |
% is not a trivial task. Currently the authoritative word count is |
| 2033 |
% done by translating the PDF to text and using |wc -w| on the |
| 2034 |
% output. Authors can use the package |texcount| (used by Overleaf) |
| 2035 |
% to get an estimate of the word count. To faciliate this one adds to the |
| 2036 |
% beginning of the package metacomments |
| 2037 |
% \begin{verbatim} |
| 2038 |
% %TC:macro \cite [option:text,text] |
| 2039 |
% %TC:macro \citep [option:text,text] |
| 2040 |
% %TC:macro \citet [option:text,text] |
| 2041 |
% %TC:envir table 0 1 |
| 2042 |
% %TC:envir table* 0 1 |
| 2043 |
% %TC:envir tabular [ignore] word |
| 2044 |
% %TC:envir displaymath 0 word |
| 2045 |
% %TC:envir math 0 word |
| 2046 |
% %TC:envir comment 0 0 |
| 2047 |
% \end{verbatim} |
| 2048 |
% and uses |\begin{math}...\end{math}| instead of dollar signs for |
| 2049 |
% math. Note that the count is in any case approximate, and the final |
| 2050 |
% decision of editors is based on PDF count. |
| 2051 |
% |
| 2052 |
% The script |texcount| provides a report of word count in the |
| 2053 |
% document. |
| 2054 |
% |
| 2055 |
% |
| 2056 |
% |
| 2057 |
%\subsection{Disabled or forbidden commands} |
| 2058 |
%\label{sec:ug_disabled} |
| 2059 |
% |
| 2060 |
% The goal of |acmart| package is to provide a uniform look and feel |
| 2061 |
% for ACM publications. Accordingly, a number of commands is |
| 2062 |
% forbidden or disabled in |acmart|. |
| 2063 |
% |
| 2064 |
% You may \emph{not} put several authors or several e-mails into a |
| 2065 |
% \cs{author} or \cs{email} command. This may lead to errors or |
| 2066 |
% warning. |
| 2067 |
% |
| 2068 |
% You cannot change \cs{baselinestretch} in your document: this |
| 2069 |
% produces an error. |
| 2070 |
% |
| 2071 |
% You should not abuse the command \cs{vspace}: this command may |
| 2072 |
% disturb the typesetting of ACM papers. |
| 2073 |
% |
| 2074 |
% You should not load |amssymb| package since the package |acmart| |
| 2075 |
% defines the corresponding symbols itself. |
| 2076 |
% |
| 2077 |
%\subsection{Notes for wizards} |
| 2078 |
%\label{sec:ug_preload} |
| 2079 |
% |
| 2080 |
% Sometimes you need to change the behavior of |acmart|. The |
| 2081 |
% usual way to do this is to redefine commands in the preamble. |
| 2082 |
% However, these definitions are executed \emph{after} |acmart| is |
| 2083 |
% loaded and certain decisions are made. This presents a number of |
| 2084 |
% problems. |
| 2085 |
% |
| 2086 |
% For example, one may want to use the |titletoc| package with |acmart|. |
| 2087 |
% This package should be loaded before |hyperref|. However, since |
| 2088 |
% |acmart| loads |hyperref| itself, the line |\usepackage{titletoc}| |
| 2089 |
% in the preamble will lead to grief (see |
| 2090 |
% \url{http://tex.stackexchange.com/questions/357265/using-titletoc-with-acm-acmart-style}). |
| 2091 |
% |
| 2092 |
% Another example is passing options to a package. Suppose you want to |
| 2093 |
% use the |dvipsnames| option of the |xcolor| package. Normally you cannot do |
| 2094 |
% this because |acmart| loads this package itself without options. |
| 2095 |
% |
| 2096 |
% The file |acmart-preload-hook.tex| can be used to solve these |
| 2097 |
% problems. If this file exists, it will be processed before any other |
| 2098 |
% package. You can use this file to load packages or pass options to |
| 2099 |
% them. For example, if you put in this file |
| 2100 |
% \begin{verbatim} |
| 2101 |
% \let\LoadClassOrig\LoadClass |
| 2102 |
% \renewcommand\LoadClass[2][]{\LoadClassOrig[#1]{#2}% |
| 2103 |
% \usepackage{titletoc}} |
| 2104 |
% \end{verbatim} |
| 2105 |
% then |titletoc| will be loaded before |hyperref|. If you put in |
| 2106 |
% this file |
| 2107 |
% \begin{verbatim} |
| 2108 |
% \PassOptionsToPackage{dvipsnames}{xcolor} |
| 2109 |
% \end{verbatim} |
| 2110 |
% you will pass |dvipsnames| to |xcolor|. |
| 2111 |
% |
| 2112 |
% \textbf{Important note.} This hook makes it too easy to create a |
| 2113 |
% manuscript that is not acceptable by the ACM. It is even easier to |
| 2114 |
% create a file that cannot be compiled. So please do not use it |
| 2115 |
% \emph{unless you know what you are doing.} And if you use it, |
| 2116 |
% \emph{do not ask for support.} If you decide to use this hook, you |
| 2117 |
% are on your own. |
| 2118 |
% |
| 2119 |
% \DescribeMacro{\AtBeginMaketitle}% |
| 2120 |
% Another hook is \cs{AtBeginMaketitle}. The commands in this hook |
| 2121 |
% are executed before \cs{maketitle}. |
| 2122 |
% |
| 2123 |
% |
| 2124 |
%\subsection{Currently supported publications} |
| 2125 |
%\label{sec:pubs} |
| 2126 |
% |
| 2127 |
%\bgroup\centering |
| 2128 |
% \begin{longtable}{>{\ttfamily}p{0.2\textwidth}@{}p{0.8\textwidth}} |
| 2129 |
% \caption{ACM publications and arguments of the \cs{acmJournal} |
| 2130 |
% command} |
| 2131 |
% \label{tab:pubs}\\ |
| 2132 |
% \toprule |
| 2133 |
% \normalfont Abbreviation & Publication \\ |
| 2134 |
% \midrule |
| 2135 |
% \endfirsthead |
| 2136 |
% \caption[]{ACM publications and arguments of the \cs{acmJournal} |
| 2137 |
% command (continued)}\\ |
| 2138 |
% \toprule |
| 2139 |
% \normalfont Abbreviation & Publication \\ |
| 2140 |
% \midrule |
| 2141 |
% \endhead |
| 2142 |
% \bottomrule |
| 2143 |
% \endfoot |
| 2144 |
% ACMJCSS & ACM Journal on Computing and Sustainable Societies \\ |
| 2145 |
% ACMJDS & ACM Journal of Data Science\\ |
| 2146 |
% AILET & ACM AI Letters\\ |
| 2147 |
% CIE & ACM Computers in Entertainment \\ |
| 2148 |
% CSUR & ACM Computing Surveys\\ |
| 2149 |
% DLT & Distributed Ledger Technologies: Research and Practice\\ |
| 2150 |
% DGOV & Digital Government: Research and Practice \\ |
| 2151 |
% DTRAP & Digital Threats: Research and Practice\\ |
| 2152 |
% FAC & Formal Aspects of Computing \\ |
| 2153 |
% GAMES & ACM Games: Research and Practice\\ |
| 2154 |
% HEALTH & ACM Transactions on Computing for Healthcare\\ |
| 2155 |
% IMWUT & PACM on Interactive, Mobile, Wearable and Ubiquitous |
| 2156 |
% Technologies\\ |
| 2157 |
% JACM & Journal of the ACM \\ |
| 2158 |
% JATS & ACM Journal on Autonomous Transportation Systems \\ |
| 2159 |
% JDIQ & ACM Journal of Data and Information Quality \\ |
| 2160 |
% JDS & ACM/IMS Journal of Data Science \\ |
| 2161 |
% JEA & ACM Journal of Experimental Algorithmics \\ |
| 2162 |
% JERIC & ACM Journal of Educational Resources in Computing\\ |
| 2163 |
% JETC & ACM Journal on Emerging Technologies in Computing Systems \\ |
| 2164 |
% JOCCH & ACM Journal on Computing and Cultural Heritage \\ |
| 2165 |
% JRC & ACM Journal on Responsible Computing \\ |
| 2166 |
% PACMCGIT & Proceedings of the ACM on Computer Graphics and |
| 2167 |
% Interactive Techniques\\ |
| 2168 |
% PACMHCI & PACM on Human-Computer Interaction\\ |
| 2169 |
% PACMOD & PACM on Management of Data\\ |
| 2170 |
% PACMNET & PACM on Networking\\ |
| 2171 |
% PACMPL & PACM on Programming Languages \\ |
| 2172 |
% PACMSE & PACM on Software Engineering \\ |
| 2173 |
% POMACS & PACM on Measurement and Analysis of Computing Systems \\ |
| 2174 |
% TAAS & ACM Transactions on Autonomous and Adaptive Systems\\ |
| 2175 |
% TACCESS & ACM Transactions on Accessible Computing\\ |
| 2176 |
% TACO & ACM Transactions on Architecture and Code Optimization \\ |
| 2177 |
% TAIS & ACM Transactions on AI for Science\\ |
| 2178 |
% TAISAP & ACM Transactions on AI Security and Privacy\\ |
| 2179 |
% TALG & ACM Transactions on Algorithms \\ |
| 2180 |
% TALLIP & ACM Transactions on Asian and Low-Resource Language |
| 2181 |
% Information Processing\\ |
| 2182 |
% TAP & ACM Transactions on Applied Perception \\ |
| 2183 |
% TCPS & ACM Transactions on Cyber-Physical Systems\\ |
| 2184 |
% TDS & ACM/IMS Transactions on Data Science\\ |
| 2185 |
% TEAC & ACM Transactions on Economics and Computation\\ |
| 2186 |
% TECS & ACM Transactions on Embedded Computing Systems \\ |
| 2187 |
% TELO & ACM Transactions on Evolutionary Learning and Optimization\\ |
| 2188 |
% THRI & ACM Transactions on Human-Robot Interaction\\ |
| 2189 |
% TIIS & ACM Transactions on Interactive Intelligent Systems\\ |
| 2190 |
% TIOT & ACM Transactions on Internet of Things \\ |
| 2191 |
% TISSEC & ACM Transactions on Information and System Security\\ |
| 2192 |
% TIST & ACM Transactions on Intelligent Systems and Technology \\ |
| 2193 |
% TKDD & ACM Transactions on Knowledge Discovery from Data\\ |
| 2194 |
% TMIS & ACM Transactions on Management Information Systems\\ |
| 2195 |
% TOCE & ACM Transactions on Computing Education\\ |
| 2196 |
% TOCHI & ACM Transactions on Computer-Human Interaction\\ |
| 2197 |
% TOCL & ACM Transactions on Computational Logic\\ |
| 2198 |
% TOCS & ACM Transactions on Computer Systems \\ |
| 2199 |
% TOCT & ACM Transactions on Computation Theory \\ |
| 2200 |
% TODAES & ACM Transactions on Design Automation of Electronic Systems\\ |
| 2201 |
% TODS & ACM Transactions on Database Systems\\ |
| 2202 |
% TOG & ACM Transactions on Graphics\\ |
| 2203 |
% TOIS & ACM Transactions on Information Systems\\ |
| 2204 |
% TOIT & ACM Transactions on Internet Technology\\ |
| 2205 |
% TOMACS & ACM Transactions on Modeling and Computer Simulation \\ |
| 2206 |
% TOMM & ACM Transactions on Multimedia Computing, Communications |
| 2207 |
% and Applications \\ |
| 2208 |
% TOMPECS & ACM Transactions on Modeling and Performance Evaluation |
| 2209 |
% of Computing Systems\\ |
| 2210 |
% TOMS & ACM Transactions on Mathematical Software\\ |
| 2211 |
% TOPC & ACM Transactions on Parallel Computing\\ |
| 2212 |
% TOPLAS & ACM Transactions on Programming Languages and Systems\\ |
| 2213 |
% TOPML & ransactions on Probabilistic Machine Learning\\ |
| 2214 |
% TOPS & ACM Transactions on Privacy and Security\\ |
| 2215 |
% TORS & ACM Transactions on Recommender Systems\\ |
| 2216 |
% TOS & ACM Transactions on Storage\\ |
| 2217 |
% TOSEM & ACM Transactions on Software Engineering and Methodology\\ |
| 2218 |
% TOSN & ACM Transactions on Sensor Networks\\ |
| 2219 |
% TQC & ACM Transactions on Quantum Computing\\ |
| 2220 |
% TRETS & ACM Transactions on Reconfigurable Technology and Systems\\ |
| 2221 |
% TSAS & ACM Transactions on Spatial Algorithms and Systems\\ |
| 2222 |
% TSC & ACM Transactions on Social Computing\\ |
| 2223 |
% TSLP & ACM Transactions on Speech and Language Processing \\ |
| 2224 |
% TWEB & ACM Transactions on the Web\\ |
| 2225 |
% \end{longtable} |
| 2226 |
%\egroup |
| 2227 |
% |
| 2228 |
% Besides the publications listed in Table~\ref{tab:pubs}, there is a |
| 2229 |
% special ``publication'' type FACMP, a forthcoming ACM publication, |
| 2230 |
% reserved for new journals which are not assigned an ISSN yet. |
| 2231 |
% |
| 2232 |
% |
| 2233 |
%\subsection{Samples} |
| 2234 |
%\label{sec:samples} |
| 2235 |
% |
| 2236 |
% There are several samples of acmart documents, that can serve as |
| 2237 |
% templates for the authors. Among them |
| 2238 |
% |sample-sig...| are templates for conference papers, while |
| 2239 |
% |sample-acm...| are templates for journal articles and special |
| 2240 |
% materials. |
| 2241 |
% |
| 2242 |
% Here is the list of the samples: |
| 2243 |
% \begin{description} |
| 2244 |
% \item[sample-manuscript:] A proceedings paper in the manuscript format. |
| 2245 |
% \item[sample-acmsmall:] A journal paper in the |acmsmall| format. |
| 2246 |
% \item[sample-acmsmall-biblatex:] A journal paper using experimental |
| 2247 |
% \textsl{biblatex} bibliography processing. |
| 2248 |
% \item[sample-acmlarge:] A journal paper in the |acmlarge| format. |
| 2249 |
% \item[sample-acmtog:] A journal paper in the |acmtog| format. |
| 2250 |
% \item[sample-sigconf:] A proceedings paper in the standard |sigconf| |
| 2251 |
% format. |
| 2252 |
% \item[sample-sigconf-biblatex:] A proceedings paper in the |sigconf| |
| 2253 |
% format using experimental \textsl{biblatex} bibliography |
| 2254 |
% processing. |
| 2255 |
% \item[sample-sigconf-authordraft:] A proceedings paper in the |
| 2256 |
% |sigconf| format with the |authordraft| option selected. |
| 2257 |
% \item[sample-sigconf-i13n:] A proceedings paper in the |
| 2258 |
% |sigconf| format with multilanguage titles and abstract. |
| 2259 |
% \item[sample-sigconf-xelatex:] A proceedings paper in the |
| 2260 |
% |sigconf| format, Xe\LaTeX\ version. |
| 2261 |
% \item[sample-sigconf-lualatex:] A proceedings paper in the |
| 2262 |
% |sigconf| format, Lua\LaTeX\ version. |
| 2263 |
% \item[sample-sigplan:] A proceedings paper in the |sigplan| format. |
| 2264 |
% \item[sample-acmsmall-conf:] A proceedings paper in the |acmsmall| |
| 2265 |
% format for the publication in a journal using this option. |
| 2266 |
% \item[sample-acmtog-conf:] A proceedings paper in the |acmtog| |
| 2267 |
% format for the publication in a journal using this option. |
| 2268 |
% \item[sample-acmcp:] A sample of ACM Cover Page used by JDS. |
| 2269 |
% \item[sample-acmengage:] A sample of ACM Engage publication. |
| 2270 |
% \end{description} |
| 2271 |
% |
| 2272 |
% |
| 2273 |
% |
| 2274 |
%\subsection{A note about \texttt{sigchi-a} format} |
| 2275 |
%\label{sec:sigchi-a} |
| 2276 |
% |
| 2277 |
% Starting in Spring 2020 ACM retired SIGCHI Extended Abstract format |
| 2278 |
% (|sigchi-a|). ACM will not, under any circumstances, accept |
| 2279 |
% documents in this format for publication and will not offer |
| 2280 |
% technical support to the authors who use this template. |
| 2281 |
% |
| 2282 |
% You may use this format in the |nonacm| mode only, as in |
| 2283 |
% \begin{verbatim} |
| 2284 |
% \documentclass[sigchi-a, nonacm]{acmart} |
| 2285 |
% \end{verbatim} |
| 2286 |
% |
| 2287 |
% |
| 2288 |
% |
| 2289 |
% \DescribeEnv{sidebar}% |
| 2290 |
% \DescribeEnv{marginfigure}% |
| 2291 |
% \DescribeEnv{margintable}% |
| 2292 |
% This format has large margin uses for special figures and |
| 2293 |
% tables. This package provides three environments for this with |
| 2294 |
% optional captions: |
| 2295 |
% \begin{description} |
| 2296 |
% \item[sidebar:] textual information in the margin, |
| 2297 |
% \item[marginfigure:] a figure in the margin, |
| 2298 |
% \item[margintable:] a table in the margin. |
| 2299 |
% \end{description} |
| 2300 |
% |
| 2301 |
% The environments |figure| and |table| produce figures and tables |
| 2302 |
% with the width of the text column. The environments |figure*| and |
| 2303 |
% |table*| produce ``wide'' figures and tables, which take a large |
| 2304 |
% part of the margin. |
| 2305 |
% |
| 2306 |
% The horizontal sizes of figures are: |
| 2307 |
% \begin{enumerate} |
| 2308 |
% \item |figure|: \cs{columnwidth}, |
| 2309 |
% \item |marginfigure|: \cs{marginparwidth}, |
| 2310 |
% \item |figure*|: \cs{fulltextwidth}. |
| 2311 |
% \end{enumerate} |
| 2312 |
% |
| 2313 |
%\subsection{Experiments with tagging} |
| 2314 |
%\label{sec:ug_tagged} |
| 2315 |
% |
| 2316 |
% ACM is firmly committed to produce fully tagged PDFs compliant with |
| 2317 |
% the accessibility standards. We use the developmental version of |
| 2318 |
% tagging code by \LaTeX3 team, see the details at |
| 2319 |
% \url{https://www.latex-project.org/publications/indexbytopic/pdf/} |
| 2320 |
% and \url{https://tug.org/twg/accessibility/overview.html}. |
| 2321 |
% |
| 2322 |
% At present this work is highly experimental. You may try the |
| 2323 |
% experiments by (1)~using the class |acmart-tagged| in the document |
| 2324 |
% class line, and (2)~adding the command |
| 2325 |
% \cs{DocumentMetadata}\oarg{options} in the preamble, see the file |
| 2326 |
% \path{sample-acmsmall-tagged.tex}. If you do this, please \emph{do |
| 2327 |
% not ask ACM for support}. On the other hand, bug reports at |
| 2328 |
% \url{https://github.com/borisveytsman/acmart/issues} will be |
| 2329 |
% appreciated. |
| 2330 |
% |
| 2331 |
% |
| 2332 |
% |
| 2333 |
% \StopEventually{ |
| 2334 |
% \clearpage |
| 2335 |
% \bibliography{acmart} |
| 2336 |
% \bibliographystyle{unsrt}} |
| 2337 |
% |
| 2338 |
% \clearpage |
| 2339 |
% |
| 2340 |
% |
| 2341 |
%\section{Implementation} |
| 2342 |
%\label{sec:impl} |
| 2343 |
% |
| 2344 |
%\subsection{Identification} |
| 2345 |
%\label{sec:ident} |
| 2346 |
% |
| 2347 |
% We start with a declaration of who we are. Most |.dtx| files put |
| 2348 |
% driver code in a separate~|.drv| driver file. We roll this code into the |
| 2349 |
% main file and use the pseudo-guard |<gobble>| for it. |
| 2350 |
% \begin{macrocode} |
| 2351 |
%<class>\NeedsTeXFormat{LaTeX2e} |
| 2352 |
%<*gobble> |
| 2353 |
\ProvidesFile{acmart.dtx} |
| 2354 |
%</gobble> |
| 2355 |
%<class&!tagged>\ProvidesClass{acmart} |
| 2356 |
%<tagged>\ProvidesClass{acmart-tagged} |
| 2357 |
[2025/08/27 v2.16 Typesetting articles for the Association for Computing Machinery] |
| 2358 |
% \end{macrocode} |
| 2359 |
% |
| 2360 |
% \changes{v1.00}{2016/04/14}{First released version} |
| 2361 |
% \changes{v1.01}{2016/04/18}{Defined ACM colors} |
| 2362 |
% \changes{v1.01}{2016/04/18}{Changed hyperref colors in screen mode |
| 2363 |
% (closes \url{https://github.com/borisveytsman/acmart/issues/1})} |
| 2364 |
% \changes{v1.01}{2016/04/18}{Set headheight to 1pc for all formats |
| 2365 |
% (closes \url{https://github.com/borisveytsman/acmart/issues/5})} |
| 2366 |
% \changes{v1.02}{2016/04/21}{Documentation changes |
| 2367 |
% (closes \url{https://github.com/borisveytsman/acmart/issues/13})} |
| 2368 |
% \changes{v1.02}{2016/04/21}{Added TOPS and TSC |
| 2369 |
% (closes \url{https://github.com/borisveytsman/acmart/issues/12})} |
| 2370 |
% \changes{v1.03}{2016/04/22}{Added authorversion option |
| 2371 |
% (closes \url{https://github.com/borisveytsman/acmart/issues/9})} |
| 2372 |
% \changes{v1.03}{2016/04/22}{Added anonsuppress environment} |
| 2373 |
% \changes{v1.04}{2016/04/26}{Updated bibliography for siggraph} |
| 2374 |
% \changes{v1.05}{2016/04/27}{Patched \cs{setcitestyle} command; |
| 2375 |
% closes \url{https://github.com/borisveytsman/acmart/issues/19}} |
| 2376 |
% \changes{v1.05}{2016/04/27}{Added processing doi numbers for |
| 2377 |
% acmsiggraph and doi numbers for sigproc.bib} |
| 2378 |
% \changes{v1.08}{2016/05/13}{SIGPLAN reformatting by Matthew Fluet} |
| 2379 |
% \changes{v1.08}{2016/05/13}{Typos corrected (Tobias Pape)} |
| 2380 |
% \changes{v1.09}{2016/05/18}{Revert SIGPLAN caption rules} |
| 2381 |
% \changes{v1.11}{2016/05/27}{Customization of ACM theorem styles and |
| 2382 |
% proof environment by Matthew Fluet} |
| 2383 |
% \changes{v1.12}{2016/05/30}{Documentation updates} |
| 2384 |
% \changes{v1.14}{2016/06/09}{\cs{citestyle} updates (Matthew Fluet)} |
| 2385 |
% \changes{v1.16}{2016/07/07}{Formatting header/footer (Matthew |
| 2386 |
% Fluet)} |
| 2387 |
% \changes{v1.18}{2016/07/10}{Natbib is now the default for all |
| 2388 |
% formats} |
| 2389 |
% \changes{v1.19}{2016/07/28}{Include 'Abstract', 'Acknowledgements', |
| 2390 |
% and 'References' in PDF bookmarks (Matthew Fluet)} |
| 2391 |
% \changes{v1.20}{2016/08/06}{Bug fixes for bst} |
| 2392 |
% \changes{v1.22}{2016/09/25}{More bibliography changes for Aptara} |
| 2393 |
% \changes{v1.23}{2016/11/04}{Add PACMPL journal option} |
| 2394 |
% \changes{v1.26}{2016/12/24}{Corrected \cs{shortcite} bug} |
| 2395 |
% \changes{v1.26}{2016/12/24}{Documentation typos fixed (thanks to |
| 2396 |
% Stephen Spencer)} |
| 2397 |
% \changes{v1.30}{2017/02/04}{Bibtex style now recognizes https:// in |
| 2398 |
% doi} |
| 2399 |
% \changes{v1.31}{2017/03/04}{Documentation changes} |
| 2400 |
% \changes{v1.32}{2017/03/07}{Format siggraph is now obsolete} |
| 2401 |
% \changes{v1.32}{2017/03/07}{Added POMACS journal option} |
| 2402 |
% \changes{v1.33}{2017/03/12}{BibTeX crossref bug corrected} |
| 2403 |
% \changes{v1.33}{2017/03/18}{BibTeX comma before articleno bug |
| 2404 |
% corrected} |
| 2405 |
% \changes{v1.33}{2017/03/18}{BibTeX numpages bug corrected} |
| 2406 |
% \changes{v1.33}{2017/03/28}{Added acmart-preload-hook} |
| 2407 |
% \changes{v1.33}{2017/03/33}{Documentation updates} |
| 2408 |
% \changes{v1.35}{2017/04/23}{BibTeX bug fixed: et al.} |
| 2409 |
% \changes{v1.36}{2017/05/12}{Added the possibility to adjust number of |
| 2410 |
% author boxes per row in conference formats} |
| 2411 |
% \changes{v1.37}{2017/05/13}{Set \cs{normalparindent}; Reduce list |
| 2412 |
% indentation (Matthew Fluet)}% |
| 2413 |
% \changes{v1.38}{2017/05/13}{Increase default font size for SIGPLAN} |
| 2414 |
% \changes{v1.40}{2017/05/27}{Bibliography changes} |
| 2415 |
% \changes{v1.40}{2017/06/15}{Added package cleveref} |
| 2416 |
% \changes{v1.40}{2017/06/16}{Added new copyright version: |
| 2417 |
% licensedcagov} |
| 2418 |
% \changes{v1.41}{2017/06/25}{Added new badges} |
| 2419 |
% \changes{v1.42}{2017/07/02}{Deleted ACM badges} |
| 2420 |
% \changes{v1.44}{2017/07/30}{Added package refcount} |
| 2421 |
% \changes{v1.44}{2017/07/30}{Deleted package cleveref} |
| 2422 |
% \changes{v1.44}{2017/07/30}{Put theorem defs in a separate style} |
| 2423 |
% \changes{v1.46}{2017/08/17}{Bst file bug fixes: label width is |
| 2424 |
% calculated correctly} |
| 2425 |
% \changes{v1.46}{2017/08/25}{Added etoolbox} |
| 2426 |
% \changes{v1.46}{2017/08/29}{Restore theorem defs to class file} |
| 2427 |
% \changes{v1.47}{2017/08/31}{New journal: THRI} |
| 2428 |
% \changes{v1.48}{2017/09/09}{Typos fixed (Jamie Davis)} |
| 2429 |
% \changes{v1.48}{2017/09/16}{Code prettying (Michael D.~Adams)} |
| 2430 |
% \changes{v1.48}{2017/09/23}{Misc entries in the bibliography no |
| 2431 |
% longer produce a separate date} |
| 2432 |
% \changes{v1.48}{2017/10/01}{Initial support for Biblatex (Daniel Thomas)} |
| 2433 |
% \changes{1.48}{2017/10/14}{Bib code cleanup (Zack Weinberg)} |
| 2434 |
% \changes{1.48}{2017/12/03}{Documentation update (siggraph)} |
| 2435 |
% \changes{1.49}{2018/01/24}{New journal: DTRAP} |
| 2436 |
% \changes{1.53}{2018/04/14}{New journals: PACMCGIT, TIOT, TDSCI} |
| 2437 |
% \changes{1.53}{2018/04/14}{Rearranged docs} |
| 2438 |
% \changes{1.54}{2018/06/17}{Moved footnote stuff before hyperref call |
| 2439 |
% (Ross Moore)} |
| 2440 |
% \changes{1.56}{2018/11/11}{Documented \cs{Description}} |
| 2441 |
% \changes{1.57}{2018/12/16}{Booktabs package is now the default} |
| 2442 |
% \changes{1.58}{2019/02/09}{Changes in samples (Enrico Gregorio)} |
| 2443 |
% \changes{1.58}{2019/03/29}{New journal: HEALTH. TDS is renamed to |
| 2444 |
% TDSCI} |
| 2445 |
% \changes{1.60}{2019/04/22}{New option: urlbreakonhyphens} |
| 2446 |
% \changes{1.62}{2019/07/31}{New journal: TELO} |
| 2447 |
% \changes{1.63}{2019/08/04}{New journal: TQUANT} |
| 2448 |
% \changes{1.63}{2019/08/04}{New journal: FACMP} |
| 2449 |
% \changes{1.63a}{2019/08/05}{Move: TQUANT to TQC} |
| 2450 |
% \changes{1.64}{2019/08/17}{Putting abstract after \cs{maketitle} now |
| 2451 |
% causes an error} |
| 2452 |
% \changes{1.65}{2019/10/19}{New journal: DGOV} |
| 2453 |
% \changes{1.66}{2019/12/18}{ACM reference format is now mandatory for |
| 2454 |
% papers over one page; CCS concepts and keywords are now mandatory for |
| 2455 |
% papers over two pages} |
| 2456 |
% \changes{1.66}{2019/12/18}{Authors' addresses are mandatory for |
| 2457 |
% journal articles} |
| 2458 |
% \changes{1.71}{2020/05/01}{Retired sigchi and sigchi-a} |
| 2459 |
% \changes{1.71}{2020/05/02}{Bibliography change: volume for |
| 2460 |
% @inproceedings is now in brackets together with series} |
| 2461 |
% \changes{1.71}{2020/05/02}{LuaTeX now uses the OTF versions of |
| 2462 |
% fonts} |
| 2463 |
% \changes{1.75}{2020/10/29}{Documentation update} |
| 2464 |
% \changes{1.78}{2021/05/01}{Documentation update: Word count} |
| 2465 |
% \changes{1.84}{2022/04/09}{New journals: JDS, GAMES} |
| 2466 |
% \changes{1.85}{2022/05/08}{Added CC licenses} |
| 2467 |
% \changes{1.87}{2022/08/02}{New format: |acmcp|} |
| 2468 |
% \changes{1.90a}{2023/06/11}{Changes in the sample keywords and concepts} |
| 2469 |
% \changes{1.92}{2023/09/30}{Documentation update: use of `anonymous' |
| 2470 |
% throughout} |
| 2471 |
% \changes{v1.93}{2023/10/22}{Added PACMSE journal option} |
| 2472 |
% \changes{v2.01}{2024/01/06}{Documentation update: POMACS uses acmsmall} |
| 2473 |
% \changes{v2.03}{2024/02/04}{Added documentation about samples} |
| 2474 |
% |
| 2475 |
% And the driver code: |
| 2476 |
% \begin{macrocode} |
| 2477 |
%<*gobble> |
| 2478 |
\documentclass{ltxdoc} |
| 2479 |
\usepackage{array,booktabs,amsmath,graphicx,fancyvrb,tabularx, longtable} |
| 2480 |
\usepackage[tt=false, type1=true]{libertine} |
| 2481 |
\usepackage[varqu]{zi4} |
| 2482 |
\usepackage[libertine]{newtxmath} |
| 2483 |
\usepackage[tableposition=top]{caption} |
| 2484 |
\usepackage{hypdoc} |
| 2485 |
\PageIndex |
| 2486 |
\CodelineIndex |
| 2487 |
\RecordChanges |
| 2488 |
\EnableCrossrefs |
| 2489 |
\begin{document} |
| 2490 |
\DocInput{acmart.dtx} |
| 2491 |
\end{document} |
| 2492 |
%</gobble> |
| 2493 |
%<*class> |
| 2494 |
%<!tagged>\def\@classname{acmart} |
| 2495 |
%<tagged>\def\@classname{acmart-tagged} |
| 2496 |
% \end{macrocode} |
| 2497 |
% |
| 2498 |
% |
| 2499 |
% |
| 2500 |
%\subsection{Preload hook} |
| 2501 |
%\label{sec:preload} |
| 2502 |
% |
| 2503 |
% We preload |acmart-preload-hook|: |
| 2504 |
% \begin{macrocode} |
| 2505 |
\InputIfFileExists{acmart-preload-hook.tex}{% |
| 2506 |
\ClassWarning{\@classname}{% |
| 2507 |
I am loading acmart-preload-hook.tex. You are fully responsible |
| 2508 |
for any problems from now on.}}{} |
| 2509 |
% \end{macrocode} |
| 2510 |
% |
| 2511 |
% \subsection{Options} |
| 2512 |
% \label{sec:options} |
| 2513 |
% |
| 2514 |
% We need |xkeyval| since some of our options may have values: |
| 2515 |
% \begin{macrocode} |
| 2516 |
\RequirePackage{xkeyval} |
| 2517 |
% \end{macrocode} |
| 2518 |
% |
| 2519 |
% We use |xstring| to check whether user input is valid |
| 2520 |
% \begin{macrocode} |
| 2521 |
\RequirePackage{xstring} |
| 2522 |
% \end{macrocode} |
| 2523 |
% |
| 2524 |
% We need |iftex| to check the engine |
| 2525 |
% \begin{macrocode} |
| 2526 |
\RequirePackage{iftex} |
| 2527 |
% \end{macrocode} |
| 2528 |
% |
| 2529 |
% |
| 2530 |
% |
| 2531 |
% \begin{macro}{format} |
| 2532 |
% \changes{1.85}{2022/05/08}{New format: acmengage} |
| 2533 |
% \changes{1.87}{2022/08/13}{New format: acmcp} |
| 2534 |
% The possible formats |
| 2535 |
% \begin{macrocode} |
| 2536 |
\define@choicekey*+{\@classname.cls}{format}[\ACM@format\ACM@format@nr]{% |
| 2537 |
manuscript, acmsmall, acmlarge, acmtog, sigconf, siggraph, |
| 2538 |
sigplan, sigchi, sigchi-a, acmengage, acmcp}[manuscript]{}{% |
| 2539 |
\ClassError{\@classname}{The option format must be manuscript, |
| 2540 |
acmsmall, acmlarge, acmtog, sigconf, siggraph, |
| 2541 |
sigplan, sigchi or sigchi-a}} |
| 2542 |
\def\@DeclareACMFormat#1{\DeclareOptionX{#1}{\setkeys{\@classname.cls}{format=#1}}} |
| 2543 |
\@DeclareACMFormat{manuscript} |
| 2544 |
\@DeclareACMFormat{acmsmall} |
| 2545 |
\@DeclareACMFormat{acmlarge} |
| 2546 |
\@DeclareACMFormat{acmtog} |
| 2547 |
\@DeclareACMFormat{sigconf} |
| 2548 |
\@DeclareACMFormat{siggraph} |
| 2549 |
\@DeclareACMFormat{sigplan} |
| 2550 |
\@DeclareACMFormat{sigchi} |
| 2551 |
\@DeclareACMFormat{sigchi-a} |
| 2552 |
\@DeclareACMFormat{acmengage} |
| 2553 |
\@DeclareACMFormat{acmcp} |
| 2554 |
\ExecuteOptionsX{format} |
| 2555 |
% \end{macrocode} |
| 2556 |
% |
| 2557 |
% \end{macro} |
| 2558 |
% |
| 2559 |
% \begin{macro}{\if@ACM@screen} |
| 2560 |
% Whether we use screen mode |
| 2561 |
% \begin{macrocode} |
| 2562 |
\define@boolkey+{\@classname.cls}[@ACM@]{screen}[true]{% |
| 2563 |
\if@ACM@screen |
| 2564 |
\PackageInfo{\@classname}{Using screen mode}% |
| 2565 |
\else |
| 2566 |
\PackageInfo{\@classname}{Not using screen mode}% |
| 2567 |
\fi}{\PackageError{\@classname}{The option screen can be either true or |
| 2568 |
false}} |
| 2569 |
\ExecuteOptionsX{screen=false} |
| 2570 |
% \end{macrocode} |
| 2571 |
% |
| 2572 |
% \end{macro} |
| 2573 |
% |
| 2574 |
% \begin{macro}{\if@ACM@urlbreakonhyphens} |
| 2575 |
% \changes{1.60}{2019/04/22}{introduced macro} |
| 2576 |
% \begin{macrocode} |
| 2577 |
\define@boolkey+{\@classname.cls}[@ACM@]{urlbreakonhyphens}[true]{% |
| 2578 |
\if@ACM@urlbreakonhyphens |
| 2579 |
\PackageInfo{\@classname}{Using breaking urls on hyphens}% |
| 2580 |
\else |
| 2581 |
\PackageInfo{\@classname}{Not breaking urls on hyphens}% |
| 2582 |
\fi}{\PackageError{\@classname}{The option urlbreakonhyphens can be either true or |
| 2583 |
false}} |
| 2584 |
\ExecuteOptionsX{urlbreakonhyphens=true} |
| 2585 |
% \end{macrocode} |
| 2586 |
% \end{macro} |
| 2587 |
% |
| 2588 |
% \begin{macro}{\if@ACM@acmthm} |
| 2589 |
% \changes{v1.44}{2017/07/30}{Added macro} |
| 2590 |
% \changes{v1.46}{2017/08/29}{Modified description} |
| 2591 |
% Whether we define theorem-like environments. |
| 2592 |
% \begin{macrocode} |
| 2593 |
\define@boolkey+{\@classname.cls}[@ACM@]{acmthm}[true]{% |
| 2594 |
\if@ACM@acmthm |
| 2595 |
\PackageInfo{\@classname}{Requiring acmthm}% |
| 2596 |
\else |
| 2597 |
\PackageInfo{\@classname}{Suppressing acmthm}% |
| 2598 |
\fi}{\PackageError{\@classname}{The option acmthm can be either true or |
| 2599 |
false}} |
| 2600 |
\ExecuteOptionsX{acmthm=true} |
| 2601 |
% \end{macrocode} |
| 2602 |
% |
| 2603 |
% \end{macro} |
| 2604 |
% |
| 2605 |
% |
| 2606 |
% \begin{macro}{\if@ACM@review} |
| 2607 |
% \changes{v1.48}{2017/09/09}{Review mode now switches on folios} |
| 2608 |
% Whether we use review mode |
| 2609 |
% \begin{macrocode} |
| 2610 |
\define@boolkey+{\@classname.cls}[@ACM@]{review}[true]{% |
| 2611 |
\if@ACM@review |
| 2612 |
\PackageInfo{\@classname}{Using review mode}% |
| 2613 |
\AtBeginDocument{\@ACM@printfoliostrue}% |
| 2614 |
\else |
| 2615 |
\PackageInfo{\@classname}{Not using review mode}% |
| 2616 |
\fi}{\PackageError{\@classname}{The option review can be either true or |
| 2617 |
false}} |
| 2618 |
\ExecuteOptionsX{review=false} |
| 2619 |
% \end{macrocode} |
| 2620 |
% |
| 2621 |
% \end{macro} |
| 2622 |
% |
| 2623 |
% \begin{macro}{\if@ACM@authorversion} |
| 2624 |
% \changes{v1.03}{2016/04/22}{Added macro} |
| 2625 |
% Whether we use author's-version mode |
| 2626 |
% \begin{macrocode} |
| 2627 |
\define@boolkey+{\@classname.cls}[@ACM@]{authorversion}[true]{% |
| 2628 |
\if@ACM@authorversion |
| 2629 |
\PackageInfo{\@classname}{Using authorversion mode}% |
| 2630 |
\else |
| 2631 |
\PackageInfo{\@classname}{Not using authorversion mode}% |
| 2632 |
\fi}{\PackageError{\@classname}{The option authorversion can be either true or |
| 2633 |
false}} |
| 2634 |
\ExecuteOptionsX{authorversion=false} |
| 2635 |
% \end{macrocode} |
| 2636 |
% |
| 2637 |
% \end{macro} |
| 2638 |
% |
| 2639 |
% \begin{macro}{\if@ACM@nonacm} |
| 2640 |
% \changes{v1.54}{2018/05/08}{Added macro} |
| 2641 |
% Special option for non-ACM publications |
| 2642 |
% using the ACM typesetting options. |
| 2643 |
% \begin{macrocode} |
| 2644 |
\define@boolkey+{\@classname.cls}[@ACM@]{nonacm}[true]{% |
| 2645 |
\if@ACM@nonacm |
| 2646 |
\PackageInfo{\@classname}{Using nonacm mode}% |
| 2647 |
\AtBeginDocument{\@ACM@printacmreffalse}% |
| 2648 |
% in 'nonacm' mode we disable the "ACM Reference Format" |
| 2649 |
% printing by default, but this can be re-enabled by the |
| 2650 |
% user using \settopmatter{printacmref=true} |
| 2651 |
\else |
| 2652 |
\PackageInfo{\@classname}{Not using nonacm mode}% |
| 2653 |
\fi}{\PackageError{\@classname}{The option nonacm can be either true or |
| 2654 |
false}} |
| 2655 |
\ExecuteOptionsX{nonacm=false} |
| 2656 |
% \end{macrocode} |
| 2657 |
% |
| 2658 |
% \end{macro} |
| 2659 |
% |
| 2660 |
% \begin{macro}{\if@ACM@balance} |
| 2661 |
% \changes{v1.57}{2018/12/16}{Added macro} |
| 2662 |
% Whether to balance the last page |
| 2663 |
% \begin{macrocode} |
| 2664 |
\define@boolkey+{\@classname.cls}[@ACM@]{balance}[true]{}{% |
| 2665 |
\PackageError{\@classname}{The option balance can be either true or |
| 2666 |
false}} |
| 2667 |
\ExecuteOptionsX{balance} |
| 2668 |
% \end{macrocode} |
| 2669 |
% |
| 2670 |
% \end{macro} |
| 2671 |
% |
| 2672 |
% |
| 2673 |
% \begin{macro}{\if@ACM@pbalance} |
| 2674 |
% \changes{v1.76}{2021/03/16}{Added macro} |
| 2675 |
% Whether to balance the last page |
| 2676 |
% \begin{macrocode} |
| 2677 |
\define@boolkey+{\@classname.cls}[@ACM@]{pbalance}[true]{}{% |
| 2678 |
\PackageError{\@classname}{The option pbalance can be either true or |
| 2679 |
false}} |
| 2680 |
\ExecuteOptionsX{pbalance=false} |
| 2681 |
% \end{macrocode} |
| 2682 |
% |
| 2683 |
% \end{macro} |
| 2684 |
% |
| 2685 |
% |
| 2686 |
% \begin{macro}{\if@ACM@natbib@override} |
| 2687 |
% \changes{v1.12}{2016/05/30}{Added macro} |
| 2688 |
% \changes{v1.33}{2017/03/28}{Deleted macro} |
| 2689 |
% This macro is no longer used. |
| 2690 |
% \end{macro} |
| 2691 |
% |
| 2692 |
% \begin{macro}{\if@ACM@natbib} |
| 2693 |
% Whether we use |natbib| mode |
| 2694 |
% \begin{macrocode} |
| 2695 |
\define@boolkey+{\@classname.cls}[@ACM@]{natbib}[true]{% |
| 2696 |
\if@ACM@natbib |
| 2697 |
\PackageInfo{\@classname}{Explicitly selecting natbib mode}% |
| 2698 |
\else |
| 2699 |
\PackageInfo{\@classname}{Explicitly deselecting natbib mode}% |
| 2700 |
\fi}{\PackageError{\@classname}{The option natbib can be either true or |
| 2701 |
false}} |
| 2702 |
\ExecuteOptionsX{natbib=true} |
| 2703 |
% \end{macrocode} |
| 2704 |
% |
| 2705 |
% \end{macro} |
| 2706 |
% |
| 2707 |
% |
| 2708 |
% \begin{macro}{\if@ACM@anonymous} |
| 2709 |
% Whether we use anonymous mode |
| 2710 |
% \begin{macrocode} |
| 2711 |
\define@boolkey+{\@classname.cls}[@ACM@]{anonymous}[true]{% |
| 2712 |
\if@ACM@anonymous |
| 2713 |
\PackageInfo{\@classname}{Using anonymous mode}% |
| 2714 |
\else |
| 2715 |
\PackageInfo{\@classname}{Not using anonymous mode}% |
| 2716 |
\fi}{\PackageError{\@classname}{The option anonymous can be either true or |
| 2717 |
false}} |
| 2718 |
\ExecuteOptionsX{anonymous=false} |
| 2719 |
% \end{macrocode} |
| 2720 |
% |
| 2721 |
% \end{macro} |
| 2722 |
% |
| 2723 |
% |
| 2724 |
% \begin{macro}{\if@ACM@timestamp} |
| 2725 |
% \changes{v1.33}{2017/03/10}{Added macro (Michael D.~Adams)} |
| 2726 |
% Whether we use timestamp mode |
| 2727 |
% \begin{macrocode} |
| 2728 |
\define@boolkey+{\@classname.cls}[@ACM@]{timestamp}[true]{% |
| 2729 |
\if@ACM@timestamp |
| 2730 |
\PackageInfo{\@classname}{Using timestamp mode}% |
| 2731 |
\else |
| 2732 |
\PackageInfo{\@classname}{Not using timestamp mode}% |
| 2733 |
\fi}{\PackageError{\@classname}{The option timestamp can be either true or |
| 2734 |
false}} |
| 2735 |
\ExecuteOptionsX{timestamp=false} |
| 2736 |
% \end{macrocode} |
| 2737 |
% |
| 2738 |
% \end{macro} |
| 2739 |
% |
| 2740 |
% |
| 2741 |
% \begin{macro}{\if@ACM@authordraft} |
| 2742 |
% \changes{v1.33}{2017/03/28}{Added macro} |
| 2743 |
% \changes{v1.36}{2017/05/13}{Corrected typo, thanks to bargteil} |
| 2744 |
% Whether we use author-draft mode |
| 2745 |
% \begin{macrocode} |
| 2746 |
\define@boolkey+{\@classname.cls}[@ACM@]{authordraft}[true]{% |
| 2747 |
\if@ACM@authordraft |
| 2748 |
\PackageInfo{\@classname}{Using authordraft mode}% |
| 2749 |
\@ACM@timestamptrue |
| 2750 |
\@ACM@reviewtrue |
| 2751 |
\else |
| 2752 |
\PackageInfo{\@classname}{Not using authordraft mode}% |
| 2753 |
\fi}{\PackageError{\@classname}{The option authordraft can be either true or |
| 2754 |
false}} |
| 2755 |
\ExecuteOptionsX{authordraft=false} |
| 2756 |
% \end{macrocode} |
| 2757 |
% |
| 2758 |
% \end{macro} |
| 2759 |
% |
| 2760 |
% |
| 2761 |
% \begin{macro}{\ACM@fontsize} |
| 2762 |
% The font size to pass to the base class |
| 2763 |
% \begin{macrocode} |
| 2764 |
% \changes{v1.87}{2022/08/27}{Added fontsize 8pt} |
| 2765 |
\def\ACM@fontsize{} |
| 2766 |
\DeclareOptionX{8pt}{\edef\ACM@fontsize{\CurrentOption}} |
| 2767 |
\DeclareOptionX{9pt}{\edef\ACM@fontsize{\CurrentOption}} |
| 2768 |
\DeclareOptionX{10pt}{\edef\ACM@fontsize{\CurrentOption}} |
| 2769 |
\DeclareOptionX{11pt}{\edef\ACM@fontsize{\CurrentOption}} |
| 2770 |
\DeclareOptionX{12pt}{\edef\ACM@fontsize{\CurrentOption}} |
| 2771 |
% \end{macrocode} |
| 2772 |
% |
| 2773 |
% \end{macro} |
| 2774 |
% |
| 2775 |
% |
| 2776 |
% |
| 2777 |
% \begin{macro}{\ACM@languages} |
| 2778 |
% \changes{v1.83}{2022/02/19}{Introduced macro} |
| 2779 |
% The languages of the document |
| 2780 |
% \begin{macrocode} |
| 2781 |
\def\ACM@languages{} |
| 2782 |
\DeclareOptionX{language}{% |
| 2783 |
\ifx\ACM@languages\@empty |
| 2784 |
\gdef\ACM@languages{english}\fi |
| 2785 |
\g@addto@macro\ACM@languages{, #1}} |
| 2786 |
% \end{macrocode} |
| 2787 |
% |
| 2788 |
% |
| 2789 |
% \end{macro} |
| 2790 |
% |
| 2791 |
% \changes{v1.01}{2016/04/18}{Explicitly put draft option |
| 2792 |
% (closes \url{https://github.com/borisveytsman/acmart/issues/4})} |
| 2793 |
% |
| 2794 |
% \begin{macrocode} |
| 2795 |
\DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{amsart}} |
| 2796 |
\DeclareOptionX{*}{\PassOptionsToClass{\CurrentOption}{amsart}} |
| 2797 |
\ProcessOptionsX |
| 2798 |
\ClassInfo{\@classname}{Using format \ACM@format, number \ACM@format@nr} |
| 2799 |
% \end{macrocode} |
| 2800 |
% |
| 2801 |
% |
| 2802 |
% |
| 2803 |
%\subsection{Setting switches} |
| 2804 |
%\label{sec:switches} |
| 2805 |
% |
| 2806 |
% \begin{macro}{\if@ACM@manuscript} |
| 2807 |
% Whether we use manuscript mode |
| 2808 |
% \begin{macrocode} |
| 2809 |
\newif\if@ACM@manuscript |
| 2810 |
% \end{macrocode} |
| 2811 |
% |
| 2812 |
% \end{macro} |
| 2813 |
% |
| 2814 |
% \begin{macro}{\if@ACM@journal} |
| 2815 |
% There are two kinds of publications: journals and books |
| 2816 |
% \begin{macrocode} |
| 2817 |
\newif\if@ACM@journal |
| 2818 |
% \end{macrocode} |
| 2819 |
% |
| 2820 |
% \end{macro} |
| 2821 |
% |
| 2822 |
% |
| 2823 |
% \begin{macro}{\if@ACM@journal@bibstrip} |
| 2824 |
% \changes{v1.59}{2019/04/20}{Introduced macro} |
| 2825 |
% Sometimes ACM wants a journal-like publication to have conference |
| 2826 |
% information in the bibstrip and vice versa, so we have an additional |
| 2827 |
% switch. |
| 2828 |
% \begin{macrocode} |
| 2829 |
\newif\if@ACM@journal@bibstrip |
| 2830 |
% \end{macrocode} |
| 2831 |
% |
| 2832 |
% \end{macro} |
| 2833 |
% |
| 2834 |
% \begin{macro}{\if@ACM@journal@bibstrip@or@tog} |
| 2835 |
% \changes{v2.03}{2024/02/04}{Introduced macro} |
| 2836 |
% ACM TOG sometimes uses journal-like bibstrip even for conference |
| 2837 |
% proceedings, so we need to set it separately |
| 2838 |
% \begin{macrocode} |
| 2839 |
\newif\if@ACM@journal@bibstrip@or@tog |
| 2840 |
% \end{macrocode} |
| 2841 |
% |
| 2842 |
% \end{macro} |
| 2843 |
% |
| 2844 |
% |
| 2845 |
% \begin{macro}{\if@ACM@sigchiamode} |
| 2846 |
% The formatting of SIGCHI extended abstracts is quite unusual. We have a |
| 2847 |
% special switch for them. |
| 2848 |
% \begin{macrocode} |
| 2849 |
\newif\if@ACM@sigchiamode |
| 2850 |
% \end{macrocode} |
| 2851 |
% |
| 2852 |
% \end{macro} |
| 2853 |
% |
| 2854 |
% \begin{macro}{\if@ACM@engage} |
| 2855 |
% \changes{v1.85}{2022/05/05}{Introduced macro} |
| 2856 |
% ACM Engage course materials have special formatting |
| 2857 |
% \begin{macrocode} |
| 2858 |
\newif\if@ACM@engage |
| 2859 |
\@ACM@engagefalse |
| 2860 |
% \end{macrocode} |
| 2861 |
% |
| 2862 |
% \end{macro} |
| 2863 |
% |
| 2864 |
% \begin{macro}{\if@ACM@acmcp} |
| 2865 |
% \changes{v1.87}{2022/08/12}{Introduced macro} |
| 2866 |
% ACM cover page formatting |
| 2867 |
% \begin{macrocode} |
| 2868 |
\newif\if@ACM@acmcp |
| 2869 |
\@ACM@acmcpfalse |
| 2870 |
% \end{macrocode} |
| 2871 |
% |
| 2872 |
% \end{macro} |
| 2873 |
% |
| 2874 |
% |
| 2875 |
% |
| 2876 |
% Setting up switches |
| 2877 |
% \begin{macrocode} |
| 2878 |
\ifnum\ACM@format@nr=5\relax % siggraph |
| 2879 |
\ClassWarning{\@classname}{% |
| 2880 |
The format siggraph is now obsolete.\MessageBreak |
| 2881 |
I am switching to sigconf.} |
| 2882 |
\setkeys{\@classname.cls}{format=sigconf} |
| 2883 |
\fi |
| 2884 |
\ifnum\ACM@format@nr=7\relax % sigchi |
| 2885 |
\ClassWarning{\@classname}{% |
| 2886 |
The format sigchi is now obsolete.\MessageBreak |
| 2887 |
I am switching to sigconf.} |
| 2888 |
\setkeys{\@classname.cls}{format=sigconf} |
| 2889 |
\fi |
| 2890 |
\ifnum\ACM@format@nr=8\relax % sigchi |
| 2891 |
\ClassWarning{\@classname}{% |
| 2892 |
ACM SIGCHI has retired the SIGCHI-A template\MessageBreak |
| 2893 |
effective immediately. ACM is keeping this template\MessageBreak |
| 2894 |
option available to authors who are working on legacy\MessageBreak |
| 2895 |
documents only. ACM will not, under any circumstances,\MessageBreak |
| 2896 |
accept documents in this format for publication and\MessageBreak |
| 2897 |
will not offer technical support to the authors who use\MessageBreak |
| 2898 |
this template.\MessageBreak |
| 2899 |
ACM SIGCHI is directing Conference leaders and\MessageBreak |
| 2900 |
authors to publish their articles using the SIGCONF\MessageBreak |
| 2901 |
template call.} |
| 2902 |
\fi |
| 2903 |
\ifnum\ACM@format@nr=0\relax |
| 2904 |
\@ACM@manuscripttrue |
| 2905 |
\else |
| 2906 |
\@ACM@manuscriptfalse |
| 2907 |
\fi |
| 2908 |
\@ACM@sigchiamodefalse |
| 2909 |
\ifcase\ACM@format@nr |
| 2910 |
\relax % manuscript |
| 2911 |
\@ACM@journaltrue |
| 2912 |
\or % acmsmall |
| 2913 |
\@ACM@journaltrue |
| 2914 |
\or % acmlarge |
| 2915 |
\@ACM@journaltrue |
| 2916 |
\or % acmtog |
| 2917 |
\@ACM@journaltrue |
| 2918 |
\@ACM@journal@bibstrip@or@togtrue |
| 2919 |
\or % sigconf |
| 2920 |
\@ACM@journalfalse |
| 2921 |
\or % siggraph |
| 2922 |
\@ACM@journalfalse |
| 2923 |
\or % sigplan |
| 2924 |
\@ACM@journalfalse |
| 2925 |
\or % sigchi |
| 2926 |
\@ACM@journalfalse |
| 2927 |
\or % sigchi-a |
| 2928 |
\@ACM@journalfalse |
| 2929 |
\@ACM@sigchiamodetrue |
| 2930 |
\or % acmengage |
| 2931 |
\@ACM@journalfalse |
| 2932 |
\@ACM@engagetrue |
| 2933 |
\or % acmcp |
| 2934 |
\@ACM@journaltrue |
| 2935 |
\@ACM@acmcptrue |
| 2936 |
\AtBeginDocument{\@ACM@printacmreffalse}% |
| 2937 |
\fi |
| 2938 |
\if@ACM@journal |
| 2939 |
\@ACM@journal@bibstriptrue |
| 2940 |
\@ACM@journal@bibstrip@or@togtrue |
| 2941 |
\else |
| 2942 |
\@ACM@journal@bibstripfalse |
| 2943 |
\fi |
| 2944 |
% \end{macrocode} |
| 2945 |
% |
| 2946 |
% |
| 2947 |
% |
| 2948 |
%\subsection{Loading the base class and package} |
| 2949 |
%\label{sec:loading} |
| 2950 |
% |
| 2951 |
% \changes{v1.13}{2016/06/06}{Increased font size for ACM Large} |
| 2952 |
% \changes{v1.38}{2017/05/13}{Increase default font size for SIGPLAN} |
| 2953 |
% \changes{v1.87}{2022/08/27}{Set font sizes for |acmengage| and |acmcp|} |
| 2954 |
% |
| 2955 |
%<*tagged> |
| 2956 |
% \changes{v2.09}{2022/08/25}{Saved the old definitions (Ulrike's |
| 2957 |
% code} |
| 2958 |
% Before we load the base class we want to save the original |
| 2959 |
% definitions of sectioning commands since |acmart| redefines them, |
| 2960 |
% and we need the vanilla versions. |
| 2961 |
% \begin{macro}{\@startsection@kernel} |
| 2962 |
% \changes{v2.00}{2023/11/19}{Added macro} |
| 2963 |
% \begin{macrocode} |
| 2964 |
\let\@startsection@kernel\@startsection |
| 2965 |
% \end{macrocode} |
| 2966 |
% \end{macro} |
| 2967 |
% |
| 2968 |
% \begin{macro}{\@xsect@kernel} |
| 2969 |
% \changes{v2.00}{2023/11/19}{Added macro} |
| 2970 |
% \begin{macrocode} |
| 2971 |
\let\@xsect@kernel\@xsect |
| 2972 |
% \end{macrocode} |
| 2973 |
% \end{macro} |
| 2974 |
% |
| 2975 |
% \begin{macro}{\@sect@kernel} |
| 2976 |
% \changes{v2.00}{2023/11/19}{Added macro} |
| 2977 |
% \begin{macrocode} |
| 2978 |
\let\@sect@kernel\@sect |
| 2979 |
% \end{macrocode} |
| 2980 |
% \end{macro} |
| 2981 |
% |
| 2982 |
% \begin{macro}{\@ssect@kernel} |
| 2983 |
% \changes{v2.00}{2023/11/19}{Added macro} |
| 2984 |
% \begin{macrocode} |
| 2985 |
\let\@ssect@kernel\@ssect |
| 2986 |
% \end{macrocode} |
| 2987 |
% \end{macro} |
| 2988 |
% |
| 2989 |
%</tagged> |
| 2990 |
% |
| 2991 |
% |
| 2992 |
% At this point we either have \cs{ACM@fontsize} or use defaults |
| 2993 |
% \begin{macrocode} |
| 2994 |
\ifx\ACM@fontsize\@empty |
| 2995 |
\ifcase\ACM@format@nr |
| 2996 |
\relax % manuscript |
| 2997 |
\def\ACM@fontsize{9pt}% |
| 2998 |
\or % acmsmall |
| 2999 |
\def\ACM@fontsize{10pt}% |
| 3000 |
\or % acmlarge |
| 3001 |
\def\ACM@fontsize{10pt}% |
| 3002 |
\or % acmtog |
| 3003 |
\def\ACM@fontsize{9pt}% |
| 3004 |
\or % sigconf |
| 3005 |
\def\ACM@fontsize{9pt}% |
| 3006 |
\or % siggraph |
| 3007 |
\def\ACM@fontsize{9pt}% |
| 3008 |
\or % sigplan |
| 3009 |
\def\ACM@fontsize{10pt}% |
| 3010 |
\or % sigchi |
| 3011 |
\def\ACM@fontsize{9pt}% |
| 3012 |
\or % sigchi-a |
| 3013 |
\def\ACM@fontsize{10pt}% |
| 3014 |
\or % acmengage |
| 3015 |
\def\ACM@fontsize{10pt}% |
| 3016 |
\or % acmcp |
| 3017 |
\def\ACM@fontsize{9pt}% |
| 3018 |
\fi |
| 3019 |
\fi |
| 3020 |
\ClassInfo{\@classname}{Using fontsize \ACM@fontsize} |
| 3021 |
\LoadClass[\ACM@fontsize, reqno]{amsart} |
| 3022 |
\RequirePackage{microtype} |
| 3023 |
% \end{macrocode} |
| 3024 |
% |
| 3025 |
% |
| 3026 |
% We need |etoolbox| for delayed code |
| 3027 |
% \begin{macrocode} |
| 3028 |
\RequirePackage{etoolbox} |
| 3029 |
% \end{macrocode} |
| 3030 |
% |
| 3031 |
% Booktabs is now the default |
| 3032 |
% \begin{macrocode} |
| 3033 |
\RequirePackage{booktabs} |
| 3034 |
% \end{macrocode} |
| 3035 |
% |
| 3036 |
% |
| 3037 |
% We need |totpages| to calculate the number of pages and |
| 3038 |
% |refcount| to use that number |
| 3039 |
% \begin{macrocode} |
| 3040 |
\RequirePackage{refcount} |
| 3041 |
\RequirePackage{totpages} |
| 3042 |
% \end{macrocode} |
| 3043 |
% |
| 3044 |
% The \cs{collect@body} macro in |amsmath| is defined using \cs{def}. We load |
| 3045 |
% |environ| to access the \cs{long} version of this command |
| 3046 |
% \begin{macrocode} |
| 3047 |
\RequirePackage{environ} |
| 3048 |
% \end{macrocode} |
| 3049 |
% |
| 3050 |
% We use |setspace| for double spacing |
| 3051 |
% \begin{macrocode} |
| 3052 |
\if@ACM@manuscript |
| 3053 |
\RequirePackage{setspace} |
| 3054 |
\onehalfspacing |
| 3055 |
\fi |
| 3056 |
% \end{macrocode} |
| 3057 |
% |
| 3058 |
% \changes{v1.40}{2017/06/05}{Added `textcase' package} |
| 3059 |
% \changes{v2.12}{2024/12/28}{Removed `textcase' package} |
| 3060 |
% We no longer need |textcase| for better upcasing. |
| 3061 |
% \begin{macrocode} |
| 3062 |
% \RequirePackage{textcase} |
| 3063 |
% \end{macrocode} |
| 3064 |
% |
| 3065 |
% |
| 3066 |
% \changes{v1.87}{2022/08/14}{Added `framed' package for acmcp} |
| 3067 |
% \changes{v1.89}{2022/12/25}{Added `zref-savepos' package for acmcp} |
| 3068 |
% \begin{macrocode} |
| 3069 |
\if@ACM@acmcp |
| 3070 |
\RequirePackage{framed} |
| 3071 |
\RequirePackage{zref-savepos, zref-user} |
| 3072 |
\fi |
| 3073 |
% \end{macrocode} |
| 3074 |
% |
| 3075 |
% |
| 3076 |
% \begin{macro}{\@ACM@acmcp@delta} |
| 3077 |
% \changes{v1.89}{2022/12/25}{Added dimen} |
| 3078 |
% We need to store the dimen to store the insert length of amcp box |
| 3079 |
% \begin{macrocode} |
| 3080 |
\newdimen\@ACM@acmcp@delta |
| 3081 |
\@ACM@acmcp@delta=0pt\relax |
| 3082 |
% \end{macrocode} |
| 3083 |
% \end{macro} |
| 3084 |
% |
| 3085 |
%\subsection{Citations} |
| 3086 |
% \changes{v1.19}{2016/07/28}{Include 'References' in PDF bookmarks |
| 3087 |
% (Matthew Fluet)} |
| 3088 |
% \changes{v1.14}{2016/06/09}{Patched \cs{citestyle}} |
| 3089 |
% \changes{v1.55}{2016/08/012}{Typo corrected (Zack Weinberg)} |
| 3090 |
% We patch \cs{setcitestyle} to allow, for example, |
| 3091 |
% \cs{setcitestyle}|{sort}| and \cs{setcitestyle}|{nosort}|. We patch |
| 3092 |
% \cs{citestyle} to warn about undefined citation styles. |
| 3093 |
% \begin{macrocode} |
| 3094 |
\if@ACM@natbib |
| 3095 |
\RequirePackage{natbib} |
| 3096 |
\renewcommand{\bibsection}{% |
| 3097 |
\section*{\refname}% |
| 3098 |
\phantomsection\addcontentsline{toc}{section}{\refname}% |
| 3099 |
} |
| 3100 |
\renewcommand{\bibfont}{\bibliofont} |
| 3101 |
\renewcommand\setcitestyle[1]{ |
| 3102 |
\@for\@tempa:=#1\do |
| 3103 |
{\def\@tempb{round}\ifx\@tempa\@tempb |
| 3104 |
\renewcommand\NAT@open{(}\renewcommand\NAT@close{)}\fi |
| 3105 |
\def\@tempb{square}\ifx\@tempa\@tempb |
| 3106 |
\renewcommand\NAT@open{[}\renewcommand\NAT@close{]}\fi |
| 3107 |
\def\@tempb{angle}\ifx\@tempa\@tempb |
| 3108 |
\renewcommand\NAT@open{$<$}\renewcommand\NAT@close{$>$}\fi |
| 3109 |
\def\@tempb{curly}\ifx\@tempa\@tempb |
| 3110 |
\renewcommand\NAT@open{\{}\renewcommand\NAT@close{\}}\fi |
| 3111 |
\def\@tempb{semicolon}\ifx\@tempa\@tempb |
| 3112 |
\renewcommand\NAT@sep{;}\fi |
| 3113 |
\def\@tempb{colon}\ifx\@tempa\@tempb |
| 3114 |
\renewcommand\NAT@sep{;}\fi |
| 3115 |
\def\@tempb{comma}\ifx\@tempa\@tempb |
| 3116 |
\renewcommand\NAT@sep{,}\fi |
| 3117 |
\def\@tempb{authoryear}\ifx\@tempa\@tempb |
| 3118 |
\NAT@numbersfalse\fi |
| 3119 |
\def\@tempb{numbers}\ifx\@tempa\@tempb |
| 3120 |
\NAT@numberstrue\NAT@superfalse\fi |
| 3121 |
\def\@tempb{super}\ifx\@tempa\@tempb |
| 3122 |
\NAT@numberstrue\NAT@supertrue\fi |
| 3123 |
\def\@tempb{nobibstyle}\ifx\@tempa\@tempb |
| 3124 |
\let\bibstyle=\@gobble\fi |
| 3125 |
\def\@tempb{bibstyle}\ifx\@tempa\@tempb |
| 3126 |
\let\bibstyle=\@citestyle\fi |
| 3127 |
\def\@tempb{sort}\ifx\@tempa\@tempb |
| 3128 |
\def\NAT@sort{\@ne}\fi |
| 3129 |
\def\@tempb{nosort}\ifx\@tempa\@tempb |
| 3130 |
\def\NAT@sort{\z@}\fi |
| 3131 |
\def\@tempb{compress}\ifx\@tempa\@tempb |
| 3132 |
\def\NAT@cmprs{\@ne}\fi |
| 3133 |
\def\@tempb{nocompress}\ifx\@tempa\@tempb |
| 3134 |
\def\NAT@cmprs{\z@}\fi |
| 3135 |
\def\@tempb{sort&compress}\ifx\@tempa\@tempb |
| 3136 |
\def\NAT@sort{\@ne}\def\NAT@cmprs{\@ne}\fi |
| 3137 |
\def\@tempb{mcite}\ifx\@tempa\@tempb |
| 3138 |
\let\NAT@merge\@ne\fi |
| 3139 |
\def\@tempb{merge}\ifx\@tempa\@tempb |
| 3140 |
\@ifnum{\NAT@merge<\tw@}{\let\NAT@merge\tw@}{}\fi |
| 3141 |
\def\@tempb{elide}\ifx\@tempa\@tempb |
| 3142 |
\@ifnum{\NAT@merge<\thr@@}{\let\NAT@merge\thr@@}{}\fi |
| 3143 |
\def\@tempb{longnamesfirst}\ifx\@tempa\@tempb |
| 3144 |
\NAT@longnamestrue\fi |
| 3145 |
\def\@tempb{nonamebreak}\ifx\@tempa\@tempb |
| 3146 |
\def\NAT@nmfmt#1{\mbox{\NAT@up#1}}\fi |
| 3147 |
\expandafter\NAT@find@eq\@tempa=\relax\@nil |
| 3148 |
\if\@tempc\relax\else |
| 3149 |
\expandafter\NAT@rem@eq\@tempc |
| 3150 |
\def\@tempb{open}\ifx\@tempa\@tempb |
| 3151 |
\xdef\NAT@open{\@tempc}\fi |
| 3152 |
\def\@tempb{close}\ifx\@tempa\@tempb |
| 3153 |
\xdef\NAT@close{\@tempc}\fi |
| 3154 |
\def\@tempb{aysep}\ifx\@tempa\@tempb |
| 3155 |
\xdef\NAT@aysep{\@tempc}\fi |
| 3156 |
\def\@tempb{yysep}\ifx\@tempa\@tempb |
| 3157 |
\xdef\NAT@yrsep{\@tempc}\fi |
| 3158 |
\def\@tempb{notesep}\ifx\@tempa\@tempb |
| 3159 |
\xdef\NAT@cmt{\@tempc}\fi |
| 3160 |
\def\@tempb{citesep}\ifx\@tempa\@tempb |
| 3161 |
\xdef\NAT@sep{\@tempc}\fi |
| 3162 |
\fi |
| 3163 |
}% |
| 3164 |
\NAT@@setcites |
| 3165 |
} |
| 3166 |
\renewcommand\citestyle[1]{% |
| 3167 |
\ifcsname bibstyle@#1\endcsname% |
| 3168 |
\csname bibstyle@#1\endcsname\let\bibstyle\@gobble% |
| 3169 |
\else% |
| 3170 |
\@latex@error{Undefined `#1' citestyle}% |
| 3171 |
\fi |
| 3172 |
}% |
| 3173 |
\fi |
| 3174 |
% \end{macrocode} |
| 3175 |
% |
| 3176 |
% \begin{macro}{\bibstyle@acmauthoryear} |
| 3177 |
% \changes{v1.13}{2016/06/06}{Added macro} |
| 3178 |
% \changes{v1.14}{2016/06/09}{Moved def of \cs{bibstyle@acmauthoryear} |
| 3179 |
% before use} |
| 3180 |
% \changes{v1.35}{2017/04/13}{Square brackets for author-year style} |
| 3181 |
% The default author-year format: |
| 3182 |
% \begin{macrocode} |
| 3183 |
\newcommand{\bibstyle@acmauthoryear}{% |
| 3184 |
\setcitestyle{% |
| 3185 |
authoryear,% |
| 3186 |
open={[},close={]},citesep={;},% |
| 3187 |
aysep={},yysep={,},% |
| 3188 |
notesep={, }}} |
| 3189 |
% \end{macrocode} |
| 3190 |
% |
| 3191 |
% \end{macro} |
| 3192 |
% |
| 3193 |
% \begin{macro}{\bibstyle@acmnumeric} |
| 3194 |
% \changes{v1.13}{2016/06/06}{Added macro} |
| 3195 |
% \changes{v1.14}{2016/06/09}{Moved def of \cs{bibstyle@numeric} |
| 3196 |
% before use} |
| 3197 |
% The default numeric format: |
| 3198 |
% \begin{macrocode} |
| 3199 |
\newcommand{\bibstyle@acmnumeric}{% |
| 3200 |
\setcitestyle{% |
| 3201 |
numbers,sort&compress,% |
| 3202 |
open={[},close={]},citesep={,},% |
| 3203 |
notesep={, }}} |
| 3204 |
% \end{macrocode} |
| 3205 |
% |
| 3206 |
% \end{macro} |
| 3207 |
% |
| 3208 |
% \changes{v1.28}{2017/01/07}{Corrected option natbib behavior} |
| 3209 |
% The default is numeric: |
| 3210 |
% \begin{macrocode} |
| 3211 |
\if@ACM@natbib |
| 3212 |
\citestyle{acmnumeric} |
| 3213 |
\fi |
| 3214 |
% \end{macrocode} |
| 3215 |
% |
| 3216 |
% |
| 3217 |
%\subsection{Internationalization} |
| 3218 |
%\label{sec:i13n} |
| 3219 |
% |
| 3220 |
% |
| 3221 |
% |
| 3222 |
% \changes{v1.83}{2022/02/19}{Use babel for multilanguage papers} |
| 3223 |
% \begin{macrocode} |
| 3224 |
\if@ACM@journal |
| 3225 |
\renewcommand\keywordsname{Additional Key Words and Phrases}% |
| 3226 |
\else |
| 3227 |
\renewcommand\keywordsname{Keywords}% |
| 3228 |
\fi |
| 3229 |
\if@ACM@engage |
| 3230 |
\renewcommand\abstractname{Synopsis}% |
| 3231 |
\fi |
| 3232 |
\ifx\ACM@languages\@empty |
| 3233 |
\else |
| 3234 |
\RequirePackage[\ACM@languages]{babel}% |
| 3235 |
\addto\captionsenglish{% |
| 3236 |
\if@ACM@journal |
| 3237 |
\renewcommand\keywordsname{Additional Key Words and Phrases}% |
| 3238 |
\else |
| 3239 |
\renewcommand\keywordsname{Keywords}% |
| 3240 |
\fi |
| 3241 |
\renewcommand\acksname{Acknowledgements}% |
| 3242 |
\if@ACM@engage |
| 3243 |
\renewcommand\abstractname{Synopsis}% |
| 3244 |
\fi |
| 3245 |
}% |
| 3246 |
\addto\captionsfrench{% |
| 3247 |
\if@ACM@journal |
| 3248 |
\renewcommand\keywordsname{Mots Clés et Phrases Supplémentaires}% |
| 3249 |
\else |
| 3250 |
\renewcommand\keywordsname{Mots clés}% |
| 3251 |
\fi |
| 3252 |
\renewcommand\acksname{Remerciements}% |
| 3253 |
}% |
| 3254 |
\addto\captionsgerman{% |
| 3255 |
\if@ACM@journal |
| 3256 |
\renewcommand\keywordsname{Zusätzliche Schlagwörter und Phrasen}% |
| 3257 |
\else |
| 3258 |
\renewcommand\keywordsname{Schlagwörter}% |
| 3259 |
\fi |
| 3260 |
\renewcommand\acksname{Danksagungen}% |
| 3261 |
}% |
| 3262 |
\addto\captionsspanish{% |
| 3263 |
\if@ACM@journal |
| 3264 |
\renewcommand\keywordsname{Palabras y Frases Claves Adicionales}% |
| 3265 |
\else |
| 3266 |
\renewcommand\keywordsname{Palabras claves}% |
| 3267 |
\fi |
| 3268 |
\renewcommand\acksname{Expresiones de gratitud}% |
| 3269 |
}% |
| 3270 |
\fi |
| 3271 |
% \end{macrocode} |
| 3272 |
% |
| 3273 |
% \begin{macro}{\ACM@lang@check} |
| 3274 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3275 |
% Some commands should not be used if the document is monlingual |
| 3276 |
% \begin{macrocode} |
| 3277 |
\newcommand\ACM@lang@check[1]{% |
| 3278 |
\ifx\ACM@languages\@empty\relax |
| 3279 |
\ClassError{\@classname}{% |
| 3280 |
Command \string#1 \MessageBreak is used in monlingual document}{% |
| 3281 |
You used a command (\string#1) \MessageBreak |
| 3282 |
that does not have a meaning \MessageBreak |
| 3283 |
unless are languages are defined. \MessageBreak |
| 3284 |
Please choose the languages in \string\documentclass |
| 3285 |
\MessageBreak |
| 3286 |
(e.g. \string\documentclass[languages={french, english}]{acmart}), |
| 3287 |
\MessageBreak |
| 3288 |
or delete the command.}% |
| 3289 |
\fi} |
| 3290 |
% \end{macrocode} |
| 3291 |
% \end{macro} |
| 3292 |
% |
| 3293 |
% \begin{macro}{\@translatedtitle} |
| 3294 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3295 |
% \begin{macrocode} |
| 3296 |
\def\@translatedtitle{} |
| 3297 |
% \end{macrocode} |
| 3298 |
% \end{macro} |
| 3299 |
% |
| 3300 |
% \begin{macro}{\translatedtitle} |
| 3301 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3302 |
% The title of the paper in a different language |
| 3303 |
% \begin{macrocode} |
| 3304 |
\newcommand\translatedtitle[2]{\ACM@lang@check{\translatedtitle}% |
| 3305 |
\g@addto@macro\@translatedtitle{\par\foreignlanguage{#1}{#2}}} |
| 3306 |
% \end{macrocode} |
| 3307 |
% |
| 3308 |
% \end{macro} |
| 3309 |
% |
| 3310 |
% \begin{macro}{\@translatedsubtitle} |
| 3311 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3312 |
% \begin{macrocode} |
| 3313 |
\def\@translatedsubtitle{} |
| 3314 |
% \end{macrocode} |
| 3315 |
% \end{macro} |
| 3316 |
% |
| 3317 |
% \begin{macro}{\translatedsubtitle} |
| 3318 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3319 |
% The subtitle of the paper in a different language |
| 3320 |
% \begin{macrocode} |
| 3321 |
\newcommand\translatedsubtitle[2]{\ACM@lang@check{\translatedsubtitle}% |
| 3322 |
\g@addto@macro\@translatedsubtitle{\par\foreignlanguage{#1}{#2}}} |
| 3323 |
% \end{macrocode} |
| 3324 |
% |
| 3325 |
% \end{macro} |
| 3326 |
% |
| 3327 |
% \begin{macro}{\@translatedkeywords} |
| 3328 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3329 |
% \begin{macrocode} |
| 3330 |
\def\@translatedkeywords{} |
| 3331 |
% \end{macrocode} |
| 3332 |
% \end{macro} |
| 3333 |
% |
| 3334 |
% \begin{macro}{\translatedkeywords} |
| 3335 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3336 |
% Add keywords to the paper in the language specified |
| 3337 |
% \begin{macrocode} |
| 3338 |
\newcommand\translatedkeywords[2]{\ACM@lang@check{\translatedkeywords}% |
| 3339 |
\g@addto@macro\@translatedkeywords{\@mktranslatedkeywords{#1}{#2}}} |
| 3340 |
% \end{macrocode} |
| 3341 |
% |
| 3342 |
% \end{macro} |
| 3343 |
% |
| 3344 |
% \begin{macro}{\@translatedabstracts} |
| 3345 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3346 |
% The container for translated abstracts. |
| 3347 |
% \begin{macrocode} |
| 3348 |
\def\@translatedabstracts{} |
| 3349 |
% \end{macrocode} |
| 3350 |
% |
| 3351 |
% \end{macro} |
| 3352 |
% |
| 3353 |
% \begin{macro}{translatedabstract} |
| 3354 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 3355 |
% We save translated abstracts into \cs{@translatedabstracts} |
| 3356 |
% \begin{macrocode} |
| 3357 |
\newenvironment{translatedabstract}[1]{\Collect@Body |
| 3358 |
\@savetranslatedabstract\@mktranslatedabstract{#1}}{} |
| 3359 |
% \end{macrocode} |
| 3360 |
% |
| 3361 |
% \end{macro} |
| 3362 |
% |
| 3363 |
% |
| 3364 |
% \begin{macro}{\@savetranslatedabstract} |
| 3365 |
% And saving the abstract |
| 3366 |
% \begin{macrocode} |
| 3367 |
\long\def\@savetranslatedabstract#1{\if@ACM@maketitle@typeset |
| 3368 |
\ClassError{\@classname}{Abstract must be defined before maketitle |
| 3369 |
command. Please move it!}\fi |
| 3370 |
\ACM@lang@check{translatedabstract}% |
| 3371 |
\g@addto@macro\@translatedabstracts{\bgroup#1\egroup}} |
| 3372 |
% \end{macrocode} |
| 3373 |
% |
| 3374 |
% \end{macro} |
| 3375 |
% |
| 3376 |
% |
| 3377 |
%\subsection{Sectioning} |
| 3378 |
%\label{sec:sectioning} |
| 3379 |
% |
| 3380 |
% |
| 3381 |
% |
| 3382 |
% \begin{macro}{\@startsection} |
| 3383 |
% \changes{v1.31}{2017/03/04}{Added \cs{tochangmeasure}} |
| 3384 |
% Before we call |hyperref|, we redefine \cs{startsection} commands to |
| 3385 |
% their \LaTeX\ defaults since the |amsart| ones are too AMS-specific. |
| 3386 |
% We need to do this early since we want |hyperref| to have a chance |
| 3387 |
% to redefine them again: |
| 3388 |
% \begin{macrocode} |
| 3389 |
%</class> |
| 3390 |
%<*tagged> |
| 3391 |
\let\@startsection\@startsection@kernel |
| 3392 |
\let\@sect\@sect@kernel |
| 3393 |
\let\@ssect\@ssect@kernel |
| 3394 |
\let\@xsect\@xsect@kernel |
| 3395 |
%</tagged> |
| 3396 |
%<*class&!tagged> |
| 3397 |
\def\@startsection#1#2#3#4#5#6{% |
| 3398 |
\if@noskipsec \leavevmode \fi |
| 3399 |
\par |
| 3400 |
\@tempskipa #4\relax |
| 3401 |
\@afterindenttrue |
| 3402 |
\ifdim \@tempskipa <\z@ |
| 3403 |
\@tempskipa -\@tempskipa \@afterindentfalse |
| 3404 |
\fi |
| 3405 |
\if@nobreak |
| 3406 |
\everypar{}% |
| 3407 |
\else |
| 3408 |
\addpenalty\@secpenalty\addvspace\@tempskipa |
| 3409 |
\fi |
| 3410 |
\@ifstar |
| 3411 |
{\@ssect{#3}{#4}{#5}{#6}}% |
| 3412 |
{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}} |
| 3413 |
\def\@sect#1#2#3#4#5#6[#7]#8{% |
| 3414 |
\edef\@toclevel{\ifnum#2=\@m 0\else\number#2\fi}% |
| 3415 |
\ifnum #2>\c@secnumdepth |
| 3416 |
\let\@svsec\@empty |
| 3417 |
\else |
| 3418 |
\refstepcounter{#1}% |
| 3419 |
\protected@edef\@svsec{\@seccntformat{#1}\relax}% |
| 3420 |
\fi |
| 3421 |
\@tempskipa #5\relax |
| 3422 |
\ifdim \@tempskipa>\z@ |
| 3423 |
\begingroup |
| 3424 |
#6{% |
| 3425 |
\@hangfrom{\hskip #3\relax\@svsec}% |
| 3426 |
\interlinepenalty \@M #8\@@par}% |
| 3427 |
\endgroup |
| 3428 |
\csname #1mark\endcsname{#7}% |
| 3429 |
\ifnum #2>\c@secnumdepth \else |
| 3430 |
\@tochangmeasure{\csname the#1\endcsname}% |
| 3431 |
\fi |
| 3432 |
\addcontentsline{toc}{#1}{% |
| 3433 |
\ifnum #2>\c@secnumdepth \else |
| 3434 |
\protect\numberline{\csname the#1\endcsname}% |
| 3435 |
\fi |
| 3436 |
#7}% |
| 3437 |
\else |
| 3438 |
\def\@svsechd{% |
| 3439 |
#6{\hskip #3\relax |
| 3440 |
\@svsec #8}% |
| 3441 |
\csname #1mark\endcsname{#7}% |
| 3442 |
\ifnum #2>\c@secnumdepth \else |
| 3443 |
\@tochangmeasure{\csname the#1\endcsname\space}% |
| 3444 |
\fi |
| 3445 |
\addcontentsline{toc}{#1}{% |
| 3446 |
\ifnum #2>\c@secnumdepth \else |
| 3447 |
\protect\numberline{\csname the#1\endcsname}% |
| 3448 |
\fi |
| 3449 |
#7}}% |
| 3450 |
\fi |
| 3451 |
\@xsect{#5}} |
| 3452 |
\def\@xsect#1{% |
| 3453 |
\@tempskipa #1\relax |
| 3454 |
\ifdim \@tempskipa>\z@ |
| 3455 |
\par \nobreak |
| 3456 |
\vskip \@tempskipa |
| 3457 |
\@afterheading |
| 3458 |
\else |
| 3459 |
\@nobreakfalse |
| 3460 |
\global\@noskipsectrue |
| 3461 |
\everypar{% |
| 3462 |
\if@noskipsec |
| 3463 |
\global\@noskipsecfalse |
| 3464 |
{\setbox\z@\lastbox}% |
| 3465 |
\clubpenalty\@M |
| 3466 |
\begingroup \@svsechd \endgroup |
| 3467 |
\unskip |
| 3468 |
\@tempskipa #1\relax |
| 3469 |
\hskip -\@tempskipa |
| 3470 |
\else |
| 3471 |
\clubpenalty \@clubpenalty |
| 3472 |
\everypar{}% |
| 3473 |
\fi}% |
| 3474 |
\fi |
| 3475 |
\ignorespaces} |
| 3476 |
\def\@ssect#1#2#3#4#5{% |
| 3477 |
\@tempskipa #3\relax |
| 3478 |
\ifdim \@tempskipa>\z@ |
| 3479 |
\begingroup |
| 3480 |
#4{% |
| 3481 |
\@hangfrom{\hskip #1}% |
| 3482 |
\interlinepenalty \@M #5\@@par}% |
| 3483 |
\endgroup |
| 3484 |
\else |
| 3485 |
\def\@svsechd{#4{\hskip #1\relax #5}}% |
| 3486 |
\fi |
| 3487 |
\@xsect{#3}} |
| 3488 |
%</class&!tagged> |
| 3489 |
%<*class> |
| 3490 |
\def\@seccntformat#1{\csname the#1\endcsname\quad} |
| 3491 |
% \end{macrocode} |
| 3492 |
% |
| 3493 |
% \end{macro} |
| 3494 |
% |
| 3495 |
% \begin{macro}{\@starttoc} |
| 3496 |
% \changes{v1.31}{2017/03/04}{Redefined macro} |
| 3497 |
% \changes{v1.43}{2017/07/09}{Added \cs{makeatletter}} |
| 3498 |
% The |amsart| package redefines \cs{startsection}. Here we redefine |
| 3499 |
% it again to make the table of contents work. |
| 3500 |
% \begin{macrocode} |
| 3501 |
\def\@starttoc#1#2{\begingroup\makeatletter |
| 3502 |
\setTrue{#1}% |
| 3503 |
\par\removelastskip\vskip\z@skip |
| 3504 |
\@startsection{section}\@M\z@{\linespacing\@plus\linespacing}% |
| 3505 |
{.5\linespacing}{\centering\contentsnamefont}{#2}% |
| 3506 |
%<tagged>\@starttoc@cfgpoint@before{#1}%NEW<<<<<<<<<< (name will change) |
| 3507 |
\@input{\jobname.#1}% |
| 3508 |
%<tagged>\@starttoc@cfgpoint@after{#1}%NEW<<<<<<<<<<<< (name will change) |
| 3509 |
\if@filesw |
| 3510 |
\@xp\newwrite\csname tf@#1\endcsname |
| 3511 |
\immediate\@xp\openout\csname tf@#1\endcsname \jobname.#1\relax |
| 3512 |
\fi |
| 3513 |
\global\@nobreakfalse \endgroup |
| 3514 |
\addvspace{32\p@\@plus14\p@}% |
| 3515 |
} |
| 3516 |
% \end{macrocode} |
| 3517 |
% |
| 3518 |
% \end{macro} |
| 3519 |
% |
| 3520 |
% \begin{macro}{\l@subsection} |
| 3521 |
% \changes{v1.40}{2017/05/27}{Redefined macro} |
| 3522 |
% Section spacing is more generous than for |amsart| |
| 3523 |
% \begin{macrocode} |
| 3524 |
\def\l@section{\@tocline{1}{0pt}{1pc}{2pc}{}} |
| 3525 |
% \end{macrocode} |
| 3526 |
% \end{macro} |
| 3527 |
% |
| 3528 |
% \begin{macro}{\l@subsection} |
| 3529 |
% \changes{v1.31}{2017/03/04}{Redefined macro} |
| 3530 |
% The spacing in |amsart| is too large |
| 3531 |
% \begin{macrocode} |
| 3532 |
\def\l@subsection{\@tocline{2}{0pt}{1pc}{3pc}{}} |
| 3533 |
% \end{macrocode} |
| 3534 |
% |
| 3535 |
% \end{macro} |
| 3536 |
% \begin{macro}{\l@subsubsection} |
| 3537 |
% \changes{v1.31}{2017/03/04}{Redefined macro} |
| 3538 |
% \changes{v1.71}{2020/04/30}{Bug fixed (thanks to Andrew Black)} |
| 3539 |
% The spacing in |amsart| is too large |
| 3540 |
% \begin{macrocode} |
| 3541 |
\def\l@subsubsection{\@tocline{3}{0pt}{1pc}{5pc}{}} |
| 3542 |
% \end{macrocode} |
| 3543 |
% |
| 3544 |
% \end{macro} |
| 3545 |
% |
| 3546 |
% We need to define foonote-related stuff before the call to hyperref |
| 3547 |
% (Ross Moore) |
| 3548 |
% \begin{macro}{\@makefntext} |
| 3549 |
% We do not use indentation for footnotes |
| 3550 |
% \begin{macrocode} |
| 3551 |
\def\@makefntext{\noindent\@makefnmark} |
| 3552 |
% \end{macrocode} |
| 3553 |
% |
| 3554 |
% \end{macro} |
| 3555 |
% |
| 3556 |
% \begin{macro}{\@footnotetext} |
| 3557 |
% In |sigchi-a| mode our footnotes are in the margin! |
| 3558 |
% \begin{macrocode} |
| 3559 |
\if@ACM@sigchiamode |
| 3560 |
\long\def\@footnotetext#1{\marginpar{% |
| 3561 |
\reset@font\small |
| 3562 |
\interlinepenalty\interfootnotelinepenalty |
| 3563 |
\protected@edef\@currentlabel{% |
| 3564 |
\csname p@footnote\endcsname\@thefnmark |
| 3565 |
}% |
| 3566 |
\color@begingroup |
| 3567 |
\@makefntext{% |
| 3568 |
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% |
| 3569 |
\color@endgroup}}% |
| 3570 |
\fi |
| 3571 |
% \end{macrocode} |
| 3572 |
% |
| 3573 |
% \end{macro} |
| 3574 |
% |
| 3575 |
% \begin{macro}{\@mpfootnotetext} |
| 3576 |
% \changes{v1.13}{2016/06/06}{Made minipage footnotes centered} |
| 3577 |
% We want the footnotes in minipages centered: |
| 3578 |
% \begin{macrocode} |
| 3579 |
\long\def\@mpfootnotetext#1{% |
| 3580 |
\global\setbox\@mpfootins\vbox{% |
| 3581 |
\unvbox\@mpfootins |
| 3582 |
\reset@font\footnotesize |
| 3583 |
\hsize\columnwidth |
| 3584 |
\@parboxrestore |
| 3585 |
\protected@edef\@currentlabel |
| 3586 |
{\csname p@mpfootnote\endcsname\@thefnmark}% |
| 3587 |
\color@begingroup\centering |
| 3588 |
\@makefntext{% |
| 3589 |
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% |
| 3590 |
\color@endgroup}} |
| 3591 |
% \end{macrocode} |
| 3592 |
% |
| 3593 |
% \end{macro} |
| 3594 |
% |
| 3595 |
% \begin{macro}{\@makefnmark} |
| 3596 |
% \changes{v1.17}{2016/067/09}{Redefined} |
| 3597 |
% AMS classes use a buggy definition of \cs{makefnmark}. We revert |
| 3598 |
% to the standard one. |
| 3599 |
% \begin{macrocode} |
| 3600 |
\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}} |
| 3601 |
% \end{macrocode} |
| 3602 |
% |
| 3603 |
% \end{macro} |
| 3604 |
% |
| 3605 |
% |
| 3606 |
%\subsection{Hyperxmp and hyperref} |
| 3607 |
%\label{sec:hyper} |
| 3608 |
% |
| 3609 |
% |
| 3610 |
% |
| 3611 |
% |
| 3612 |
% |
| 3613 |
% Adding |hyperref| |
| 3614 |
% \changes{v1.28}{2017/01/07}{Got rid of warnings in pdf keywords} |
| 3615 |
% \changes{v1.46}{2017/08/25}{Delayed hypersetup since journal options |
| 3616 |
% may change screen mode} |
| 3617 |
% \changes{v1.55}{2018/10/20}{Now we use purple color for links} |
| 3618 |
% \changes{v1.58}{2019/26/01}{Suppressed \cs{addtocounter} in pdf |
| 3619 |
% subject} |
| 3620 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 3621 |
% \changes{v1.76}{2021/02/21}{Moved hyperxmp before hyperref, see |
| 3622 |
% \url{https://github.com/borisveytsman/acmart/issues/425}} |
| 3623 |
% \changes{1.92}{2023/10/14}{Moved hyperxmp again due to kernel update} |
| 3624 |
% \changes{2.04}{2024/03/17}{Explicitly load ifdraft since hyperxmp |
| 3625 |
% tries to load it inside a group} |
| 3626 |
% \changes{2.04}{2024/03/31}{Deleted loading ifdraft due to the new |
| 3627 |
% release of hyperxmp} |
| 3628 |
% \begin{macrocode} |
| 3629 |
\let\@footnotemark@nolink\@footnotemark |
| 3630 |
\let\@footnotetext@nolink\@footnotetext |
| 3631 |
\RequirePackage[bookmarksnumbered,unicode]{hyperref} |
| 3632 |
\RequirePackage{hyperxmp} |
| 3633 |
\pdfstringdefDisableCommands{% |
| 3634 |
\def\addtocounter#1#2{}% |
| 3635 |
\def\unskip{}% |
| 3636 |
\def\textbullet{- }% |
| 3637 |
\def\textrightarrow{ -> }% |
| 3638 |
\def\footnotemark{}% |
| 3639 |
} |
| 3640 |
\urlstyle{rm} |
| 3641 |
\ifcase\ACM@format@nr |
| 3642 |
\relax % manuscript |
| 3643 |
\or % acmsmall |
| 3644 |
\or % acmlarge |
| 3645 |
\or % acmtog |
| 3646 |
\or % sigconf |
| 3647 |
\or % siggraph |
| 3648 |
\or % sigplan |
| 3649 |
\urlstyle{sf} |
| 3650 |
\or % sigchi |
| 3651 |
\or % sigchi-a |
| 3652 |
\urlstyle{sf} |
| 3653 |
\or % acmengage |
| 3654 |
\or % acmcp |
| 3655 |
\fi |
| 3656 |
\AtEndPreamble{% |
| 3657 |
\if@ACM@urlbreakonhyphens |
| 3658 |
\def\do@url@hyp{\do\-}% |
| 3659 |
\fi |
| 3660 |
\if@ACM@screen |
| 3661 |
\hypersetup{colorlinks, |
| 3662 |
linkcolor=ACMPurple, |
| 3663 |
citecolor=ACMPurple, |
| 3664 |
urlcolor=ACMDarkBlue, |
| 3665 |
filecolor=ACMDarkBlue} |
| 3666 |
\else |
| 3667 |
\hypersetup{hidelinks} |
| 3668 |
\fi |
| 3669 |
\hypersetup{pdflang={en}, |
| 3670 |
pdfdisplaydoctitle}} |
| 3671 |
% \end{macrocode} |
| 3672 |
% |
| 3673 |
% |
| 3674 |
% Bibliography mangling. |
| 3675 |
% \changes{v1.33}{2017/03/23}{Moved \cs{citename} definition for |
| 3676 |
% non-natbib bibliography, so a package may redefine it} |
| 3677 |
% \changes{v1.48}{2017/09/23}{\cs{citeyear} no longer behaves like |
| 3678 |
% \cs{citeyearpar}} |
| 3679 |
% \begin{macrocode} |
| 3680 |
\if@ACM@natbib |
| 3681 |
\let\citeN\cite |
| 3682 |
\let\cite\citep |
| 3683 |
\let\citeANP\citeauthor |
| 3684 |
\let\citeNN\citeyearpar |
| 3685 |
\let\citeyearNP\citeyear |
| 3686 |
\let\citeNP\citealt |
| 3687 |
\DeclareRobustCommand\citeA |
| 3688 |
{\begingroup\NAT@swafalse |
| 3689 |
\let\NAT@ctype\@ne\NAT@partrue\NAT@fullfalse\NAT@open\NAT@citetp}% |
| 3690 |
\providecommand\newblock{}% |
| 3691 |
\else |
| 3692 |
\AtBeginDocument{% |
| 3693 |
\let\shortcite\cite% |
| 3694 |
\providecommand\citename[1]{#1}} |
| 3695 |
\fi |
| 3696 |
\newcommand\shortcite[2][]{% |
| 3697 |
\ifNAT@numbers\cite[#1]{#2}\else\citeyearpar[#1]{#2}\fi} |
| 3698 |
% \end{macrocode} |
| 3699 |
% |
| 3700 |
% |
| 3701 |
% \begin{macro}{\bibliographystyle} |
| 3702 |
% \changes{v1.13}{2016/06/06}{Redefined macro} |
| 3703 |
% The |amsart| package redefines \cs{bibliographystyle} since it |
| 3704 |
% prefers the AMS bibliography style. We turn it back to the |
| 3705 |
% \LaTeX\ definition: |
| 3706 |
% \begin{macrocode} |
| 3707 |
\def\bibliographystyle#1{% |
| 3708 |
\ifx\@begindocumenthook\@undefined\else |
| 3709 |
\expandafter\AtBeginDocument |
| 3710 |
\fi |
| 3711 |
{\if@filesw |
| 3712 |
\immediate\write\@auxout{\string\bibstyle{#1}}% |
| 3713 |
\fi}} |
| 3714 |
% \end{macrocode} |
| 3715 |
% |
| 3716 |
% \end{macro} |
| 3717 |
% |
| 3718 |
% |
| 3719 |
%\subsection{Other packages} |
| 3720 |
%\label{sec:packages} |
| 3721 |
% |
| 3722 |
% |
| 3723 |
% |
| 3724 |
% Graphics and color. |
| 3725 |
% \changes{1.48}{2017/10/22}{Added prologue option to xcolor} |
| 3726 |
% \begin{macrocode} |
| 3727 |
\RequirePackage{graphicx} |
| 3728 |
\RequirePackage[prologue]{xcolor} |
| 3729 |
% \end{macrocode} |
| 3730 |
% |
| 3731 |
% We define ACM colors according to~\cite{ACMIdentityStandards}: |
| 3732 |
% \begin{macrocode} |
| 3733 |
\definecolor[named]{ACMBlue}{cmyk}{1,0.1,0,0.1} |
| 3734 |
\definecolor[named]{ACMYellow}{cmyk}{0,0.16,1,0} |
| 3735 |
\definecolor[named]{ACMOrange}{cmyk}{0,0.42,1,0.01} |
| 3736 |
\definecolor[named]{ACMRed}{cmyk}{0,0.90,0.86,0} |
| 3737 |
\definecolor[named]{ACMLightBlue}{cmyk}{0.49,0.01,0,0} |
| 3738 |
\definecolor[named]{ACMGreen}{cmyk}{0.20,0,1,0.19} |
| 3739 |
\definecolor[named]{ACMPurple}{cmyk}{0.55,1,0,0.15} |
| 3740 |
\definecolor[named]{ACMDarkBlue}{cmyk}{1,0.58,0,0.21} |
| 3741 |
% \end{macrocode} |
| 3742 |
% |
| 3743 |
% |
| 3744 |
% Author-draft mode or sigchi-a mode |
| 3745 |
% \begin{macrocode} |
| 3746 |
\if@ACM@authordraft |
| 3747 |
\RequirePackage{draftwatermark} |
| 3748 |
\SetWatermarkFontSize{0.5in} |
| 3749 |
\SetWatermarkColor[gray]{.9} |
| 3750 |
\SetWatermarkText{\parbox{12em}{\centering |
| 3751 |
Unpublished working draft.\\ |
| 3752 |
Not for distribution.}} |
| 3753 |
\else |
| 3754 |
\if@ACM@sigchiamode |
| 3755 |
\if@ACM@nonacm\else |
| 3756 |
\RequirePackage{draftwatermark} |
| 3757 |
\SetWatermarkFontSize{0.5in} |
| 3758 |
\SetWatermarkColor[gray]{.9} |
| 3759 |
\SetWatermarkText{\parbox{12em}{\centering |
| 3760 |
Legacy document. \\ |
| 3761 |
Not for publication in an ACM venue}} |
| 3762 |
\fi |
| 3763 |
\fi |
| 3764 |
\fi |
| 3765 |
% \end{macrocode} |
| 3766 |
% |
| 3767 |
% |
| 3768 |
%\subsection{Paper size and paragraphing} |
| 3769 |
%\label{sec:paper} |
| 3770 |
% |
| 3771 |
% \changes{v1.17}{2016/07/07}{Slightly decreased margins for sigs} |
| 3772 |
% \changes{v1.29}{2017/01/22}{Increased head to 13pt} |
| 3773 |
% \changes{v1.40}{2017/07/15}{Added heightrounded to geometry} |
| 3774 |
% \changes{v1.56}{2018/10/16}{Make two-column layouts flush (Philip Quinn)} |
| 3775 |
% We use |geometry| for dimensions. Note that the present margins do not |
| 3776 |
% depend on the font size option---we might need to change this. |
| 3777 |
% See \url{https://github.com/borisveytsman/acmart/issues/5#issuecomment-272881329}. |
| 3778 |
% \begin{macrocode} |
| 3779 |
\RequirePackage{geometry} |
| 3780 |
\ifcase\ACM@format@nr |
| 3781 |
\relax % manuscript |
| 3782 |
\geometry{letterpaper,head=13pt, |
| 3783 |
marginparwidth=6pc,heightrounded}% |
| 3784 |
\or % acmsmall |
| 3785 |
\geometry{twoside=true, |
| 3786 |
includeheadfoot, head=13pt, foot=2pc, |
| 3787 |
paperwidth=6.75in, paperheight=10in, |
| 3788 |
top=58pt, bottom=44pt, inner=46pt, outer=46pt, |
| 3789 |
marginparwidth=2pc,heightrounded |
| 3790 |
}% |
| 3791 |
\or % acmlarge |
| 3792 |
\geometry{twoside=true, head=13pt, foot=2pc, |
| 3793 |
paperwidth=8.5in, paperheight=11in, |
| 3794 |
includeheadfoot, |
| 3795 |
top=78pt, bottom=114pt, inner=81pt, outer=81pt, |
| 3796 |
marginparwidth=4pc,heightrounded |
| 3797 |
}% |
| 3798 |
\or % acmtog |
| 3799 |
\geometry{twoside=true, head=13pt, foot=2pc, |
| 3800 |
paperwidth=8.5in, paperheight=11in, |
| 3801 |
includeheadfoot, columnsep=24pt, |
| 3802 |
top=52pt, bottom=75pt, inner=52pt, outer=52pt, |
| 3803 |
marginparwidth=2pc,heightrounded |
| 3804 |
}% |
| 3805 |
\or % sigconf |
| 3806 |
\geometry{twoside=true, head=13pt, |
| 3807 |
paperwidth=8.5in, paperheight=11in, |
| 3808 |
includeheadfoot, columnsep=2pc, |
| 3809 |
top=57pt, bottom=73pt, inner=54pt, outer=54pt, |
| 3810 |
marginparwidth=2pc,heightrounded |
| 3811 |
}% |
| 3812 |
\or % siggraph |
| 3813 |
\geometry{twoside=true, head=13pt, |
| 3814 |
paperwidth=8.5in, paperheight=11in, |
| 3815 |
includeheadfoot, columnsep=2pc, |
| 3816 |
top=57pt, bottom=73pt, inner=54pt, outer=54pt, |
| 3817 |
marginparwidth=2pc,heightrounded |
| 3818 |
}% |
| 3819 |
\or % sigplan |
| 3820 |
\geometry{twoside=true, head=13pt, |
| 3821 |
paperwidth=8.5in, paperheight=11in, |
| 3822 |
includeheadfoot=false, columnsep=2pc, |
| 3823 |
top=1in, bottom=1in, inner=0.75in, outer=0.75in, |
| 3824 |
marginparwidth=2pc,heightrounded |
| 3825 |
}% |
| 3826 |
\or % sigchi |
| 3827 |
\geometry{twoside=true, head=13pt, |
| 3828 |
paperwidth=8.5in, paperheight=11in, |
| 3829 |
includeheadfoot, columnsep=2pc, |
| 3830 |
top=66pt, bottom=73pt, inner=54pt, outer=54pt, |
| 3831 |
marginparwidth=2pc,heightrounded |
| 3832 |
}% |
| 3833 |
\or % sigchi-a |
| 3834 |
\geometry{twoside=false, head=13pt, |
| 3835 |
paperwidth=11in, paperheight=8.5in, |
| 3836 |
includeheadfoot, marginparsep=72pt, |
| 3837 |
marginparwidth=170pt, columnsep=20pt, |
| 3838 |
top=72pt, bottom=72pt, left=314pt, right=72pt |
| 3839 |
}% |
| 3840 |
\@mparswitchfalse |
| 3841 |
\reversemarginpar |
| 3842 |
\or % acmengage |
| 3843 |
\geometry{twoside=true, head=13pt, |
| 3844 |
paperwidth=8.5in, paperheight=11in, |
| 3845 |
includeheadfoot, columnsep=2pc, |
| 3846 |
top=57pt, bottom=73pt, inner=54pt, outer=54pt, |
| 3847 |
marginparwidth=2pc,heightrounded |
| 3848 |
}% |
| 3849 |
\or % acmcp |
| 3850 |
\geometry{twoside=true, |
| 3851 |
includeheadfoot, head=13pt, foot=2pc, |
| 3852 |
paperwidth=6.75in, paperheight=10in, |
| 3853 |
top=58pt, bottom=44pt, inner=46pt, outer=46pt, |
| 3854 |
marginparwidth=2pc,heightrounded |
| 3855 |
}% |
| 3856 |
\fi |
| 3857 |
% \end{macrocode} |
| 3858 |
% |
| 3859 |
% |
| 3860 |
% \begin{macro}{\parindent} |
| 3861 |
% \begin{macro}{\parskip} |
| 3862 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 3863 |
% Paragraphing |
| 3864 |
% \begin{macrocode} |
| 3865 |
\setlength\parindent{10\p@} |
| 3866 |
\setlength\parskip{\z@} |
| 3867 |
\ifcase\ACM@format@nr |
| 3868 |
\relax % manuscript |
| 3869 |
\or % acmsmall |
| 3870 |
\or % acmlarge |
| 3871 |
\or % acmtog |
| 3872 |
\setlength\parindent{9\p@}% |
| 3873 |
\or % sigconf |
| 3874 |
\or % siggraph |
| 3875 |
\or % sigplan |
| 3876 |
\or % sigchi |
| 3877 |
\or % sigchi-a |
| 3878 |
\or % acmengage |
| 3879 |
\or % acmcp |
| 3880 |
\fi |
| 3881 |
% \end{macrocode} |
| 3882 |
% |
| 3883 |
% \end{macro} |
| 3884 |
% \end{macro} |
| 3885 |
% |
| 3886 |
% \begin{macro}{\normalparindent} |
| 3887 |
% \changes{v1.37}{2017/05/13}{Set \cs{normalparindent} (Matthew Fluet)}% |
| 3888 |
% The |amsart| package defines the \cs{normalparindent} length and |
| 3889 |
% initializes it to 12pt (the value of \cs{parindent} in |amsart|). It |
| 3890 |
% is later used to set the \cs{listparindent} length in the |quotation| |
| 3891 |
% environment and the \cs{parindent} length in the \cs{@footnotetext} |
| 3892 |
% command. We set \cs{normalparindent} to the value of \cs{parindent} |
| 3893 |
% as selected by |acmart| for consistent paragraph indents. |
| 3894 |
% \begin{macrocode} |
| 3895 |
\setlength\normalparindent{\parindent} |
| 3896 |
% \end{macrocode} |
| 3897 |
% |
| 3898 |
% \end{macro} |
| 3899 |
% |
| 3900 |
% Footnotes require some consideration. We have several layers of |
| 3901 |
% footnotes: frontmatter footnotes, ``regular'' footnotes and the |
| 3902 |
% special insert for the bibstrip. In the old ACM classes, the bibstrip |
| 3903 |
% was a \cs{@float}. The problem with floats is that they tend to, well, |
| 3904 |
% float---and we want the guarantee they stay. |
| 3905 |
% |
| 3906 |
% We use |manyfoot| for layered footnotes instead. |
| 3907 |
% |
| 3908 |
% \begin{macro}{\copyrightpermissionfootnoterule} |
| 3909 |
% \changes{v1.12}{2016/05/30}{Added macro} |
| 3910 |
% This is the footnote rule that separates the bibstrip from the rest of |
| 3911 |
% the paper. It is a full width rule. |
| 3912 |
% \begin{macrocode} |
| 3913 |
\def\copyrightpermissionfootnoterule{\kern-3\p@ |
| 3914 |
\hrule \@width \columnwidth \kern 2.6\p@} |
| 3915 |
% \end{macrocode} |
| 3916 |
% \end{macro} |
| 3917 |
% |
| 3918 |
% \begin{macrocode} |
| 3919 |
\RequirePackage{manyfoot} |
| 3920 |
\SelectFootnoteRule[2]{copyrightpermission} |
| 3921 |
\DeclareNewFootnote{authorsaddresses} |
| 3922 |
\SelectFootnoteRule[2]{copyrightpermission} |
| 3923 |
\DeclareNewFootnote{copyrightpermission} |
| 3924 |
% \end{macrocode} |
| 3925 |
% |
| 3926 |
% |
| 3927 |
% \begin{macro}{\footnoterule} |
| 3928 |
% \changes{v1.12}{2016/05/30}{Made shorter} |
| 3929 |
% Tschichold's rules: |
| 3930 |
% \begin{macrocode} |
| 3931 |
\def\footnoterule{\kern-3\p@ |
| 3932 |
\hrule \@width 4pc \kern 2.6\p@} |
| 3933 |
% \end{macrocode} |
| 3934 |
% |
| 3935 |
% \end{macro} |
| 3936 |
% |
| 3937 |
% \begin{macro}{\endminipage} |
| 3938 |
% We do not use footnote rules in minipages |
| 3939 |
% \begin{macrocode} |
| 3940 |
\def\endminipage{% |
| 3941 |
\par |
| 3942 |
\unskip |
| 3943 |
\ifvoid\@mpfootins\else |
| 3944 |
\vskip\skip\@mpfootins |
| 3945 |
\normalcolor |
| 3946 |
\unvbox\@mpfootins |
| 3947 |
\fi |
| 3948 |
\@minipagefalse |
| 3949 |
\color@endgroup |
| 3950 |
\egroup |
| 3951 |
\expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}} |
| 3952 |
% \end{macrocode} |
| 3953 |
% |
| 3954 |
% \end{macro} |
| 3955 |
% |
| 3956 |
% |
| 3957 |
% \begin{macro}{\@textbottom} |
| 3958 |
% \changes{v1.31}{2017/03/04}{Redefined} |
| 3959 |
% Add some stretch according to David Carlisle's advice at |
| 3960 |
% \url{http://tex.stackexchange.com/a/62318/5522} |
| 3961 |
% \begin{macrocode} |
| 3962 |
\def\@textbottom{\vskip \z@ \@plus 1pt} |
| 3963 |
\let\@texttop\relax |
| 3964 |
% \end{macrocode} |
| 3965 |
% |
| 3966 |
% \end{macro} |
| 3967 |
% |
| 3968 |
% In two-column layouts, force both columns to be the same height by inserting |
| 3969 |
% extra internal vertical space to fill out the page. |
| 3970 |
% \begin{macrocode} |
| 3971 |
\ifcase\ACM@format@nr |
| 3972 |
\relax % manuscript |
| 3973 |
\or % acmsmall |
| 3974 |
\or % acmlarge |
| 3975 |
\or % acmtog |
| 3976 |
\flushbottom |
| 3977 |
\or % sigconf |
| 3978 |
\flushbottom |
| 3979 |
\or % siggraph |
| 3980 |
\flushbottom |
| 3981 |
\or % sigplan |
| 3982 |
\flushbottom |
| 3983 |
\or % sigchi |
| 3984 |
\flushbottom |
| 3985 |
\or % sigchi-a |
| 3986 |
\or % acmengage |
| 3987 |
\flushbottom |
| 3988 |
\or % acmcp |
| 3989 |
\flushbottom |
| 3990 |
\fi |
| 3991 |
% \end{macrocode} |
| 3992 |
% |
| 3993 |
%\subsection{Fonts} |
| 3994 |
%\label{sec:fonts} |
| 3995 |
% |
| 3996 |
% \changes{v1.12}{2016/05/30}{Added graceful behavior when libertine |
| 3997 |
% fonts are absent} |
| 3998 |
% \changes{v1.33}{2017/03/29}{Added cmap and glyphtounicode} |
| 3999 |
% \changes{v1.40}{2017/05/27}{Added Ross Moore code for glyphtounicode} |
| 4000 |
% |
| 4001 |
% Somehow PDFTeX and XeTeX require different incantations to make a PDF |
| 4002 |
% compliant with the current Acrobat bugs. Xpdf is much better. |
| 4003 |
% |
| 4004 |
% The code below is by Ross Moore. |
| 4005 |
% \begin{macrocode} |
| 4006 |
\ifPDFTeX |
| 4007 |
\input{glyphtounicode} |
| 4008 |
\pdfglyphtounicode{f_f}{FB00} |
| 4009 |
\pdfglyphtounicode{f_f_i}{FB03} |
| 4010 |
\pdfglyphtounicode{f_f_l}{FB04} |
| 4011 |
\pdfglyphtounicode{f_i}{FB01} |
| 4012 |
\pdfglyphtounicode{t_t}{0074 0074} |
| 4013 |
\pdfglyphtounicode{f_t}{0066 0074} |
| 4014 |
\pdfglyphtounicode{T_h}{0054 0068} |
| 4015 |
\pdfgentounicode=1 |
| 4016 |
\RequirePackage{cmap} |
| 4017 |
\fi |
| 4018 |
% \end{macrocode} |
| 4019 |
% |
| 4020 |
% |
| 4021 |
% \begin{macro}{\if@ACM@newfonts} |
| 4022 |
% \changes{v1.12}{2016/05/30}{Added macro}% |
| 4023 |
% Whether we load the new fonts |
| 4024 |
% \begin{macrocode} |
| 4025 |
\newif\if@ACM@newfonts |
| 4026 |
\@ACM@newfontstrue |
| 4027 |
\IfFileExists{libertine.sty}{}{\ClassWarning{\@classname}{You do not |
| 4028 |
have the libertine package installed. Please upgrade your |
| 4029 |
TeX}\@ACM@newfontsfalse} |
| 4030 |
\IfFileExists{zi4.sty}{}{\ClassWarning{\@classname}{You do not |
| 4031 |
have the inconsolata (zi4.sty) package installed. Please upgrade your |
| 4032 |
TeX}\@ACM@newfontsfalse} |
| 4033 |
\IfFileExists{newtxmath.sty}{}{\ClassWarning{\@classname}{You do not |
| 4034 |
have the newtxmath package installed. Please upgrade your |
| 4035 |
TeX}\@ACM@newfontsfalse} |
| 4036 |
% \end{macrocode} |
| 4037 |
% |
| 4038 |
% \end{macro} |
| 4039 |
% |
| 4040 |
% \changes{v1.30}{2017/02/15}{Switched to T1: looks like libertine has |
| 4041 |
% problems with \cs{l} in OT1}% |
| 4042 |
% \changes{v1.33}{2017/03/12}{Switched to Type~1 fonts for libertine |
| 4043 |
% even if OTF-capable engine is used (Kai Mindermann)} |
| 4044 |
% \changes{v1.51}{2018/04/05}{XeTeX now uses OTF fonts (Joachim |
| 4045 |
% Breitner)} |
| 4046 |
% \changes{v1.54}{2018/07/16}{XeTeX now uses T1 encoding} |
| 4047 |
% \changes{v1.56}{2018/11/11}{Looks like XeTeX requires explicit |
| 4048 |
% monotype font declaration} |
| 4049 |
% \changes{v1.74}{2020/10/25}{Changed the order of font loading}% |
| 4050 |
% We use Libertine throughout. |
| 4051 |
% \changes{v2.12}{2024/12/29}{Use unicode-math and libertinus for Unicode engines}% |
| 4052 |
% \changes{v2.13}{2025/01/11}{Added mathcal in unicode mode}% |
| 4053 |
% \changes{v2.13}{2025/01/11}{Added mathcal in unicode mode}% |
| 4054 |
% \changes{v2.15}{2025/08/21}{Added symbols in unicode mode}% |
| 4055 |
% We use Libertine throughout. |
| 4056 |
% \begin{macrocode} |
| 4057 |
\if@ACM@newfonts |
| 4058 |
\ifxetex |
| 4059 |
\RequirePackage{amssymb} |
| 4060 |
\RequirePackage{unicode-math} |
| 4061 |
\setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf} |
| 4062 |
\setmathfont{latinmodern-math.otf}[range={cal}] |
| 4063 |
\RequirePackage[tt=false]{libertine} |
| 4064 |
\setmonofont[StylisticSet=3]{inconsolata} |
| 4065 |
\else |
| 4066 |
\ifluatex |
| 4067 |
\RequirePackage{amssymb} |
| 4068 |
\RequirePackage{unicode-math} |
| 4069 |
\setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf} |
| 4070 |
\setmathfont{latinmodern-math.otf}[range={cal}] |
| 4071 |
\RequirePackage[tt=false]{libertine} |
| 4072 |
\setmonofont[StylisticSet=3]{inconsolata} |
| 4073 |
\else |
| 4074 |
\RequirePackage[T1]{fontenc} |
| 4075 |
\RequirePackage[tt=false, type1=true]{libertine} |
| 4076 |
\RequirePackage[varqu]{zi4} |
| 4077 |
\RequirePackage[libertine]{newtxmath} |
| 4078 |
\fi |
| 4079 |
\fi |
| 4080 |
\fi |
| 4081 |
% \end{macrocode} |
| 4082 |
% |
| 4083 |
% \begin{macro}{\liningnums} |
| 4084 |
% \changes{v1.46}{2017/08/28}{Workaround for compatibility with fontspec} |
| 4085 |
% Libertine defines \cs{liningnums}, which makes |fontspec| unhappy. |
| 4086 |
% While we do not use |fontspec|, some users do. |
| 4087 |
% \begin{macrocode} |
| 4088 |
\let\liningnums\@undefined |
| 4089 |
\AtEndPreamble{% |
| 4090 |
\DeclareTextFontCommand{\liningnums}{\libertineLF}} |
| 4091 |
% \end{macrocode} |
| 4092 |
% |
| 4093 |
% \end{macro} |
| 4094 |
% |
| 4095 |
% |
| 4096 |
% The SIGCHI extended abstracts are sans serif: |
| 4097 |
% \begin{macrocode} |
| 4098 |
\if@ACM@sigchiamode |
| 4099 |
\renewcommand{\familydefault}{\sfdefault} |
| 4100 |
\fi |
| 4101 |
% \end{macrocode} |
| 4102 |
% |
| 4103 |
% |
| 4104 |
% |
| 4105 |
%\subsection{Image descriptions} |
| 4106 |
%\label{sec:description} |
| 4107 |
% |
| 4108 |
% \begin{macro}{\if@Description@present} |
| 4109 |
% \changes{v1.56}{2018/11/11}{Added macro} |
| 4110 |
% A local switch: whether there is a description in the given figure |
| 4111 |
% \begin{macrocode} |
| 4112 |
\newif\if@Description@present |
| 4113 |
\@Description@presenttrue |
| 4114 |
% \end{macrocode} |
| 4115 |
% \end{macro} |
| 4116 |
% |
| 4117 |
% \begin{macro}{\if@undescribed@images} |
| 4118 |
% \changes{v1.56}{2018/11/11}{Added macro} |
| 4119 |
% A global switch whether some images were \emph{not} described |
| 4120 |
% \begin{macrocode} |
| 4121 |
\newif\if@undescribed@images |
| 4122 |
\@undescribed@imagesfalse |
| 4123 |
% \end{macrocode} |
| 4124 |
% \end{macro} |
| 4125 |
% |
| 4126 |
% \begin{macro}{\Description} |
| 4127 |
% \changes{v1.56}{2018/11/11}{Added macro} |
| 4128 |
% The Description macro right now just sets switches |
| 4129 |
% \begin{macrocode} |
| 4130 |
\newcommand\Description[2][]{\global\@Description@presenttrue\ignorespaces} |
| 4131 |
% \end{macrocode} |
| 4132 |
% \end{macro} |
| 4133 |
% |
| 4134 |
% The global warning |
| 4135 |
% \changes{v2.13}{2025/01/11}{New warnings about lack of descriptions} |
| 4136 |
% \begin{macrocode} |
| 4137 |
\AtEndDocument{\if@undescribed@images |
| 4138 |
\ClassWarningNoLine{\@classname}{Some images may lack |
| 4139 |
descriptions.\MessageBreak |
| 4140 |
ACM is committed to complying with the upcoming US ADA |
| 4141 |
https://accessiblyapp.com/accessibility-compliance/ada/ and European |
| 4142 |
Accessibility Act |
| 4143 |
(EAA) https://accessiblyapp.com/accessibility-compliance/eaa/ |
| 4144 |
regulations by actively working to ensure our publications and |
| 4145 |
application services are accessible to individuals with |
| 4146 |
disabilities, adhering to the WCAG guidelines to provide a seamless |
| 4147 |
experience for all users, and regularly reviewing our accessibility |
| 4148 |
practices to maintain compliance with evolving standards. \MessageBreak |
| 4149 |
To this end, we strongly encourage our authors to provide |
| 4150 |
alternative text and captions for images and multimedia content. It |
| 4151 |
is also important to optimize color contrast for the visually |
| 4152 |
impaired. Taking these important steps when creating your papers |
| 4153 |
will ensure that the widest possible audience can ingest your |
| 4154 |
work.}\fi} |
| 4155 |
% \end{macrocode} |
| 4156 |
% |
| 4157 |
% Hooks for figures and tables. We also patch |algorithm| and |
| 4158 |
% |algorithm*| in case somebody uses them. |
| 4159 |
% \changes{v1.66}{2019/11/23}{Patching algorithm and algorithm* |
| 4160 |
% to prevent spurious space warnings} |
| 4161 |
% \changes{v1.67}{2020/01/11}{Patching lstlisting and lstlisting* |
| 4162 |
% to prevent spurious space warnings} |
| 4163 |
% \changes{v1.73}{2020/08/23}{Patching minted and minted* |
| 4164 |
% to prevent spurious space warnings} |
| 4165 |
% \begin{macrocode} |
| 4166 |
\AtBeginEnvironment{figure}{\@Description@presentfalse |
| 4167 |
\let\@vspace\@vspace@orig |
| 4168 |
\let\@vspacer\@vspacer@orig} |
| 4169 |
\AtBeginEnvironment{figure*}{\@Description@presentfalse |
| 4170 |
\let\@vspace\@vspace@orig |
| 4171 |
\let\@vspacer\@vspacer@orig} |
| 4172 |
\AtEndEnvironment{figure}{\if@Description@present\else |
| 4173 |
\global\@undescribed@imagestrue |
| 4174 |
\ClassWarning{\@classname}{A possible image without description}\fi} |
| 4175 |
\AtEndEnvironment{figure*}{\if@Description@present\else |
| 4176 |
\global\@undescribed@imagestrue |
| 4177 |
\ClassWarning{\@classname}{A possible image without description}\fi} |
| 4178 |
\AtBeginEnvironment{table}{\let\@vspace\@vspace@orig |
| 4179 |
\let\@vspacer\@vspacer@orig} |
| 4180 |
\AtBeginEnvironment{table*}{\let\@vspace\@vspace@orig |
| 4181 |
\let\@vspacer\@vspacer@orig} |
| 4182 |
\AtBeginEnvironment{algorithm}{\let\@vspace\@vspace@orig |
| 4183 |
\let\@vspacer\@vspacer@orig} |
| 4184 |
\AtBeginEnvironment{algorithm*}{\let\@vspace\@vspace@orig |
| 4185 |
\let\@vspacer\@vspacer@orig} |
| 4186 |
\AtBeginEnvironment{lstlisting}{\let\@vspace\@vspace@orig |
| 4187 |
\let\@vspacer\@vspacer@orig} |
| 4188 |
\AtBeginEnvironment{lstlisting*}{\let\@vspace\@vspace@orig |
| 4189 |
\let\@vspacer\@vspacer@orig} |
| 4190 |
\AtBeginEnvironment{minted}{\let\@vspace\@vspace@orig |
| 4191 |
\let\@vspacer\@vspacer@orig} |
| 4192 |
\AtBeginEnvironment{minted*}{\let\@vspace\@vspace@orig |
| 4193 |
\let\@vspacer\@vspacer@orig} |
| 4194 |
\AtBeginEnvironment{listing}{\let\@vspace\@vspace@orig |
| 4195 |
\let\@vspacer\@vspacer@orig} |
| 4196 |
\AtBeginEnvironment{listing*}{\let\@vspace\@vspace@orig |
| 4197 |
\let\@vspacer\@vspacer@orig} |
| 4198 |
\AtBeginEnvironment{lstinputlisting}{\let\@vspace\@vspace@orig |
| 4199 |
\let\@vspacer\@vspacer@orig} |
| 4200 |
\AtBeginEnvironment{lstinputlisting*}{\let\@vspace\@vspace@orig |
| 4201 |
\let\@vspacer\@vspacer@orig} |
| 4202 |
|
| 4203 |
% \end{macrocode} |
| 4204 |
% |
| 4205 |
% |
| 4206 |
%\subsection{Floats} |
| 4207 |
%\label{sec:floats} |
| 4208 |
% |
| 4209 |
% \changes{v1.55}{2018/10/20}{Table captions for SIGCHI now use the |
| 4210 |
% same font size as figure captions (Luis Leiva)} |
| 4211 |
% We use the |caption| package |
| 4212 |
% \begin{macrocode} |
| 4213 |
\RequirePackage{caption, float} |
| 4214 |
\captionsetup[table]{position=top} |
| 4215 |
\if@ACM@journal |
| 4216 |
\captionsetup{labelfont={sf, small}, |
| 4217 |
textfont={sf, small}, margin=\z@} |
| 4218 |
\captionsetup[figure]{name={Fig.}} |
| 4219 |
\else |
| 4220 |
\captionsetup{labelfont={bf}, |
| 4221 |
textfont={bf}, labelsep=colon, margin=\z@} |
| 4222 |
\ifcase\ACM@format@nr |
| 4223 |
\relax % manuscript |
| 4224 |
\or % acmsmall |
| 4225 |
\or % acmlarge |
| 4226 |
\or % acmtog |
| 4227 |
\or % sigconf |
| 4228 |
\or % siggraph |
| 4229 |
\captionsetup{textfont={it}} |
| 4230 |
\or % sigplan |
| 4231 |
\captionsetup{labelfont={bf}, |
| 4232 |
textfont={normalfont}, labelsep=period, margin=\z@} |
| 4233 |
\or % sigchi |
| 4234 |
\captionsetup[figure]{labelfont={bf, small}, |
| 4235 |
textfont={bf, small}} |
| 4236 |
\captionsetup[table]{labelfont={bf, small}, |
| 4237 |
textfont={bf, small}} |
| 4238 |
\or % sigchi-a |
| 4239 |
\captionsetup[figure]{labelfont={bf, small}, |
| 4240 |
textfont={bf, small}} |
| 4241 |
\captionsetup[table]{labelfont={bf, small}, |
| 4242 |
textfont={bf, small}} |
| 4243 |
\or % acmengage |
| 4244 |
\or % acmcp |
| 4245 |
\fi |
| 4246 |
\fi |
| 4247 |
% \end{macrocode} |
| 4248 |
% |
| 4249 |
% \begin{macro}{sidebar} |
| 4250 |
% The |sidebar| environment: |
| 4251 |
% \begin{macrocode} |
| 4252 |
\newfloat{sidebar}{}{sbar} |
| 4253 |
\floatname{sidebar}{Sidebar} |
| 4254 |
\renewenvironment{sidebar}{\Collect@Body\@sidebar}{} |
| 4255 |
% \end{macrocode} |
| 4256 |
% |
| 4257 |
% \end{macro} |
| 4258 |
% |
| 4259 |
% \begin{macro}{\@sidebar} |
| 4260 |
% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning} |
| 4261 |
% The processing of the saved text |
| 4262 |
% \begin{macrocode} |
| 4263 |
\long\def\@sidebar#1{\bgroup\let\@vspace\@vspace@orig |
| 4264 |
\let\@vspacer\@vspacer@orig\captionsetup{type=sidebar}% |
| 4265 |
\marginpar{\small#1}\egroup} |
| 4266 |
% \end{macrocode} |
| 4267 |
% |
| 4268 |
% \end{macro} |
| 4269 |
% |
| 4270 |
% \begin{macro}{marginfigure} |
| 4271 |
% The |marginfigure| environment: |
| 4272 |
% \begin{macrocode} |
| 4273 |
\newenvironment{marginfigure}{\Collect@Body\@marginfigure}{} |
| 4274 |
% \end{macrocode} |
| 4275 |
% |
| 4276 |
% \end{macro} |
| 4277 |
% |
| 4278 |
% \begin{macro}{\@marginfigure} |
| 4279 |
% \changes{v1.12}{2016/05/30}{Now centering by default} |
| 4280 |
% \changes{v1.56}{2018/11/11}{Added checking for description} |
| 4281 |
% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning} |
| 4282 |
% The processing of the saved text |
| 4283 |
% \begin{macrocode} |
| 4284 |
\long\def\@marginfigure#1{\bgroup |
| 4285 |
\let\@vspace\@vspace@orig |
| 4286 |
\let\@vspacer\@vspacer@orig |
| 4287 |
\captionsetup{type=figure}% |
| 4288 |
\marginpar{\@Description@presentfalse\centering |
| 4289 |
\small#1\if@Description@present\else |
| 4290 |
\global\@undescribed@imagestrue |
| 4291 |
\ClassWarning{\@classname}{A possible image without description} |
| 4292 |
\fi}% |
| 4293 |
\egroup} |
| 4294 |
% \end{macrocode} |
| 4295 |
% |
| 4296 |
% \end{macro} |
| 4297 |
% |
| 4298 |
% \begin{macro}{margintable} |
| 4299 |
% The |margintable| environment: |
| 4300 |
% \begin{macrocode} |
| 4301 |
\newenvironment{margintable}{\Collect@Body\@margintable}{} |
| 4302 |
% \end{macrocode} |
| 4303 |
% |
| 4304 |
% \end{macro} |
| 4305 |
% |
| 4306 |
% \begin{macro}{\@margintable} |
| 4307 |
% \changes{v1.12}{2016/05/30}{Now centering by default} |
| 4308 |
% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning} |
| 4309 |
% The processing of the saved text |
| 4310 |
% \begin{macrocode} |
| 4311 |
\long\def\@margintable#1{\bgroup\let\@vspace\@vspace@orig |
| 4312 |
\let\@vspacer\@vspacer@orig\captionsetup{type=table}% |
| 4313 |
\marginpar{\centering\small#1}\egroup} |
| 4314 |
% \end{macrocode} |
| 4315 |
% |
| 4316 |
% \end{macro} |
| 4317 |
% |
| 4318 |
% |
| 4319 |
% SIGCHI extended abstracts provide an interesting possibility to push |
| 4320 |
% into the margin. Here we use |figure*| and |table*| for this. |
| 4321 |
% \begin{macro}{\fulltextwidth} |
| 4322 |
% We define the width of the boxes as |
| 4323 |
% \begin{macrocode} |
| 4324 |
\newdimen\fulltextwidth |
| 4325 |
\fulltextwidth=\dimexpr(\textwidth+\marginparwidth+\marginparsep) |
| 4326 |
% \end{macrocode} |
| 4327 |
% |
| 4328 |
% \end{macro} |
| 4329 |
% |
| 4330 |
% \begin{macro}{\@dblfloat} |
| 4331 |
% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning} |
| 4332 |
% We redefine the double-float command. First, we make the size |
| 4333 |
% bigger. Second, our default position is going to be |tp| (to give |
| 4334 |
% marginalia a chance) |
| 4335 |
% \begin{macrocode} |
| 4336 |
\if@ACM@sigchiamode |
| 4337 |
\def\@dblfloat{\bgroup\let\@vspace\@vspace@orig |
| 4338 |
\let\@vspacer\@vspacer@orig\columnwidth=\fulltextwidth |
| 4339 |
\let\@endfloatbox\@endwidefloatbox |
| 4340 |
\def\@fpsadddefault{\def\@fps{tp}}% |
| 4341 |
\@float} |
| 4342 |
\fi |
| 4343 |
% \end{macrocode} |
| 4344 |
% |
| 4345 |
% \end{macro} |
| 4346 |
% |
| 4347 |
% \begin{macro}{\end@dblfloat} |
| 4348 |
% And the end. Just adding a \cs{bgroup}. |
| 4349 |
% \begin{macrocode} |
| 4350 |
\if@ACM@sigchiamode |
| 4351 |
\def\end@dblfloat{% |
| 4352 |
\end@float\egroup} |
| 4353 |
\fi |
| 4354 |
% \end{macrocode} |
| 4355 |
% |
| 4356 |
% \end{macro} |
| 4357 |
% |
| 4358 |
% \begin{macro}{\@endwidefloatbox} |
| 4359 |
% This is the end of a wide box---we basically move everything |
| 4360 |
% to the left |
| 4361 |
% \begin{macrocode} |
| 4362 |
\def\@endwidefloatbox{% |
| 4363 |
\par\vskip\z@skip |
| 4364 |
\@minipagefalse |
| 4365 |
\outer@nobreak |
| 4366 |
\egroup |
| 4367 |
\color@endbox |
| 4368 |
\global\setbox\@currbox=\vbox{\moveleft |
| 4369 |
\dimexpr(\fulltextwidth-\textwidth)\box\@currbox}% |
| 4370 |
\wd\@currbox=\textwidth |
| 4371 |
} |
| 4372 |
% \end{macrocode} |
| 4373 |
% |
| 4374 |
% \end{macro} |
| 4375 |
% |
| 4376 |
% |
| 4377 |
%\subsection{Lists} |
| 4378 |
%\label{sec:lists} |
| 4379 |
% |
| 4380 |
% \begin{macrocode} |
| 4381 |
\ifcase\ACM@format@nr |
| 4382 |
\relax % manuscript |
| 4383 |
\or % acmsmall |
| 4384 |
\or % acmlarge |
| 4385 |
\or % acmtog |
| 4386 |
\or % sigconf |
| 4387 |
\or % siggraph |
| 4388 |
\or % sigplan |
| 4389 |
\def\labelenumi{\theenumi.} |
| 4390 |
\def\labelenumii{\theenumii.} |
| 4391 |
\def\labelenumiii{\theenumiii.} |
| 4392 |
\def\labelenumiv{\theenumiv.} |
| 4393 |
\or % sigchi |
| 4394 |
\or % sigchi-a |
| 4395 |
\or % acmengage |
| 4396 |
\or % acmcp |
| 4397 |
\fi |
| 4398 |
% \end{macrocode} |
| 4399 |
% |
| 4400 |
% |
| 4401 |
% \changes{v1.37}{2017/05/13}{Reduce list indentation (Matthew Fluet)}% |
| 4402 |
% The AMS uses generous margins for lists. Note that |amsart| defines |
| 4403 |
% \cs{leftmargin} values for list levels at the beginning of the |
| 4404 |
% document, so we must redefine them in the same manner. Also, note that |
| 4405 |
% |amsart| redefines the |enumerate| and |itemize| environments with a |
| 4406 |
% \cs{makelabel} command that uses \cs{llap}, so the \cs{labelwidth} |
| 4407 |
% value is~(effectively) irrelevant; nonetheless, we follow |amsart| |
| 4408 |
% and set \cs{labelwidth} to \cs{leftmargin} minus \cs{labelsep}. |
| 4409 |
% \begin{macrocode} |
| 4410 |
\newdimen\@ACM@labelwidth |
| 4411 |
\AtBeginDocument{% |
| 4412 |
\setlength\labelsep{4pt} |
| 4413 |
\setlength{\@ACM@labelwidth}{6.5pt} |
| 4414 |
|
| 4415 |
%% First-level list: when beginning after the first line of an |
| 4416 |
%% indented paragraph or ending before an indented paragraph, labels |
| 4417 |
%% should not hang to the left of the preceding/following text. |
| 4418 |
\setlength\leftmargini{\z@} |
| 4419 |
\addtolength\leftmargini{\parindent} |
| 4420 |
\addtolength\leftmargini{2\labelsep} |
| 4421 |
\addtolength\leftmargini{\@ACM@labelwidth} |
| 4422 |
|
| 4423 |
%% Second-level and higher lists. |
| 4424 |
\setlength\leftmarginii{\z@} |
| 4425 |
\addtolength\leftmarginii{0.5\labelsep} |
| 4426 |
\addtolength\leftmarginii{\@ACM@labelwidth} |
| 4427 |
\setlength\leftmarginiii{\leftmarginii} |
| 4428 |
\setlength\leftmarginiv{\leftmarginiii} |
| 4429 |
\setlength\leftmarginv{\leftmarginiv} |
| 4430 |
\setlength\leftmarginvi{\leftmarginv} |
| 4431 |
\@listi} |
| 4432 |
\newskip\listisep |
| 4433 |
\listisep\smallskipamount |
| 4434 |
\def\@listI{\leftmargin\leftmargini |
| 4435 |
\labelwidth\leftmargini \advance\labelwidth-\labelsep |
| 4436 |
\listparindent\z@ |
| 4437 |
\topsep\listisep} |
| 4438 |
\let\@listi\@listI |
| 4439 |
\def\@listii{\leftmargin\leftmarginii |
| 4440 |
\labelwidth\leftmarginii \advance\labelwidth-\labelsep |
| 4441 |
\topsep\z@skip} |
| 4442 |
\def\@listiii{\leftmargin\leftmarginiii |
| 4443 |
\labelwidth\leftmarginiii \advance\labelwidth-\labelsep} |
| 4444 |
\def\@listiv{\leftmargin\leftmarginiv |
| 4445 |
\labelwidth\leftmarginiv \advance\labelwidth-\labelsep} |
| 4446 |
\def\@listv{\leftmargin\leftmarginv |
| 4447 |
\labelwidth\leftmarginv \advance\labelwidth-\labelsep} |
| 4448 |
\def\@listvi{\leftmargin\leftmarginvi |
| 4449 |
\labelwidth\leftmarginvi \advance\labelwidth-\labelsep} |
| 4450 |
% \end{macrocode} |
| 4451 |
% |
| 4452 |
% |
| 4453 |
% \begin{macro}{\descriptionlabel} |
| 4454 |
% \changes{v1.37}{2017/05/13}{Reduce list indentation (Matthew Fluet)}% |
| 4455 |
% \changes{v1.12}{2016/05/30}{Redefined} |
| 4456 |
% We do not use a colon by default like |amsart| does: |
| 4457 |
% \begin{macrocode} |
| 4458 |
\renewcommand{\descriptionlabel}[1]{\upshape\bfseries #1} |
| 4459 |
% \end{macrocode} |
| 4460 |
% |
| 4461 |
% \end{macro} |
| 4462 |
% |
| 4463 |
% |
| 4464 |
% \begin{macro}{\description} |
| 4465 |
% \changes{v1.37}{2017/05/13}{Reduce list indentation (Matthew Fluet)}% |
| 4466 |
% \changes{v1.17}{2016/07/07}{Decreased indent} |
| 4467 |
% Make the |description| environment indentation consistent with that of |
| 4468 |
% the |itemize| and |enumerate| environments. |
| 4469 |
% \begin{macrocode} |
| 4470 |
\renewenvironment{description}{\list{}{% |
| 4471 |
\labelwidth\@ACM@labelwidth |
| 4472 |
\let\makelabel\descriptionlabel}% |
| 4473 |
}{ |
| 4474 |
\endlist |
| 4475 |
} |
| 4476 |
\let\enddescription=\endlist % for efficiency |
| 4477 |
% \end{macrocode} |
| 4478 |
% |
| 4479 |
% \end{macro} |
| 4480 |
% |
| 4481 |
% |
| 4482 |
%\subsection{Top-matter data} |
| 4483 |
%\label{sec:top_matter_data} |
| 4484 |
% |
| 4485 |
% \begin{macro}{\if@ACM@maketitle@typeset} |
| 4486 |
% \changes{v1.64}{2019/08/17}{Introduced macro} |
| 4487 |
% The switch to check whether \cs{maketitle} is already typeset. It |
| 4488 |
% is initally false, and setting top matter when it is true is wrong. |
| 4489 |
% \begin{macrocode} |
| 4490 |
\newif\if@ACM@maketitle@typeset |
| 4491 |
\@ACM@maketitle@typesetfalse |
| 4492 |
% \end{macrocode} |
| 4493 |
% |
| 4494 |
% \end{macro} |
| 4495 |
% |
| 4496 |
% \changes{v1.24}{2016/11/16}{Add IMWUT journal option} |
| 4497 |
% \changes{v1.25}{2016/12/03}{Updated PACMPL} |
| 4498 |
% \changes{v1.30}{2017/02/15}{Updated IMWUT and PACMPL} |
| 4499 |
% \changes{v1.36}{2017/05/13}{Added PACMHCI journal options} |
| 4500 |
% \changes{v1.46}{2017/08/25}{PACM now set screen to true} |
| 4501 |
% \changes{v1.53}{2018/04/14}{Added PACMCGIT, TIOT, TDSCI} |
| 4502 |
% \changes{v1.58}{2019/03/29}{Added HEALTH. TDSCI is renamed to TDS} |
| 4503 |
% \changes{1.70}{2020/02/22}{Name change for TDS} |
| 4504 |
% \changes{1.79}{2021/08/29}{Updated indormation for TAP, TCPS, TEAC} |
| 4505 |
% \changes{1.80}{2021/09/24}{Added DLT and FAC} |
| 4506 |
% \changes{1.82}{2022/02/05}{Updated abbreviations and codes for |
| 4507 |
% several journals} |
| 4508 |
% \changes{1.84}{2022/04/09}{New journals: JDS, GAMES} |
| 4509 |
% \changes{1.85}{2022/05/08}{New journal: JRC} |
| 4510 |
% \changes{1.87}{2022/10/18}{New journals: ACMJCSS, JATS, TORS} |
| 4511 |
% \changes{1.88}{2022/10/19}{Added ISSN for GAMES} |
| 4512 |
% \changes{1.88}{2022/10/23}{Added ISSN for ACMJCSS} |
| 4513 |
% \changes{1.88}{2022/10/24}{Added PACMNET} |
| 4514 |
% \changes{1.89}{2023/03/25}{Added PACMMOD} |
| 4515 |
% \changes{1.89}{2023/03/25}{Added TOPML} |
| 4516 |
% \changes{1.90}{2023/03/30}{Added TOPML eISSN} |
| 4517 |
% \changes{2.05}{2024/04/04}{New data for TELO} |
| 4518 |
% \changes{2.06}{2024/04/13}{Added eISSN for a number of journals} |
| 4519 |
% \changes{2.07}{2024/04/17}{Another change for TELO} |
| 4520 |
% \changes{2.15}{2025/08/21}{Added AILET, TAIS, TAISAP, ACMJDS} |
| 4521 |
% |
| 4522 |
% We use the |xkeyval| interface to define journal titles and the relevant |
| 4523 |
% information |
| 4524 |
% \begin{macrocode} |
| 4525 |
\define@choicekey*+{ACM}{acmJournal}[\@journalCode\@journalCode@nr]{% |
| 4526 |
ACMJCSS,% |
| 4527 |
ACMJDS,% |
| 4528 |
AILET,% |
| 4529 |
CIE,% |
| 4530 |
CSUR,% |
| 4531 |
DGOV,% |
| 4532 |
DLT,% |
| 4533 |
DTRAP,% |
| 4534 |
FAC,% |
| 4535 |
GAMES,% |
| 4536 |
HEALTH,% |
| 4537 |
IMWUT,% |
| 4538 |
JACM,% |
| 4539 |
JATS,% |
| 4540 |
JDIQ,% |
| 4541 |
JDS,% |
| 4542 |
JEA,% |
| 4543 |
JERIC,% |
| 4544 |
JETC,% |
| 4545 |
JOCCH,% |
| 4546 |
JRC,% |
| 4547 |
PACMCGIT,% |
| 4548 |
PACMHCI,% |
| 4549 |
PACMMOD,% |
| 4550 |
PACMNET,% |
| 4551 |
PACMPL,% |
| 4552 |
PACMSE,% |
| 4553 |
POMACS,% |
| 4554 |
TAAS,% |
| 4555 |
TACCESS,% |
| 4556 |
TACO,% |
| 4557 |
TAIS,% |
| 4558 |
TAISAP,% |
| 4559 |
TALG,% |
| 4560 |
TALLIP,% |
| 4561 |
TAP,% |
| 4562 |
TCPS,% |
| 4563 |
TDS,% |
| 4564 |
TEAC,% |
| 4565 |
TECS,% |
| 4566 |
TELO,% |
| 4567 |
THRI,% |
| 4568 |
TIIS,% |
| 4569 |
TIOT,% |
| 4570 |
TISSEC,% |
| 4571 |
TIST,% |
| 4572 |
TKDD,% |
| 4573 |
TMIS,% |
| 4574 |
TOCE,% |
| 4575 |
TOCHI,% |
| 4576 |
TOCL,% |
| 4577 |
TOCS,% |
| 4578 |
TOCT,% |
| 4579 |
TODAES,% |
| 4580 |
TODS,% |
| 4581 |
TOG,% |
| 4582 |
TOIS,% |
| 4583 |
TOIT,% |
| 4584 |
TOMACS,% |
| 4585 |
TOMM,% |
| 4586 |
TOMPECS,% |
| 4587 |
TOMS,% |
| 4588 |
TOPC,% |
| 4589 |
TOPLAS,% |
| 4590 |
TOPML,% |
| 4591 |
TOPS,% |
| 4592 |
TORS,% |
| 4593 |
TOS,% |
| 4594 |
TOSEM,% |
| 4595 |
TOSN,% |
| 4596 |
TQC,% |
| 4597 |
TRETS,% |
| 4598 |
TSAS,% |
| 4599 |
TSC,% |
| 4600 |
TSLP,% |
| 4601 |
TWEB,% |
| 4602 |
FACMP% |
| 4603 |
}{% |
| 4604 |
\ifcase\@journalCode@nr |
| 4605 |
\relax % ACMJCSS |
| 4606 |
\def\@journalName{ACM Journal on Computing and Sustainable Societies}% |
| 4607 |
\def\@journalNameShort{ACM J. Comput. Sustain. Soc.}% |
| 4608 |
\def\@permissionCodeOne{2834-5533}% |
| 4609 |
\def\@permissionCodeTwo{2834-5533}% |
| 4610 |
\or % ACMJCDS |
| 4611 |
\def\@journalName{ACM Journal of Data Science}% |
| 4612 |
\def\@journalNameShort{ACM J. Data Sci.}% |
| 4613 |
\def\@permissionCodeOne{0000-0000}% |
| 4614 |
\def\@permissionCodeTwo{0000-0000}% |
| 4615 |
\or % AILET |
| 4616 |
\def\@journalName{ACM AI Letters}% |
| 4617 |
\def\@journalNameShort{ACM AI Lett.}% |
| 4618 |
\def\@permissionCodeOne{3068-8590}% |
| 4619 |
\def\@permissionCodeTwo{3068-8590}% |
| 4620 |
\or % CIE |
| 4621 |
\def\@journalName{ACM Computers in Entertainment}% |
| 4622 |
\def\@journalNameShort{ACM Comput. Entertain.}% |
| 4623 |
\def\@permissionCodeOne{1544-3574}% |
| 4624 |
\or % CSUR |
| 4625 |
\def\@journalName{ACM Computing Surveys}% |
| 4626 |
\def\@journalNameShort{ACM Comput. Surv.}% |
| 4627 |
\def\@permissionCodeOne{0360-0300}% |
| 4628 |
\def\@permissionCodeTwo{1557-7341}% |
| 4629 |
\or % DGOV |
| 4630 |
\def\@journalName{Digital Government: Research and Practice}% |
| 4631 |
\def\@journalNameShort{Digit. Gov. Res. Pract.}% |
| 4632 |
\def\@permissionCodeOne{2639-0175}% |
| 4633 |
\def\@permissionCodeTwo{2639-0175}% |
| 4634 |
\or % DLT |
| 4635 |
\def\@journalName{Distributed Ledger Technologies: Research and Practice}% |
| 4636 |
\def\@journalNameShort{Distrib. Ledger Technol.}% |
| 4637 |
\def\@permissionCodeOne{2769-6472}% |
| 4638 |
\def\@permissionCodeTwo{2769-6480}% |
| 4639 |
\or % DTRAP |
| 4640 |
\def\@journalName{Digital Threats: Research and Practice}% |
| 4641 |
\def\@journalNameShort{Digit. Threat. Res. Pract.}% |
| 4642 |
\def\@permissionCodeOne{2576-5337}% |
| 4643 |
\def\@permissionCodeTwo{2576-5337}% |
| 4644 |
\or % FAC |
| 4645 |
\def\@journalName{Formal Aspects of Computing}% |
| 4646 |
\def\@journalNameShort{Form. Asp. Comput.}% |
| 4647 |
\def\@permissionCodeOne{0934-5043}% |
| 4648 |
\def\@permissionCodeTwo{1433-299X}% |
| 4649 |
\or % GAMES |
| 4650 |
\def\@journalName{ACM Games: Research and Practice}% |
| 4651 |
\def\@journalNameShort{ACM Games}% |
| 4652 |
\def\@permissionCodeOne{2832-5516}% |
| 4653 |
\def\@permissionCodeTwo{2832-5516}% |
| 4654 |
\or % HEALTH |
| 4655 |
\def\@journalName{ACM Transactions on Computing for Healthcare}% |
| 4656 |
\def\@journalNameShort{ACM Trans. Comput. Healthcare}% |
| 4657 |
\def\@permissionCodeOne{2637-8051}% |
| 4658 |
\def\@permissionCodeTwo{2637-8051}% |
| 4659 |
\or % IMWUT |
| 4660 |
\def\@journalName{Proceedings of the ACM on Interactive, Mobile, |
| 4661 |
Wearable and Ubiquitous Technologies}% |
| 4662 |
\def\@journalNameShort{Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.}% |
| 4663 |
\def\@permissionCodeOne{2474-9567}% |
| 4664 |
\def\@permissionCodeTwo{2474-9567}% |
| 4665 |
\@ACM@screentrue |
| 4666 |
\PackageInfo{\@classname}{Using screen mode due to \@journalCode}% |
| 4667 |
\or % JACM |
| 4668 |
\def\@journalName{Journal of the ACM}% |
| 4669 |
\def\@journalNameShort{J. ACM}% |
| 4670 |
\def\@permissionCodeOne{0004-5411}% |
| 4671 |
\def\@permissionCodeTwo{1557-735X}% |
| 4672 |
\or % JATS |
| 4673 |
\def\@journalName{Journal on Autonomous Transportation Systems}% |
| 4674 |
\def\@journalNameShort{ACM J. Auton. Transport. Syst.}% |
| 4675 |
\def\@permissionCodeOne{2833-0528}% |
| 4676 |
\def\@permissionCodeTwo{2833-0528}% |
| 4677 |
\or % JDIQ |
| 4678 |
\def\@journalName{ACM Journal of Data and Information Quality}% |
| 4679 |
\def\@journalNameShort{ACM J. Data Inform. Quality}% |
| 4680 |
\def\@permissionCodeOne{1936-1955}% |
| 4681 |
\def\@permissionCodeTwo{1936-1963}% |
| 4682 |
\or % JDS |
| 4683 |
\def\@journalName{ACM/IMS Journal of Data Science}% |
| 4684 |
\def\@journalNameShort{ACM/IMS J. Data Sci.}% |
| 4685 |
\def\@permissionCodeOne{2831-3194}% |
| 4686 |
\def\@permissionCodeTwo{2831-3194}% |
| 4687 |
\or % JEA |
| 4688 |
\def\@journalName{ACM Journal of Experimental Algorithmics}% |
| 4689 |
\def\@journalNameShort{ACM J. Exp. Algor.}% |
| 4690 |
\def\@permissionCodeOne{1084-6654}% |
| 4691 |
\def\@permissionCodeTwo{1084-6654}% |
| 4692 |
\or % JERIC |
| 4693 |
\def\@journalName{ACM Journal of Educational Resources in Computing}% |
| 4694 |
\def\@journalNameShort{ACM J. Edu. Resources in Comput.}% |
| 4695 |
\def\@permissionCodeOne{1073-0516}% |
| 4696 |
\or % JETC |
| 4697 |
\def\@journalName{ACM Journal on Emerging Technologies in Computing Systems}% |
| 4698 |
\def\@journalNameShort{ACM J. Emerg. Technol. Comput. Syst.}% |
| 4699 |
\def\@permissionCodeOne{1550-4832}% |
| 4700 |
\def\@permissionCodeTwo{1550-4840}% |
| 4701 |
\or % JOCCH |
| 4702 |
\def\@journalName{ACM Journal on Computing and Cultural Heritage}% |
| 4703 |
\def\@journalNameShort{ACM J. Comput. Cult. Herit.}% |
| 4704 |
\def\@permissionCodeOne{1556-4673}% |
| 4705 |
\def\@permissionCodeTwo{1556-4711}% |
| 4706 |
\or % JRC |
| 4707 |
\def\@journalName{ACM Journal on Responsible Computing}% |
| 4708 |
\def\@journalNameShort{ACM J. Responsib. Comput.}% |
| 4709 |
\def\@permissionCodeOne{2832-0565}% |
| 4710 |
\def\@permissionCodeTwo{2832-0565}% |
| 4711 |
\or % PACMCGIT |
| 4712 |
\def\@journalName{Proceedings of the ACM on Computer Graphics and Interactive Techniques}% |
| 4713 |
\def\@journalNameShort{Proc. ACM Comput. Graph. Interact. Tech.}% |
| 4714 |
\def\@permissionCodeOne{2577-6193}% |
| 4715 |
\def\@permissionCodeTwo{2577-6193}% |
| 4716 |
\@ACM@screentrue |
| 4717 |
\PackageInfo{\@classname}{Using screen mode due to \@journalCode}% |
| 4718 |
\or % PACMHCI |
| 4719 |
\def\@journalName{Proceedings of the ACM on Human-Computer Interaction}% |
| 4720 |
\def\@journalNameShort{Proc. ACM Hum.-Comput. Interact.}% |
| 4721 |
\def\@permissionCodeOne{2573-0142}% |
| 4722 |
\def\@permissionCodeTwo{2573-0142}% |
| 4723 |
\@ACM@screentrue |
| 4724 |
\PackageInfo{\@classname}{Using screen mode due to \@journalCode}% |
| 4725 |
\or % PACMMOD |
| 4726 |
\def\@journalName{Proceedings of the ACM on Management of Data}% |
| 4727 |
\def\@journalNameShort{Proc. ACM Manag. Data}% |
| 4728 |
\def\@permissionCodeOne{2836-6573}% |
| 4729 |
\def\@permissionCodeTwo{2836-6573}% |
| 4730 |
\or % PACMNET |
| 4731 |
\def\@journalName{Proceedings of the ACM on Networkng}% |
| 4732 |
\def\@journalNameShort{Proc. ACM Netw.}% |
| 4733 |
\def\@permissionCodeOne{2834-5509}% |
| 4734 |
\def\@permissionCodeTwo{2834-5509}% |
| 4735 |
\or % PACMPL |
| 4736 |
\def\@journalName{Proceedings of the ACM on Programming Languages}% |
| 4737 |
\def\@journalNameShort{Proc. ACM Program. Lang.}% |
| 4738 |
\def\@permissionCodeOne{2475-1421}% |
| 4739 |
\def\@permissionCodeTwo{2475-1421}% |
| 4740 |
\@ACM@screentrue |
| 4741 |
\PackageInfo{\@classname}{Using screen mode due to \@journalCode}% |
| 4742 |
\or % PACMSE |
| 4743 |
\def\@journalName{Proceedings of the ACM on Software Engineering}% |
| 4744 |
\def\@journalNameShort{Proc. ACM Softw. Eng.}% |
| 4745 |
\def\@permissionCodeOne{2994-970X}% |
| 4746 |
\def\@permissionCodeTwo{2994-970X}% |
| 4747 |
\@ACM@screentrue |
| 4748 |
\PackageInfo{\@classname}{Using screen mode due to \@journalCode}% |
| 4749 |
\or % POMACS |
| 4750 |
\def\@journalName{Proceedings of the ACM on Measurement and Analysis of Computing Systems}% |
| 4751 |
\def\@journalNameShort{Proc. ACM Meas. Anal. Comput. Syst.}% |
| 4752 |
\def\@permissionCodeOne{2476-1249}% |
| 4753 |
\def\@permissionCodeTwo{2476-1249}% |
| 4754 |
\@ACM@screentrue |
| 4755 |
\PackageInfo{\@classname}{Using screen mode due to \@journalCode}% |
| 4756 |
\or % TAAS |
| 4757 |
\def\@journalName{ACM Transactions on Autonomous and Adaptive Systems}% |
| 4758 |
\def\@journalNameShort{ACM Trans. Autonom. Adapt. Syst.}% |
| 4759 |
\def\@permissionCodeOne{1556-4665}% |
| 4760 |
\def\@permissionCodeTwo{1556-4703}% |
| 4761 |
\or % TACCESS |
| 4762 |
\def\@journalName{ACM Transactions on Accessible Computing}% |
| 4763 |
\def\@journalNameShort{ACM Trans. Access. Comput.}% |
| 4764 |
\def\@permissionCodeOne{1936-7228}% |
| 4765 |
\def\@permissionCodeTwo{1936-7236}% |
| 4766 |
\or % TACO |
| 4767 |
\def\@journalName{ACM Transactions on Architecture and Code Optimization}% |
| 4768 |
\def\@journalNameShort{ACM Trans. Arch. Code Optim.}% |
| 4769 |
\def\@permissionCodeOne{1544-3566}% |
| 4770 |
\def\@permissionCodeTwo{1544-3973}% |
| 4771 |
\or % TAIS |
| 4772 |
\def\@journalName{ACM Transactions on AI for Science}% |
| 4773 |
\def\@journalNameShort{ACM Trans. AI Sci.}% |
| 4774 |
\def\@permissionCodeOne{3066-4438}% |
| 4775 |
\def\@permissionCodeTwo{3066-4438}% |
| 4776 |
\or % TAISAP |
| 4777 |
\def\@journalName{ACM Transactions on AI Security and Privacy}% |
| 4778 |
\def\@journalNameShort{ACM Trans. AI Secur. Priv.}% |
| 4779 |
\def\@permissionCodeOne{3068-3564}% |
| 4780 |
\def\@permissionCodeTwo{3068-3564}% |
| 4781 |
\or % TALG |
| 4782 |
\def\@journalName{ACM Transactions on Algorithms}% |
| 4783 |
\def\@journalNameShort{ACM Trans. Algor.}% |
| 4784 |
\def\@permissionCodeOne{1549-6325}% |
| 4785 |
\def\@permissionCodeTwo{1549-6333}% |
| 4786 |
\or % TALLIP |
| 4787 |
\def\@journalName{ACM Transactions on Asian and Low-Resource Language Information Processing}% |
| 4788 |
\def\@journalNameShort{ACM Trans. Asian Low-Resour. Lang. Inf. Process.}% |
| 4789 |
\def\@permissionCodeOne{2375-4699}% |
| 4790 |
\def\@permissionCodeTwo{2375-4702}% |
| 4791 |
\or % TAP |
| 4792 |
\def\@journalName{ACM Transactions on Applied Perception}% |
| 4793 |
\def\@journalNameShort{ACM Trans. Appl. Percept.}% |
| 4794 |
\def\@permissionCodeOne{1544-3558}% |
| 4795 |
\def\@permissionCodeTwo{1544-3965}% |
| 4796 |
\or % TCPS |
| 4797 |
\def\@journalName{ACM Transactions on Cyber-Physical Systems}% |
| 4798 |
\def\@journalNameShort{ACM Trans. Cyber-Phys. Syst.}% |
| 4799 |
\def\@permissionCodeOne{2378-962X}% |
| 4800 |
\def\@permissionCodeTwo{2378-9638}% |
| 4801 |
\or % TDS |
| 4802 |
\def\@journalName{ACM/IMS Transactions on Data Science}% |
| 4803 |
\def\@journalNameShort{ACM/IMS Trans. Data Sci.}% |
| 4804 |
\def\@permissionCodeOne{2577-3224}% |
| 4805 |
\or % TEAC |
| 4806 |
\def\@journalName{ACM Transactions on Economics and Computation}% |
| 4807 |
\def\@journalNameShort{ACM Trans. Econ. Comput.}% |
| 4808 |
\def\@permissionCodeOne{2167-8375}% |
| 4809 |
\def\@permissionCodeTwo{2167-8383}% |
| 4810 |
\or % TECS |
| 4811 |
\def\@journalName{ACM Transactions on Embedded Computing Systems}% |
| 4812 |
\def\@journalNameShort{ACM Trans. Embedd. Comput. Syst.}% |
| 4813 |
\def\@permissionCodeOne{1539-9087}% |
| 4814 |
\def\@permissionCodeTwo{1558-3465}% |
| 4815 |
\or % TELO |
| 4816 |
\def\@journalName{ACM Transactions on Evolutionary Learning and Optimization}% |
| 4817 |
\def\@journalNameShort{ACM Trans. Evol. Learn. Optim.}% |
| 4818 |
\def\@permissionCodeOne{2688-299X}% |
| 4819 |
\def\@permissionCodeTwo{2688-3007}% |
| 4820 |
\or % THRI |
| 4821 |
\def\@journalName{ACM Transactions on Human-Robot Interaction}% |
| 4822 |
\def\@journalNameShort{ACM Trans. Hum.-Robot Interact.}% |
| 4823 |
\def\@permissionCodeOne{2573-9522}% |
| 4824 |
\def\@permissionCodeTwo{2573-9522}% |
| 4825 |
\or % TIIS |
| 4826 |
\def\@journalName{ACM Transactions on Interactive Intelligent Systems}% |
| 4827 |
\def\@journalNameShort{ACM Trans. Interact. Intell. Syst.}% |
| 4828 |
\def\@permissionCodeOne{2160-6455}% |
| 4829 |
\def\@permissionCodeTwo{2160-6463}% |
| 4830 |
\or % TIOT |
| 4831 |
\def\@journalName{ACM Transactions on Internet of Things}% |
| 4832 |
\def\@journalNameShort{ACM Trans. Internet Things}% |
| 4833 |
\def\@permissionCodeOne{2577-6207}% |
| 4834 |
\def\@permissionCodeTwo{2577-6207}% |
| 4835 |
\or % TISSEC |
| 4836 |
\def\@journalName{ACM Transactions on Information and System Security}% |
| 4837 |
\def\@journalNameShort{ACM Trans. Info. Syst. Sec.}% |
| 4838 |
\def\@permissionCodeOne{1094-9224}% |
| 4839 |
\or % TIST |
| 4840 |
\def\@journalName{ACM Transactions on Intelligent Systems and Technology}% |
| 4841 |
\def\@journalNameShort{ACM Trans. Intell. Syst. Technol.}% |
| 4842 |
\def\@permissionCodeOne{2157-6904}% |
| 4843 |
\def\@permissionCodeTwo{2157-6912}% |
| 4844 |
\or % TKDD |
| 4845 |
\def\@journalName{ACM Transactions on Knowledge Discovery from Data}% |
| 4846 |
\def\@journalNameShort{ACM Trans. Knowl. Discov. Data.}% |
| 4847 |
\def\@permissionCodeOne{1556-4681}% |
| 4848 |
\def\@permissionCodeTwo{1556-472X}% |
| 4849 |
\or % TMIS |
| 4850 |
\def\@journalName{ACM Transactions on Management Information Systems}% |
| 4851 |
\def\@journalNameShort{ACM Trans. Manag. Inform. Syst.}% |
| 4852 |
\def\@permissionCodeOne{2158-656X}% |
| 4853 |
\def\@permissionCodeTwo{2158-6578}% |
| 4854 |
\or % TOCE |
| 4855 |
\def\@journalName{ACM Transactions on Computing Education}% |
| 4856 |
\def\@journalNameShort{ACM Trans. Comput. Educ.}% |
| 4857 |
\def\@permissionCodeOne{1946-6226}% |
| 4858 |
\def\@permissionCodeTwo{1946-6226}% |
| 4859 |
\or % TOCHI |
| 4860 |
\def\@journalName{ACM Transactions on Computer-Human Interaction}% |
| 4861 |
\def\@journalNameShort{ACM Trans. Comput.-Hum. Interact.}% |
| 4862 |
\def\@permissionCodeOne{1073-0516}% |
| 4863 |
\def\@permissionCodeTwo{1557-7325}% |
| 4864 |
\or % TOCL |
| 4865 |
\def\@journalName{ACM Transactions on Computational Logic}% |
| 4866 |
\def\@journalNameShort{ACM Trans. Comput. Logic}% |
| 4867 |
\def\@permissionCodeOne{1529-3785}% |
| 4868 |
\def\@permissionCodeTwo{1557-945X}% |
| 4869 |
\or % TOCS |
| 4870 |
\def\@journalName{ACM Transactions on Computer Systems}% |
| 4871 |
\def\@journalNameShort{ACM Trans. Comput. Syst.}% |
| 4872 |
\def\@permissionCodeOne{0734-2071}% |
| 4873 |
\def\@permissionCodeTwo{1557-7333}% |
| 4874 |
\or % TOCT |
| 4875 |
\def\@journalName{ACM Transactions on Computation Theory}% |
| 4876 |
\def\@journalNameShort{ACM Trans. Comput. Theory}% |
| 4877 |
\def\@permissionCodeOne{1942-3454}% |
| 4878 |
\def\@permissionCodeTwo{1942-3462}% |
| 4879 |
\or % TODAES |
| 4880 |
\def\@journalName{ACM Transactions on Design Automation of Electronic Systems}% |
| 4881 |
\def\@journalNameShort{ACM Trans. Des. Autom. Electron. Syst.}% |
| 4882 |
\def\@permissionCodeOne{1084-4309}% |
| 4883 |
\def\@permissionCodeTwo{1557-7309}% |
| 4884 |
\or % TODS |
| 4885 |
\def\@journalName{ACM Transactions on Database Systems}% |
| 4886 |
\def\@journalNameShort{ACM Trans. Datab. Syst.}% |
| 4887 |
\def\@permissionCodeOne{0362-5915}% |
| 4888 |
\def\@permissionCodeTwo{1557-4644}% |
| 4889 |
\or % TOG |
| 4890 |
\def\@journalName{ACM Transactions on Graphics}% |
| 4891 |
\def\@journalNameShort{ACM Trans. Graph.}% |
| 4892 |
\def\@permissionCodeOne{0730-0301}% |
| 4893 |
\def\@permissionCodeTwo{1557-7368}% |
| 4894 |
\or % TOIS |
| 4895 |
\def\@journalName{ACM Transactions on Information Systems}% |
| 4896 |
\def\@journalNameShort{ACM Trans. Inf. Syst.}% |
| 4897 |
\def\@permissionCodeOne{1046-8188}% |
| 4898 |
\def\@permissionCodeTwo{1558-2868}% |
| 4899 |
\or % TOIT |
| 4900 |
\def\@journalName{ACM Transactions on Internet Technology}% |
| 4901 |
\def\@journalNameShort{ACM Trans. Internet Technol.}% |
| 4902 |
\def\@permissionCodeOne{1533-5399}% |
| 4903 |
\def\@permissionCodeTwo{1557-6051}% |
| 4904 |
\or % TOMACS |
| 4905 |
\def\@journalName{ACM Transactions on Modeling and Computer Simulation}% |
| 4906 |
\def\@journalNameShort{ACM Trans. Model. Comput. Simul.}% |
| 4907 |
\def\@permissionCodeOne{1049-3301}% |
| 4908 |
\def\@permissionCodeTwo{1558-1195}% |
| 4909 |
\or % TOMM |
| 4910 |
\def\@journalName{ACM Transactions on Multimedia Computing, Communications and Applications}% |
| 4911 |
\def\@journalNameShort{ACM Trans. Multimedia Comput. Commun. Appl.}% |
| 4912 |
\def\@permissionCodeOne{1551-6857}% |
| 4913 |
\def\@permissionCodeTwo{1551-6865}% |
| 4914 |
\or % TOMPECS |
| 4915 |
\def\@journalName{ACM Transactions on Modeling and Performance Evaluation of Computing Systems}% |
| 4916 |
\def\@journalNameShort{ACM Trans. Model. Perform. Eval. Comput. Syst.}% |
| 4917 |
\def\@permissionCodeOne{2376-3639}% |
| 4918 |
\def\@permissionCodeTwo{2376-3647}% |
| 4919 |
\or % TOMS |
| 4920 |
\def\@journalName{ACM Transactions on Mathematical Software}% |
| 4921 |
\def\@journalNameShort{ACM Trans. Math. Softw.}% |
| 4922 |
\def\@permissionCodeOne{0098-3500}% |
| 4923 |
\def\@permissionCodeTwo{1557-7295}% |
| 4924 |
\or % TOPC |
| 4925 |
\def\@journalName{ACM Transactions on Parallel Computing}% |
| 4926 |
\def\@journalNameShort{ACM Trans. Parallel Comput.}% |
| 4927 |
\def\@permissionCodeOne{2329-4949}% |
| 4928 |
\def\@permissionCodeTwo{2329-4957}% |
| 4929 |
\or % TOPLAS |
| 4930 |
\def\@journalName{ACM Transactions on Programming Languages and Systems}% |
| 4931 |
\def\@journalNameShort{ACM Trans. Program. Lang. Syst.}% |
| 4932 |
\def\@permissionCodeOne{0164-0925}% |
| 4933 |
\def\@permissionCodeTwo{1558-4593}% |
| 4934 |
\or % TOPML |
| 4935 |
\def\@journalName{ACM Transactions on Probabilistic Machine Learning}% |
| 4936 |
\def\@journalNameShort{ACM Trans. Probab. Mach. Learn.}% |
| 4937 |
\def\@permissionCodeOne{2836-8924}% |
| 4938 |
\def\@permissionCodeTwo{2836-8924}% |
| 4939 |
\or % TOPS |
| 4940 |
\def\@journalName{ACM Transactions on Privacy and Security}% |
| 4941 |
\def\@journalNameShort{ACM Trans. Priv. Sec.}% |
| 4942 |
\def\@permissionCodeOne{2471-2566}% |
| 4943 |
\def\@permissionCodeTwo{2471-2574}% |
| 4944 |
\or % TORS |
| 4945 |
\def\@journalName{ACM Transactions on Recommender Systems}% |
| 4946 |
\def\@journalNameShort{ACM Trans. Recomm. Syst.}% |
| 4947 |
\def\@permissionCodeOne{2770-6699}% |
| 4948 |
\def\@permissionCodeTwo{2770-6699}% |
| 4949 |
\or % TOS |
| 4950 |
\def\@journalName{ACM Transactions on Storage}% |
| 4951 |
\def\@journalNameShort{ACM Trans. Storage}% |
| 4952 |
\def\@permissionCodeOne{1553-3077}% |
| 4953 |
\def\@permissionCodeTwo{1553-3093}% |
| 4954 |
\or % TOSEM |
| 4955 |
\def\@journalName{ACM Transactions on Software Engineering and Methodology}% |
| 4956 |
\def\@journalNameShort{ACM Trans. Softw. Eng. Methodol.}% |
| 4957 |
\def\@permissionCodeOne{1049-331X}% |
| 4958 |
\def\@permissionCodeTwo{1557-7392}% |
| 4959 |
\or % TOSN |
| 4960 |
\def\@journalName{ACM Transactions on Sensor Networks}% |
| 4961 |
\def\@journalNameShort{ACM Trans. Sensor Netw.}% |
| 4962 |
\def\@permissionCodeOne{1550-4859}% |
| 4963 |
\def\@permissionCodeTwo{1550-4867}% |
| 4964 |
\or % TQC |
| 4965 |
\def\@journalName{ACM Transactions on Quantum Computing}% |
| 4966 |
\def\@journalNameShort{ACM Trans. Quantum Comput.}% |
| 4967 |
\def\@permissionCodeOne{2643-6817}% |
| 4968 |
\def\@permissionCodeTwo{2643-6817}% |
| 4969 |
\or % TRETS |
| 4970 |
\def\@journalName{ACM Transactions on Reconfigurable Technology and Systems}% |
| 4971 |
\def\@journalNameShort{ACM Trans. Reconfig. Technol. Syst.}% |
| 4972 |
\def\@permissionCodeOne{1936-7406}% |
| 4973 |
\def\@permissionCodeTwo{1936-7414}% |
| 4974 |
\or % TSAS |
| 4975 |
\def\@journalName{ACM Transactions on Spatial Algorithms and Systems}% |
| 4976 |
\def\@journalNameShort{ACM Trans. Spatial Algorithms Syst.}% |
| 4977 |
\def\@permissionCodeOne{2374-0353}% |
| 4978 |
\def\@permissionCodeTwo{2374-0361}% |
| 4979 |
\or % TSC |
| 4980 |
\def\@journalName{ACM Transactions on Social Computing}% |
| 4981 |
\def\@journalNameShort{ACM Trans. Soc. Comput.}% |
| 4982 |
\def\@permissionCodeOne{2469-7818}% |
| 4983 |
\def\@permissionCodeTwo{2469-7826}% |
| 4984 |
\or % TSLP |
| 4985 |
\def\@journalName{ACM Transactions on Speech and Language Processing}% |
| 4986 |
\def\@journalNameShort{ACM Trans. Speech Lang. Process.}% |
| 4987 |
\def\@permissionCodeOne{1550-4875}% |
| 4988 |
\def\@permissionCodeTwo{2329-9304}% |
| 4989 |
\or % TWEB |
| 4990 |
\def\@journalName{ACM Transactions on the Web}% |
| 4991 |
\def\@journalNameShort{ACM Trans. Web}% |
| 4992 |
\def\@permissionCodeOne{1559-1131}% |
| 4993 |
\def\@permissionCodeTwo{1559-114X}% |
| 4994 |
\else % FACMP, a dummy journal |
| 4995 |
\def\@journalName{ACM Just Accepted}% |
| 4996 |
\def\@journalNameShort{ACM Accepted}% |
| 4997 |
\def\@permissionCodeOne{XXXX-XXXX}% |
| 4998 |
\fi |
| 4999 |
\ClassInfo{\@classname}{Using journal code \@journalCode}% |
| 5000 |
}{% |
| 5001 |
\ClassError{\@classname}{Incorrect journal #1}% |
| 5002 |
}% |
| 5003 |
% \end{macrocode} |
| 5004 |
% \begin{macro}{\acmJournal} |
| 5005 |
% \changes{v1.59}{2019/04/20}{Setting \cs{@ACM@journal@bibstrip}} |
| 5006 |
% And the syntactic sugar around it |
| 5007 |
% \begin{macrocode} |
| 5008 |
\def\acmJournal#1{\setkeys{ACM}{acmJournal=#1}% |
| 5009 |
\global\@ACM@journal@bibstriptrue |
| 5010 |
\global\@ACM@journal@bibstrip@or@togtrue} |
| 5011 |
% \end{macrocode} |
| 5012 |
% |
| 5013 |
% \end{macro} |
| 5014 |
% |
| 5015 |
% The defaults: |
| 5016 |
% \changes{v2.04}{2024/03/17}{eISSN is printed, rather than pSSN} |
| 5017 |
% \begin{macrocode} |
| 5018 |
\def\@journalCode@nr{0} |
| 5019 |
\def\@journalName{}% |
| 5020 |
\def\@journalNameShort{\@journalName}% |
| 5021 |
\def\@permissionCodeOne{XXXX-XXXX}% |
| 5022 |
\def\@permissionCodeTwo{\@permissionCodeOne}% |
| 5023 |
% \end{macrocode} |
| 5024 |
% |
| 5025 |
% |
| 5026 |
% \begin{macro}{\acmConference} |
| 5027 |
% \changes{v1.59}{2019/04/20}{Setting \cs{@ACM@journal@bibstrip}} |
| 5028 |
% \changes{v2.02}{2024/01/06}{Moved here setting the conference title |
| 5029 |
% for bibstrip} |
| 5030 |
% \changes{v2.03}{2024/02/04}{Made setting bibstrip overriding journal} |
| 5031 |
% This is the conference command |
| 5032 |
% \begin{macrocode} |
| 5033 |
\newcommand\acmConference[4][]{% |
| 5034 |
\gdef\acmConference@shortname{#1}% |
| 5035 |
\gdef\acmConference@name{#2}% |
| 5036 |
\gdef\acmConference@date{#3}% |
| 5037 |
\gdef\acmConference@venue{#4}% |
| 5038 |
\ifx\acmConference@shortname\@empty |
| 5039 |
\gdef\acmConference@shortname{#2}% |
| 5040 |
\fi |
| 5041 |
\global\@ACM@journal@bibstripfalse |
| 5042 |
\ifx\@acmBooktitle\@empty\relax |
| 5043 |
\acmBooktitle{Proceedings of \acmConference@name |
| 5044 |
\ifx\acmConference@name\acmConference@shortname\else |
| 5045 |
\ (\acmConference@shortname)\fi}% |
| 5046 |
\fi |
| 5047 |
} |
| 5048 |
\if@ACM@journal\else |
| 5049 |
\acmConference[Conference'17]{ACM Conference}{July 2017}{Washington, |
| 5050 |
DC, USA}% |
| 5051 |
\fi |
| 5052 |
% \end{macrocode} |
| 5053 |
% |
| 5054 |
% \end{macro} |
| 5055 |
% |
| 5056 |
% \begin{macro}{\acmBooktitle} |
| 5057 |
% \changes{v1.44}{2017/08/11}{Added macro} |
| 5058 |
% \changes{v2.01}{2024/01/06}{Moved default conference title to |
| 5059 |
% conference setting} |
| 5060 |
% \begin{macro}{\@acmBooktitle} |
| 5061 |
% \changes{v1.44}{2017/08/11}{Added macro} |
| 5062 |
% The book title of the conference: |
| 5063 |
% \begin{macrocode} |
| 5064 |
\def\acmBooktitle#1{\gdef\@acmBooktitle{#1}} |
| 5065 |
\acmBooktitle{} |
| 5066 |
% \end{macrocode} |
| 5067 |
% |
| 5068 |
% \end{macro} |
| 5069 |
% \end{macro} |
| 5070 |
% |
| 5071 |
% \begin{macro}{\@editorsAbbrev} |
| 5072 |
% \changes{v1.44}{2017/08/11}{Added macro} |
| 5073 |
% How to abbreviate editors |
| 5074 |
% \begin{macrocode} |
| 5075 |
\def\@editorsAbbrev{(Ed.)} |
| 5076 |
% \end{macrocode} |
| 5077 |
% |
| 5078 |
% \end{macro} |
| 5079 |
% |
| 5080 |
% \begin{macro}{\@acmEditors} |
| 5081 |
% \changes{v1.44}{2017/08/11}{Added macro} |
| 5082 |
% The list of editors |
| 5083 |
% \begin{macrocode} |
| 5084 |
\def\@acmEditors{} |
| 5085 |
% \end{macrocode} |
| 5086 |
% |
| 5087 |
% \end{macro} |
| 5088 |
% |
| 5089 |
% \begin{macro}{\editor} |
| 5090 |
% \changes{v1.44}{2017/08/11}{Added macro} |
| 5091 |
% Add a new editor to the list |
| 5092 |
% \begin{macrocode} |
| 5093 |
\def\editor#1{\ifx\@acmEditors\@empty |
| 5094 |
\gdef\@acmEditors{#1}% |
| 5095 |
\else |
| 5096 |
\gdef\@editorsAbbrev{(Eds.)}% |
| 5097 |
\g@addto@macro\@acmEditors{\and#1}% |
| 5098 |
\fi} |
| 5099 |
% \end{macrocode} |
| 5100 |
% |
| 5101 |
% \end{macro} |
| 5102 |
% |
| 5103 |
% \begin{macro}{\subtitle} |
| 5104 |
% The subtitle macro |
| 5105 |
% \begin{macrocode} |
| 5106 |
\def\subtitle#1{\def\@subtitle{#1}} |
| 5107 |
\subtitle{} |
| 5108 |
% \end{macrocode} |
| 5109 |
% |
| 5110 |
% \end{macro} |
| 5111 |
% |
| 5112 |
% |
| 5113 |
% \begin{macro}{\num@authorgroups} |
| 5114 |
% \changes{v1.15}{2016/06/25}{Renamed} |
| 5115 |
% The total number of ``groups''. Each group is several authors with |
| 5116 |
% the same affiliations(s) |
| 5117 |
% \begin{macrocode} |
| 5118 |
\newcount\num@authorgroups |
| 5119 |
\num@authorgroups=0\relax |
| 5120 |
% \end{macrocode} |
| 5121 |
% |
| 5122 |
% \end{macro} |
| 5123 |
% |
| 5124 |
% \begin{macro}{\num@authors} |
| 5125 |
% \changes{v1.46}{2017/08/27}{Introduced macro} |
| 5126 |
% The total number of authors |
| 5127 |
% \begin{macrocode} |
| 5128 |
\newcount\num@authors |
| 5129 |
\num@authors=0\relax |
| 5130 |
% \end{macrocode} |
| 5131 |
% |
| 5132 |
% \end{macro} |
| 5133 |
% |
| 5134 |
% |
| 5135 |
% |
| 5136 |
% |
| 5137 |
% \begin{macro}{\if@insideauthorgroup} |
| 5138 |
% \changes{v1.15}{2016/06/25}{Introduced macro} |
| 5139 |
% Whether we are continuing an author group |
| 5140 |
% \begin{macrocode} |
| 5141 |
\newif\if@insideauthorgroup |
| 5142 |
\@insideauthorgroupfalse |
| 5143 |
% \end{macrocode} |
| 5144 |
% |
| 5145 |
% \end{macro} |
| 5146 |
% |
| 5147 |
% \begin{macro}{\author} |
| 5148 |
% \changes{v1.15}{2016/06/25}{Added code for author groups} |
| 5149 |
% \changes{v1.46}{2017/08/27}{Started counting authors} |
| 5150 |
% \changes{v1.54}{2018/06/23}{Added submission id in anonymous mode} |
| 5151 |
% \changes{v1.57}{2018/12/09}{Added warning if \cs{author} has comma} |
| 5152 |
% \changes{v1.72}{2020/05/04}{Added \cs{detokenize} (Kuldeep S. Meel)} |
| 5153 |
% \changes{v1.76}{2021/03/15}{Added code for orcid links} |
| 5154 |
% Adding an author to the list of authors and addresses. |
| 5155 |
% |
| 5156 |
% Note that we want to typeset the link to the author's orcid if |
| 5157 |
% known. The problem is, we know the orcid only after the author is |
| 5158 |
% entered. The trick is based on the idea that |\csname...\endcsname| |
| 5159 |
% is \cs{relax} unless defined. Therefore we typeset authors by the |
| 5160 |
% special macro |\csname typeset@author\the\num@authors\endcsname|, |
| 5161 |
% which is defined by \cs{orcid} command. |
| 5162 |
% \begin{macrocode} |
| 5163 |
\renewcommand\author[2][]{% |
| 5164 |
\IfSubStr{\detokenize{#2}}{,}{\ClassWarning{\@classname}{Do not put several |
| 5165 |
authors in the same \string\author\space macro!}}{}% |
| 5166 |
\global\advance\num@authors by 1\relax |
| 5167 |
\if@insideauthorgroup\else |
| 5168 |
\global\advance\num@authorgroups by 1\relax |
| 5169 |
\global\@insideauthorgrouptrue |
| 5170 |
\fi |
| 5171 |
\ifx\addresses\@empty |
| 5172 |
\if@ACM@anonymous |
| 5173 |
\gdef\addresses{\@author{Anonymous Author(s)% |
| 5174 |
\ifx\@acmSubmissionID\@empty\else\\Submission Id: |
| 5175 |
\@acmSubmissionID\fi}}% |
| 5176 |
\gdef\authors{Anonymous Author(s)}% |
| 5177 |
\else |
| 5178 |
\expandafter\gdef\expandafter\addresses\expandafter{% |
| 5179 |
\expandafter\@author\expandafter{% |
| 5180 |
\csname typeset@author\the\num@authors\endcsname{#2}}}% |
| 5181 |
\gdef\authors{#2}% |
| 5182 |
\fi |
| 5183 |
\else |
| 5184 |
\if@ACM@anonymous\else |
| 5185 |
\expandafter\g@addto@macro\expandafter\addresses\expandafter{% |
| 5186 |
\expandafter\and\expandafter\@author\expandafter{% |
| 5187 |
\csname typeset@author\the\num@authors\endcsname{#2}}}% |
| 5188 |
\g@addto@macro\authors{\and#2}% |
| 5189 |
\fi |
| 5190 |
\fi |
| 5191 |
\if@ACM@anonymous |
| 5192 |
\ifx\shortauthors\@empty |
| 5193 |
\gdef\shortauthors{Anon. |
| 5194 |
\ifx\@acmSubmissionID\@empty\else Submission Id: |
| 5195 |
\@acmSubmissionID\fi}% |
| 5196 |
\fi |
| 5197 |
\else |
| 5198 |
\def\@tempa{#1}% |
| 5199 |
\ifx\@tempa\@empty |
| 5200 |
\ifx\shortauthors\@empty |
| 5201 |
\gdef\shortauthors{#2}% |
| 5202 |
\else |
| 5203 |
\g@addto@macro\shortauthors{\and#2}% |
| 5204 |
\fi |
| 5205 |
\else |
| 5206 |
\ifx\shortauthors\@empty |
| 5207 |
\gdef\shortauthors{#1}% |
| 5208 |
\else |
| 5209 |
\g@addto@macro\shortauthors{\and#1}% |
| 5210 |
\fi |
| 5211 |
\fi |
| 5212 |
\fi} |
| 5213 |
% \end{macrocode} |
| 5214 |
% |
| 5215 |
% \end{macro} |
| 5216 |
% |
| 5217 |
% |
| 5218 |
% \begin{macro}{\affiliation} |
| 5219 |
% \changes{v1.15}{2016/06/25}{Added code for author groups} |
| 5220 |
% The macro \cs{affiliation} mimics \cs{address} from |amsart|. |
| 5221 |
% Note that it has an optional argument, which we use differently |
| 5222 |
% from |amsart|. |
| 5223 |
% \begin{macrocode} |
| 5224 |
\newcommand{\affiliation}[2][]{% |
| 5225 |
\global\@insideauthorgroupfalse |
| 5226 |
\if@ACM@anonymous\else |
| 5227 |
\g@addto@macro\addresses{\affiliation{#1}{#2}}% |
| 5228 |
\fi} |
| 5229 |
% \end{macrocode} |
| 5230 |
% |
| 5231 |
% \end{macro} |
| 5232 |
% |
| 5233 |
% \begin{macro}{\if@ACM@affiliation@obeypunctuation} |
| 5234 |
% \changes{v1.33}{2017/03/28}{Added macro} |
| 5235 |
% Whether to use the author's punctuation (false by default, which adds |
| 5236 |
% American-style address punctuation) |
| 5237 |
% \begin{macrocode} |
| 5238 |
\define@boolkey+{@ACM@affiliation@}[@ACM@affiliation@]{obeypunctuation}% |
| 5239 |
[true]{}{\ClassError{\@classname}{The option obeypunctuation can be either true or false}} |
| 5240 |
% \end{macrocode} |
| 5241 |
% |
| 5242 |
% \end{macro} |
| 5243 |
% |
| 5244 |
% |
| 5245 |
% |
| 5246 |
% \begin{macro}{\additionalaffiliation} |
| 5247 |
% \changes{v1.31}{2017/03/04}{Added macro} |
| 5248 |
% Additional affiliations go to footnotes |
| 5249 |
% \begin{macrocode} |
| 5250 |
\def\additionalaffiliation#1{\authornote{\@additionalaffiliation{#1}}} |
| 5251 |
% \end{macrocode} |
| 5252 |
% |
| 5253 |
% \end{macro} |
| 5254 |
% |
| 5255 |
% \begin{macro}{\@additionalaffiliation} |
| 5256 |
% \changes{v1.31}{2017/03/04}{Added macro} |
| 5257 |
% Process \cs{additionalaffiliation} inside \cs{authornote} |
| 5258 |
% \begin{macrocode} |
| 5259 |
\def\@additionalaffiliation#1{\bgroup |
| 5260 |
\def\position##1{\ignorespaces}% |
| 5261 |
\def\institution##1{##1\ignorespaces}% |
| 5262 |
\def\department{\@ifnextchar[{\@department}{\@department[]}}% |
| 5263 |
\def\@department[##1]##2{##2, \ignorespaces}% |
| 5264 |
\let\city\position |
| 5265 |
\let\state\position |
| 5266 |
\let\country\position |
| 5267 |
Also with #1\unskip.\egroup} |
| 5268 |
% \end{macrocode} |
| 5269 |
% \end{macro} |
| 5270 |
% |
| 5271 |
% \begin{macro}{\email} |
| 5272 |
% \changes{v1.57}{2018/12/09}{Added warning if \cs{author} has comma} |
| 5273 |
% The macro \cs{email} mimics \cs{email} from |amsart|. |
| 5274 |
% Again, it has an optional argument that we do not currently need |
| 5275 |
% but keep for possible future use. |
| 5276 |
% \begin{macrocode} |
| 5277 |
\renewcommand{\email}[2][]{% |
| 5278 |
\IfSubStr{#2}{,}{\ClassWarning{\@classname}{Do not put several |
| 5279 |
addresses in the same \string\email\space macro!}}{}% |
| 5280 |
\if@ACM@anonymous\else |
| 5281 |
\g@addto@macro\addresses{\email{#1}{#2}}% |
| 5282 |
\fi} |
| 5283 |
% \end{macrocode} |
| 5284 |
% |
| 5285 |
% \end{macro} |
| 5286 |
% |
| 5287 |
% \begin{macro}{\orcid} |
| 5288 |
% \changes{v1.15}{2016/06/25}{Introduced macro} |
| 5289 |
% \changes{v1.76}{2021/03/15}{Added code for orcid links} |
| 5290 |
% \changes{2.13}{2025/01/15}{Protected orchidcite against uppercasing} |
| 5291 |
% We redefine the command to typeset the current author |
| 5292 |
% \begin{macrocode} |
| 5293 |
\def\orcid#1{\unskip\ignorespaces% |
| 5294 |
\protected\def\orcidsite{https://orcid.org/}% |
| 5295 |
\IfBeginWith{#1}{http}{% |
| 5296 |
\expandafter\gdef\csname |
| 5297 |
typeset@author\the\num@authors\endcsname##1{% |
| 5298 |
\href{#1}{##1}}}{% |
| 5299 |
\expandafter\gdef\csname |
| 5300 |
typeset@author\the\num@authors\endcsname##1{% |
| 5301 |
\href{\orcidsite#1}{##1}}}} |
| 5302 |
% \end{macrocode} |
| 5303 |
% |
| 5304 |
% \end{macro} |
| 5305 |
% |
| 5306 |
% \begin{macro}{\authorsaddresses} |
| 5307 |
% \changes{v1.46}{2017/08/27}{Introduced macro} |
| 5308 |
% Setting up authors' addresses |
| 5309 |
% \begin{macrocode} |
| 5310 |
\def\authorsaddresses#1{\def\@authorsaddresses{#1}} |
| 5311 |
\authorsaddresses{\@mkauthorsaddresses} |
| 5312 |
% \end{macrocode} |
| 5313 |
% |
| 5314 |
% \end{macro} |
| 5315 |
% |
| 5316 |
% \begin{macro}{\@mktranslatedkeywords} |
| 5317 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 5318 |
% We have two argument: the language to typeset keywords and the |
| 5319 |
% keywords. |
| 5320 |
% \begin{macrocode} |
| 5321 |
\newcommand\@mktranslatedkeywords[2]{\bgroup |
| 5322 |
\selectlanguage{#1}% |
| 5323 |
{\@specialsection{\keywordsname}% |
| 5324 |
\noindent#2\par}\egroup} |
| 5325 |
% \end{macrocode} |
| 5326 |
% |
| 5327 |
% \end{macro} |
| 5328 |
% |
| 5329 |
% \begin{macro}{\@titlenotes} |
| 5330 |
% The title notes |
| 5331 |
% \begin{macrocode} |
| 5332 |
\def\@titlenotes{} |
| 5333 |
% \end{macrocode} |
| 5334 |
% |
| 5335 |
% \end{macro} |
| 5336 |
% |
| 5337 |
% \begin{macro}{\titlenote} |
| 5338 |
% Adding a note to the title |
| 5339 |
% \begin{macrocode} |
| 5340 |
\def\titlenote#1{% |
| 5341 |
\g@addto@macro\@title{\footnotemark}% |
| 5342 |
\if@ACM@anonymous |
| 5343 |
\g@addto@macro\@titlenotes{% |
| 5344 |
\stepcounter{footnote}\footnotetext{Title note}}% |
| 5345 |
\else |
| 5346 |
\g@addto@macro\@titlenotes{\stepcounter{footnote}\footnotetext{#1}}% |
| 5347 |
\fi} |
| 5348 |
% \end{macrocode} |
| 5349 |
% |
| 5350 |
% \end{macro} |
| 5351 |
% |
| 5352 |
% \begin{macro}{\@subtitlenotes} |
| 5353 |
% The subtitle notes |
| 5354 |
% \begin{macrocode} |
| 5355 |
\def\@subtitlenotes{} |
| 5356 |
% \end{macrocode} |
| 5357 |
% |
| 5358 |
% \end{macro} |
| 5359 |
% |
| 5360 |
% \begin{macro}{\subtitlenote} |
| 5361 |
% Adding a note to the subtitle |
| 5362 |
% \begin{macrocode} |
| 5363 |
\def\subtitlenote#1{% |
| 5364 |
\g@addto@macro\@subtitle{\footnotemark}% |
| 5365 |
\if@ACM@anonymous |
| 5366 |
\g@addto@macro\@subtitlenotes{% |
| 5367 |
\stepcounter{footnote}\footnotetext{Subtitle note}}% |
| 5368 |
\else |
| 5369 |
\g@addto@macro\@subtitlenotes{% |
| 5370 |
\stepcounter{footnote}\footnotetext{#1}}% |
| 5371 |
\fi} |
| 5372 |
% \end{macrocode} |
| 5373 |
% |
| 5374 |
% \end{macro} |
| 5375 |
% |
| 5376 |
% \begin{macro}{\@authornotes} |
| 5377 |
% The author notes |
| 5378 |
% \begin{macrocode} |
| 5379 |
\def\@authornotes{} |
| 5380 |
% \end{macrocode} |
| 5381 |
% |
| 5382 |
% \end{macro} |
| 5383 |
% |
| 5384 |
% |
| 5385 |
% \begin{macro}{\authornote} |
| 5386 |
% Adding a note to the author |
| 5387 |
% \begin{macrocode} |
| 5388 |
\def\authornote#1{% |
| 5389 |
\if@ACM@anonymous\else |
| 5390 |
\g@addto@macro\addresses{\@authornotemark}% |
| 5391 |
\g@addto@macro\@authornotes{% |
| 5392 |
\stepcounter{footnote}\footnotetext{#1}}% |
| 5393 |
\fi} |
| 5394 |
% \end{macrocode} |
| 5395 |
% |
| 5396 |
% \end{macro} |
| 5397 |
% |
| 5398 |
% \begin{macro}{\authornotemark} |
| 5399 |
% \changes{v1.39}{2017/05/14}{Added macro} |
| 5400 |
% Adding a footnote mark to the authors |
| 5401 |
% \begin{macrocode} |
| 5402 |
\newcommand\authornotemark[1][\relax]{% |
| 5403 |
\if@ACM@anonymous\else |
| 5404 |
\ifx#1\relax\relax\relax |
| 5405 |
\g@addto@macro\addresses{\@authornotemark}% |
| 5406 |
\else |
| 5407 |
\g@addto@macro\addresses{\@@authornotemark{#1}}% |
| 5408 |
\fi |
| 5409 |
\fi} |
| 5410 |
% \end{macrocode} |
| 5411 |
% |
| 5412 |
% \end{macro} |
| 5413 |
% |
| 5414 |
% \begin{macro}{\acmVolume} |
| 5415 |
% \changes{v1.17}{2016/07/10}{The default is now numerical} |
| 5416 |
% The current volume |
| 5417 |
% \begin{macrocode} |
| 5418 |
\def\acmVolume#1{\def\@acmVolume{#1}} |
| 5419 |
\acmVolume{1} |
| 5420 |
% \end{macrocode} |
| 5421 |
% |
| 5422 |
% \end{macro} |
| 5423 |
% |
| 5424 |
% \begin{macro}{\acmNumber} |
| 5425 |
% \changes{v1.17}{2016/07/10}{The default is now numerical} |
| 5426 |
% The current number |
| 5427 |
% \begin{macrocode} |
| 5428 |
\def\acmNumber#1{\def\@acmNumber{#1}} |
| 5429 |
\acmNumber{1} |
| 5430 |
% \end{macrocode} |
| 5431 |
% |
| 5432 |
% \end{macro} |
| 5433 |
% |
| 5434 |
% \begin{macro}{\acmArticle} |
| 5435 |
% \changes{v1.17}{2016/07/10}{The default is now numerical} |
| 5436 |
% \changes{v1.44}{2017/08/111}{The default is now empty} |
| 5437 |
% The current article |
| 5438 |
% \begin{macrocode} |
| 5439 |
\def\acmArticle#1{\def\@acmArticle{#1}} |
| 5440 |
\acmArticle{} |
| 5441 |
% \end{macrocode} |
| 5442 |
% |
| 5443 |
% \end{macro} |
| 5444 |
% |
| 5445 |
% \begin{macro}{\acmArticleSeq} |
| 5446 |
% \changes{v1.04}{2016/04/26}{Name change by Matthew Fluet} |
| 5447 |
% \changes{v1.44}{2017/08/11}{Now acmArticle might be empty} |
| 5448 |
% The sequence number |
| 5449 |
% \begin{macrocode} |
| 5450 |
\def\acmArticleSeq#1{\def\@acmArticleSeq{#1}} |
| 5451 |
\acmArticleSeq{\@acmArticle} |
| 5452 |
% \end{macrocode} |
| 5453 |
% |
| 5454 |
% \end{macro} |
| 5455 |
% |
| 5456 |
% \begin{macro}{\acmYear} |
| 5457 |
% \changes{v1.17}{2016/07/10}{The default is now numerical} |
| 5458 |
% \changes{v1.31}{2017/03/04}{The default now is the current year |
| 5459 |
% (Matteo Riondato)} |
| 5460 |
% The current year |
| 5461 |
% \begin{macrocode} |
| 5462 |
\def\acmYear#1{\def\@acmYear{#1}} |
| 5463 |
\acmYear{\the\year} |
| 5464 |
% \end{macrocode} |
| 5465 |
% |
| 5466 |
% \end{macro} |
| 5467 |
% |
| 5468 |
% \begin{macro}{\acmMonth} |
| 5469 |
% \changes{v1.17}{2016/07/09}{The default must be numerical. Closes \#50.} |
| 5470 |
% \changes{v1.31}{2017/03/04}{The default now is the current month |
| 5471 |
% (Matteo Riondato)} |
| 5472 |
% The current month |
| 5473 |
% \begin{macrocode} |
| 5474 |
\def\acmMonth#1{\def\@acmMonth{#1}} |
| 5475 |
\acmMonth{\the\month} |
| 5476 |
% \end{macrocode} |
| 5477 |
% |
| 5478 |
% \end{macro} |
| 5479 |
% |
| 5480 |
% |
| 5481 |
% \begin{macro}{\@acmPubDate} |
| 5482 |
% The publication date |
| 5483 |
% \begin{macrocode} |
| 5484 |
\def\@acmPubDate{\ifcase\@acmMonth\or |
| 5485 |
January\or February\or March\or April\or May\or June\or |
| 5486 |
July\or August\or September\or October\or November\or |
| 5487 |
December\fi~\@acmYear} |
| 5488 |
% \end{macrocode} |
| 5489 |
% |
| 5490 |
% \end{macro} |
| 5491 |
% |
| 5492 |
% \begin{macro}{\acmPrice} |
| 5493 |
% \changes{v2.00}{2023/10/22}{Deleted macro} |
| 5494 |
% \changes{v2.01}{2023/12/29}{Now the macro produces a warning} |
| 5495 |
% The price---obsolete |
| 5496 |
% \begin{macrocode} |
| 5497 |
\def\acmPrice#1{\ClassWarning{\@classname}{The macro \string\acmPrice |
| 5498 |
is obsolete. ACM no longer prints the price in bibstrip.}} |
| 5499 |
% \end{macrocode} |
| 5500 |
% \end{macro} |
| 5501 |
% |
| 5502 |
% |
| 5503 |
% \begin{macro}{\acmSubmissionID} |
| 5504 |
% \changes{v1.33}{2017/03/29}{Added macro} |
| 5505 |
% The submission ID |
| 5506 |
% \begin{macrocode} |
| 5507 |
\def\acmSubmissionID#1{\def\@acmSubmissionID{#1}} |
| 5508 |
\acmSubmissionID{} |
| 5509 |
% \end{macrocode} |
| 5510 |
% |
| 5511 |
% \end{macro} |
| 5512 |
% |
| 5513 |
% |
| 5514 |
% \begin{macro}{\acmISBN} |
| 5515 |
% \changes{v1.04}{2016/04/26}{Name change by Matthew Fluet} |
| 5516 |
% The book ISBN |
| 5517 |
% \begin{macrocode} |
| 5518 |
\def\acmISBN#1{\def\@acmISBN{#1}} |
| 5519 |
\acmISBN{978-x-xxxx-xxxx-x/YYYY/MM} |
| 5520 |
% \end{macrocode} |
| 5521 |
% |
| 5522 |
% \end{macro} |
| 5523 |
% |
| 5524 |
% \begin{macro}{\acmDOI} |
| 5525 |
% \changes{v1.04}{2016/04/26}{Name change by Matthew Fluet} |
| 5526 |
% The paper DOI |
| 5527 |
% \begin{macrocode} |
| 5528 |
\def\acmDOI#1{\def\@acmDOI{#1}} |
| 5529 |
\acmDOI{10.1145/nnnnnnn.nnnnnnn} |
| 5530 |
% \end{macrocode} |
| 5531 |
% |
| 5532 |
% \end{macro} |
| 5533 |
% |
| 5534 |
% \begin{macro}{\if@ACM@badge} |
| 5535 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 5536 |
% \changes{v1.89}{2022/12/27}{Deleted macro} |
| 5537 |
% \end{macro} |
| 5538 |
% |
| 5539 |
% \begin{macro}{\@ACM@badge@width} |
| 5540 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 5541 |
% The width of the badge |
| 5542 |
% \begin{macrocode} |
| 5543 |
\newlength\@ACM@badge@width |
| 5544 |
\setlength\@ACM@badge@width{3pc} |
| 5545 |
% \end{macrocode} |
| 5546 |
% |
| 5547 |
% \end{macro} |
| 5548 |
% |
| 5549 |
% |
| 5550 |
% \begin{macro}{\@ACM@title@width} |
| 5551 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 5552 |
% The width of the title |
| 5553 |
% \begin{macrocode} |
| 5554 |
\newlength\@ACM@title@width |
| 5555 |
% \end{macrocode} |
| 5556 |
% |
| 5557 |
% \end{macro} |
| 5558 |
% |
| 5559 |
% |
| 5560 |
% \begin{macro}{\@ACM@badge@skip} |
| 5561 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 5562 |
% \changes{v1.89}{2022/12/27}{Redefined macro} |
| 5563 |
% The spacing between badges |
| 5564 |
% \begin{macrocode} |
| 5565 |
\newlength\@ACM@badge@skip |
| 5566 |
\setlength\@ACM@badge@skip{1pt} |
| 5567 |
% \end{macrocode} |
| 5568 |
% |
| 5569 |
% \end{macro} |
| 5570 |
% |
| 5571 |
% \begin{macro}{\@acmBadgeR} |
| 5572 |
% \changes{v1.89}{2022/12/27}{Introduced macro} |
| 5573 |
% \begin{macrocode} |
| 5574 |
\def\@acmBadgeR{} |
| 5575 |
% \end{macrocode} |
| 5576 |
% \end{macro} |
| 5577 |
% |
| 5578 |
% \begin{macro}{\@acmBadgeL} |
| 5579 |
% \changes{v1.89}{2022/12/27}{Introduced macro} |
| 5580 |
% \begin{macrocode} |
| 5581 |
\def\@acmBadgeL{} |
| 5582 |
% \end{macrocode} |
| 5583 |
% \end{macro} |
| 5584 |
% |
| 5585 |
% \begin{macro}{\acmBadgeR} |
| 5586 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 5587 |
% \changes{v1.89}{2022/12/27}{Redefined macro} |
| 5588 |
% Setting the right badge |
| 5589 |
% \begin{macrocode} |
| 5590 |
\newcommand\acmBadgeR[2][]{% |
| 5591 |
\ifx\@acmBadgeR\@empty |
| 5592 |
\gdef\@acmBadgeR{% |
| 5593 |
\smash{% |
| 5594 |
\raisebox{0.5\height}{% |
| 5595 |
\href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% |
| 5596 |
\else |
| 5597 |
\g@addto@macro{\@acmBadgeR}{% |
| 5598 |
\hspace{\@ACM@badge@skip}% |
| 5599 |
\smash{% |
| 5600 |
\raisebox{0.5\height}{% |
| 5601 |
\href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% |
| 5602 |
\fi} |
| 5603 |
% \end{macrocode} |
| 5604 |
% |
| 5605 |
% \end{macro} |
| 5606 |
% |
| 5607 |
% \begin{macro}{\acmBadgeL} |
| 5608 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 5609 |
% \changes{v1.89}{2022/12/27}{Redefined macro} |
| 5610 |
% Setting the left badge |
| 5611 |
% \begin{macrocode} |
| 5612 |
\newcommand\acmBadgeL[2][]{% |
| 5613 |
\ifx\@acmBadgeL\@empty |
| 5614 |
\gdef\@acmBadgeL{% |
| 5615 |
\smash{% |
| 5616 |
\raisebox{0.5\height}{% |
| 5617 |
\href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% |
| 5618 |
\else |
| 5619 |
\g@addto@macro{\@acmBadgeL}{% |
| 5620 |
\hspace{\@ACM@badge@skip}% |
| 5621 |
\smash{% |
| 5622 |
\raisebox{0.5\height}{% |
| 5623 |
\href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% |
| 5624 |
\fi} |
| 5625 |
% \end{macrocode} |
| 5626 |
% |
| 5627 |
% \end{macro} |
| 5628 |
% |
| 5629 |
% \begin{macro}{\acmBadge} |
| 5630 |
% \changes{v1.89}{2023/01/07}{Added macro} |
| 5631 |
% Just a syntax sugar for \cs{acmBadgeR} |
| 5632 |
% \begin{macrocode} |
| 5633 |
\let\acmBadge=\acmBadgeR |
| 5634 |
% \end{macrocode} |
| 5635 |
% \end{macro} |
| 5636 |
% |
| 5637 |
% \begin{macro}{\startPage} |
| 5638 |
% The start page of the paper |
| 5639 |
% \begin{macrocode} |
| 5640 |
\def\startPage#1{\def\@startPage{#1}} |
| 5641 |
\startPage{} |
| 5642 |
% \end{macrocode} |
| 5643 |
% |
| 5644 |
% \end{macro} |
| 5645 |
% |
| 5646 |
% \begin{macro}{\terms} |
| 5647 |
% \changes{v1.34}{2017/04/09}{The \cs{terms} command now just produces |
| 5648 |
% a warning} |
| 5649 |
% Terms are obsolete. We use CCS now. |
| 5650 |
% \begin{macrocode} |
| 5651 |
\def\terms#1{\ClassWarning{\@classname}{The command \string\terms{} is |
| 5652 |
obsolete. I am going to ignore it}} |
| 5653 |
% \end{macrocode} |
| 5654 |
% |
| 5655 |
% \end{macro} |
| 5656 |
% |
| 5657 |
% \begin{macro}{\keywords} |
| 5658 |
% Keywords are mostly obsolete. We use CCS now. Still it makes |
| 5659 |
% sense to keep them for compatibility. |
| 5660 |
% \begin{macrocode} |
| 5661 |
\def\keywords#1{\def\@keywords{#1}} |
| 5662 |
\let\@keywords\@empty |
| 5663 |
% \end{macrocode} |
| 5664 |
% |
| 5665 |
% \changes{1.66}{2019/12/18}{Added warning for missing keywords} |
| 5666 |
% \begin{macrocode} |
| 5667 |
\AtEndDocument{\if@ACM@nonacm\else\ifx\@keywords\@empty |
| 5668 |
\ifnum\getrefnumber{TotPages}>2\relax |
| 5669 |
\ClassWarningNoLine{\@classname}{ACM keywords are mandatory |
| 5670 |
for papers over two pages}% |
| 5671 |
\fi\fi\fi} |
| 5672 |
% \end{macrocode} |
| 5673 |
% |
| 5674 |
% \end{macro} |
| 5675 |
% |
| 5676 |
% |
| 5677 |
% \begin{macro}{abstract} |
| 5678 |
% The |amsart| package puts |abstract| in a box. Since we do not |
| 5679 |
% know whether we will use two-column mode, we prefer to save the text |
| 5680 |
% \begin{macrocode} |
| 5681 |
\renewenvironment{abstract}{\Collect@Body\@saveabstract}{} |
| 5682 |
% \end{macrocode} |
| 5683 |
% |
| 5684 |
% \end{macro} |
| 5685 |
% |
| 5686 |
% \begin{macro}{\@saveabstract} |
| 5687 |
% And saving the abstract |
| 5688 |
% \begin{macrocode} |
| 5689 |
\long\def\@saveabstract#1{\if@ACM@maketitle@typeset |
| 5690 |
\ClassError{\@classname}{Abstract must be defined before maketitle |
| 5691 |
command. Please move it!}\fi |
| 5692 |
\long\gdef\@abstract{#1}} |
| 5693 |
\@saveabstract{} |
| 5694 |
% \end{macrocode} |
| 5695 |
% |
| 5696 |
% \end{macro} |
| 5697 |
% |
| 5698 |
% \begin{macro}{\@lempty} |
| 5699 |
% The long version of \cs{@empty} (to compare with \cs{@abstract}) |
| 5700 |
% \begin{macrocode} |
| 5701 |
\long\def\@lempty{} |
| 5702 |
% \end{macrocode} |
| 5703 |
% |
| 5704 |
% \end{macro} |
| 5705 |
% |
| 5706 |
% \begin{macro}{\if@ACM@printccs} |
| 5707 |
% \changes{v1.27}{2016/12/29}{Typo corrected} |
| 5708 |
% Whether to print CCS |
| 5709 |
% \begin{macrocode} |
| 5710 |
\define@boolkey+{@ACM@topmatter@}[@ACM@]{printccs}[true]{% |
| 5711 |
\if@ACM@printccs |
| 5712 |
\ClassInfo{\@classname}{Printing CCS}% |
| 5713 |
\else |
| 5714 |
\ClassInfo{\@classname}{Suppressing CCS}% |
| 5715 |
\fi}{\ClassError{\@classname}{The option printccs can be either true or false}} |
| 5716 |
% \end{macrocode} |
| 5717 |
% |
| 5718 |
% \end{macro} |
| 5719 |
% \begin{macro}{\if@ACM@printacmref} |
| 5720 |
% \changes{v1.17}{2016/07/10}{Renamed from \cs{if@ACM@printbib}} |
| 5721 |
% Whether to print the ACM bibstrip |
| 5722 |
% \begin{macrocode} |
| 5723 |
\define@boolkey+{@ACM@topmatter@}[@ACM@]{printacmref}[true]{% |
| 5724 |
\if@ACM@printacmref |
| 5725 |
\ClassInfo{\@classname}{Printing bibformat}% |
| 5726 |
\else |
| 5727 |
\ClassInfo{\@classname}{Suppressing bibformat}% |
| 5728 |
\fi}{\ClassError{\@classname}{The option printacmref can be either true or false}} |
| 5729 |
% \end{macrocode} |
| 5730 |
% |
| 5731 |
% \changes{1.66}{2019/12/18}{Added warning for longer papers} |
| 5732 |
% \begin{macrocode} |
| 5733 |
\AtEndDocument{\if@ACM@nonacm\else\if@ACM@printacmref\else |
| 5734 |
\ifnum\getrefnumber{TotPages}>1\relax |
| 5735 |
\ClassWarningNoLine{\@classname}{% |
| 5736 |
ACM reference format is mandatory \MessageBreak |
| 5737 |
for papers over one page. \MessageBreak |
| 5738 |
Please add printacmref=true to the \MessageBreak |
| 5739 |
\string\settopmatter\space command.}% |
| 5740 |
\fi\fi\fi} |
| 5741 |
% \end{macrocode} |
| 5742 |
% |
| 5743 |
% \end{macro} |
| 5744 |
% |
| 5745 |
% \begin{macro}{\if@ACM@printfolios} |
| 5746 |
% \changes{v1.13}{2016/06/06}{Added macro} |
| 5747 |
% Whether to print folios |
| 5748 |
% \begin{macrocode} |
| 5749 |
\define@boolkey+{@ACM@topmatter@}[@ACM@]{printfolios}[true]{% |
| 5750 |
\if@ACM@printfolios |
| 5751 |
\ClassInfo{\@classname}{Printing folios}% |
| 5752 |
\else |
| 5753 |
\ClassInfo{\@classname}{Suppressing folios}% |
| 5754 |
\fi}{\ClassError{\@classname}{The option printfolios can be either true or false}} |
| 5755 |
% \end{macrocode} |
| 5756 |
% \end{macro} |
| 5757 |
% |
| 5758 |
% \begin{macro}{\@ACM@authorsperrow} |
| 5759 |
% \changes{v1.36}{2017/05/13}{Added macro} |
| 5760 |
% The number of authors per row. 0 means use the default algorithm. |
| 5761 |
% \begin{macrocode} |
| 5762 |
\define@cmdkey{@ACM@topmatter@}[@ACM@]{authorsperrow}[0]{% |
| 5763 |
\IfInteger{#1}{\ClassInfo{\@classname}{Setting authorsperrow to |
| 5764 |
#1}}{\ClassWarning{\@classname}{The parameter authorsperrow must be |
| 5765 |
numerical. Ignoring the input #1}\gdef\@ACM@authorsperrow{0}}} |
| 5766 |
% \end{macrocode} |
| 5767 |
% |
| 5768 |
% \end{macro} |
| 5769 |
% |
| 5770 |
% \begin{macro}{\settopmatter} |
| 5771 |
% The usual syntactic sugar |
| 5772 |
% \begin{macrocode} |
| 5773 |
\def\settopmatter#1{\setkeys{@ACM@topmatter@}{#1}} |
| 5774 |
% \end{macrocode} |
| 5775 |
% |
| 5776 |
% \end{macro} |
| 5777 |
% |
| 5778 |
% |
| 5779 |
% \changes{v1.13}{2016/06/06}{Print bibliographic information by |
| 5780 |
% default for the proceedings} |
| 5781 |
% Now the settings |
| 5782 |
% \begin{macrocode} |
| 5783 |
\settopmatter{printccs=true, printacmref=true} |
| 5784 |
\if@ACM@manuscript |
| 5785 |
\settopmatter{printfolios=true} |
| 5786 |
\else |
| 5787 |
\if@ACM@journal |
| 5788 |
\settopmatter{printfolios=true} |
| 5789 |
\else |
| 5790 |
\settopmatter{printfolios=false} |
| 5791 |
\fi |
| 5792 |
\fi |
| 5793 |
\settopmatter{authorsperrow=0} |
| 5794 |
% \end{macrocode} |
| 5795 |
% |
| 5796 |
% \begin{macro}{\@received} |
| 5797 |
% The container for the paper history |
| 5798 |
% \begin{macrocode} |
| 5799 |
\def\@received{} |
| 5800 |
% \end{macrocode} |
| 5801 |
% |
| 5802 |
% \end{macro} |
| 5803 |
% |
| 5804 |
% \begin{macro}{\received} |
| 5805 |
% The \cs{received} command |
| 5806 |
% \begin{macrocode} |
| 5807 |
\newcommand\received[2][]{\def\@tempa{#1}% |
| 5808 |
\ifx\@tempa\@empty |
| 5809 |
\ifx\@received\@empty |
| 5810 |
\gdef\@received{Received #2}% |
| 5811 |
\else |
| 5812 |
\g@addto@macro{\@received}{; revised #2}% |
| 5813 |
\fi |
| 5814 |
\else |
| 5815 |
\ifx\@received\@empty |
| 5816 |
\gdef\@received{#1 #2}% |
| 5817 |
\else |
| 5818 |
\g@addto@macro{\@received}{; #1 #2}% |
| 5819 |
\fi |
| 5820 |
\fi} |
| 5821 |
\AtEndDocument{% |
| 5822 |
\ifx\@received\@empty\else |
| 5823 |
\par\bigskip\noindent{\small\normalfont\@received\par}% |
| 5824 |
\fi} |
| 5825 |
% \end{macrocode} |
| 5826 |
% |
| 5827 |
% \end{macro} |
| 5828 |
% |
| 5829 |
% \begin{macro}{\acmArticleType} |
| 5830 |
% \changes{v1.87}{2022/08/13}{Introduced macro} |
| 5831 |
% Article type. We set up the color. |
| 5832 |
% \begin{macrocode} |
| 5833 |
\define@choicekey+{ACM}{articletype}[\ACM@ArticleType\ACM@ArticleType@nr]{% |
| 5834 |
Research,Review,Discussion,Invited,Position}[Review]{% |
| 5835 |
\ifcase\ACM@ArticleType@nr |
| 5836 |
\relax % Research |
| 5837 |
\colorlet{@ACM@Article@color}{ACMBlue}% |
| 5838 |
\or % Review |
| 5839 |
\colorlet{@ACM@Article@color}{ACMOrange}% |
| 5840 |
\or % Discussion |
| 5841 |
\colorlet{@ACM@Article@color}{ACMGreen}% |
| 5842 |
\or % Invited |
| 5843 |
\colorlet{@ACM@Article@color}{ACMPurple}% |
| 5844 |
\or % Position |
| 5845 |
\colorlet{@ACM@Article@color}{ACMRed}% |
| 5846 |
\fi |
| 5847 |
}{% |
| 5848 |
\ClassError{\@classname}{Article Type must be Research, Review,\MessageBreak |
| 5849 |
Discussion, Invited, or Position}} |
| 5850 |
\def\acmArticleType#1{\setkeys{ACM}{articletype=#1}} |
| 5851 |
\if@ACM@acmcp |
| 5852 |
\acmArticleType{Research}% |
| 5853 |
\fi |
| 5854 |
% \end{macrocode} |
| 5855 |
% |
| 5856 |
% \end{macro} |
| 5857 |
% \begin{macro}{\@ACM@color@frame} |
| 5858 |
% \changes{v1.87}{2022/08/13}{Introduced macro} |
| 5859 |
% \changes{v1.89}{2022/12/25}{Added saving the position of the bottom} |
| 5860 |
% The colored frame for the acmcp |
| 5861 |
% \begin{macrocode} |
| 5862 |
\newenvironment{@ACM@color@frame}{% |
| 5863 |
\def\FrameCommand{\hspace*{-6.5pc}% |
| 5864 |
\colorbox{@ACM@Article@color!10!white}}% |
| 5865 |
\MakeFramed {\advance\hsize |
| 5866 |
-6.5pc\relax\FrameRestore}}{\zsaveposy{@ACM@acmcpframe@y}% |
| 5867 |
\endMakeFramed} |
| 5868 |
% \end{macrocode} |
| 5869 |
% |
| 5870 |
% \end{macro} |
| 5871 |
% |
| 5872 |
% \begin{macro}{\acmCodeDataLink} |
| 5873 |
% \changes{v1.87}{2022/08/13}{Introduced macro} |
| 5874 |
% \changes{v1.87}{2022/08/28}{Added possibility to have several links} |
| 5875 |
% The code link |
| 5876 |
% \begin{macrocode} |
| 5877 |
\def\acmCodeLink#1{% |
| 5878 |
\ifx\@acmCodeDataLink\@empty |
| 5879 |
\gdef\@acmCodeDataLink{\url{#1}}% |
| 5880 |
\else |
| 5881 |
\g@addto@macro{\@acmCodeDataLink}{\\ \url{#1}}% |
| 5882 |
\fi} |
| 5883 |
\def\@acmCodeDataLink{} |
| 5884 |
% \end{macrocode} |
| 5885 |
% |
| 5886 |
% \end{macro} |
| 5887 |
% |
| 5888 |
% \begin{macro}{\acmContributions} |
| 5889 |
% \changes{v1.91}{2023/06/22}{Restored the macro} |
| 5890 |
% The authors' contrubution statement |
| 5891 |
% \begin{macrocode} |
| 5892 |
\def\acmContributions#1{\gdef\@acmContributions{#1}} |
| 5893 |
\acmContributions{} |
| 5894 |
% \end{macrocode} |
| 5895 |
% \end{macro} |
| 5896 |
% |
| 5897 |
% \begin{macro}{\acmDataLink} |
| 5898 |
% \changes{v1.87}{2022/08/13}{Introduced macro} |
| 5899 |
% \changes{v1.87}{2022/08/28}{Now this is the same as the code link} |
| 5900 |
% The code link |
| 5901 |
% \begin{macrocode} |
| 5902 |
\let\acmDataLink\acmCodeLink |
| 5903 |
% \end{macrocode} |
| 5904 |
% |
| 5905 |
% \end{macro} |
| 5906 |
% |
| 5907 |
% |
| 5908 |
% |
| 5909 |
%\subsection{Concepts system} |
| 5910 |
%\label{sec:concepts} |
| 5911 |
% |
| 5912 |
% We exclude |CCSXML| stuff generated by the ACM system: |
| 5913 |
% \begin{macrocode} |
| 5914 |
\RequirePackage{comment} |
| 5915 |
\excludecomment{CCSXML} |
| 5916 |
% \end{macrocode} |
| 5917 |
% |
| 5918 |
% \begin{macro}{\@concepts} |
| 5919 |
% This is the storage macro and counter for concepts |
| 5920 |
% \begin{macrocode} |
| 5921 |
\let\@concepts\@empty |
| 5922 |
\newcounter{@concepts} |
| 5923 |
% \end{macrocode} |
| 5924 |
% |
| 5925 |
% \end{macro} |
| 5926 |
% |
| 5927 |
% \begin{macro}{\ccsdesc} |
| 5928 |
% \changes{v1.40}{2017/05/27}{Now we can parse |Significance~General| nodes} |
| 5929 |
% The first argument is the significance, the second is the |
| 5930 |
% concept(s) |
| 5931 |
% \begin{macrocode} |
| 5932 |
\newcommand\ccsdesc[2][100]{% |
| 5933 |
\ccsdesc@parse#1~#2~~\ccsdesc@parse@end} |
| 5934 |
% \end{macrocode} |
| 5935 |
% |
| 5936 |
% \end{macro} |
| 5937 |
% |
| 5938 |
% \begin{macro}{\ccsdesc@parse} |
| 5939 |
% \changes{v1.28}{2017/01/04}{Change from \cs{to} to |
| 5940 |
% \cs{textrightarrow} (Matteo Riondato)} |
| 5941 |
% \changes{v1.29}{2017/01/22}{Add spacing after bullet and around |
| 5942 |
% rightarrow; semicolon separators no longer in bold/italic (John Wickerson)} |
| 5943 |
% \changes{v1.40}{2017/05/27}{Now we can parse |Significance~General| nodes} |
| 5944 |
% \changes{v1.56}{2018/10/23}{End the concepts list with a period |
| 5945 |
% (Philip Quinn)} |
| 5946 |
% \changes{v1.69}{2019/02/06}{Use math right arrow in text} |
| 5947 |
% The parser of the expression |Significance~General~Specific| (we need |
| 5948 |
% |textcomp| for |\textrightarrow|). Note that |Specific| can be empty! |
| 5949 |
% \begin{macrocode} |
| 5950 |
\def\textrightarrow{$\rightarrow$} |
| 5951 |
\def\ccsdesc@parse#1~#2~#3~{% |
| 5952 |
\stepcounter{@concepts}% |
| 5953 |
\expandafter\ifx\csname CCS@General@#2\endcsname\relax |
| 5954 |
\expandafter\gdef\csname CCS@General@#2\endcsname{\textbullet\ |
| 5955 |
\textbf{#2}}% |
| 5956 |
\expandafter\gdef\csname CCS@Punctuation@#2\endcsname{; }% |
| 5957 |
\expandafter\gdef\csname CCS@Specific@#2\endcsname{}% |
| 5958 |
\g@addto@macro{\@concepts}{\csname CCS@General@#2\endcsname |
| 5959 |
\csname CCS@Punctuation@#2\endcsname |
| 5960 |
\csname CCS@Specific@#2\endcsname}% |
| 5961 |
\fi |
| 5962 |
\ifx#3\relax\relax\else |
| 5963 |
\expandafter\gdef\csname CCS@Punctuation@#2\endcsname{ |
| 5964 |
\textrightarrow\ }% |
| 5965 |
\expandafter\g@addto@macro\expandafter{\csname CCS@Specific@#2\endcsname}{% |
| 5966 |
\addtocounter{@concepts}{-1}% |
| 5967 |
\ifnum#1>499\textbf{#3}\else |
| 5968 |
\ifnum#1>299\textit{#3}\else |
| 5969 |
#3\fi\fi\ifnum\value{@concepts}=0.\else; \fi}% |
| 5970 |
\fi |
| 5971 |
\ccsdesc@parse@finish} |
| 5972 |
% \end{macrocode} |
| 5973 |
% |
| 5974 |
% \changes{1.66}{2019/12/18}{Added warning for missing concepts} |
| 5975 |
% \begin{macrocode} |
| 5976 |
\AtEndDocument{\if@ACM@nonacm\else\ifx\@concepts\@empty\relax |
| 5977 |
\ifnum\getrefnumber{TotPages}>2\relax |
| 5978 |
\ClassWarningNoLine{\@classname}{CCS concepts are mandatory |
| 5979 |
for papers over two pages}% |
| 5980 |
\fi\fi\fi} |
| 5981 |
% \end{macrocode} |
| 5982 |
% \end{macro} |
| 5983 |
% |
| 5984 |
% \begin{macro}{\ccdesc@parse@finish} |
| 5985 |
% \changes{v1.40}{2017/05/27}{Added macro} |
| 5986 |
% Gobble everything to |\ccsdesc@parse@end| |
| 5987 |
% \begin{macrocode} |
| 5988 |
\def\ccsdesc@parse@finish#1\ccsdesc@parse@end{} |
| 5989 |
% \end{macrocode} |
| 5990 |
% |
| 5991 |
% \end{macro} |
| 5992 |
% |
| 5993 |
%\subsection{Copyright system} |
| 5994 |
%\label{sec:copyright} |
| 5995 |
% |
| 5996 |
% This is from |acmcopyright.sty| |
| 5997 |
% |
| 5998 |
% \begin{macro}{\if@printcopyright} |
| 5999 |
% Whether to print a copyright symbol |
| 6000 |
% \begin{macrocode} |
| 6001 |
\newif\if@printcopyright |
| 6002 |
\@printcopyrighttrue |
| 6003 |
% \end{macrocode} |
| 6004 |
% |
| 6005 |
% \end{macro} |
| 6006 |
% |
| 6007 |
% \begin{macro}{\if@printpermission} |
| 6008 |
% Whether to print the permission block |
| 6009 |
% \begin{macrocode} |
| 6010 |
\newif\if@printpermission |
| 6011 |
\@printpermissiontrue |
| 6012 |
% \end{macrocode} |
| 6013 |
% |
| 6014 |
% \end{macro} |
| 6015 |
% |
| 6016 |
% \begin{macro}{\if@acmowned} |
| 6017 |
% Whether the ACM owns the rights to the paper |
| 6018 |
% \begin{macrocode} |
| 6019 |
\newif\if@acmowned |
| 6020 |
\@acmownedtrue |
| 6021 |
% \end{macrocode} |
| 6022 |
% |
| 6023 |
% \end{macro} |
| 6024 |
% |
| 6025 |
% \changes{v1.10}{2016/05/22}{Changes of `licensedothergov' wording} |
| 6026 |
% \changes{v1.35}{2017/04/22}{If the copyright is set to usgov or |
| 6027 |
% rigtsretained, the price is suppressed} |
| 6028 |
% \changes{v1.51}{2018/04/05}{Suppress price if the copyright is set |
| 6029 |
% to iw3c2w3 or iw3c2w3g} |
| 6030 |
% \changes{v1.51}{2018/04/05}{Corrected the bug with price suppression} |
| 6031 |
% \changes{v1.85}{2022/05/08}{Added CC licenses} |
| 6032 |
% \changes{v2.00}{2023/10/22}{Deleted acmPrice} |
| 6033 |
% \changes{v2.00}{2023/10/22}{Deleted acmPrice} |
| 6034 |
% Keys: |
| 6035 |
% \begin{macrocode} |
| 6036 |
\define@choicekey*{ACM@}{acmcopyrightmode}[% |
| 6037 |
\acm@copyrightinput\acm@copyrightmode]{none,% |
| 6038 |
acmcopyright,acmlicensed,rightsretained,% |
| 6039 |
usgov,usgovmixed,cagov,cagovmixed,licensedusgovmixed,% |
| 6040 |
licensedcagov,licensedcagovmixed,othergov,licensedothergov,% |
| 6041 |
iw3c2w3,iw3c2w3g,cc}{% |
| 6042 |
\@printpermissiontrue |
| 6043 |
\@printcopyrighttrue |
| 6044 |
\@acmownedtrue |
| 6045 |
\ifnum\acm@copyrightmode=0\relax % none |
| 6046 |
\@printpermissionfalse |
| 6047 |
\@printcopyrightfalse |
| 6048 |
\@acmownedfalse |
| 6049 |
\fi |
| 6050 |
\ifnum\acm@copyrightmode=2\relax % acmlicensed |
| 6051 |
\@acmownedfalse |
| 6052 |
\fi |
| 6053 |
\ifnum\acm@copyrightmode=3\relax % rightsretained |
| 6054 |
\@acmownedfalse |
| 6055 |
\fi |
| 6056 |
\ifnum\acm@copyrightmode=4\relax % usgov |
| 6057 |
\@printpermissiontrue |
| 6058 |
\@printcopyrightfalse |
| 6059 |
\@acmownedfalse |
| 6060 |
\fi |
| 6061 |
\ifnum\acm@copyrightmode=6\relax % cagov |
| 6062 |
\@acmownedfalse |
| 6063 |
\fi |
| 6064 |
\ifnum\acm@copyrightmode=8\relax % licensedusgovmixed |
| 6065 |
\@acmownedfalse |
| 6066 |
\fi |
| 6067 |
\ifnum\acm@copyrightmode=9\relax % licensedcagov |
| 6068 |
\@acmownedfalse |
| 6069 |
\fi |
| 6070 |
\ifnum\acm@copyrightmode=10\relax % licensedcagovmixed |
| 6071 |
\@acmownedfalse |
| 6072 |
\fi |
| 6073 |
\ifnum\acm@copyrightmode=11\relax % othergov |
| 6074 |
\@acmownedtrue |
| 6075 |
\fi |
| 6076 |
\ifnum\acm@copyrightmode=12\relax % licensedothergov |
| 6077 |
\@acmownedfalse |
| 6078 |
\fi |
| 6079 |
\ifnum\acm@copyrightmode=13\relax % iw3c2w3 |
| 6080 |
\@acmownedfalse |
| 6081 |
\fi |
| 6082 |
\ifnum\acm@copyrightmode=14\relax % iw3c2w3g |
| 6083 |
\@acmownedfalse |
| 6084 |
\fi |
| 6085 |
\ifnum\acm@copyrightmode=15\relax % cc |
| 6086 |
\@acmownedfalse |
| 6087 |
\fi} |
| 6088 |
% \end{macrocode} |
| 6089 |
% |
| 6090 |
% \begin{macro}{\setcopyright} |
| 6091 |
% This is the syntactic sugar around setting keys. |
| 6092 |
% \begin{macrocode} |
| 6093 |
\def\setcopyright#1{\setkeys{ACM@}{acmcopyrightmode=#1}} |
| 6094 |
\setcopyright{acmlicensed} |
| 6095 |
% \end{macrocode} |
| 6096 |
% |
| 6097 |
% \end{macro} |
| 6098 |
% |
| 6099 |
% \begin{macro}{\setcctype} |
| 6100 |
% \changes{v1.85}{2022/05/08}{Added macro} |
| 6101 |
% The type of Creative Commons license used |
| 6102 |
% \begin{macrocode} |
| 6103 |
\newcommand\setcctype[2][4.0]{% |
| 6104 |
\def\ACM@cc@version{#1}% |
| 6105 |
\def\ACM@cc@type{#2}} |
| 6106 |
\setcctype{by} |
| 6107 |
% \end{macrocode} |
| 6108 |
% |
| 6109 |
% \end{macro} |
| 6110 |
% |
| 6111 |
% \begin{macro}{\@copyrightowner} |
| 6112 |
% \changes{v1.40}{2017/06/16}{Added new copyright version: |
| 6113 |
% licensedcagov} |
| 6114 |
% \changes{v1.52}{2018/04/09}{Rewording of licenses} |
| 6115 |
% \changes{v1.85}{2022/05/08}{Added CC licenses} |
| 6116 |
% \changes{v2.00}{2023/10/22}{Changed wording} |
| 6117 |
% \changes{v2.04}{2024/03/28}{Changed wording} |
| 6118 |
% Here is the owner of the copyright |
| 6119 |
% \begin{macrocode} |
| 6120 |
\def\@copyrightowner{% |
| 6121 |
\ifcase\acm@copyrightmode\relax % none |
| 6122 |
\or % acmcopyright |
| 6123 |
ACM\@. |
| 6124 |
\or % acmlicensed |
| 6125 |
Copyright held by the owner/author(s). Publication rights licensed to |
| 6126 |
ACM\@. |
| 6127 |
\or % rightsretained |
| 6128 |
Copyright held by the owner/author(s). |
| 6129 |
\or % usgov |
| 6130 |
\or % usgovmixed |
| 6131 |
Copyright held by the owner/author(s). |
| 6132 |
\or % cagov |
| 6133 |
Copyright Crown in Right of Canada. |
| 6134 |
\or %cagovmixed |
| 6135 |
Copyright held by the owner/author(s). |
| 6136 |
\or %licensedusgovmixed |
| 6137 |
Copyright held by the owner/author(s). Publication rights licensed to |
| 6138 |
ACM\@. |
| 6139 |
\or % licensedcagov |
| 6140 |
Copyright held by the owner/author(s). |
| 6141 |
\or %licensedcagovmixed |
| 6142 |
Copyright held by the owner/author(s). Publication rights licensed to |
| 6143 |
ACM\@. |
| 6144 |
\or % othergov |
| 6145 |
Copyright held by the owner/author(s). |
| 6146 |
\or % licensedothergov |
| 6147 |
Copyright held by the owner/author(s). Publication rights licensed to |
| 6148 |
ACM\@. |
| 6149 |
\or % ic2w3www |
| 6150 |
IW3C2 (International World Wide Web Conference Committee), published |
| 6151 |
under Creative Commons CC-BY~4.0 License. |
| 6152 |
\or % ic2w3wwwgoogle |
| 6153 |
IW3C2 (International World Wide Web Conference Committee), published |
| 6154 |
under Creative Commons CC-BY-NC-ND~4.0 License. |
| 6155 |
\or % cc |
| 6156 |
Copyright held by the owner/author(s). |
| 6157 |
\fi} |
| 6158 |
% \end{macrocode} |
| 6159 |
% |
| 6160 |
% \end{macro} |
| 6161 |
% |
| 6162 |
% \begin{macro}{\@formatdoi} |
| 6163 |
% \changes{v1.03}{2016/04/22}{Added macro} |
| 6164 |
% \changes{v1.32}{2017/04/07}{New doi format} |
| 6165 |
% Print a clickable DOI |
| 6166 |
% \begin{macrocode} |
| 6167 |
\def\@formatdoi#1{\url{https://doi.org/#1}} |
| 6168 |
% \end{macrocode} |
| 6169 |
% |
| 6170 |
% \end{macro} |
| 6171 |
% |
| 6172 |
% \begin{macro}{\@ACM@copyright@check@cc} |
| 6173 |
% \changes{v1.87}{2022/07/30}{Added macro} |
| 6174 |
% \changes{v2.00}{2023/10/22}{Moved to warning} |
| 6175 |
% \changes{v2.09}{2024/08/25}{Deleted macro} |
| 6176 |
% This macro is no longer needed due to the change in ACM policy. |
| 6177 |
% \end{macro} |
| 6178 |
% |
| 6179 |
% \begin{macro}{\@copyrightpermission} |
| 6180 |
% \changes{v1.40}{2017/06/16}{Added new copyright version: licensedcagov} |
| 6181 |
% \changes{v1.50}{2018/02/07}{New copyright statements for iw3c2w3[g]} |
| 6182 |
% \changes{v1.52}{2018/04/09}{Another rewording of copyright |
| 6183 |
% statements for iw3c2w3[g]} |
| 6184 |
% \changes{v1.85}{2022/05/08}{Added CC licenses} |
| 6185 |
% \changes{v1.87}{2022/07/30}{CC licenses now are allowed only for |
| 6186 |
% non-acm or ACM engage publications} |
| 6187 |
% \changes{v2.09}{2024/08/25}{Deleted checking whether CC licenses are |
| 6188 |
% allowed} |
| 6189 |
% \changes{v2.11}{2024/12/21}{Changed URL for CC licenses} |
| 6190 |
% The canned permission block. |
| 6191 |
% \begin{macrocode} |
| 6192 |
\def\@copyrightpermission{% |
| 6193 |
\ifcase\acm@copyrightmode\relax % none |
| 6194 |
\or % acmcopyright |
| 6195 |
Permission to make digital or hard copies of all or part of this |
| 6196 |
work for personal or classroom use is granted without fee provided |
| 6197 |
that copies are not made or distributed for profit or commercial |
| 6198 |
advantage and that copies bear this notice and the full citation on |
| 6199 |
the first page. Copyrights for components of this work owned by |
| 6200 |
others than ACM must be honored. Abstracting with credit is |
| 6201 |
permitted. To copy otherwise, or republish, to post on servers or |
| 6202 |
to redistribute to lists, requires prior specific permission |
| 6203 |
and\hspace*{.5pt}/or |
| 6204 |
a fee. Request permissions from [email protected]. |
| 6205 |
\or % acmlicensed |
| 6206 |
Permission to make digital or hard copies of all or part of this |
| 6207 |
work for personal or classroom use is granted without fee provided |
| 6208 |
that copies are not made or distributed for profit or commercial |
| 6209 |
advantage and that copies bear this notice and the full citation on |
| 6210 |
the first page. Copyrights for components of this work owned by |
| 6211 |
others than the author(s) must be honored. Abstracting with credit |
| 6212 |
is permitted. To copy otherwise, or republish, to post on servers |
| 6213 |
or to redistribute to lists, requires prior specific permission |
| 6214 |
and\hspace*{.5pt}/or a fee. Request permissions from |
| 6215 |
[email protected]. |
| 6216 |
\or % rightsretained |
| 6217 |
Permission to make digital or hard copies of all or part of this |
| 6218 |
work for personal or classroom use is granted without fee provided |
| 6219 |
that copies are not made or distributed for profit or commercial |
| 6220 |
advantage and that copies bear this notice and the full citation on |
| 6221 |
the first page. Copyrights for third-party components of this work |
| 6222 |
must be honored. For all other uses, contact the |
| 6223 |
owner\hspace*{.5pt}/author(s). |
| 6224 |
\or % usgov |
| 6225 |
This paper is authored by an employee(s) of the United States |
| 6226 |
Government and is in the public domain. Non-exclusive copying or |
| 6227 |
redistribution is allowed, provided that the article citation is |
| 6228 |
given and the authors and agency are clearly identified as its |
| 6229 |
source. Request permissions from |
| 6230 |
owner\hspace*{.5pt}/author(s). |
| 6231 |
\or % usgovmixed |
| 6232 |
ACM acknowledges that this contribution was authored or co-authored |
| 6233 |
by an employee, contractor, or affiliate of the United States |
| 6234 |
government. As such, the United States government retains a |
| 6235 |
nonexclusive, royalty-free right to publish or reproduce this |
| 6236 |
article, or to allow others to do so, for government purposes |
| 6237 |
only. Request permissions from owner\hspace*{.5pt}/author(s). |
| 6238 |
\or % cagov |
| 6239 |
This article was authored by employees of the Government of |
| 6240 |
Canada. As such, the Canadian government retains all interest in |
| 6241 |
the copyright to this work and grants to ACM a nonexclusive, |
| 6242 |
royalty-free right to publish or reproduce this article, or to |
| 6243 |
allow others to do so, provided that clear attribution is given |
| 6244 |
both to the authors and the Canadian government agency employing |
| 6245 |
them. Permission to make digital or hard copies for personal or |
| 6246 |
classroom use is granted. Copies must bear this notice and the full |
| 6247 |
citation on the first page. Copyrights for components of this work |
| 6248 |
owned by others than the Canadian Government must be honored. To |
| 6249 |
copy otherwise, distribute, republish, or post, requires prior |
| 6250 |
specific permission and/or a fee. Request permissions from |
| 6251 |
owner\hspace*{.5pt}/author(s). |
| 6252 |
\or % cagovmixed |
| 6253 |
ACM acknowledges that this contribution was co-authored by an |
| 6254 |
affiliate of the national government of Canada. As such, the Crown |
| 6255 |
in Right of Canada retains an equal interest in the |
| 6256 |
copyright. Reprints must include clear attribution to ACM and the |
| 6257 |
author’s government agency affiliation. Permission to make digital |
| 6258 |
or hard copies for personal or classroom use is granted. Copies |
| 6259 |
must bear this notice and the full citation on the first |
| 6260 |
page. Copyrights for components of this work owned by others than |
| 6261 |
ACM must be honored. To copy otherwise, distribute, republish, or |
| 6262 |
post, requires prior specific permission and/or a fee. Request |
| 6263 |
permissions from owner\hspace*{.5pt}/author(s). |
| 6264 |
\or % licensedusgovmixed |
| 6265 |
Publication rights licensed to ACM\@. ACM acknowledges that this |
| 6266 |
contribution was authored or co-authored by an employee, contractor |
| 6267 |
or affiliate of the United States government. As such, the |
| 6268 |
Government retains a nonexclusive, royalty-free right to publish or |
| 6269 |
reproduce this article, or to allow others to do so, for Government |
| 6270 |
purposes only. Request permissions from |
| 6271 |
owner\hspace*{.5pt}/author(s). |
| 6272 |
\or % licensedcagov |
| 6273 |
This article was authored by employees of the Government of |
| 6274 |
Canada. As such, the Canadian government retains all interest in |
| 6275 |
the copyright to this work and grants to ACM a nonexclusive, |
| 6276 |
royalty-free right to publish or reproduce this article, or to |
| 6277 |
allow others to do so, provided that clear attribution is given |
| 6278 |
both to the authors and the Canadian government agency employing |
| 6279 |
them. Permission to make digital or hard copies for personal or |
| 6280 |
classroom use is granted. Copies must bear this notice and the full |
| 6281 |
citation on the first page. Copyrights for components of this work |
| 6282 |
owned by others than the Canadian Government must be honored. To |
| 6283 |
copy otherwise, distribute, republish, or post, requires prior |
| 6284 |
specific permission and/or a fee. Request permissions from |
| 6285 |
owner\hspace*{.5pt}/author(s). |
| 6286 |
\or % licensedcagovmixed |
| 6287 |
Publication rights licensed to ACM. ACM acknowledges that this |
| 6288 |
contribution was authored or co-authored by an employee, contractor |
| 6289 |
or affiliate of the national government of Canada. As such, the |
| 6290 |
Government retains a nonexclusive, royalty-free right to publish or |
| 6291 |
reproduce this article, or to allow others to do so, for Government |
| 6292 |
purposes only. Request permissions from |
| 6293 |
owner\hspace*{.5pt}/author(s). |
| 6294 |
\or % othergov |
| 6295 |
ACM acknowledges that this contribution was authored or co-authored |
| 6296 |
by an employee, contractor or affiliate of a national |
| 6297 |
government. As such, the Government retains a nonexclusive, |
| 6298 |
royalty-free right to publish or reproduce this article, or to |
| 6299 |
allow others to do so, for Government purposes only. Request |
| 6300 |
permissions from owner\hspace*{.5pt}/author(s). |
| 6301 |
\or % licensedothergov |
| 6302 |
Publication rights licensed to ACM\@. ACM acknowledges that this |
| 6303 |
contribution was authored or co-authored by an employee, contractor |
| 6304 |
or affiliate of a national government. As such, the Government |
| 6305 |
retains a nonexclusive, royalty-free right to publish or reproduce |
| 6306 |
this article, or to allow others to do so, for Government purposes |
| 6307 |
only. Request permissions from owner\hspace*{.5pt}/author(s). |
| 6308 |
\or % iw3c2w3 |
| 6309 |
This paper is published under the Creative Commons Attribution~4.0 |
| 6310 |
International (CC-BY~4.0) license. Authors reserve their rights to |
| 6311 |
disseminate the work on their personal and corporate Web sites with |
| 6312 |
the appropriate attribution. |
| 6313 |
\or % iw3c2w3g |
| 6314 |
This paper is published under the Creative Commons |
| 6315 |
Attribution-NonCommercial-NoDerivs~4.0 International |
| 6316 |
(CC-BY-NC-ND~4.0) license. Authors reserve their rights to |
| 6317 |
disseminate the work on their personal and corporate Web sites with |
| 6318 |
the appropriate attribution. |
| 6319 |
\or % CC |
| 6320 |
\IfEq{\ACM@cc@type}{zero}{% |
| 6321 |
\def\ACM@CC@Url{https://creativecommons.org/publicdomain/zero/1.0}}{% |
| 6322 |
\edef\ACM@CC@Url{https://creativecommons.org/licenses/\ACM@cc@type/\ACM@cc@version}}% |
| 6323 |
\href{\ACM@CC@Url}{\includegraphics[height=5ex]{doclicense-CC-\ACM@cc@type-88x31}}\\ |
| 6324 |
\href{\ACM@CC@Url}{% |
| 6325 |
This work is licensed under a Creative Commons |
| 6326 |
\IfEq{\ACM@cc@type}{zero}{CC0 1.0 Universal}{% |
| 6327 |
\IfEq{\ACM@cc@type}{by}{Attribution}{}% |
| 6328 |
\IfEq{\ACM@cc@type}{by-sa}{Attribution-ShareAlike}{}% |
| 6329 |
\IfEq{\ACM@cc@type}{by-nd}{Attribution-NoDerivatives}{}% |
| 6330 |
\IfEq{\ACM@cc@type}{by-nc}{Attribution-NonCommercial}{}% |
| 6331 |
\IfEq{\ACM@cc@type}{by-nc-sa}{Attribution-NonCommercial-ShareAlike}{}% |
| 6332 |
\IfEq{\ACM@cc@type}{by-nc-nd}{Attribution-NonCommercial-NoDerivatives}{}% |
| 6333 |
~\IfEq{\ACM@cc@version}{4.0}{4.0 International}{3.0 Unported}% |
| 6334 |
} |
| 6335 |
License.}% |
| 6336 |
\fi} |
| 6337 |
% \end{macrocode} |
| 6338 |
% |
| 6339 |
% \end{macro} |
| 6340 |
% |
| 6341 |
%% |
| 6342 |
% |
| 6343 |
% \begin{macro}{\copyrightyear} |
| 6344 |
% By default, the copyright year is the same as \cs{acmYear}, but |
| 6345 |
% one can override this: |
| 6346 |
% \begin{macrocode} |
| 6347 |
\def\copyrightyear#1{\def\@copyrightyear{#1}} |
| 6348 |
\copyrightyear{\@acmYear} |
| 6349 |
% \end{macrocode} |
| 6350 |
% |
| 6351 |
% \end{macro} |
| 6352 |
% |
| 6353 |
% \begin{macro}{\@teaserfigures} |
| 6354 |
% The teaser figures container |
| 6355 |
% \begin{macrocode} |
| 6356 |
\def\@teaserfigures{} |
| 6357 |
% \end{macrocode} |
| 6358 |
% |
| 6359 |
% \end{macro} |
| 6360 |
% |
| 6361 |
% \begin{macro}{teaserfigure} |
| 6362 |
% The teaser figure |
| 6363 |
% \begin{macrocode} |
| 6364 |
\newenvironment{teaserfigure}{\Collect@Body\@saveteaser}{} |
| 6365 |
% \end{macrocode} |
| 6366 |
% |
| 6367 |
% \end{macro} |
| 6368 |
% |
| 6369 |
% \begin{macro}{\@saveteaser} |
| 6370 |
% Saving the teaser |
| 6371 |
% \begin{macrocode} |
| 6372 |
\long\def\@saveteaser#1{\g@addto@macro\@teaserfigures{\@teaser{#1}}} |
| 6373 |
% \end{macrocode} |
| 6374 |
% |
| 6375 |
% \end{macro} |
| 6376 |
% |
| 6377 |
% \begin{macro}{\thanks} |
| 6378 |
% We redefine |amsart| \cs{thanks} so the |anonymous| key works |
| 6379 |
% \begin{macrocode} |
| 6380 |
\renewcommand{\thanks}[1]{% |
| 6381 |
\@ifnotempty{#1}{% |
| 6382 |
\if@ACM@anonymous |
| 6383 |
\g@addto@macro\thankses{\thanks{A note}}% |
| 6384 |
\else |
| 6385 |
\g@addto@macro\thankses{\thanks{#1}}% |
| 6386 |
\fi}} |
| 6387 |
% \end{macrocode} |
| 6388 |
% |
| 6389 |
% \end{macro} |
| 6390 |
% |
| 6391 |
% \begin{macro}{\anon} |
| 6392 |
% \changes{v1.82}{2022/01/11}{Introduced macro}% |
| 6393 |
% We provide \cs{anon} command, which obscures parts of the text |
| 6394 |
% if the package option |anonymous| is set |
| 6395 |
% \begin{macrocode} |
| 6396 |
\newcommand{\anon}[2][ANONYMIZED]{% |
| 6397 |
\if@ACM@anonymous% |
| 6398 |
{\color{ACMOrange}#1}% |
| 6399 |
\else% |
| 6400 |
#2% |
| 6401 |
\fi} |
| 6402 |
% \end{macrocode} |
| 6403 |
% |
| 6404 |
% \end{macro} |
| 6405 |
% |
| 6406 |
% |
| 6407 |
%\subsection{Maketitle hook} |
| 6408 |
%\label{sec:hook} |
| 6409 |
% |
| 6410 |
% The current \LaTeX\ provides a nice |lthooks| mechanism. However, |
| 6411 |
% since it is relatively new, we will use oldfashioned approach---at |
| 6412 |
% least for now. |
| 6413 |
% |
| 6414 |
% \begin{macro}{\@beginmaketitlehook} |
| 6415 |
% \changes{v1.75}{2020/11/15}{Introduced macro} |
| 6416 |
% The hook |
| 6417 |
% \begin{macrocode} |
| 6418 |
\ifx\@beginmaketitlehook\@undefined |
| 6419 |
\let\@beginmaketitlehook\@empty |
| 6420 |
\fi |
| 6421 |
% \end{macrocode} |
| 6422 |
% \end{macro} |
| 6423 |
% |
| 6424 |
% \begin{macro}{\AtBeginMaketitle} |
| 6425 |
% \changes{v1.75}{2020/11/15}{Introduced macro} |
| 6426 |
% Adding to the hook |
| 6427 |
% \begin{macrocode} |
| 6428 |
\def\AtBeginMaketitle{\g@addto@macro\@beginmaketitlehook} |
| 6429 |
% \end{macrocode} |
| 6430 |
% \end{macro} |
| 6431 |
% |
| 6432 |
% |
| 6433 |
%\subsection{ACM Engage top matter} |
| 6434 |
%\label{sec:acmengagetop} |
| 6435 |
% |
| 6436 |
% \begin{macro}{\@acmengagemetadata} |
| 6437 |
% \changes{v1.85}{2022/05/08}{Introduced macro} |
| 6438 |
% The special metadata for ACM engage course materials |
| 6439 |
% \begin{macrocode} |
| 6440 |
\def\@acmengagemetadata{} |
| 6441 |
% \end{macrocode} |
| 6442 |
% |
| 6443 |
% \end{macro} |
| 6444 |
% |
| 6445 |
% \begin{macro}{\setengagemetadata} |
| 6446 |
% \changes{v1.85}{2022/05/08}{Introduced macro} |
| 6447 |
% Adding topic to engage metadata |
| 6448 |
% \begin{macrocode} |
| 6449 |
\def\setengagemetadata#1#2{% |
| 6450 |
\g@addto@macro{\@acmengagemetadata}{% |
| 6451 |
\@setengagemetadata{#1}{#2}}} |
| 6452 |
% \end{macrocode} |
| 6453 |
% |
| 6454 |
% \end{macro} |
| 6455 |
% |
| 6456 |
% \subsection{Typesetting top matter} |
| 6457 |
% \label{sec:maketitle} |
| 6458 |
% |
| 6459 |
% \begin{macro}{\mktitle@bx} |
| 6460 |
% Some of our formats use a two-column design. Some use a one-column |
| 6461 |
% design. In all cases we use a wide title. Thus we typeset the top |
| 6462 |
% matter in a special box to be used in the construction |
| 6463 |
% \cs{@twocolumn}\oarg{box}. |
| 6464 |
% \begin{macrocode} |
| 6465 |
\newbox\mktitle@bx |
| 6466 |
% \end{macrocode} |
| 6467 |
% |
| 6468 |
% \end{macro} |
| 6469 |
% |
| 6470 |
% |
| 6471 |
% \begin{macro}{\maketitle} |
| 6472 |
% \changes{v1.03}{2016/04/22}{Added special case of authorversion} |
| 6473 |
% \changes{v1.07}{2016/05/03}{Corrected a bug with abstract footnotes} |
| 6474 |
% \changes{v1.07}{2016/05/03}{Corrected a bug with permssion and |
| 6475 |
% footnotes order} |
| 6476 |
% \changes{v1.10}{2016/05/23}{Corrected a bug with doi in manuscript |
| 6477 |
% and author vertsion, |
| 6478 |
% \url{https://github.com/borisveytsman/acmart/issues/36}} |
| 6479 |
% \changes{v1.12}{2016/05/30}{Moved thankses to copyrightpermission box} |
| 6480 |
% \changes{v1.33}{2017/03/27}{Fixed the bug with figures on top and |
| 6481 |
% bottom of the title page, thanks to David Epstein} |
| 6482 |
% \changes{v1.34}{2017/04/09}{Deleted `DOI' from doi numbers} |
| 6483 |
% \changes{v1.34}{2017/04/09}{Added date to the bibstrip in conf proceedings} |
| 6484 |
% \changes{v1.34}{2017/04/09}{The \cs{terms} command is now obsolete} |
| 6485 |
% \changes{v1.34}{2017/04/11}{Rearranged bibstrip} |
| 6486 |
% \changes{v1.44}{2017/07/30}{Empty DOI or ISBN are not printed (by |
| 6487 |
% Michael Ekstrand)} |
| 6488 |
% \changes{v1.46}{2017/08/27}{Added authors' addresses} |
| 6489 |
% \changes{v1.46}{2017/08/28}{Thankses go before authors' addresses} |
| 6490 |
% \changes{v1.48}{2017/09/23}{Added acmart and version info to |
| 6491 |
% pdfcreator tag} |
| 6492 |
% \changes{v1.48}{2017/10/14}{Suppressed empty DOI (Serguei Mokhov)} |
| 6493 |
% \changes{v1.48}{2017/11/18}{Added language and doctitle attributes |
| 6494 |
% to PDF (Andreas Reichinger)} |
| 6495 |
% \changes{v1.55}{2018/10/14}{Fixes topnum} |
| 6496 |
% \changes{v1.58}{2019/01/23}{Original \cs{vspace} inside |
| 6497 |
% \cs{maketitle}} |
| 6498 |
% \changes{v1.64}{2019/08/17}{Added a switch setting to show that |
| 6499 |
% \cs{maketitle} is typeset} |
| 6500 |
% \changes{v1.72}{2020/06/14}{Do not andify authors for pdf metadata |
| 6501 |
% (Scott Pakin)} |
| 6502 |
% \changes{v1.73}{2020/09/07}{Do not check again the presense of |
| 6503 |
% address fields} |
| 6504 |
% \changes{v1.75}{2020/11/15}{Added \cs{@beginmaketitlehook}} |
| 6505 |
% \changes{v1.76}{2021/04/05}{Put \cs{par} inside group for keywords} |
| 6506 |
% \changes{v1.83}{2022/02/20}{I13n} |
| 6507 |
% \changes{v1.85}{2022/05/08}{acmengage} |
| 6508 |
% \changes{v1.87}{2022/07/30}{CC license are allowed for non-acm |
| 6509 |
% publications} |
| 6510 |
% \changes{v2.00}{2023/10/24}{Deleted acmPrice} |
| 6511 |
% \changes{v2.00}{2023/11/05}{Added ``ACM'' for papers} |
| 6512 |
% \changes{v2.03}{2023/12/04}{Special processing for conferences in |
| 6513 |
% TOG} |
| 6514 |
% \changes{v2.11}{2024/12/07}{Deleted conference date from bibstrip} |
| 6515 |
% The (in)famous \cs{maketitle}. Note that in |sigchi-a| mode, authors |
| 6516 |
% are \emph{not} in the title box. |
| 6517 |
% |
| 6518 |
% Another note: there is a subtle difference between author notes, |
| 6519 |
% title notes and thanks. The latter two refer to the paper itself |
| 6520 |
% and therefore belong to the copyright/permission block. By the |
| 6521 |
% way, this was the default behavior of the old ACM classes. |
| 6522 |
% \begin{macrocode} |
| 6523 |
\def\maketitle{\@beginmaketitlehook |
| 6524 |
\@ACM@maketitle@typesettrue |
| 6525 |
\if@ACM@anonymous |
| 6526 |
% Anonymize omission of \author-s |
| 6527 |
\ifnum\num@authorgroups=0\author{}\fi |
| 6528 |
\fi |
| 6529 |
\begingroup |
| 6530 |
\let\@vspace\@vspace@orig |
| 6531 |
\let\@vspacer\@vspacer@orig |
| 6532 |
\let\@footnotemark\@footnotemark@nolink |
| 6533 |
\let\@footnotetext\@footnotetext@nolink |
| 6534 |
\renewcommand\thefootnote{\@fnsymbol\c@footnote}% |
| 6535 |
\hsize=\textwidth |
| 6536 |
\def\@makefnmark{\hbox{\@textsuperscript{\@thefnmark}}}% |
| 6537 |
\@mktitle\if@ACM@sigchiamode\else\@mkauthors\fi\@mkteasers |
| 6538 |
\@printtopmatter |
| 6539 |
\if@ACM@sigchiamode\@mkauthors\fi |
| 6540 |
\setcounter{footnote}{0}% |
| 6541 |
\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}% |
| 6542 |
\@titlenotes |
| 6543 |
\@subtitlenotes |
| 6544 |
\@authornotes |
| 6545 |
\let\@makefnmark\relax |
| 6546 |
\let\@thefnmark\relax |
| 6547 |
\let\@makefntext\noindent |
| 6548 |
\ifx\@empty\thankses\else |
| 6549 |
\footnotetextauthorsaddresses{% |
| 6550 |
\def\par{\let\par\@par}\parindent\z@\@setthanks}% |
| 6551 |
\fi |
| 6552 |
\if@ACM@acmcp\else |
| 6553 |
\ifx\@empty\@authorsaddresses\else |
| 6554 |
\if@ACM@anonymous\else |
| 6555 |
\if@ACM@journal@bibstrip@or@tog |
| 6556 |
\footnotetextauthorsaddresses{% |
| 6557 |
\def\par{\let\par\@par}\parindent\z@\@setauthorsaddresses}% |
| 6558 |
\fi |
| 6559 |
\fi |
| 6560 |
\fi |
| 6561 |
\fi |
| 6562 |
\if@ACM@nonacm |
| 6563 |
\ifnum\acm@copyrightmode=15\relax % cc |
| 6564 |
\footnotetextcopyrightpermission{\@copyrightpermission}% |
| 6565 |
\fi |
| 6566 |
\else |
| 6567 |
\if@ACM@acmcp\else |
| 6568 |
\footnotetextcopyrightpermission{% |
| 6569 |
\if@ACM@authordraft |
| 6570 |
\raisebox{-2ex}[\z@][\z@]{\makebox[0pt][l]{\large\bfseries |
| 6571 |
Unpublished working draft. Not for distribution.}}% |
| 6572 |
\color[gray]{0.9}% |
| 6573 |
\fi |
| 6574 |
\parindent\z@\parskip0.1\baselineskip |
| 6575 |
\if@ACM@authorversion\else |
| 6576 |
\if@printpermission\@copyrightpermission\par\fi |
| 6577 |
\fi |
| 6578 |
\if@ACM@manuscript\else |
| 6579 |
\if@ACM@journal@bibstrip\else % Print the conference information |
| 6580 |
\if@ACM@engage |
| 6581 |
{\itshape \@acmBooktitle, \@acmYear.}\par |
| 6582 |
\else |
| 6583 |
{\itshape \acmConference@shortname, \acmConference@venue}\par |
| 6584 |
\fi |
| 6585 |
\fi |
| 6586 |
\fi |
| 6587 |
\if@printcopyright |
| 6588 |
\copyright\ \@copyrightyear\ \@copyrightowner\\ |
| 6589 |
\else |
| 6590 |
\ifx\@copyrightyear\@empty\else |
| 6591 |
\@copyrightyear.\ |
| 6592 |
\fi |
| 6593 |
\fi |
| 6594 |
\if@ACM@manuscript |
| 6595 |
Manuscript submitted to ACM\\ |
| 6596 |
\else |
| 6597 |
\if@ACM@authorversion |
| 6598 |
This is the author's version of the work. It is posted here for |
| 6599 |
your personal use. Not for redistribution. The definitive Version |
| 6600 |
of Record was published in |
| 6601 |
\if@ACM@journal@bibstrip |
| 6602 |
\emph{\@journalName}% |
| 6603 |
\else |
| 6604 |
\emph{\@acmBooktitle}% |
| 6605 |
\fi |
| 6606 |
\ifx\@acmDOI\@empty |
| 6607 |
. |
| 6608 |
\else |
| 6609 |
, \@formatdoi{\@acmDOI}. |
| 6610 |
\fi\\ |
| 6611 |
\else |
| 6612 |
\if@ACM@nonacm\else |
| 6613 |
\if@ACM@journal@bibstrip |
| 6614 |
ACM~\@permissionCodeTwo/\@acmYear/\@acmMonth-ART\@acmArticle\\ |
| 6615 |
\@formatdoi{\@acmDOI}% |
| 6616 |
\else % Conference |
| 6617 |
\ifx\@acmISBN\@empty\else ACM~ISBN~\@acmISBN\\\fi |
| 6618 |
\ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi% |
| 6619 |
\fi |
| 6620 |
\fi |
| 6621 |
\fi |
| 6622 |
\fi}% |
| 6623 |
\fi |
| 6624 |
\fi |
| 6625 |
\endgroup |
| 6626 |
\if@ACM@engage\@typesetengagemetadata\fi |
| 6627 |
\setcounter{footnote}{0}% |
| 6628 |
\@mkabstract |
| 6629 |
\ifx\@translatedabstracts\@empty\else |
| 6630 |
\@translatedabstracts\fi |
| 6631 |
\if@ACM@printccs |
| 6632 |
\ifx\@concepts\@empty\else\bgroup |
| 6633 |
{\@specialsection{CCS Concepts}% |
| 6634 |
\noindent\@concepts\par}\egroup |
| 6635 |
\fi |
| 6636 |
\fi |
| 6637 |
\if@ACM@acmcp\else |
| 6638 |
\ifx\@keywords\@empty\else\bgroup |
| 6639 |
{\@specialsection{\keywordsname}% |
| 6640 |
\noindent\@keywords\par}\egroup |
| 6641 |
\fi |
| 6642 |
\ifx\@translatedkeywords\@empty\else |
| 6643 |
\@translatedkeywords |
| 6644 |
\fi |
| 6645 |
\fi |
| 6646 |
\let\metadata@authors=\authors |
| 6647 |
\nxandlist{, }{, }{, }\metadata@authors |
| 6648 |
\def\@ACM@checkaffil{}% |
| 6649 |
\hypersetup{% |
| 6650 |
pdfauthor={\metadata@authors}, |
| 6651 |
pdftitle={\@title}, |
| 6652 |
pdfsubject={\@concepts}, |
| 6653 |
pdfkeywords={\@keywords}, |
| 6654 |
pdfcreator={LaTeX with acmart |
| 6655 |
\csname ver@\@classname.cls\endcsname\space |
| 6656 |
and hyperref |
| 6657 |
\csname [email protected]\endcsname}}% |
| 6658 |
\andify\authors |
| 6659 |
\andify\shortauthors |
| 6660 |
\global\let\authors=\authors |
| 6661 |
\global\let\shortauthors=\shortauthors |
| 6662 |
\if@ACM@printacmref |
| 6663 |
\@mkbibcitation |
| 6664 |
\fi |
| 6665 |
\global\@topnum\z@ % this prevents floats from falling |
| 6666 |
% at the top of page 1 |
| 6667 |
\global\@botnum\z@ % we do not want them to be on the bottom either |
| 6668 |
\@printendtopmatter |
| 6669 |
\@afterindentfalse |
| 6670 |
\@afterheading |
| 6671 |
\if@ACM@acmcp |
| 6672 |
\set@ACM@acmcpbox |
| 6673 |
\AtEndDocument{\end@ACM@color@frame}% |
| 6674 |
\@ACM@color@frame |
| 6675 |
\fi |
| 6676 |
} |
| 6677 |
% \end{macrocode} |
| 6678 |
% |
| 6679 |
% \end{macro} |
| 6680 |
% |
| 6681 |
% \begin{macro}{\set@ACM@acmcpbox} |
| 6682 |
% \changes{v1.87}{2022/08/14}{Added macro} |
| 6683 |
% \changes{v1.89}{2022/12/25}{Added logo} |
| 6684 |
% \changes{v1.89}{2022/12/25}{Added zref position of the bottom} |
| 6685 |
% Setting infobox for acmcp |
| 6686 |
% \begin{macrocode} |
| 6687 |
\newbox\@ACM@acmcpbox |
| 6688 |
\def\set@ACM@acmcpbox{% |
| 6689 |
\bgroup |
| 6690 |
\hsize=5pc |
| 6691 |
\global\setbox\@ACM@acmcpbox=\vbox{% |
| 6692 |
\setlength{\parindent}{\z@}% |
| 6693 |
{\includegraphics[width=\hsize]{acm-jdslogo}\par}% |
| 6694 |
\scriptsize |
| 6695 |
\ifnum\getrefnumber{TotPages}>1\else |
| 6696 |
\zrefused{@ACM@acmcpbox@y}% |
| 6697 |
\zrefused{@ACM@acmcpframe@y}% |
| 6698 |
\@tempdima=\dimexpr\zposy{@ACM@acmcpbox@y}sp - |
| 6699 |
\zposy{@ACM@acmcpframe@y}sp+0.3\FrameSep+ |
| 6700 |
\@ACM@acmcp@delta\relax |
| 6701 |
\ifdim\@tempdima>0pt\relax |
| 6702 |
\vspace*{\@tempdima}% |
| 6703 |
\protected@write\@auxout{}% |
| 6704 |
{\string\global\@ACM@acmcp@delta=\the\@tempdima\relax}% |
| 6705 |
\fi |
| 6706 |
\fi |
| 6707 |
\ifx\@acmCodeDataLink\@empty\else\bigskip |
| 6708 |
Code and data links:\\ \@acmCodeDataLink\par\bigskip |
| 6709 |
\fi |
| 6710 |
\ifx\@keywords\@empty\else\bigskip |
| 6711 |
Keywords: \@keywords\par |
| 6712 |
\fi |
| 6713 |
\ifx\@acmContributions\@empty\else\bigskip |
| 6714 |
\@acmContributions\par |
| 6715 |
\fi |
| 6716 |
\ifx\@empty\@authorsaddresses\else\bigskip\@setauthorsaddresses\fi |
| 6717 |
\zsaveposy{@ACM@acmcpbox@y}% |
| 6718 |
\par |
| 6719 |
} |
| 6720 |
\egroup} |
| 6721 |
% \end{macrocode} |
| 6722 |
% |
| 6723 |
% \end{macro} |
| 6724 |
% |
| 6725 |
% |
| 6726 |
% \begin{macro}{\@specialsection} |
| 6727 |
% \changes{v1.66}{2019/11/23}{Suppress warnings about \cs{vspace}} |
| 6728 |
% \changes{v1.67}{2020/01/11}{Paragraph inside group does not print |
| 6729 |
% its argument. Added a bugfix} |
| 6730 |
% \changes{v1.68}{2020/01/19}{Deleted grouping altogether} |
| 6731 |
% \changes{v1.69}{2020/02/02}{Changed dot to colon for sigplan} |
| 6732 |
% \changes{v1.78}{2021/05/02}{Again suppressed \cs{vspace} warning} |
| 6733 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 6734 |
% This macro starts sections for proceedings and uses \cs{small} for journals |
| 6735 |
% \begin{macrocode} |
| 6736 |
\def\@specialsection#1{% |
| 6737 |
\let\@vspace\@vspace@orig |
| 6738 |
\let\@vspacer\@vspacer@orig |
| 6739 |
\ifcase\ACM@format@nr |
| 6740 |
\relax % manuscript |
| 6741 |
\par\medskip\small\noindent#1: % |
| 6742 |
\or % acmsmall |
| 6743 |
\par\medskip\small\noindent#1: % |
| 6744 |
\or % acmlarge |
| 6745 |
\par\medskip\small\noindent#1: % |
| 6746 |
\or % acmtog |
| 6747 |
\par\medskip\small\noindent#1: % |
| 6748 |
\or % sigconf |
| 6749 |
\section*{#1}% |
| 6750 |
\or % siggraph |
| 6751 |
\section*{#1}% |
| 6752 |
\or % sigplan |
| 6753 |
\noindentparagraph*{#1:~}% |
| 6754 |
\or % sigchi |
| 6755 |
\section*{#1}% |
| 6756 |
\or % sigchi-a |
| 6757 |
\section*{#1}% |
| 6758 |
\or % acmengage |
| 6759 |
\section*{#1}% |
| 6760 |
\or % acmcp |
| 6761 |
\section*{#1}% |
| 6762 |
\fi |
| 6763 |
\let\@vspace\@vspace@acm |
| 6764 |
\let\@vspacer\@vspacer@acm |
| 6765 |
} |
| 6766 |
% \end{macrocode} |
| 6767 |
% |
| 6768 |
% \end{macro} |
| 6769 |
% |
| 6770 |
% |
| 6771 |
% \begin{macro}{\@printtopmatter} |
| 6772 |
% \changes{v1.06}{2016/05/01}{Added processing badges} |
| 6773 |
% \changes{v1.46}{2017/08/29}{Deleted rule} |
| 6774 |
% \changes{v1.78}{2021/05/16}{Added processing the overflowing title box} |
| 6775 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 6776 |
% \changes{1.89}{2022/12/27}{Moved badges to top header} |
| 6777 |
% The printing of top matter starts a new page and uses the given |
| 6778 |
% title box. |
| 6779 |
% |
| 6780 |
% Note that if there are too many authors, |\mktitle@bx| might |
| 6781 |
% overflow the page. Therefore we start with checking this and if |
| 6782 |
% this happens, we split the box and print it page by page. |
| 6783 |
% \begin{macrocode} |
| 6784 |
\def\@printtopmatter{% |
| 6785 |
\ifx\@startPage\@empty |
| 6786 |
\gdef\@startPage{1}% |
| 6787 |
\else |
| 6788 |
\setcounter{page}{\@startPage}% |
| 6789 |
\fi |
| 6790 |
\@tempdima=\ht\mktitle@bx |
| 6791 |
\advance\@tempdima by \dp\mktitle@bx |
| 6792 |
\ifdim\@tempdima>0.9\textheight |
| 6793 |
\loop |
| 6794 |
\setbox\@tempboxa=\vsplit \mktitle@bx to 0.9\textheight |
| 6795 |
\thispagestyle{firstpagestyle}% |
| 6796 |
\noindent\unvbox\@tempboxa |
| 6797 |
\clearpage |
| 6798 |
\@tempdima=\ht\mktitle@bx |
| 6799 |
\advance\@tempdima by \dp\mktitle@bx |
| 6800 |
\ifdim\@tempdima>0.9\textheight\repeat |
| 6801 |
\fi |
| 6802 |
\thispagestyle{firstpagestyle}% |
| 6803 |
\noindent |
| 6804 |
\ifcase\ACM@format@nr |
| 6805 |
\relax % manuscript |
| 6806 |
\box\mktitle@bx\par |
| 6807 |
\or % acmsmall |
| 6808 |
\box\mktitle@bx\par |
| 6809 |
\or % acmlarge |
| 6810 |
\box\mktitle@bx\par |
| 6811 |
\or % acmtog |
| 6812 |
\twocolumn[\box\mktitle@bx]% |
| 6813 |
\or % sigconf |
| 6814 |
\twocolumn[\box\mktitle@bx]% |
| 6815 |
\or % siggraph |
| 6816 |
\twocolumn[\box\mktitle@bx]% |
| 6817 |
\or % sigplan |
| 6818 |
\twocolumn[\box\mktitle@bx]% |
| 6819 |
\or % sigchi |
| 6820 |
\twocolumn[\box\mktitle@bx]% |
| 6821 |
\or % sigchi-a |
| 6822 |
\par\box\mktitle@bx\par\bigskip |
| 6823 |
\or % acmengage |
| 6824 |
\twocolumn[\box\mktitle@bx]% |
| 6825 |
\or % acmcp |
| 6826 |
\box\mktitle@bx\par |
| 6827 |
\fi |
| 6828 |
} |
| 6829 |
% \end{macrocode} |
| 6830 |
% |
| 6831 |
% \end{macro} |
| 6832 |
% |
| 6833 |
% \begin{macro}{\@mktitle} |
| 6834 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 6835 |
% The title of the article |
| 6836 |
% \begin{macrocode} |
| 6837 |
\def\@mktitle{% |
| 6838 |
\ifcase\ACM@format@nr |
| 6839 |
\relax % manuscript |
| 6840 |
\@mktitle@i |
| 6841 |
\or % acmsmall |
| 6842 |
\@mktitle@i |
| 6843 |
\or % acmlarge |
| 6844 |
\@mktitle@i |
| 6845 |
\or % acmtog |
| 6846 |
\@mktitle@i |
| 6847 |
\or % sigconf |
| 6848 |
\@mktitle@iii |
| 6849 |
\or % siggraph |
| 6850 |
\@mktitle@iii |
| 6851 |
\or % sigplan |
| 6852 |
\@mktitle@iii |
| 6853 |
\or % sigchi |
| 6854 |
\@mktitle@iii |
| 6855 |
\or % sigchi-a |
| 6856 |
\@mktitle@iv |
| 6857 |
\or % acmengage |
| 6858 |
\@mktitle@iii |
| 6859 |
\or % acmcp |
| 6860 |
\@mktitle@i |
| 6861 |
\fi |
| 6862 |
} |
| 6863 |
% \end{macrocode} |
| 6864 |
% |
| 6865 |
% \end{macro} |
| 6866 |
% |
| 6867 |
% \begin{macro}{\@titlefont} |
| 6868 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 6869 |
% \changes{v1.45}{2017/08/15}{Switched \cs{bfeseries}\cs{sffamily} to |
| 6870 |
% \cs{sffamily}\cs{bfseries}} |
| 6871 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 6872 |
% The font to typeset the title |
| 6873 |
% \begin{macrocode} |
| 6874 |
\def\@titlefont{% |
| 6875 |
\ifcase\ACM@format@nr |
| 6876 |
\relax % manuscript |
| 6877 |
\LARGE\sffamily\bfseries |
| 6878 |
\or % acmsmall |
| 6879 |
\LARGE\sffamily\bfseries |
| 6880 |
\or % acmlarge |
| 6881 |
\LARGE\sffamily\bfseries |
| 6882 |
\or % acmtog |
| 6883 |
\Huge\sffamily |
| 6884 |
\or % sigconf |
| 6885 |
\Huge\sffamily\bfseries |
| 6886 |
\or % siggraph |
| 6887 |
\Huge\sffamily\bfseries |
| 6888 |
\or % sigplan |
| 6889 |
\Huge\bfseries |
| 6890 |
\or % sigchi |
| 6891 |
\Huge\sffamily\bfseries |
| 6892 |
\or % sigchi-a |
| 6893 |
\Huge\bfseries |
| 6894 |
\or % acmengage |
| 6895 |
\Huge\sffamily\bfseries |
| 6896 |
\or % acmcp |
| 6897 |
\LARGE\sffamily\bfseries |
| 6898 |
\fi} |
| 6899 |
% \end{macrocode} |
| 6900 |
% |
| 6901 |
% \end{macro} |
| 6902 |
% |
| 6903 |
% \begin{macro}{\@subtitlefont} |
| 6904 |
% \changes{v1.06}{2016/05/01}{Added macro} |
| 6905 |
% \changes{v1.33}{2017/03/12}{Added \cs{normalsize}} |
| 6906 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 6907 |
% The font to typeset the subtitle |
| 6908 |
% \begin{macrocode} |
| 6909 |
\def\@subtitlefont{\normalsize |
| 6910 |
\ifcase\ACM@format@nr |
| 6911 |
\relax % manuscript |
| 6912 |
\mdseries |
| 6913 |
\or % acmsmall |
| 6914 |
\mdseries |
| 6915 |
\or % acmlarge |
| 6916 |
\mdseries |
| 6917 |
\or % acmtog |
| 6918 |
\LARGE |
| 6919 |
\or % sigconf |
| 6920 |
\LARGE\mdseries |
| 6921 |
\or % siggraph |
| 6922 |
\LARGE\mdseries |
| 6923 |
\or % sigplan |
| 6924 |
\LARGE\mdseries |
| 6925 |
\or % sigchi |
| 6926 |
\LARGE\mdseries |
| 6927 |
\or % sigchi-a |
| 6928 |
\mdseries |
| 6929 |
\or % acmengage |
| 6930 |
\LARGE\mdseries |
| 6931 |
\or % acmcp |
| 6932 |
\mdseries |
| 6933 |
\fi} |
| 6934 |
% \end{macrocode} |
| 6935 |
% |
| 6936 |
% \end{macro} |
| 6937 |
% |
| 6938 |
% \begin{macro}{\@mktitle@i} |
| 6939 |
% \changes{v1.06}{2016/05/01}{Made generic} |
| 6940 |
% \changes{v1.06}{2016/05/01}{Added processing badges} |
| 6941 |
% \changes{v1.83}{2022/02/20}{Added \cs{translatedtitle} and |
| 6942 |
% \cs{translatedsubtitle}} |
| 6943 |
% \changes{v1.87}{2022/08/14}{Special treatment for acmcp} |
| 6944 |
% \changes{v1.88}{2022/10/24}{Moved down title for acmcp} |
| 6945 |
% \changes{v1.89}{2022/12/27}{Moved badges to top header} |
| 6946 |
% \changes{v1.89}{2023/01/07}{Moved up acmcp title} |
| 6947 |
% The version of \cs{mktitle} for most journals |
| 6948 |
% \begin{macrocode} |
| 6949 |
\def\@mktitle@i{\hsize=\textwidth |
| 6950 |
\if@ACM@acmcp |
| 6951 |
\advance\hsize by -6pc% |
| 6952 |
\fi |
| 6953 |
\@ACM@title@width=\hsize |
| 6954 |
\setbox\mktitle@bx=\vbox{\noindent\@titlefont |
| 6955 |
\parbox[t]{\@ACM@title@width}{\raggedright |
| 6956 |
\@titlefont\noindent |
| 6957 |
\@title\@translatedtitle% |
| 6958 |
\ifx\@subtitle\@empty\else |
| 6959 |
\par\noindent{\@subtitlefont\@subtitle\@translatedsubtitle}% |
| 6960 |
\fi}% |
| 6961 |
\par\bigskip}}% |
| 6962 |
% \end{macrocode} |
| 6963 |
% |
| 6964 |
% \end{macro} |
| 6965 |
% |
| 6966 |
% \begin{macro}{\@mktitle@ii} |
| 6967 |
% \changes{v1.06}{2016/05/01}{Now this macro is obsolete} |
| 6968 |
% The version of \cs{mktitle} for TOG. Since v1.06, this is subsumed by |
| 6969 |
% the \cs{mktitle@i} macro |
| 6970 |
% \end{macro} |
| 6971 |
% |
| 6972 |
% |
| 6973 |
% \begin{macro}{\@mktitle@iii} |
| 6974 |
% \changes{v1.06}{2016/05/01}{Made more generic} |
| 6975 |
% \changes{v1.06}{2016/05/01}{Added processing badges} |
| 6976 |
% \changes{v1.83}{2022/02/20}{Added \cs{translatedtitle} and |
| 6977 |
% \cs{translatedsubtitle}} |
| 6978 |
% \changes{v1.89}{2022/12/27}{Moved badges to top header} |
| 6979 |
% The version of \cs{@mktitle} for SIG proceedings. |
| 6980 |
% \begin{macrocode} |
| 6981 |
\def\@mktitle@iii{\hsize=\textwidth |
| 6982 |
\setbox\mktitle@bx=\vbox{\@titlefont\centering |
| 6983 |
\@ACM@title@width=\hsize |
| 6984 |
\parbox[t]{\@ACM@title@width}{\centering\@titlefont |
| 6985 |
\@title\@translatedtitle% |
| 6986 |
\ifx\@subtitle\@empty\else |
| 6987 |
\par\noindent{\@subtitlefont\@subtitle\@translatedsubtitle} |
| 6988 |
\fi |
| 6989 |
}% |
| 6990 |
\par\bigskip}}% |
| 6991 |
% \end{macrocode} |
| 6992 |
% |
| 6993 |
% \end{macro} |
| 6994 |
% |
| 6995 |
% |
| 6996 |
% \begin{macro}{\@mktitle@iv} |
| 6997 |
% \changes{v1.06}{2016/05/01}{Made more generic} |
| 6998 |
% \changes{v1.83}{2022/02/20}{Added \cs{translatedtitle} and |
| 6999 |
% \cs{translatedsubtitle}} |
| 7000 |
% The version of \cs{@mktitle} for |sigchi-a| |
| 7001 |
% \begin{macrocode} |
| 7002 |
\def\@mktitle@iv{\hsize=\textwidth |
| 7003 |
\setbox\mktitle@bx=\vbox{\raggedright\leftskip5pc\@titlefont |
| 7004 |
\noindent\leavevmode\leaders\hrule height 2pt\hfill\kern0pt\par |
| 7005 |
\noindent\@title\@translatedtitle% |
| 7006 |
\ifx\@subtitle\@empty\else |
| 7007 |
\par\noindent\@subtitlefont\@subtitle\@translatedsubtitle% |
| 7008 |
\fi |
| 7009 |
\par\bigskip}}% |
| 7010 |
% \end{macrocode} |
| 7011 |
% |
| 7012 |
% \end{macro} |
| 7013 |
% |
| 7014 |
% \begin{macro}{\@ACM@addtoaddress} |
| 7015 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7016 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7017 |
% This macro adds an item to the address using the following rules: |
| 7018 |
% \begin{enumerate} |
| 7019 |
% \item If we start a paragraph, add the item |
| 7020 |
% \item Otherwise, add a comma and the item |
| 7021 |
% \item However, the comma is deleted if it is at the end of a |
| 7022 |
% line. We use the magic \cs{cleaders} trick for this. |
| 7023 |
% \end{enumerate} |
| 7024 |
% \begin{macrocode} |
| 7025 |
\newbox\@ACM@commabox |
| 7026 |
\def\@ACM@addtoaddress#1{% |
| 7027 |
\ifvmode\else |
| 7028 |
\if@ACM@affiliation@obeypunctuation\else |
| 7029 |
\setbox\@ACM@commabox=\hbox{, }% |
| 7030 |
\unskip\cleaders\copy\@ACM@commabox\hskip\wd\@ACM@commabox |
| 7031 |
\fi\fi |
| 7032 |
#1} |
| 7033 |
% \end{macrocode} |
| 7034 |
% \end{macro} |
| 7035 |
% |
| 7036 |
% \begin{macro}{\institution} |
| 7037 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7038 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7039 |
% \changes{v1.73}{2020/09/07}{Check the presence in affil} |
| 7040 |
% \begin{macro}{\position} |
| 7041 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7042 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7043 |
% \begin{macro}{\department} |
| 7044 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7045 |
% \changes{v1.30}{2017/02/10}{Added optional parameter} |
| 7046 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7047 |
% \begin{macro}{\streetaddress} |
| 7048 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7049 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7050 |
% \changes{v1.40}{2017/06/15}{We now do not print this even in SIG} |
| 7051 |
% \changes{v2.06}{2024/04/13}{We now do not collect postal information |
| 7052 |
% anymore} |
| 7053 |
% \begin{macro}{\city} |
| 7054 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7055 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7056 |
% \changes{v1.40}{2017/06/15}{We now do not print this even in SIG} |
| 7057 |
% \changes{v1.73}{2020/09/07}{Check the presence in affil} |
| 7058 |
% \begin{macro}{\state} |
| 7059 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7060 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7061 |
% \changes{v1.40}{2017/06/15}{We now do not print this even in SIG} |
| 7062 |
% \begin{macro}{\postcode} |
| 7063 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7064 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7065 |
% \changes{v1.40}{2017/06/15}{We now do not print this even in SIG} |
| 7066 |
% \changes{v2.06}{2024/04/13}{We now do not collect postal information |
| 7067 |
% anymore} |
| 7068 |
% \begin{macro}{\country} |
| 7069 |
% \changes{v1.15}{2016/07/03}{Added macro} |
| 7070 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7071 |
% \changes{v1.40}{2017/05/27}{Fixed bugs with extra spaces} |
| 7072 |
% \changes{v1.43}{2017/07/11}{Added comma before country for journals} |
| 7073 |
% \changes{v1.46}{2017/08/30}{Corrected spacing for institution} |
| 7074 |
% \changes{v1.73}{2020/09/07}{Check the presence in affil} |
| 7075 |
% \changes{v1.86}{2022/06/26}{Error if country is empty} |
| 7076 |
% Theoretically we can define the macros for \cs{affiliation} inside |
| 7077 |
% the \cs{@mkauthors}-style commands. However, this would lead to a |
| 7078 |
% strange error if an author uses them outside \cs{affiliation}. Of |
| 7079 |
% course we can make them produce an error message, but\ldots |
| 7080 |
% \begin{macrocode} |
| 7081 |
\def\streetaddress#1{\ClassWarning{\@classname}{ACM no longer collects |
| 7082 |
authors' postal addresses. I am ignoring your street |
| 7083 |
address}\unskip\ignorespaces} |
| 7084 |
\def\postcode#1{\ClassWarning{\@classname}{ACM no longer collects |
| 7085 |
authors' postal addresses. I am ignoring your postal |
| 7086 |
code}\unskip\ignorespaces} |
| 7087 |
\if@ACM@journal |
| 7088 |
\def\position#1{\unskip\ignorespaces} |
| 7089 |
\def\institution#1{\global\@ACM@instpresenttrue |
| 7090 |
\unskip~#1\ignorespaces} |
| 7091 |
\def\city#1{\global\@ACM@citypresenttrue\unskip\ignorespaces} |
| 7092 |
\def\state#1{\unskip\ignorespaces} |
| 7093 |
\newcommand\department[2][0]{\unskip\ignorespaces} |
| 7094 |
\def\country#1{\StrDel{#1}{ }[\@tempa]% |
| 7095 |
\ifx\@tempa\@empty\else |
| 7096 |
\global\@ACM@countrypresenttrue\fi |
| 7097 |
\if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} |
| 7098 |
\else |
| 7099 |
\def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% |
| 7100 |
\def\institution#1{\global\@ACM@instpresenttrue |
| 7101 |
\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% |
| 7102 |
\newcommand\department[2][0]{\if@ACM@affiliation@obeypunctuation |
| 7103 |
#2\else#2\par\fi}% |
| 7104 |
\def\city#1{\global\@ACM@citypresenttrue\@ACM@addtoaddress{#1}}% |
| 7105 |
\let\state\@ACM@addtoaddress |
| 7106 |
\def\country#1{\global\@ACM@countrypresenttrue\@ACM@addtoaddress{#1}}% |
| 7107 |
\fi |
| 7108 |
% \end{macrocode} |
| 7109 |
% |
| 7110 |
% \end{macro} |
| 7111 |
% \end{macro} |
| 7112 |
% \end{macro} |
| 7113 |
% \end{macro} |
| 7114 |
% \end{macro} |
| 7115 |
% \end{macro} |
| 7116 |
% \end{macro} |
| 7117 |
% \end{macro} |
| 7118 |
% |
| 7119 |
% \begin{macro}{\@mkauthors} |
| 7120 |
% \changes{v1.17}{2016/07/09}{TOG now uses the same authors block as |
| 7121 |
% other journals} |
| 7122 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 7123 |
% Typesetting the authors |
| 7124 |
% \begin{macrocode} |
| 7125 |
\def\@mkauthors{\begingroup |
| 7126 |
\hsize=\textwidth |
| 7127 |
\ifcase\ACM@format@nr |
| 7128 |
\relax % manuscript |
| 7129 |
\@mkauthors@i |
| 7130 |
\or % acmsmall |
| 7131 |
\@mkauthors@i |
| 7132 |
\or % acmlarge |
| 7133 |
\@mkauthors@i |
| 7134 |
\or % acmtog |
| 7135 |
\@mkauthors@i |
| 7136 |
\or % sigconf |
| 7137 |
\@mkauthors@iii |
| 7138 |
\or % siggraph |
| 7139 |
\@mkauthors@iii |
| 7140 |
\or % sigplan |
| 7141 |
\@mkauthors@iii |
| 7142 |
\or % sigchi |
| 7143 |
\@mkauthors@iii |
| 7144 |
\or % sigchi-a |
| 7145 |
\@mkauthors@iv |
| 7146 |
\or % acmengage |
| 7147 |
\@mkauthors@iii |
| 7148 |
\or % acmcp |
| 7149 |
\@mkauthors@i |
| 7150 |
\fi |
| 7151 |
\endgroup |
| 7152 |
} |
| 7153 |
% \end{macrocode} |
| 7154 |
% |
| 7155 |
% \end{macro} |
| 7156 |
% |
| 7157 |
% \begin{macro}{\@authorfont} |
| 7158 |
% Somehow different conferences use different fonts for author |
| 7159 |
% names. Why? |
| 7160 |
% \begin{macrocode} |
| 7161 |
\def\@authorfont{\Large\sffamily} |
| 7162 |
% \end{macrocode} |
| 7163 |
% |
| 7164 |
% \end{macro} |
| 7165 |
% |
| 7166 |
% \begin{macro}{\@affiliationfont} |
| 7167 |
% Font for affiliations |
| 7168 |
% \begin{macrocode} |
| 7169 |
\def\@affiliationfont{\normalsize\normalfont} |
| 7170 |
% \end{macrocode} |
| 7171 |
% \end{macro} |
| 7172 |
% |
| 7173 |
% \changes{v1.13}{2016/06/06}{Font adjustments for acmsmall} |
| 7174 |
% Adjusting fonts for different formats |
| 7175 |
% \begin{macrocode} |
| 7176 |
\ifcase\ACM@format@nr |
| 7177 |
\relax % manuscript |
| 7178 |
\or % acmsmall |
| 7179 |
\def\@authorfont{\large\sffamily} |
| 7180 |
\def\@affiliationfont{\small\normalfont} |
| 7181 |
\or % acmlarge |
| 7182 |
\or % acmtog |
| 7183 |
\def\@authorfont{\LARGE\sffamily} |
| 7184 |
\def\@affiliationfont{\large} |
| 7185 |
\or % sigconf |
| 7186 |
\def\@authorfont{\LARGE} |
| 7187 |
\def\@affiliationfont{\large} |
| 7188 |
\or % siggraph |
| 7189 |
\def\@authorfont{\normalsize\normalfont} |
| 7190 |
\def\@affiliationfont{\normalsize\normalfont} |
| 7191 |
\or % sigplan |
| 7192 |
\def\@authorfont{\Large\normalfont} |
| 7193 |
\def\@affiliationfont{\normalsize\normalfont} |
| 7194 |
\or % sigchi |
| 7195 |
\def\@authorfont{\bfseries} |
| 7196 |
\def\@affiliationfont{\mdseries} |
| 7197 |
\or % sigchi-a |
| 7198 |
\def\@authorfont{\bfseries} |
| 7199 |
\def\@affiliationfont{\mdseries} |
| 7200 |
\or % acmengage |
| 7201 |
\def\@authorfont{\LARGE} |
| 7202 |
\def\@affiliationfont{\large} |
| 7203 |
\or % acmcp |
| 7204 |
\def\@authorfont{\large\sffamily} |
| 7205 |
\def\@affiliationfont{\small\normalfont} |
| 7206 |
\fi |
| 7207 |
% \end{macrocode} |
| 7208 |
% |
| 7209 |
% \begin{macro}{\@typeset@author@line} |
| 7210 |
% \changes{v1.18}{2016/07/12}{Added macro} |
| 7211 |
% At this point we have \cs{@currentauthors} and |
| 7212 |
% \cs{@currentaffiliations}. We typeset them in the journal style |
| 7213 |
% \begin{macrocode} |
| 7214 |
\def\@typeset@author@line{% |
| 7215 |
\andify\@currentauthors\par\noindent |
| 7216 |
\@currentauthors\def\@currentauthors{}% |
| 7217 |
\ifx\@currentaffiliations\@empty\else |
| 7218 |
\andify\@currentaffiliations |
| 7219 |
\unskip, {\@currentaffiliations}\par |
| 7220 |
\fi |
| 7221 |
\def\@currentaffiliations{}} |
| 7222 |
% \end{macrocode} |
| 7223 |
% |
| 7224 |
% \end{macro} |
| 7225 |
% |
| 7226 |
% \begin{macro}{\if@ACM@instpresent} |
| 7227 |
% \changes{v1.73}{2020/09/07}{Added macro} |
| 7228 |
% Whether the given affiliation has institution |
| 7229 |
% \begin{macrocode} |
| 7230 |
\newif\if@ACM@instpresent |
| 7231 |
\@ACM@instpresenttrue |
| 7232 |
% \end{macrocode} |
| 7233 |
% |
| 7234 |
% \end{macro} |
| 7235 |
% |
| 7236 |
% |
| 7237 |
% \begin{macro}{\if@ACM@citypresent} |
| 7238 |
% \changes{v1.73}{2020/09/07}{Added macro} |
| 7239 |
% Whether the given affiliation has city |
| 7240 |
% \begin{macrocode} |
| 7241 |
\newif\if@ACM@citypresent |
| 7242 |
\@ACM@citypresenttrue |
| 7243 |
% \end{macrocode} |
| 7244 |
% |
| 7245 |
% \end{macro} |
| 7246 |
% \begin{macro}{\if@ACM@countrypresent} |
| 7247 |
% \changes{v1.73}{2020/09/07}{Added macro} |
| 7248 |
% Whether the given affiliation has country |
| 7249 |
% \begin{macrocode} |
| 7250 |
\newif\if@ACM@countrypresent |
| 7251 |
\@ACM@countrypresenttrue |
| 7252 |
% \end{macrocode} |
| 7253 |
% |
| 7254 |
% \end{macro} |
| 7255 |
% |
| 7256 |
% |
| 7257 |
% \begin{macro}{\@ACM@resetaffil} |
| 7258 |
% \changes{v1.73}{2020/09/07}{Added macro} |
| 7259 |
% Reset affiliation flags |
| 7260 |
% \begin{macrocode} |
| 7261 |
\def\@ACM@resetaffil{% |
| 7262 |
\global\@ACM@instpresentfalse |
| 7263 |
\global\@ACM@citypresentfalse |
| 7264 |
\global\@ACM@countrypresentfalse |
| 7265 |
} |
| 7266 |
% \end{macrocode} |
| 7267 |
% |
| 7268 |
% \end{macro} |
| 7269 |
% |
| 7270 |
% \begin{macro}{\@ACM@checkaffil} |
| 7271 |
% \changes{v1.73}{2020/09/07}{Added macro} |
| 7272 |
% \changes{v1.75}{2020/11/15}{Changed warning to error for country} |
| 7273 |
% Check affiliation flags |
| 7274 |
% \begin{macrocode} |
| 7275 |
\def\@ACM@checkaffil{% |
| 7276 |
\if@ACM@instpresent\else |
| 7277 |
\ClassWarningNoLine{\@classname}{No institution present for an affiliation}% |
| 7278 |
\fi |
| 7279 |
\if@ACM@citypresent\else |
| 7280 |
\ClassWarningNoLine{\@classname}{No city present for an affiliation}% |
| 7281 |
\fi |
| 7282 |
\if@ACM@countrypresent\else |
| 7283 |
\ClassError{\@classname}{No country present for an affiliation}{ACM |
| 7284 |
requires each author to indicate their country using country macro.}% |
| 7285 |
\fi |
| 7286 |
} |
| 7287 |
% \end{macrocode} |
| 7288 |
% |
| 7289 |
% \end{macro} |
| 7290 |
% |
| 7291 |
% |
| 7292 |
% |
| 7293 |
% |
| 7294 |
% \begin{macro}{\@mkauthors@i} |
| 7295 |
% \changes{v1.18}{2016/07/12}{Now we andify affiliations} |
| 7296 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7297 |
% \changes{v1.40}{2017/06/04}{Switched to MakeTextUppercase} |
| 7298 |
% \changes{v1.73}{2020/09/07}{Check the presence of required elements |
| 7299 |
% for affiliations} |
| 7300 |
% \changes{v1.78}{2021/05/16}{Unboxing \cs{mktitle@bx}} |
| 7301 |
% This version is used in most journal formats. Note that \cs{and} between |
| 7302 |
% authors with the same affiliation becomes \verb*| and |: |
| 7303 |
% \changes{v1.87}{2022/08/14}{Special treatment for acmcp} |
| 7304 |
% \changes{v1.12}{2024/12/28}{Removed MakeTextUppercase due to a bug |
| 7305 |
% with new kernel} |
| 7306 |
% \begin{macrocode} |
| 7307 |
\def\@mkauthors@i{% |
| 7308 |
\def\@currentauthors{}% |
| 7309 |
\def\@currentaffiliations{}% |
| 7310 |
\global\let\and\@typeset@author@line |
| 7311 |
\def\@author##1{% |
| 7312 |
\ifx\@currentauthors\@empty |
| 7313 |
\gdef\@currentauthors{\@authorfont\MakeUppercase{##1}}% |
| 7314 |
\else |
| 7315 |
\g@addto@macro{\@currentauthors}{\and\MakeUppercase{##1}}% |
| 7316 |
\fi |
| 7317 |
\gdef\and{}}% |
| 7318 |
\def\email##1##2{}% |
| 7319 |
\def\affiliation##1##2{% |
| 7320 |
\def\@tempa{##2}\ifx\@tempa\@empty\else |
| 7321 |
\ifx\@currentaffiliations\@empty |
| 7322 |
\gdef\@currentaffiliations{% |
| 7323 |
\setkeys{@ACM@affiliation@}{obeypunctuation=false}% |
| 7324 |
\setkeys{@ACM@affiliation@}{##1}% |
| 7325 |
\@ACM@resetaffil |
| 7326 |
\@affiliationfont##2\@ACM@checkaffil}% |
| 7327 |
\else |
| 7328 |
\g@addto@macro{\@currentaffiliations}{\and |
| 7329 |
\setkeys{@ACM@affiliation@}{obeypunctuation=false}% |
| 7330 |
\setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil |
| 7331 |
##2\@ACM@checkaffil}% |
| 7332 |
\fi |
| 7333 |
\fi |
| 7334 |
\global\let\and\@typeset@author@line}% |
| 7335 |
\if@ACM@acmcp |
| 7336 |
\advance\hsize by -6pc% |
| 7337 |
\fi |
| 7338 |
\global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par\medskip |
| 7339 |
\noindent\addresses\@typeset@author@line |
| 7340 |
\par\medskip}% |
| 7341 |
} |
| 7342 |
% \end{macrocode} |
| 7343 |
% |
| 7344 |
% \end{macro} |
| 7345 |
% |
| 7346 |
% \begin{macro}{\@mkauthors@ii} |
| 7347 |
% \changes{v1.17}{2016/07/09}{Deleted} |
| 7348 |
% The \cs{@mkauthors@ii} command was the version used in |acmtog|. |
| 7349 |
% It is no longer necessary. |
| 7350 |
% |
| 7351 |
% \end{macro} |
| 7352 |
% |
| 7353 |
% \begin{macro}{\author@bx} |
| 7354 |
% The box to put an individual author in |
| 7355 |
% \begin{macrocode} |
| 7356 |
\newbox\author@bx |
| 7357 |
% \end{macrocode} |
| 7358 |
% |
| 7359 |
% \end{macro} |
| 7360 |
% |
| 7361 |
% \begin{macro}{\author@bx@wd} |
| 7362 |
% The width of the author box |
| 7363 |
% \begin{macrocode} |
| 7364 |
\newdimen\author@bx@wd |
| 7365 |
% \end{macrocode} |
| 7366 |
% |
| 7367 |
% \end{macro} |
| 7368 |
% |
| 7369 |
% \begin{macro}{\author@bx@sep} |
| 7370 |
% The separation between author boxes |
| 7371 |
% \begin{macrocode} |
| 7372 |
\newskip\author@bx@sep |
| 7373 |
\author@bx@sep=1pc\relax |
| 7374 |
% \end{macrocode} |
| 7375 |
% |
| 7376 |
% \end{macro} |
| 7377 |
% |
| 7378 |
% \begin{macro}{\@typeset@author@bx} |
| 7379 |
% \changes{v1.15}{2016/07/04}{Moved to separate macro} |
| 7380 |
% \changes{v1.61}{2019/05/26}{Added \cs{normalbaselines}} |
| 7381 |
% Typesetting the box with authors. Note that in |sigchi-a| the box |
| 7382 |
% is not centered. |
| 7383 |
% \begin{macrocode} |
| 7384 |
\def\@typeset@author@bx{\bgroup\hsize=\author@bx@wd |
| 7385 |
\def\and{\par}\normalbaselines |
| 7386 |
\global\setbox\author@bx=\vtop{\if@ACM@sigchiamode\else\centering\fi |
| 7387 |
\@authorfont\@currentauthors\par\@affiliationfont |
| 7388 |
\@currentaffiliation}\egroup |
| 7389 |
\box\author@bx\hspace{\author@bx@sep}% |
| 7390 |
\gdef\@currentauthors{}% |
| 7391 |
\gdef\@currentaffiliation{}} |
| 7392 |
% \end{macrocode} |
| 7393 |
% |
| 7394 |
% \end{macro} |
| 7395 |
% |
| 7396 |
% |
| 7397 |
% \begin{macro}{\@mkauthors@iii} |
| 7398 |
% \changes{v1.15}{2016/07/04}{New authors system} |
| 7399 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7400 |
% \changes{v1.36}{2017/05/12}{Added authorsperrow overrride} |
| 7401 |
% \changes{v1.73}{2020/09/07}{Check the presence of required elements |
| 7402 |
% for affiliations} |
| 7403 |
% \changes{v1.78}{2021/05/16}{Unboxing \cs{mktitle@bx}} |
| 7404 |
% The |sigconf| version. Here we use a centered design with each |
| 7405 |
% author in a separate box. |
| 7406 |
% \begin{macrocode} |
| 7407 |
\def\@mkauthors@iii{% |
| 7408 |
% \end{macrocode} |
| 7409 |
% First, we need to determine the design of the author strip. The |
| 7410 |
% boxes are separated by \cs{author@bx@sep} plus two |
| 7411 |
% \cs{author@bx@sep} margins. This means that each box must be of |
| 7412 |
% width $(\cs{textwidth}-\cs{author@bx@sep})/N-\cs{author@bx@sep}$, |
| 7413 |
% where $N$ is the number of boxes per row. |
| 7414 |
% \begin{macrocode} |
| 7415 |
\author@bx@wd=\textwidth\relax |
| 7416 |
\advance\author@bx@wd by -\author@bx@sep\relax |
| 7417 |
\ifnum\@ACM@authorsperrow>0\relax |
| 7418 |
\divide\author@bx@wd by \@ACM@authorsperrow\relax |
| 7419 |
\else |
| 7420 |
\ifcase\num@authorgroups |
| 7421 |
\relax % 0? |
| 7422 |
\or % 1=one author per row |
| 7423 |
\or % 2=two authors per row |
| 7424 |
\divide\author@bx@wd by \num@authorgroups\relax |
| 7425 |
\or % 3=three authors per row |
| 7426 |
\divide\author@bx@wd by \num@authorgroups\relax |
| 7427 |
\or % 4=two authors per row (!) |
| 7428 |
\divide\author@bx@wd by 2\relax |
| 7429 |
\else % three authors per row |
| 7430 |
\divide\author@bx@wd by 3\relax |
| 7431 |
\fi |
| 7432 |
\fi |
| 7433 |
\advance\author@bx@wd by -\author@bx@sep\relax |
| 7434 |
% \end{macrocode} |
| 7435 |
% Now, parsing of \cs{addresses}: |
| 7436 |
% \begin{macrocode} |
| 7437 |
\gdef\@currentauthors{}% |
| 7438 |
\gdef\@currentaffiliation{}% |
| 7439 |
\def\@author##1{\ifx\@currentauthors\@empty |
| 7440 |
\gdef\@currentauthors{\par##1}% |
| 7441 |
\else |
| 7442 |
\g@addto@macro\@currentauthors{\par##1}% |
| 7443 |
\fi |
| 7444 |
\gdef\and{}}% |
| 7445 |
\def\email##1##2{\ifx\@currentaffiliation\@empty |
| 7446 |
\gdef\@currentaffiliation{\bgroup |
| 7447 |
\mathchardef\UrlBreakPenalty=10000\nolinkurl{##2}\egroup}% |
| 7448 |
\else |
| 7449 |
\g@addto@macro\@currentaffiliation{\par\bgroup |
| 7450 |
\mathchardef\UrlBreakPenalty=10000\nolinkurl{##2}\egroup}% |
| 7451 |
\fi}% |
| 7452 |
\def\affiliation##1##2{\ifx\@currentaffiliation\@empty |
| 7453 |
\gdef\@currentaffiliation{% |
| 7454 |
\setkeys{@ACM@affiliation@}{obeypunctuation=false}% |
| 7455 |
\setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil |
| 7456 |
##2\@ACM@checkaffil}% |
| 7457 |
\else |
| 7458 |
\g@addto@macro\@currentaffiliation{\par |
| 7459 |
\setkeys{@ACM@affiliation@}{obeypunctuation=false}% |
| 7460 |
\setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil |
| 7461 |
##2\@ACM@checkaffil}% |
| 7462 |
\fi |
| 7463 |
\global\let\and\@typeset@author@bx |
| 7464 |
}% |
| 7465 |
% \end{macrocode} |
| 7466 |
% Actual typesetting is done by the \cs{and} macro: |
| 7467 |
% \begin{macrocode} |
| 7468 |
\hsize=\textwidth |
| 7469 |
\global\setbox\mktitle@bx=\vbox{\noindent |
| 7470 |
\unvbox\mktitle@bx\par\medskip\leavevmode |
| 7471 |
\lineskip=1pc\relax\centering\hspace*{-1em}% |
| 7472 |
\addresses\let\and\@typeset@author@bx\and\par\bigskip}} |
| 7473 |
% \end{macrocode} |
| 7474 |
% |
| 7475 |
% \end{macro} |
| 7476 |
% |
| 7477 |
% |
| 7478 |
% \begin{macro}{\@mkauthors@iv} |
| 7479 |
% \changes{v1.33}{2017/03/28}{Added obeypunctuation code} |
| 7480 |
% \changes{v1.36}{2017/05/12}{Added authorsperrow overrride} |
| 7481 |
% \changes{v1.73}{2020/09/07}{Check the presence of required elements |
| 7482 |
% for affiliations} |
| 7483 |
% The |sigchi-a| version. We put authors in the main text with |
| 7484 |
% no more than 2 authors per line, unless overriden. |
| 7485 |
% \begin{macrocode} |
| 7486 |
\def\@mkauthors@iv{% |
| 7487 |
% \end{macrocode} |
| 7488 |
% First, we need to determine the design of the author strip. The |
| 7489 |
% boxes are separated by \cs{author@bx@sep} plus two |
| 7490 |
% \cs{author@bx@sep} margins. This means that each box must be of |
| 7491 |
% width $(\cs{textwidth}-\cs{author@bx@sep})/N-\cs{author@bx@sep}$, |
| 7492 |
% where $N$ is the number of boxes per row. |
| 7493 |
% \begin{macrocode} |
| 7494 |
\author@bx@wd=\columnwidth\relax |
| 7495 |
\advance\author@bx@wd by -\author@bx@sep\relax |
| 7496 |
\ifnum\@ACM@authorsperrow>0\relax |
| 7497 |
\divide\author@bx@wd by \@ACM@authorsperrow\relax |
| 7498 |
\else |
| 7499 |
\ifcase\num@authorgroups |
| 7500 |
\relax % 0? |
| 7501 |
\or % 1=one author per row |
| 7502 |
\else % 2=two authors per row |
| 7503 |
\divide\author@bx@wd by 2\relax |
| 7504 |
\fi |
| 7505 |
\fi |
| 7506 |
\advance\author@bx@wd by -\author@bx@sep\relax |
| 7507 |
% \end{macrocode} |
| 7508 |
% Now, parsing of \cs{addresses}: |
| 7509 |
% \begin{macrocode} |
| 7510 |
\gdef\@currentauthors{}% |
| 7511 |
\gdef\@currentaffiliation{}% |
| 7512 |
\def\@author##1{\ifx\@currentauthors\@empty |
| 7513 |
\gdef\@currentauthors{\par##1}% |
| 7514 |
\else |
| 7515 |
\g@addto@macro\@currentauthors{\par##1}% |
| 7516 |
\fi |
| 7517 |
\gdef\and{}}% |
| 7518 |
\def\email##1##2{\ifx\@currentaffiliation\@empty |
| 7519 |
\gdef\@currentaffiliation{\nolinkurl{##2}}% |
| 7520 |
\else |
| 7521 |
\g@addto@macro\@currentaffiliation{\par\nolinkurl{##2}}% |
| 7522 |
\fi}% |
| 7523 |
\def\affiliation##1##2{\ifx\@currentaffiliation\@empty |
| 7524 |
\gdef\@currentaffiliation{% |
| 7525 |
\setkeys{@ACM@affiliation@}{obeypunctuation=false}% |
| 7526 |
\setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil |
| 7527 |
##2\@ACM@checkaffil}% |
| 7528 |
\else |
| 7529 |
\g@addto@macro\@currentaffiliation{\par |
| 7530 |
\setkeys{@ACM@affiliation@}{obeypunctuation=false}% |
| 7531 |
\setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil |
| 7532 |
##2\@ACM@checkaffil}% |
| 7533 |
\fi |
| 7534 |
\global\let\and\@typeset@author@bx}% |
| 7535 |
% |
| 7536 |
% \end{macrocode} |
| 7537 |
% Actual typesetting is done by the \cs{and} macro |
| 7538 |
% \begin{macrocode} |
| 7539 |
\bgroup\hsize=\columnwidth |
| 7540 |
\par\raggedright\leftskip=\z@ |
| 7541 |
\lineskip=1pc\noindent |
| 7542 |
\addresses\let\and\@typeset@author@bx\and\par\bigskip\egroup} |
| 7543 |
% \end{macrocode} |
| 7544 |
% |
| 7545 |
% \end{macro} |
| 7546 |
% |
| 7547 |
% \begin{macro}{\@mkauthorsaddresses} |
| 7548 |
% \changes{v1.46}{2017/08/27}{Introduced macro} |
| 7549 |
% \changes{v1.65}{2019/10/13}{Deleted cs{@addpunct}} |
| 7550 |
% \changes{v1.77}{2021/04/16}{New separator of institutions} |
| 7551 |
% \changes{v2.06}{2024/04/13}{\cs{streetaddress} and \cs{postcode} now |
| 7552 |
% produce warnings} |
| 7553 |
% Typesetting authors' addresses in the footnote style |
| 7554 |
% \begin{macrocode} |
| 7555 |
\def\@mkauthorsaddresses{% |
| 7556 |
\ifnum\num@authors>1\relax |
| 7557 |
Authors' \else Author's \fi |
| 7558 |
Contact Information: |
| 7559 |
\bgroup |
| 7560 |
\def\streetaddress##1{\ClassWarning{\@classname}{ACM no longer collects |
| 7561 |
authors' postal addresses. I am ignoring your street |
| 7562 |
address}\unskip\ignorespaces}% |
| 7563 |
\def\postcode##1{\ClassWarning{\@classname}{ACM no longer collects |
| 7564 |
authors' postal addresses. I am ignoring your postal |
| 7565 |
code}\unskip\ignorespaces}% |
| 7566 |
\def\position##1{\unskip\ignorespaces}% |
| 7567 |
\gdef\@ACM@institution@separator{, }% |
| 7568 |
\def\institution##1{\unskip\@ACM@institution@separator ##1\gdef\@ACM@institution@separator{ and }}% |
| 7569 |
\def\city##1{\unskip, ##1}% |
| 7570 |
\def\state##1{\unskip, ##1}% |
| 7571 |
\renewcommand\department[2][0]{\unskip\@addpunct, ##2}% |
| 7572 |
\def\country##1{\unskip, ##1}% |
| 7573 |
\def\and{\unskip; \gdef\@ACM@institution@separator{, }}% |
| 7574 |
\def\@author##1{##1}% |
| 7575 |
\def\email##1##2{\unskip, \nolinkurl{##2}}% |
| 7576 |
\addresses |
| 7577 |
\egroup} |
| 7578 |
% \end{macrocode} |
| 7579 |
% |
| 7580 |
% \changes{1.66}{2019/12/18}{Added warning for missing addresses} |
| 7581 |
% \begin{macrocode} |
| 7582 |
\AtEndDocument{\if@ACM@nonacm\else\if@ACM@journal |
| 7583 |
\ifx\@authorsaddresses\@empty |
| 7584 |
\ClassWarningNoLine{\@classname}{Authors' |
| 7585 |
addresses are mandatory for ACM journals}% |
| 7586 |
\fi\fi\fi} |
| 7587 |
% \end{macrocode} |
| 7588 |
% \end{macro} |
| 7589 |
% |
| 7590 |
% \begin{macro}{\@setaddresses} |
| 7591 |
% This is an |amsart| macro that we do not need. |
| 7592 |
% \begin{macrocode} |
| 7593 |
\def\@setaddresses{} |
| 7594 |
% \end{macrocode} |
| 7595 |
% |
| 7596 |
% \end{macro} |
| 7597 |
% |
| 7598 |
% |
| 7599 |
% \begin{macro}{\@authornotemark} |
| 7600 |
% \changes{v2.15}{2025/08/16}{Suppressed spurious overfull warning} |
| 7601 |
% Adding a footnote mark to authors. This version adds a ``normal'' |
| 7602 |
% footnote mark. Note that since we typeset the author in a box, we |
| 7603 |
% get superflous box overfull; to protect against it we increase |
| 7604 |
% |\hfuzz| |
| 7605 |
% \begin{macrocode} |
| 7606 |
\def\@authornotemark{\g@addto@macro\@currentauthors{% |
| 7607 |
\advance\hfuzz by 5pt\relax\footnotemark\relax}} |
| 7608 |
% \end{macrocode} |
| 7609 |
% |
| 7610 |
% \end{macro} |
| 7611 |
% |
| 7612 |
% \begin{macro}{\@@authornotemark} |
| 7613 |
% \changes{v1.39}{2017/05/14}{Added macro} |
| 7614 |
% \changes{v2.15}{2025/08/16}{Suppressed spurious overfull warning} |
| 7615 |
% Adding a footnote mark to authors with a given number |
| 7616 |
% \begin{macrocode} |
| 7617 |
\def\@@authornotemark#1{\g@addto@macro\@currentauthors{% |
| 7618 |
\advance\hfuzz by 5pt\relax\footnotemark[#1]}} |
| 7619 |
% \end{macrocode} |
| 7620 |
% |
| 7621 |
% \end{macro} |
| 7622 |
% |
| 7623 |
% \begin{macro}{\@mkteasers} |
| 7624 |
% Typesetting the teasers |
| 7625 |
% \changes{v1.56}{2018/11/1}{Added check for description} |
| 7626 |
% \changes{v1.78}{2021/05/16}{Unboxing \cs{mktitle@bx}} |
| 7627 |
% \begin{macrocode} |
| 7628 |
\def\@mkteasers{% |
| 7629 |
\ifx\@teaserfigures\@empty\else |
| 7630 |
\def\@teaser##1{\par\bigskip\bgroup |
| 7631 |
\captionsetup{type=figure}##1\egroup\par} |
| 7632 |
\global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par |
| 7633 |
\noindent\@Description@presentfalse |
| 7634 |
\@teaserfigures\par\if@Description@present\else |
| 7635 |
\global\@undescribed@imagestrue |
| 7636 |
\ClassWarning{\@classname}{A possible image without |
| 7637 |
description}\fi |
| 7638 |
\medskip}% |
| 7639 |
\fi} |
| 7640 |
% \end{macrocode} |
| 7641 |
% |
| 7642 |
% \end{macro} |
| 7643 |
% |
| 7644 |
% \begin{macro}{\@mkabstract} |
| 7645 |
% \changes{v1.19}{2016/07/28}{Include 'Abstract' in PDF bookmarks |
| 7646 |
% (Matthew Fluet)} |
| 7647 |
% \changes{v1.20}{2016/08/03}{Deleted spurious space} |
| 7648 |
% \changes{v1.29}{2017/01/22}{Removed spurious indentation (John |
| 7649 |
% Wickerson)} |
| 7650 |
% \changes{v1.48}{2017/09/16}{Removed spurious indentation if abstract |
| 7651 |
% is followed by an empty line} |
| 7652 |
% \changes{v1.83}{2022/02/20}{I13n} |
| 7653 |
% Typesetting the abstract |
| 7654 |
% \begin{macrocode} |
| 7655 |
\def\@mkabstract{\bgroup |
| 7656 |
\ifx\@abstract\@lempty\else |
| 7657 |
{\phantomsection\addcontentsline{toc}{section}{\abstractname}% |
| 7658 |
\if@ACM@journal |
| 7659 |
\everypar{\setbox\z@\lastbox\everypar{}}\small |
| 7660 |
\else |
| 7661 |
\section*{\abstractname}% |
| 7662 |
\fi |
| 7663 |
\ignorespaces\@abstract\par}% |
| 7664 |
\fi\egroup} |
| 7665 |
% \end{macrocode} |
| 7666 |
% |
| 7667 |
% \end{macro} |
| 7668 |
% |
| 7669 |
% \begin{macro}{\@mktranslatedabstract} |
| 7670 |
% \changes{v1.83}{2022/02/20}{Added macro} |
| 7671 |
% Typesetting a translated abstract |
| 7672 |
% \begin{macrocode} |
| 7673 |
\def\@mktranslatedabstract#1{\selectlanguage{#1}% |
| 7674 |
\if@ACM@journal |
| 7675 |
\everypar{\setbox\z@\lastbox\everypar{}}\small |
| 7676 |
\else |
| 7677 |
\section*{\abstractname}% |
| 7678 |
\fi |
| 7679 |
\ignorespaces} |
| 7680 |
% \end{macrocode} |
| 7681 |
% |
| 7682 |
% \end{macro} |
| 7683 |
% |
| 7684 |
% |
| 7685 |
% \begin{macro}{\@mkbibcitation} |
| 7686 |
% \changes{v1.17}{2016/07/10}{Changed format for sigs} |
| 7687 |
% \changes{v1.17}{2016/07/10}{Added \cs{nobreak}} |
| 7688 |
% \changes{v1.31}{2017/03/04}{Disabled linebreak} |
| 7689 |
% \changes{v1.34}{2017/04/09}{Deleted DOI from doi numbers} |
| 7690 |
% \changes{v1.44}{2017/07/30}{If the paper has just one page, use |
| 7691 |
% `page' instead of `pages'} |
| 7692 |
% \changes{v1.46}{2017/08/25}{Added subtitle} |
| 7693 |
% \changes{v1.54}{2018/06/10}{Bug corrected (Ross Moore)} |
| 7694 |
% \changes{v1.55}{2018/07/25}{Bug corrected} |
| 7695 |
% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning} |
| 7696 |
% Print the |bibcitation| format |
| 7697 |
% \begin{macrocode} |
| 7698 |
\def\@mkbibcitation{\bgroup |
| 7699 |
\let\@vspace\@vspace@orig |
| 7700 |
\let\@vspacer\@vspacer@orig |
| 7701 |
\def\@pages@word{\ifnum\getrefnumber{TotPages}=1\relax page\else pages\fi}% |
| 7702 |
\def\footnotemark{}% |
| 7703 |
\def\\{\unskip{} \ignorespaces}% |
| 7704 |
\def\footnote{\ClassError{\@classname}{Please do not use footnotes |
| 7705 |
inside a \string\title{} or \string\author{} command! Use |
| 7706 |
\string\titlenote{} or \string\authornote{} instead!}}% |
| 7707 |
\def\@article@string{\ifx\@acmArticle\@empty{\ }\else, |
| 7708 |
Article~\@acmArticle\ \fi}% |
| 7709 |
\par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak |
| 7710 |
\noindent\bgroup |
| 7711 |
\def\\{\unskip{}, \ignorespaces}\authors\egroup. \@acmYear. \@title |
| 7712 |
\ifx\@subtitle\@empty. \else: \@subtitle. \fi |
| 7713 |
\if@ACM@nonacm\else |
| 7714 |
% The 'nonacm' option disables 'printacmref' by default, |
| 7715 |
% and the present \@mkbibcitation definition is never used |
| 7716 |
% in this case. The conditional remains useful if the user |
| 7717 |
% explicitly sets \settopmatter{printacmref=true}. |
| 7718 |
\if@ACM@journal@bibstrip |
| 7719 |
\textit{\@journalNameShort} |
| 7720 |
\@acmVolume, \@acmNumber \@article@string (\@acmPubDate), |
| 7721 |
\ref{TotPages}~\@pages@word. |
| 7722 |
\else |
| 7723 |
In \textit{\@acmBooktitle}% |
| 7724 |
\ifx\@acmEditors\@empty\textit{.}\else |
| 7725 |
\andify\@acmEditors\textit{, }\@acmEditors~\@editorsAbbrev.% |
| 7726 |
\fi\ |
| 7727 |
ACM, New York, NY, USA% |
| 7728 |
\@article@string\unskip, \ref{TotPages}~\@pages@word. |
| 7729 |
\fi |
| 7730 |
\fi |
| 7731 |
\ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi |
| 7732 |
\par\egroup} |
| 7733 |
% \end{macrocode} |
| 7734 |
% |
| 7735 |
% \end{macro} |
| 7736 |
% |
| 7737 |
% \begin{macro}{\@printendtopmatter} |
| 7738 |
% \changes{v1.46}{2017/08/28}{Made it \cs{par}\cs{bigskip} uniformly} |
| 7739 |
% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning} |
| 7740 |
% \changes{v1.69}{2020/02/02}{Deleted grouping} |
| 7741 |
% End the top matter |
| 7742 |
% \begin{macrocode} |
| 7743 |
\def\@printendtopmatter{% |
| 7744 |
\let\@vspace\@vspace@orig |
| 7745 |
\let\@vspacer\@vspacer@orig |
| 7746 |
\par\bigskip |
| 7747 |
\let\@vspace\@vspace@acm |
| 7748 |
\let\@vspacer\@vspacer@acm |
| 7749 |
} |
| 7750 |
% \end{macrocode} |
| 7751 |
% |
| 7752 |
% \end{macro} |
| 7753 |
% |
| 7754 |
% \begin{macro}{\@setthanks} |
| 7755 |
% We redefine \cs{\@setthanks} using \cs{long} |
| 7756 |
% \begin{macrocode} |
| 7757 |
\def\@setthanks{\long\def\thanks##1{\par##1\@addpunct.}\thankses} |
| 7758 |
% \end{macrocode} |
| 7759 |
% |
| 7760 |
% \end{macro} |
| 7761 |
% |
| 7762 |
% \begin{macro}{\@setauthorsaddresses} |
| 7763 |
% \changes{v1.46}{2018/08/25}{Introduced macro} |
| 7764 |
% \begin{macrocode} |
| 7765 |
\def\@setauthorsaddresses{\@authorsaddresses\unskip\@addpunct.} |
| 7766 |
% \end{macrocode} |
| 7767 |
% |
| 7768 |
% \end{macro} |
| 7769 |
% |
| 7770 |
% \begin{macro}{\@typesetengagemetadata} |
| 7771 |
% \changes{v1.85}{2022/05/08}{Introduced macro} |
| 7772 |
% Typesetting special metadata for ACM Engage |
| 7773 |
% \begin{macrocode} |
| 7774 |
\def\@typesetengagemetadata{% |
| 7775 |
\def\@setengagemetadata##1##2{\par\noindent\textbf{##1} ##2\par}% |
| 7776 |
\@acmengagemetadata} |
| 7777 |
% \end{macrocode} |
| 7778 |
% |
| 7779 |
% \end{macro} |
| 7780 |
% |
| 7781 |
%<*tagged> |
| 7782 |
% We stop tagging inside maketitle for now. Ulrike's code again. |
| 7783 |
% \begin{macrocode} |
| 7784 |
\ExplSyntaxOn |
| 7785 |
\AddToHook{cmd/maketitle/before} |
| 7786 |
{\tagstructbegin{tag=Title}\tagmcbegin{} \tag_stop:} |
| 7787 |
\AddToHook{cmd/maketitle/after} |
| 7788 |
{\tag_start:\tagmcend\tagstructend } |
| 7789 |
\ExplSyntaxOff |
| 7790 |
% \end{macrocode} |
| 7791 |
%</tagged> |
| 7792 |
% |
| 7793 |
%\subsection{Headers and Footers} |
| 7794 |
%\label{sec:head_foot} |
| 7795 |
% |
| 7796 |
% We use |fancyhdr| for our headers and footers: |
| 7797 |
% \begin{macrocode} |
| 7798 |
\RequirePackage{fancyhdr} |
| 7799 |
% \end{macrocode} |
| 7800 |
% |
| 7801 |
% \begin{macro}{\ACM@restore@pagestyle} |
| 7802 |
% \changes{v1.44}{2017/07/30}{Added macro} |
| 7803 |
% The following code by Ross Moore protects against changes by |
| 7804 |
% the |totpages| package: |
| 7805 |
% \begin{macrocode} |
| 7806 |
\let\ACM@ps@plain\ps@plain |
| 7807 |
\let\ACM@ps@myheadings\ps@myheadings |
| 7808 |
\let\ACM@ps@headings\ps@headings |
| 7809 |
\def\ACM@restore@pagestyle{% |
| 7810 |
\let\ps@plain\ACM@ps@plain |
| 7811 |
\let\ps@myheadings\ACM@ps@myheadings |
| 7812 |
\let\ps@headings\ACM@ps@headings} |
| 7813 |
\AtBeginDocument{\ACM@restore@pagestyle} |
| 7814 |
% \end{macrocode} |
| 7815 |
% |
| 7816 |
% |
| 7817 |
% \end{macro} |
| 7818 |
% |
| 7819 |
% |
| 7820 |
% |
| 7821 |
% \begin{macro}{\ACM@linecount@bx} |
| 7822 |
% \changes{v1.34}{2017/04/10}{Rulers now are continuous} |
| 7823 |
% \changes{v1.40}{2017/05/27}{Work around a bug in xcolor: looks like |
| 7824 |
% cmyk colors in boxes do not work} |
| 7825 |
% \changes{v1.46}{2017/08/28}{Rearranged the code to get rid of |
| 7826 |
% spurious underfull messages (Benjamin Byholm)} |
| 7827 |
% \changes{v1.64}{2019/08/24}{Bug fix: made the spacing on the left |
| 7828 |
% and the right size equal} |
| 7829 |
% This is the box displayed in review mode |
| 7830 |
% \begin{macrocode} |
| 7831 |
\if@ACM@review |
| 7832 |
\newsavebox{\ACM@linecount@bx} |
| 7833 |
\newlength\ACM@linecount@bxht |
| 7834 |
\newcount\ACM@linecount |
| 7835 |
\ACM@linecount\@ne\relax |
| 7836 |
\def\ACM@mk@linecount{% |
| 7837 |
\savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{\normalfont |
| 7838 |
\normalsize |
| 7839 |
\setlength{\ACM@linecount@bxht}{0pt}% |
| 7840 |
\loop{\color{red}\scriptsize\the\ACM@linecount}\\ |
| 7841 |
\global\advance\ACM@linecount by \@ne |
| 7842 |
\addtolength{\ACM@linecount@bxht}{\baselineskip}% |
| 7843 |
\ifdim\ACM@linecount@bxht<\textheight\repeat |
| 7844 |
{\color{red}\scriptsize\the\ACM@linecount}\hfill |
| 7845 |
\global\advance\ACM@linecount by \@ne}}} |
| 7846 |
\fi |
| 7847 |
% \end{macrocode} |
| 7848 |
% |
| 7849 |
% \end{macro} |
| 7850 |
% |
| 7851 |
% \begin{macro}{\ACM@linecountL} |
| 7852 |
% \changes{v1.33}{2017/03/29}{Renamed macro} |
| 7853 |
% \changes{v1.34}{2017/04/10}{Rulers now are continuous} |
| 7854 |
% How to display the box on the left |
| 7855 |
% \begin{macrocode} |
| 7856 |
\def\ACM@linecountL{% |
| 7857 |
\if@ACM@review |
| 7858 |
\ACM@mk@linecount |
| 7859 |
\begin{picture}(0,0)% |
| 7860 |
\put(-26,-22){\usebox{\ACM@linecount@bx}}% |
| 7861 |
\end{picture}% |
| 7862 |
\fi} |
| 7863 |
% \end{macrocode} |
| 7864 |
% |
| 7865 |
% \end{macro} |
| 7866 |
% |
| 7867 |
% \begin{macro}{\ACM@linecountR} |
| 7868 |
% \changes{v1.33}{2017/03/29}{Added macro} |
| 7869 |
% \changes{v1.34}{2017/04/10}{Rulers now are continuous} |
| 7870 |
% \changes{v1.69}{2020/02/02}{Do not increase numbers in one column format} |
| 7871 |
% \changes{1.85}{2022/05/08}{Added: acmengage} |
| 7872 |
% How to display the box on the right. In one column formats we do |
| 7873 |
% not step the numbers. |
| 7874 |
% \begin{macrocode} |
| 7875 |
\def\ACM@linecountR{% |
| 7876 |
\if@ACM@review |
| 7877 |
\ifcase\ACM@format@nr |
| 7878 |
\relax % manuscript |
| 7879 |
\relax |
| 7880 |
\or % acmsmall |
| 7881 |
\relax |
| 7882 |
\or % acmlarge |
| 7883 |
\relax |
| 7884 |
\or % acmtog |
| 7885 |
\ACM@mk@linecount |
| 7886 |
\or % sigconf |
| 7887 |
\ACM@mk@linecount |
| 7888 |
\or % siggraph |
| 7889 |
\ACM@mk@linecount |
| 7890 |
\or % sigplan |
| 7891 |
\ACM@mk@linecount |
| 7892 |
\or % sigchi |
| 7893 |
\ACM@mk@linecount |
| 7894 |
\or % sigchi-a |
| 7895 |
\ACM@mk@linecount |
| 7896 |
\or % acmengage |
| 7897 |
\ACM@mk@linecount |
| 7898 |
\or % acmcp |
| 7899 |
\relax |
| 7900 |
\fi |
| 7901 |
\begin{picture}(0,0)% |
| 7902 |
\put(20,-22){\usebox{\ACM@linecount@bx}}% |
| 7903 |
\end{picture}% |
| 7904 |
\fi} |
| 7905 |
% \end{macrocode} |
| 7906 |
% |
| 7907 |
% \end{macro} |
| 7908 |
% |
| 7909 |
% \begin{macro}{\ACM@timestamp} |
| 7910 |
% \changes{v1.33}{2017/03/10}{Added macro (Michael D.~Adams)} |
| 7911 |
% \changes{v1.33}{2017/03/28}{Added current page number} |
| 7912 |
% \changes{v1.33}{2017/03/29}{Added submission id} |
| 7913 |
% \changes{v1.48}{2017/09/16}{Fromatting change (Michael D.~Adams)} |
| 7914 |
% The timestamp system |
| 7915 |
% \begin{macrocode} |
| 7916 |
\if@ACM@timestamp |
| 7917 |
% Subtracting 30 from \time gives us the effect of rounding down despite |
| 7918 |
% \numexpr rounding to nearest |
| 7919 |
\newcounter{ACM@time@hours} |
| 7920 |
\setcounter{ACM@time@hours}{\numexpr (\time - 30) / 60 \relax} |
| 7921 |
\newcounter{ACM@time@minutes} |
| 7922 |
\setcounter{ACM@time@minutes}{\numexpr \time - \theACM@time@hours * 60 \relax} |
| 7923 |
\newcommand\ACM@timestamp{% |
| 7924 |
\footnotesize% |
| 7925 |
\ifx\@acmSubmissionID\@empty\relax\else |
| 7926 |
Submission ID: \@acmSubmissionID.{ }% |
| 7927 |
\fi |
| 7928 |
\the\year-\two@digits{\the\month}-\two@digits{\the\day}{ }% |
| 7929 |
\two@digits{\theACM@time@hours}:\two@digits{\theACM@time@minutes}{. }% |
| 7930 |
Page \thepage\ of \@startPage--\pageref*{TotPages}.% |
| 7931 |
} |
| 7932 |
\fi |
| 7933 |
% \end{macrocode} |
| 7934 |
% \end{macro} |
| 7935 |
% |
| 7936 |
% \begin{macro}{\@shortauthors} |
| 7937 |
% \changes{v1.15}{2016/07/04}{Introduced macro} |
| 7938 |
% \changes{v1.54}{2016/06/23}{Added submission id in anonymous mode} |
| 7939 |
% Even if the author redefined \cs{shortauthors}, we do not print |
| 7940 |
% it in the headers when in anonymous mode: |
| 7941 |
% \begin{macrocode} |
| 7942 |
\def\@shortauthors{% |
| 7943 |
\if@ACM@anonymous |
| 7944 |
Anon. |
| 7945 |
\ifx\@acmSubmissionID\@empty\else Submission Id: \@acmSubmissionID\fi |
| 7946 |
\else\shortauthors\fi} |
| 7947 |
% \end{macrocode} |
| 7948 |
% |
| 7949 |
% \end{macro} |
| 7950 |
% |
| 7951 |
% \begin{macro}{\@headfootfont} |
| 7952 |
% \changes{v1.16}{2016/07/07}{Added macro} |
| 7953 |
% \changes{v1.48}{2017/09/16}{Deleted unnecessary switch (Michael D.~Adams)} |
| 7954 |
% \changes{v1.60}{2019/04/22}{Moved to footnotesize} |
| 7955 |
% The font to typeset header and footer text. |
| 7956 |
% \begin{macrocode} |
| 7957 |
\def\@headfootfont{\sffamily\footnotesize} |
| 7958 |
% \end{macrocode} |
| 7959 |
% |
| 7960 |
% \end{macro} |
| 7961 |
% |
| 7962 |
% \begin{macro}{standardpagestyle} |
| 7963 |
% \changes{v1.10}{2016/05/22}{Reversed folios location} |
| 7964 |
% \changes{v1.13}{2016/06/06}{Suppressed folios if sig} |
| 7965 |
% \changes{v1.13}{2016/06/06}{Added headers for sigs} |
| 7966 |
% \changes{v1.13}{2016/06/06}{Expanded headers for sigchi-a} |
| 7967 |
% \changes{v1.15}{2016/07/04}{Better handling of anonymous mode} |
| 7968 |
% \changes{v1.16}{2016/07/07}{Customize header/footer text font} |
| 7969 |
% \changes{v1.17}{2016/07/10}{Added paper title to sigs} |
| 7970 |
% \changes{v1.29}{2017/01/22}{Corrected printfolios (Matthew Fluet)} |
| 7971 |
% \changes{v1.33}{2017/03/10}{Added timestamp (Michael D.~Adams)} |
| 7972 |
% \changes{v1.33}{2017/03/29}{Added right linecount for two-column formats} |
| 7973 |
% The page style for all pages but the first one |
| 7974 |
% \changes{v1.51}{2018/04/05}{We now use journal abbreviation for |
| 7975 |
% footers} |
| 7976 |
% \changes{v1.59}{2019/04/20}{Added logic for conference papers using |
| 7977 |
% journal format} |
| 7978 |
% \changes{v1.59}{2019/04/20}{Moved page styles to \cs{AtBeginDocument}} |
| 7979 |
% \changes{v1.76}{2021/02/21}{Fixed bug with no line numbers for |
| 7980 |
% nonacm} |
| 7981 |
% \changes{v1.86}{2022/06/26}{Special treatment of ACM Engage materials} |
| 7982 |
% \changes{v1.87}{2022/08/14}{Special treatment of ACMCP} |
| 7983 |
% \changes{v1.91}{2023/06/22}{Redesigned ACMP labels} |
| 7984 |
% \changes{v2.03}{2024/02/04}{Special treatment of ACM TOG} |
| 7985 |
% The page style for all pages but the first one |
| 7986 |
% \begin{macrocode} |
| 7987 |
\AtBeginDocument{% |
| 7988 |
\fancypagestyle{standardpagestyle}{% |
| 7989 |
\fancyhf{}% |
| 7990 |
\renewcommand{\headrulewidth}{\z@}% |
| 7991 |
\renewcommand{\footrulewidth}{\z@}% |
| 7992 |
\def\@acmArticlePage{% |
| 7993 |
\ifx\@acmArticle\empty% |
| 7994 |
\if@ACM@printfolios\thepage\fi% |
| 7995 |
\else% |
| 7996 |
\@acmArticle\if@ACM@printfolios:\thepage\fi% |
| 7997 |
\fi% |
| 7998 |
}% |
| 7999 |
\if@ACM@journal@bibstrip@or@tog |
| 8000 |
\ifcase\ACM@format@nr |
| 8001 |
\relax % manuscript |
| 8002 |
\fancyhead[LE]{\ACM@linecountL\if@ACM@printfolios\thepage\fi}% |
| 8003 |
\fancyhead[RO]{\if@ACM@printfolios\thepage\fi}% |
| 8004 |
\fancyhead[RE]{\@shortauthors}% |
| 8005 |
\fancyhead[LO]{\ACM@linecountL\shorttitle}% |
| 8006 |
\if@ACM@nonacm\else% |
| 8007 |
\fancyfoot[RO,LE]{\footnotesize Manuscript submitted to ACM} |
| 8008 |
\fi% |
| 8009 |
\or % acmsmall |
| 8010 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont\@acmArticlePage}% |
| 8011 |
\fancyhead[RO]{\@headfootfont\@acmArticlePage}% |
| 8012 |
\fancyhead[RE]{\@headfootfont\@shortauthors}% |
| 8013 |
\fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% |
| 8014 |
\if@ACM@nonacm\else% |
| 8015 |
\fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. |
| 8016 |
\@acmNumber, Article \@acmArticle. Publication date: \@acmPubDate.}% |
| 8017 |
\fi |
| 8018 |
\or % acmlarge |
| 8019 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont |
| 8020 |
\@acmArticlePage\quad\textbullet\quad\@shortauthors}% |
| 8021 |
\fancyhead[LO]{\ACM@linecountL}% |
| 8022 |
\fancyhead[RO]{\@headfootfont |
| 8023 |
\shorttitle\quad\textbullet\quad\@acmArticlePage}% |
| 8024 |
\if@ACM@nonacm\else% |
| 8025 |
\fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. |
| 8026 |
\@acmNumber, Article \@acmArticle. Publication date: \@acmPubDate.}% |
| 8027 |
\fi |
| 8028 |
\or % acmtog |
| 8029 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont |
| 8030 |
\@acmArticlePage\quad\textbullet\quad\@shortauthors}% |
| 8031 |
\fancyhead[LO]{\ACM@linecountL}% |
| 8032 |
\fancyhead[RE]{\ACM@linecountR}% |
| 8033 |
\fancyhead[RO]{\@headfootfont |
| 8034 |
\shorttitle\quad\textbullet\quad\@acmArticlePage\ACM@linecountR}% |
| 8035 |
\if@ACM@nonacm\else |
| 8036 |
\if@ACM@journal@bibstrip |
| 8037 |
\fancyfoot[RO,LE]{\footnotesize \@journalNameShort, |
| 8038 |
Vol. \@acmVolume, No.~\@acmNumber, Article \@acmArticle. |
| 8039 |
Publication date: \@acmPubDate.}% |
| 8040 |
\else |
| 8041 |
\fancyfoot[RO,LE]{\footnotesize \acmConference@shortname, |
| 8042 |
\acmConference@date, \acmConference@venue.}% |
| 8043 |
\fi |
| 8044 |
\fi |
| 8045 |
\else % Proceedings |
| 8046 |
\fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% |
| 8047 |
\fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% |
| 8048 |
\fancyhead[RE]{\@headfootfont\@shortauthors\ACM@linecountR}% |
| 8049 |
\if@ACM@nonacm |
| 8050 |
\fancyhead[LE]{\ACM@linecountL}% |
| 8051 |
\fancyhead[RO]{\ACM@linecountR}% |
| 8052 |
\else% |
| 8053 |
\if@ACM@engage |
| 8054 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont\footnotesize |
| 8055 |
EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi}% |
| 8056 |
\fancyhead[RO]{\@headfootfont |
| 8057 |
EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi |
| 8058 |
\ACM@linecountR}% |
| 8059 |
\else |
| 8060 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont\footnotesize |
| 8061 |
\acmConference@shortname, |
| 8062 |
\acmConference@date, \acmConference@venue}% |
| 8063 |
\fancyhead[RO]{\@headfootfont |
| 8064 |
\acmConference@shortname, |
| 8065 |
\acmConference@date, \acmConference@venue\ACM@linecountR}% |
| 8066 |
\fi |
| 8067 |
\fi |
| 8068 |
\fi |
| 8069 |
\else % Proceedings |
| 8070 |
\fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% |
| 8071 |
\fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% |
| 8072 |
\fancyhead[RE]{\@headfootfont\@shortauthors\ACM@linecountR}% |
| 8073 |
\if@ACM@nonacm |
| 8074 |
\fancyhead[LE]{\ACM@linecountL}% |
| 8075 |
\fancyhead[RO]{\ACM@linecountR}% |
| 8076 |
\else% |
| 8077 |
\if@ACM@engage |
| 8078 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont |
| 8079 |
EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi}% |
| 8080 |
\fancyhead[RO]{\@headfootfont |
| 8081 |
EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi |
| 8082 |
\ACM@linecountR}% |
| 8083 |
\else |
| 8084 |
\fancyhead[LE]{\ACM@linecountL\@headfootfont |
| 8085 |
\acmConference@shortname, |
| 8086 |
\acmConference@date, \acmConference@venue}% |
| 8087 |
\fancyhead[RO]{\@headfootfont |
| 8088 |
\acmConference@shortname, |
| 8089 |
\acmConference@date, \acmConference@venue\ACM@linecountR}% |
| 8090 |
\fi |
| 8091 |
\fi |
| 8092 |
\fi |
| 8093 |
\if@ACM@sigchiamode |
| 8094 |
\fancyheadoffset[L]{\dimexpr(\marginparsep+\marginparwidth)}% |
| 8095 |
\fi |
| 8096 |
\if@ACM@timestamp |
| 8097 |
\fancyfoot[LO,RE]{\ACM@timestamp} |
| 8098 |
\fi |
| 8099 |
\if@ACM@acmcp |
| 8100 |
\renewcommand{\footrulewidth}{0.1\p@}% |
| 8101 |
\fancyheadoffset[L]{46pt}% |
| 8102 |
\fancyhead[L]{\makebox[\z@][l]{% |
| 8103 |
\raisebox{-\dimexpr(0.2\textheight*(\ACM@ArticleType@nr-2))}{% |
| 8104 |
\rotatebox{90}{\colorbox{@ACM@Article@color}{\color{white}% |
| 8105 |
\strut\ACM@ArticleType~Article}}}}% |
| 8106 |
\ACM@linecountL}% |
| 8107 |
\fancyhead[R]{\makebox[\z@][r]{\box\@ACM@acmcpbox}}% |
| 8108 |
\fancyfoot[L,C]{}% |
| 8109 |
\fancyfoot[R]{\footnotesize |
| 8110 |
\@journalName, Volume~\@acmVolume, Issue~\@acmNumber, |
| 8111 |
\ifx\@acmArticle\@empty\else Article~\@acmArticle\fi\space |
| 8112 |
(\@acmPubDate)\ifx\@acmDOI\@empty\else\\\@formatdoi{\@acmDOI}\fi} |
| 8113 |
\fi |
| 8114 |
}% |
| 8115 |
\pagestyle{standardpagestyle} |
| 8116 |
} |
| 8117 |
% \end{macrocode} |
| 8118 |
% |
| 8119 |
% \end{macro} |
| 8120 |
% |
| 8121 |
% \begin{macro}{\@folio@wd} |
| 8122 |
% \changes{v2.00}{2023/10/22}{Obsoleted macro} |
| 8123 |
% \begin{macro}{\@folio@ht} |
| 8124 |
% \changes{v2.00}{2023/10/22}{Obsoleted macro} |
| 8125 |
% \begin{macro}{\@folio@voffset} |
| 8126 |
% \changes{v2.00}{2023/10/22}{Obsoleted macro} |
| 8127 |
% \begin{macro}{\@folio@max} |
| 8128 |
% \changes{v2.00}{2023/10/22}{Obsoleted macro} |
| 8129 |
% Folio blob width, height, offsets and max number |
| 8130 |
% \end{macro} |
| 8131 |
% \end{macro} |
| 8132 |
% \end{macro} |
| 8133 |
% \end{macro} |
| 8134 |
% |
| 8135 |
% \begin{macro}{\@folioblob} |
| 8136 |
% \changes{v1.44}{2017/08/11}{Suppress the blob if acmArticleSeq is empty} |
| 8137 |
% \changes{v1.45}{2017/08/15}{Switched \cs{bfeseries}\cs{sffamily} to |
| 8138 |
% \cs{sffamily}\cs{bfseries}} |
| 8139 |
% \changes{v2.00}{2023/10/22}{Obsoleted macro} |
| 8140 |
% The macro to typeset the folio blob. |
| 8141 |
% |
| 8142 |
% \end{macro} |
| 8143 |
% |
| 8144 |
% |
| 8145 |
% |
| 8146 |
% \begin{macro}{firstpagestyle} |
| 8147 |
% \changes{v1.33}{2017/03/10}{Added timestamp (Michael D.~Adams)} |
| 8148 |
% \changes{v1.33}{2017/03/29}{Added right linecount for two-column |
| 8149 |
% formats} |
| 8150 |
% \changes{v1.51}{2018/04/05}{We now use journal abbreviation for |
| 8151 |
% footers} |
| 8152 |
% \changes{v1.59}{2019/04/20}{Added logic for conference papers using |
| 8153 |
% journal format} |
| 8154 |
% \changes{v1.59}{2019/04/20}{Moved page styles to \cs{AtBeginDocument}} |
| 8155 |
% \changes{v1.87}{2022/08/14}{Special treatment for acmcp} |
| 8156 |
% \changes{v1.89}{2022/12/27}{Moved badges here} |
| 8157 |
% \changes{v2.00}{2023/10/22}{Deleted blobs} |
| 8158 |
% \changes{v2.03}{2024/02/04}{Special treatment of tog} |
| 8159 |
% The page style for the first page only. |
| 8160 |
% \begin{macrocode} |
| 8161 |
\AtBeginDocument{% |
| 8162 |
\fancypagestyle{firstpagestyle}{% |
| 8163 |
\fancyhf{}% |
| 8164 |
\renewcommand{\headrulewidth}{\z@}% |
| 8165 |
\renewcommand{\footrulewidth}{\z@}% |
| 8166 |
\if@ACM@journal@bibstrip@or@tog |
| 8167 |
\ifcase\ACM@format@nr |
| 8168 |
\relax % manuscript |
| 8169 |
\fancyhead[L]{\ACM@linecountL\@acmBadgeL}% |
| 8170 |
\fancyhead[R]{\@acmBadgeR}% |
| 8171 |
\fancyfoot[RO,LE]{\if@ACM@printfolios\small\thepage\fi}% |
| 8172 |
\if@ACM@nonacm\else% |
| 8173 |
\fancyfoot[RE,LO]{\footnotesize Manuscript submitted to ACM}% |
| 8174 |
\fi% |
| 8175 |
\or % acmsmall |
| 8176 |
\if@ACM@nonacm\else% |
| 8177 |
\fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. |
| 8178 |
\@acmNumber, Article \@acmArticle. Publication date: |
| 8179 |
\@acmPubDate.}% |
| 8180 |
\fi% |
| 8181 |
\fancyhead[LE]{\ACM@linecountL\@acmBadgeL}% |
| 8182 |
\fancyhead[LO]{\ACM@linecountL\@acmBadgeL}% |
| 8183 |
\fancyhead[RO]{\@acmBadgeR}% |
| 8184 |
\fancyhead[RE]{\@acmBadgeR}% |
| 8185 |
\or % acmlarge |
| 8186 |
\if@ACM@nonacm\else% |
| 8187 |
\fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. |
| 8188 |
\@acmNumber, Article \@acmArticle. Publication date: |
| 8189 |
\@acmPubDate.}% |
| 8190 |
\fi% |
| 8191 |
\fancyhead[RO]{\@acmBadgeR}% |
| 8192 |
\fancyhead[RE]{\@acmBadgeR}% |
| 8193 |
\fancyhead[LE]{\ACM@linecountL\@acmBadgeL}% |
| 8194 |
\fancyhead[LO]{\ACM@linecountL\@acmBadgeL}% |
| 8195 |
\or % acmtog |
| 8196 |
\if@ACM@nonacm\else% |
| 8197 |
\if@ACM@journal@bibstrip |
| 8198 |
\fancyfoot[RO,LE]{\footnotesize \@journalNameShort, |
| 8199 |
Vol. \@acmVolume, No.~\@acmNumber, Article \@acmArticle. |
| 8200 |
Publication date: \@acmPubDate.}% |
| 8201 |
\else |
| 8202 |
\fancyfoot[RO,LE]{\footnotesize \acmConference@shortname, |
| 8203 |
\acmConference@date, \acmConference@venue.}% |
| 8204 |
\fi |
| 8205 |
\fi% |
| 8206 |
\fancyhead[L]{\ACM@linecountL\@acmBadgeL}% |
| 8207 |
\fancyhead[R]{\@acmBadgeR\ACM@linecountR}% |
| 8208 |
\else % Conference proceedings |
| 8209 |
\fancyhead[L]{\ACM@linecountL\@acmBadgeL}% |
| 8210 |
\fancyhead[R]{\@acmBadgeR\ACM@linecountR}% |
| 8211 |
\fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% |
| 8212 |
\fi |
| 8213 |
\else |
| 8214 |
\fancyhead[L]{\ACM@linecountL\@acmBadgeL}% |
| 8215 |
\fancyhead[R]{\@acmBadgeR\ACM@linecountR}% |
| 8216 |
\fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% |
| 8217 |
\fi |
| 8218 |
\if@ACM@timestamp |
| 8219 |
\ifnum\ACM@format@nr=0\relax % Manuscript |
| 8220 |
\fancyfoot[LO,RE]{\ACM@timestamp\quad |
| 8221 |
\if@ACM@nonacm\else |
| 8222 |
\footnotesize Manuscript submitted to ACM |
| 8223 |
\fi} |
| 8224 |
\else |
| 8225 |
\fancyfoot[LO,RE]{\ACM@timestamp} |
| 8226 |
\fi |
| 8227 |
\fi |
| 8228 |
\if@ACM@acmcp |
| 8229 |
\renewcommand{\footrulewidth}{0.1\p@}% |
| 8230 |
\fancyheadoffset[L]{46pt}% |
| 8231 |
\fancyhead[L]{\makebox[\z@][l]{% |
| 8232 |
\raisebox{-\dimexpr(0.2\textheight*(\ACM@ArticleType@nr-2))}{% |
| 8233 |
\rotatebox{90}{\colorbox{@ACM@Article@color}{\color{white}% |
| 8234 |
\strut\ACM@ArticleType~Article}}}}% |
| 8235 |
\ACM@linecountL\@acmBadgeL}% |
| 8236 |
\fancyhead[R]{\@acmBadgeR\makebox[\z@][r]{\box\@ACM@acmcpbox}}% |
| 8237 |
\fancyfoot[L,C]{}% |
| 8238 |
\fancyfoot[R]{\footnotesize |
| 8239 |
\@journalName, Volume~\@acmVolume, Issue~\@acmNumber, |
| 8240 |
\ifx\@acmArticle\@empty\else Article~\@acmArticle\fi\space |
| 8241 |
(\@acmPubDate)\ifx\@acmDOI\@empty\else\\\@formatdoi{\@acmDOI}\fi} |
| 8242 |
\fi |
| 8243 |
}} |
| 8244 |
% \end{macrocode} |
| 8245 |
% |
| 8246 |
% \end{macro} |
| 8247 |
% |
| 8248 |
% |
| 8249 |
%\subsection{Sectioning} |
| 8250 |
%\label{sec:sectioninng} |
| 8251 |
% |
| 8252 |
% |
| 8253 |
% \begin{macro}{\ACM@NRadjust} |
| 8254 |
% \changes{v1.54}{2018/06/17}{Added macro} |
| 8255 |
% Ross Moore's macro. |
| 8256 |
% \begin{quotation} |
| 8257 |
% Initially |\ACM@sect@format@| just passes through its |#1| |
| 8258 |
% argument unchanged. |
| 8259 |
% When a sectioning macro such as |\section| occurs, the |
| 8260 |
% |\ACM@NRadjust| redefines |\ACM@sect@format@| to expand into the |
| 8261 |
% styling commands; e.g., |\@secfont|. |
| 8262 |
% Then |\Sectionformat| is temporarily redefined to produce |
| 8263 |
% |\realSectionformat{\ACM@sect@format{#1}}{#2}|, which ultimately |
| 8264 |
% becomes |\Sectionformat{\@secfont{#1}}{#2}|. |
| 8265 |
% This is done to allow |\Sectionformat| to be variable, as may be |
| 8266 |
% needed in particular circumstances. Its current expansion is saved |
| 8267 |
% as |\realSectionformat| which is used with the modified 1st argument, |
| 8268 |
% then |\Sectionformat| is reverted to its former expansion. |
| 8269 |
% |
| 8270 |
% To style the section-number, the line |#1{}| is used at the end of |
| 8271 |
% |\ACM@NRadjust|. This imposes style-changing commands for fonts and |
| 8272 |
% sizes, but any |\MakeUppercase| acts on just the |{}|. It's a bit hacky, |
| 8273 |
% by essentially assuming that only numbers occur here, not letters to |
| 8274 |
% be case-changed. (This should be acceptable in a class-file, as it |
| 8275 |
% ought to be possible to change the case elsewhere, if that was ever |
| 8276 |
% desired.) Also, it can result in |\@adddotafter| being called too |
| 8277 |
% soon, so a slight adjustment is made, via |\ACM@adddotafter|, which |
| 8278 |
% now tests whether its argument is empty. But the coding has to allow |
| 8279 |
% for other packages to have also patched |\@adddotafter|. |
| 8280 |
% \end{quotation} |
| 8281 |
% \begin{macrocode} |
| 8282 |
\def\ACM@NRadjust#1{% |
| 8283 |
\begingroup |
| 8284 |
\expandafter\ifx\csname Sectionformat\endcsname\relax |
| 8285 |
% do nothing when \Sectionformat is unknown |
| 8286 |
\def\next{\endgroup #1}% |
| 8287 |
\else |
| 8288 |
\def\next{\endgroup |
| 8289 |
\let\realSectionformat\Sectionformat |
| 8290 |
\def\ACM@sect@format@{#1}% |
| 8291 |
\let\Sectionformat\ACM@NR@adjustedSectionformat |
| 8292 |
%% next lines added 2018-06-17 to ensure section number is styled |
| 8293 |
\let\real@adddotafter\@adddotafter |
| 8294 |
\let\@adddotafter\ACM@adddotafter |
| 8295 |
#1{}% imposes the styles, but nullifies \MakeUppercase |
| 8296 |
\let\@adddotafter\real@adddotafter |
| 8297 |
}% |
| 8298 |
\fi \next |
| 8299 |
} |
| 8300 |
% \end{macrocode} |
| 8301 |
% \end{macro} |
| 8302 |
% |
| 8303 |
% \begin{macro}{\ACM@NR@adjustedSectionformat} |
| 8304 |
% \changes{v1.54}{2018/06/17}{Added macro} |
| 8305 |
% \begin{macrocode} |
| 8306 |
\def\ACM@NR@adjustedSectionformat#1#2{% |
| 8307 |
\realSectionformat{\ACM@sect@format{#1}}{#2}% |
| 8308 |
\let\Sectionformat\realSectionformat} |
| 8309 |
\DeclareRobustCommand{\ACM@sect@format}{\ACM@sect@format@} |
| 8310 |
\def\ACM@sect@format@null#1{#1} |
| 8311 |
\let\ACM@sect@format@\ACM@sect@format@null |
| 8312 |
\AtBeginDocument{% |
| 8313 |
\expandafter\ifx\csname LTX@adddotafter\endcsname\relax |
| 8314 |
\let\LTX@adddotafter\@adddotafter |
| 8315 |
\fi |
| 8316 |
} |
| 8317 |
% \end{macrocode} |
| 8318 |
% |
| 8319 |
% \end{macro} |
| 8320 |
% \begin{macro}{\ACM@adddotafter} |
| 8321 |
% \changes{v1.54}{2018/06/17}{Added macro} |
| 8322 |
% \begin{macrocode} |
| 8323 |
\def\ACM@adddotafter#1{\ifx\relax#1\relax\else\LTX@adddotafter{#1}\fi} |
| 8324 |
% \end{macrocode} |
| 8325 |
% |
| 8326 |
% \end{macro} |
| 8327 |
% |
| 8328 |
% \changes{v1.54}{2018/05/27}{Deleted indent for subsubsection} |
| 8329 |
% \changes{v1.54}{2018/06/17}{Added Ross's patch for sectioning} |
| 8330 |
% \changes{v1.68}{2020/01/19}{New command for unindent paras} |
| 8331 |
% \changes{v1.69}{2020/02/02}{No dots for unindented paragraphs} |
| 8332 |
% Sectioning is different for different levels |
| 8333 |
% \begin{macrocode} |
| 8334 |
\renewcommand\section{\def\@toclevel{1}% |
| 8335 |
\@startsection{section}{1}{\z@}% |
| 8336 |
{-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% |
| 8337 |
{.25\baselineskip}% |
| 8338 |
{\ACM@NRadjust\@secfont}} |
| 8339 |
\renewcommand\subsection{\def\@toclevel{2}% |
| 8340 |
\@startsection{subsection}{2}{\z@}% |
| 8341 |
{-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% |
| 8342 |
{.25\baselineskip}% |
| 8343 |
{\ACM@NRadjust\@subsecfont}} |
| 8344 |
\renewcommand\subsubsection{\def\@toclevel{3}% |
| 8345 |
\@startsection{subsubsection}{3}{\z@}% |
| 8346 |
{-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% |
| 8347 |
{-3.5\p@}% |
| 8348 |
{\ACM@NRadjust{\@subsubsecfont\@adddotafter}}} |
| 8349 |
\renewcommand\paragraph{\def\@toclevel{4}% |
| 8350 |
\@startsection{paragraph}{4}{\parindent}% |
| 8351 |
{-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% |
| 8352 |
{-3.5\p@}% |
| 8353 |
{\ACM@NRadjust{\@parfont\@adddotafter}}} |
| 8354 |
\newcommand\noindentparagraph{\def\@toclevel{4}% |
| 8355 |
\@startsection{paragraph}{4}{\z@}% |
| 8356 |
{-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% |
| 8357 |
{-3.5\p@}% |
| 8358 |
{\ACM@NRadjust{\@parfont}}} |
| 8359 |
\renewcommand\part{\def\@toclevel{9}% |
| 8360 |
\@startsection{part}{9}{\z@}% |
| 8361 |
{-10\p@ \@plus -4\p@ \@minus -2\p@}% |
| 8362 |
{4\p@}% |
| 8363 |
{\ACM@NRadjust\@parfont}} |
| 8364 |
% \end{macrocode} |
| 8365 |
% |
| 8366 |
% \begin{macro}{\section@raggedright} |
| 8367 |
% \changes{v1.12}{2016/05/30}{Introduced macro}% |
| 8368 |
% Special version of \cs{raggedright} compatible with |
| 8369 |
% \cs{MakeUppercase} |
| 8370 |
% \begin{macrocode} |
| 8371 |
\def\section@raggedright{\@rightskip\@flushglue |
| 8372 |
\rightskip\@rightskip |
| 8373 |
\leftskip\z@skip |
| 8374 |
\parindent\z@} |
| 8375 |
% \end{macrocode} |
| 8376 |
% |
| 8377 |
% \end{macro} |
| 8378 |
% |
| 8379 |
% |
| 8380 |
% \begin{macro}{\@secfont} |
| 8381 |
% \begin{macro}{\@subsecfont} |
| 8382 |
% \begin{macro}{\@subsubsecfont} |
| 8383 |
% \begin{macro}{\@parfont} |
| 8384 |
% \changes{v1.12}{2016/05/30}{Moved to \cs{section@raggedright}}% |
| 8385 |
% \changes{v1.40}{2017/06/04}{Switched to MakeTextUppercase} |
| 8386 |
% \changes{v1.45}{2017/08/15}{Switched \cs{bfeseries}\cs{sffamily} to |
| 8387 |
% \cs{sffamily}\cs{bfseries}} |
| 8388 |
% \changes{v1.67}{2020/01/11}{Deleted redefinitions of sections} |
| 8389 |
% \changes{v1.85}{2022/05/08}{Added: acmengage} |
| 8390 |
% \changes{v2.08}{2024/05/27}{Deleted uppercasing} |
| 8391 |
% Fonts for sections etc. are different for different formats. |
| 8392 |
% \begin{macrocode} |
| 8393 |
\def\@secfont{\sffamily\bfseries\section@raggedright} |
| 8394 |
\def\@subsecfont{\sffamily\bfseries\section@raggedright} |
| 8395 |
\def\@subsubsecfont{\sffamily\itshape} |
| 8396 |
\def\@parfont{\itshape} |
| 8397 |
\setcounter{secnumdepth}{3} |
| 8398 |
\ifcase\ACM@format@nr |
| 8399 |
\relax % manuscript |
| 8400 |
\or % acmsmall |
| 8401 |
\or % acmlarge |
| 8402 |
\def\@secfont{\sffamily\large\section@raggedright} |
| 8403 |
\def\@subsecfont{\sffamily\large\section@raggedright} |
| 8404 |
\or % acmtog |
| 8405 |
\def\@secfont{\sffamily\large\section@raggedright} |
| 8406 |
\def\@subsecfont{\sffamily\large\section@raggedright} |
| 8407 |
\or % sigconf |
| 8408 |
\def\@secfont{\bfseries\Large\section@raggedright} |
| 8409 |
\def\@subsecfont{\bfseries\Large\section@raggedright} |
| 8410 |
\or % siggraph |
| 8411 |
\def\@secfont{\sffamily\bfseries\Large\section@raggedright} |
| 8412 |
\def\@subsecfont{\sffamily\bfseries\Large\section@raggedright} |
| 8413 |
\or % sigplan |
| 8414 |
\def\@secfont{\bfseries\Large\section@raggedright} |
| 8415 |
\def\@subsecfont{\bfseries\section@raggedright} |
| 8416 |
\def\@subsubsecfont{\bfseries\section@raggedright} |
| 8417 |
\def\@parfont{\bfseries\itshape} |
| 8418 |
\def\@subparfont{\itshape} |
| 8419 |
\or % sigchi |
| 8420 |
\setcounter{secnumdepth}{1} |
| 8421 |
\def\@secfont{\sffamily\bfseries\section@raggedright} |
| 8422 |
\def\@subsecfont{\sffamily\bfseries\section@raggedright} |
| 8423 |
\or % sigchi-a |
| 8424 |
\setcounter{secnumdepth}{0} |
| 8425 |
\def\@secfont{\sffamily\bfseries\section@raggedright} |
| 8426 |
\def\@subsecfont{\sffamily\bfseries\section@raggedright} |
| 8427 |
\or % acmengage |
| 8428 |
\def\@secfont{\bfseries\Large\section@raggedright} |
| 8429 |
\def\@subsecfont{\bfseries\Large\section@raggedright} |
| 8430 |
\or %acmcp |
| 8431 |
\fi |
| 8432 |
% \end{macrocode} |
| 8433 |
% |
| 8434 |
% \end{macro} |
| 8435 |
% \end{macro} |
| 8436 |
% \end{macro} |
| 8437 |
% \end{macro} |
| 8438 |
% |
| 8439 |
% \changes{v2.10}{2024/10/19}{Added tocindent for paragraphs and |
| 8440 |
% subparagraphs} |
| 8441 |
% Amasat does not define tocindents for paragraphs and subparagraphs. |
| 8442 |
% Here we add them |
| 8443 |
% \begin{macrocode} |
| 8444 |
\AtBeginDocument{% |
| 8445 |
\@for\@tempa:=-1,0,1,2,3,4,5\do{% |
| 8446 |
\@ifundefined{r@tocindent\@tempa}{% |
| 8447 |
\@xp\gdef\csname r@tocindent\@tempa\endcsname{0pt}}{}% |
| 8448 |
}% |
| 8449 |
} |
| 8450 |
\def\@writetocindents{% |
| 8451 |
\begingroup |
| 8452 |
\@for\@tempa:=-1,0,1,2,3,4,5\do{% |
| 8453 |
\immediate\write\@auxout{% |
| 8454 |
\string\newlabel{tocindent\@tempa}{% |
| 8455 |
\csname r@tocindent\@tempa\endcsname}}% |
| 8456 |
}% |
| 8457 |
\endgroup} |
| 8458 |
% \end{macrocode} |
| 8459 |
% |
| 8460 |
% \begin{macro}{\@adddotafter} |
| 8461 |
% Add punctuation after a sectioning command |
| 8462 |
% \begin{macrocode} |
| 8463 |
\def\@adddotafter#1{#1\@addpunct{.}} |
| 8464 |
% \end{macrocode} |
| 8465 |
% |
| 8466 |
% \end{macro} |
| 8467 |
% |
| 8468 |
% \begin{macro}{\@addspaceafter} |
| 8469 |
% Add space after a sectioning command |
| 8470 |
% \begin{macrocode} |
| 8471 |
\def\@addspaceafter#1{#1\@addpunct{\enspace}} |
| 8472 |
% \end{macrocode} |
| 8473 |
% |
| 8474 |
% \end{macro} |
| 8475 |
% |
| 8476 |
% \changes{v1.87}{2022/08/14}{No numbering sections for ACMCP} |
| 8477 |
% \begin{macrocode} |
| 8478 |
\if@ACM@acmcp |
| 8479 |
\setcounter{secnumdepth}{-1}% |
| 8480 |
\fi |
| 8481 |
% \end{macrocode} |
| 8482 |
% |
| 8483 |
% |
| 8484 |
%\subsection{TOC lists} |
| 8485 |
%\label{sec:tocs} |
| 8486 |
% |
| 8487 |
% \begin{macro}{\@dotsep} |
| 8488 |
% Related to the \cs{tableofcontents} are all the horizontal fillers. Base |
| 8489 |
% \LaTeX\ defines \cs{@dottedtocline}, which we should not disable. Yet, this |
| 8490 |
% command expects \cs{@dotsep} to be defined but leaves this to the class |
| 8491 |
% implementation. Since |amsart| does not provide this, we copy the standard |
| 8492 |
% variant from |article| here. |
| 8493 |
% \begin{macrocode} |
| 8494 |
\providecommand*\@dotsep{4.5} |
| 8495 |
% \end{macrocode} |
| 8496 |
% \end{macro} |
| 8497 |
% |
| 8498 |
% |
| 8499 |
% |
| 8500 |
%\subsection{Theorems} |
| 8501 |
%\label{sec:theorems} |
| 8502 |
% |
| 8503 |
% \begin{macro}{\@acmplainbodyfont} |
| 8504 |
% The font to typeset the body of the |acmplain| theorem style. |
| 8505 |
% \begin{macrocode} |
| 8506 |
\def\@acmplainbodyfont{\itshape} |
| 8507 |
% \end{macrocode} |
| 8508 |
% |
| 8509 |
% \end{macro} |
| 8510 |
% |
| 8511 |
% \begin{macro}{\@acmplainindent} |
| 8512 |
% The amount to indent the |acmplain| theorem style. |
| 8513 |
% \begin{macrocode} |
| 8514 |
\def\@acmplainindent{\parindent} |
| 8515 |
% \end{macrocode} |
| 8516 |
% |
| 8517 |
% \end{macro} |
| 8518 |
% |
| 8519 |
% \begin{macro}{\@acmplainheadfont} |
| 8520 |
% The font to typeset the head of the |acmplain| theorem style. |
| 8521 |
% \begin{macrocode} |
| 8522 |
\def\@acmplainheadfont{\scshape} |
| 8523 |
% \end{macrocode} |
| 8524 |
% |
| 8525 |
% \end{macro} |
| 8526 |
% |
| 8527 |
% \begin{macro}{\@acmplainnotefont} |
| 8528 |
% The font to typeset the note of the |acmplain| theorem style. |
| 8529 |
% \begin{macrocode} |
| 8530 |
\def\@acmplainnotefont{\@empty} |
| 8531 |
% \end{macrocode} |
| 8532 |
% |
| 8533 |
% \end{macro} |
| 8534 |
% |
| 8535 |
% Customization of the |acmplain| theorem style: |
| 8536 |
% \begin{macrocode} |
| 8537 |
\ifcase\ACM@format@nr |
| 8538 |
\relax % manuscript |
| 8539 |
\or % acmsmall |
| 8540 |
\or % acmlarge |
| 8541 |
\or % acmtog |
| 8542 |
\or % sigconf |
| 8543 |
\or % siggraph |
| 8544 |
\or % sigplan |
| 8545 |
\def\@acmplainbodyfont{\itshape} |
| 8546 |
\def\@acmplainindent{\z@} |
| 8547 |
\def\@acmplainheadfont{\bfseries} |
| 8548 |
\def\@acmplainnotefont{\normalfont} |
| 8549 |
\or % sigchi |
| 8550 |
\or % sigchi-a |
| 8551 |
\or % acmengage |
| 8552 |
\or % acmcp |
| 8553 |
\fi |
| 8554 |
% \end{macrocode} |
| 8555 |
% |
| 8556 |
% \begin{macro}{acmplain} |
| 8557 |
% The |acmplain| theorem style |
| 8558 |
% \begin{macrocode} |
| 8559 |
\newtheoremstyle{acmplain}% |
| 8560 |
{.5\baselineskip\@plus.2\baselineskip |
| 8561 |
\@minus.2\baselineskip}% space above |
| 8562 |
{.5\baselineskip\@plus.2\baselineskip |
| 8563 |
\@minus.2\baselineskip}% space below |
| 8564 |
{\@acmplainbodyfont}% body font |
| 8565 |
{\@acmplainindent}% indent amount |
| 8566 |
{\@acmplainheadfont}% head font |
| 8567 |
{.}% punctuation after head |
| 8568 |
{.5em}% spacing after head |
| 8569 |
{\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec |
| 8570 |
% \end{macrocode} |
| 8571 |
% |
| 8572 |
% \end{macro} |
| 8573 |
% |
| 8574 |
% |
| 8575 |
% \begin{macro}{\@acmdefinitionbodyfont} |
| 8576 |
% The font to typeset the body of the |acmdefinition| theorem style. |
| 8577 |
% \begin{macrocode} |
| 8578 |
\def\@acmdefinitionbodyfont{\normalfont} |
| 8579 |
% \end{macrocode} |
| 8580 |
% |
| 8581 |
% \end{macro} |
| 8582 |
% |
| 8583 |
% \begin{macro}{\@acmdefinitionindent} |
| 8584 |
% The amount to indent the |acmdefinition| theorem style. |
| 8585 |
% \begin{macrocode} |
| 8586 |
\def\@acmdefinitionindent{\parindent} |
| 8587 |
% \end{macrocode} |
| 8588 |
% |
| 8589 |
% \end{macro} |
| 8590 |
% |
| 8591 |
% \begin{macro}{\@acmdefinitionheadfont} |
| 8592 |
% The font to typeset the head of the |acmdefinition| theorem style. |
| 8593 |
% \begin{macrocode} |
| 8594 |
\def\@acmdefinitionheadfont{\itshape} |
| 8595 |
% \end{macrocode} |
| 8596 |
% |
| 8597 |
% \end{macro} |
| 8598 |
% |
| 8599 |
% \begin{macro}{\@acmdefinitionnotefont} |
| 8600 |
% The font to typeset the note of the |acmdefinition| theorem style. |
| 8601 |
% \begin{macrocode} |
| 8602 |
\def\@acmdefinitionnotefont{\@empty} |
| 8603 |
% \end{macrocode} |
| 8604 |
% |
| 8605 |
% \end{macro} |
| 8606 |
% |
| 8607 |
% Customization of the |acmdefinition| theorem style: |
| 8608 |
% \begin{macrocode} |
| 8609 |
\ifcase\ACM@format@nr |
| 8610 |
\relax % manuscript |
| 8611 |
\or % acmsmall |
| 8612 |
\or % acmlarge |
| 8613 |
\or % acmtog |
| 8614 |
\or % sigconf |
| 8615 |
\or % siggraph |
| 8616 |
\or % sigplan |
| 8617 |
\def\@acmdefinitionbodyfont{\normalfont} |
| 8618 |
\def\@acmdefinitionindent{\z@} |
| 8619 |
\def\@acmdefinitionheadfont{\bfseries} |
| 8620 |
\def\@acmdefinitionnotefont{\normalfont} |
| 8621 |
\or % sigchi |
| 8622 |
\or % sigchi-a |
| 8623 |
\or % acmengage |
| 8624 |
\or % acmcp |
| 8625 |
\fi |
| 8626 |
% \end{macrocode} |
| 8627 |
% |
| 8628 |
% \begin{macro}{acmdefinition} |
| 8629 |
% The |acmdefinition| theorem style |
| 8630 |
% \begin{macrocode} |
| 8631 |
\newtheoremstyle{acmdefinition}% |
| 8632 |
{.5\baselineskip\@plus.2\baselineskip |
| 8633 |
\@minus.2\baselineskip}% space above |
| 8634 |
{.5\baselineskip\@plus.2\baselineskip |
| 8635 |
\@minus.2\baselineskip}% space below |
| 8636 |
{\@acmdefinitionbodyfont}% body font |
| 8637 |
{\@acmdefinitionindent}% indent amount |
| 8638 |
{\@acmdefinitionheadfont}% head font |
| 8639 |
{.}% punctuation after head |
| 8640 |
{.5em}% spacing after head |
| 8641 |
{\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec |
| 8642 |
% \end{macrocode} |
| 8643 |
% |
| 8644 |
% \end{macro} |
| 8645 |
% |
| 8646 |
% Make |acmplain| the default theorem style. |
| 8647 |
% \begin{macrocode} |
| 8648 |
\theoremstyle{acmplain} |
| 8649 |
% \end{macrocode} |
| 8650 |
% |
| 8651 |
% Delay defining the theorem environments until after other packages |
| 8652 |
% have been loaded. In particular, the |cleveref| package must be |
| 8653 |
% loaded before the theorem environments are defined in order to show |
| 8654 |
% the correct environment name (see |
| 8655 |
% \url{https://github.com/borisveytsman/acmart/issues/138}). The |acmthm| |
| 8656 |
% option is used to suppress the definition of any theorem |
| 8657 |
% environments. Also, to avoid obscure errors arising from these |
| 8658 |
% environment definitions conflicting with environments defined by the |
| 8659 |
% user or by user-loaded packages, we only define environments that |
| 8660 |
% have not yet been defined. |
| 8661 |
% \begin{macrocode} |
| 8662 |
\AtEndPreamble{% |
| 8663 |
\if@ACM@acmthm |
| 8664 |
\theoremstyle{acmplain} |
| 8665 |
\@ifundefined{theorem}{% |
| 8666 |
\newtheorem{theorem}{Theorem}[section] |
| 8667 |
}{} |
| 8668 |
\@ifundefined{conjecture}{% |
| 8669 |
\newtheorem{conjecture}[theorem]{Conjecture} |
| 8670 |
}{} |
| 8671 |
\@ifundefined{proposition}{% |
| 8672 |
\newtheorem{proposition}[theorem]{Proposition} |
| 8673 |
}{} |
| 8674 |
\@ifundefined{lemma}{% |
| 8675 |
\newtheorem{lemma}[theorem]{Lemma} |
| 8676 |
}{} |
| 8677 |
\@ifundefined{corollary}{% |
| 8678 |
\newtheorem{corollary}[theorem]{Corollary} |
| 8679 |
}{} |
| 8680 |
\theoremstyle{acmdefinition} |
| 8681 |
\@ifundefined{example}{% |
| 8682 |
\newtheorem{example}[theorem]{Example} |
| 8683 |
}{} |
| 8684 |
\@ifundefined{definition}{% |
| 8685 |
\newtheorem{definition}[theorem]{Definition} |
| 8686 |
}{} |
| 8687 |
\fi |
| 8688 |
\theoremstyle{acmplain} |
| 8689 |
} |
| 8690 |
% \end{macrocode} |
| 8691 |
% |
| 8692 |
% |
| 8693 |
% \begin{macro}{\@proofnamefont} |
| 8694 |
% The font to typeset the proof name. |
| 8695 |
% \begin{macrocode} |
| 8696 |
\def\@proofnamefont{\scshape} |
| 8697 |
% \end{macrocode} |
| 8698 |
% |
| 8699 |
% \end{macro} |
| 8700 |
% |
| 8701 |
% \begin{macro}{\@proofindent} |
| 8702 |
% Whether or not to indent proofs. |
| 8703 |
% \begin{macrocode} |
| 8704 |
\def\@proofindent{\indent} |
| 8705 |
% \end{macrocode} |
| 8706 |
% |
| 8707 |
% \end{macro} |
| 8708 |
% |
| 8709 |
% Customization of the proof environment. |
| 8710 |
% \begin{macrocode} |
| 8711 |
\ifcase\ACM@format@nr |
| 8712 |
\relax % manuscript |
| 8713 |
\or % acmsmall |
| 8714 |
\or % acmlarge |
| 8715 |
\or % acmtog |
| 8716 |
\or % sigconf |
| 8717 |
\or % siggraph |
| 8718 |
\or % sigplan |
| 8719 |
\def\@proofnamefont{\itshape} |
| 8720 |
\def\@proofindent{\noindent} |
| 8721 |
\or % sigchi |
| 8722 |
\or % sigchi-a |
| 8723 |
\or % acmengage |
| 8724 |
\or % acmcp |
| 8725 |
\fi |
| 8726 |
% \end{macrocode} |
| 8727 |
% |
| 8728 |
% \begin{macro}{proof} |
| 8729 |
% We want some customization of the proof environment. |
| 8730 |
% \begin{macrocode} |
| 8731 |
\renewenvironment{proof}[1][\proofname]{\par |
| 8732 |
\pushQED{\qed}% |
| 8733 |
\normalfont \topsep6\p@\@plus6\p@\relax |
| 8734 |
\trivlist |
| 8735 |
\item[\@proofindent\hskip\labelsep |
| 8736 |
{\@proofnamefont #1\@addpunct{.}}]\ignorespaces |
| 8737 |
}{% |
| 8738 |
\popQED\endtrivlist\@endpefalse |
| 8739 |
} |
| 8740 |
% \end{macrocode} |
| 8741 |
% |
| 8742 |
% \end{macro} |
| 8743 |
% |
| 8744 |
% |
| 8745 |
% |
| 8746 |
%\subsection{Balancing columns} |
| 8747 |
%\label{sec:balancing} |
| 8748 |
% |
| 8749 |
% We need balancing only if the user did not disable it, and we use a |
| 8750 |
% two column format. Note that |pbalance| uses a different |
| 8751 |
% mechanism. |
| 8752 |
% \begin{macrocode} |
| 8753 |
\AtEndPreamble{% |
| 8754 |
\if@ACM@pbalance |
| 8755 |
\global\@ACM@balancefalse |
| 8756 |
\ifcase\ACM@format@nr |
| 8757 |
\relax % manuscript |
| 8758 |
\or % acmsmall |
| 8759 |
\or % acmlarge |
| 8760 |
\or % acmtog |
| 8761 |
\RequirePackage{pbalance}% |
| 8762 |
\or % sigconf |
| 8763 |
\RequirePackage{pbalance}% |
| 8764 |
\or % siggraph |
| 8765 |
\RequirePackage{pbalance}% |
| 8766 |
\or % sigplan |
| 8767 |
\RequirePackage{pbalance}% |
| 8768 |
\or % sigchi |
| 8769 |
\RequirePackage{pbalance}% |
| 8770 |
\or % sigchi-a |
| 8771 |
\or % acmengage |
| 8772 |
\RequirePackage{pbalance}% |
| 8773 |
\or % acmcp |
| 8774 |
\fi |
| 8775 |
\fi |
| 8776 |
\if@ACM@balance |
| 8777 |
\ifcase\ACM@format@nr |
| 8778 |
\relax % manuscript |
| 8779 |
\global\@ACM@balancefalse |
| 8780 |
\or % acmsmall |
| 8781 |
\global\@ACM@balancefalse |
| 8782 |
\or % acmlarge |
| 8783 |
\global\@ACM@balancefalse |
| 8784 |
\or % acmtog |
| 8785 |
\RequirePackage{balance}% |
| 8786 |
\or % sigconf |
| 8787 |
\RequirePackage{balance}% |
| 8788 |
\or % siggraph |
| 8789 |
\RequirePackage{balance}% |
| 8790 |
\or % sigplan |
| 8791 |
\RequirePackage{balance}% |
| 8792 |
\or % sigchi |
| 8793 |
\RequirePackage{balance}% |
| 8794 |
\or % sigchi-a |
| 8795 |
\global\@ACM@balancefalse |
| 8796 |
\or % acmengage |
| 8797 |
\RequirePackage{balance}% |
| 8798 |
\or % acmcp |
| 8799 |
\global\@ACM@balancefalse |
| 8800 |
\fi |
| 8801 |
\fi |
| 8802 |
} |
| 8803 |
\AtEndDocument{% |
| 8804 |
\if@ACM@balance |
| 8805 |
\if@twocolumn |
| 8806 |
\balance |
| 8807 |
\fi\fi} |
| 8808 |
% \end{macrocode} |
| 8809 |
% |
| 8810 |
% |
| 8811 |
%\subsection{Acknowledgments} |
| 8812 |
%\label{sec:acks} |
| 8813 |
% |
| 8814 |
% \begin{macro}{\acksname} |
| 8815 |
% \changes{v1.56}{2018/10/16}{Added macro (Philip Quinn)} |
| 8816 |
% \begin{macrocode} |
| 8817 |
\newcommand\acksname{Acknowledgments} |
| 8818 |
% \end{macrocode} |
| 8819 |
% |
| 8820 |
% \end{macro} |
| 8821 |
% |
| 8822 |
% \begin{macro}{\acks} |
| 8823 |
% \changes{v1.19}{2016/07/28}{Include 'Acknowledgements' in PDF bookmarks |
| 8824 |
% (Matthew Fluet)} |
| 8825 |
% \changes{v1.15}{2016/07/05}{Added macro} |
| 8826 |
% This is a |comment|-like structure |
| 8827 |
% \begin{macrocode} |
| 8828 |
\specialcomment{acks}{% |
| 8829 |
\begingroup |
| 8830 |
\section*{\acksname} |
| 8831 |
\phantomsection\addcontentsline{toc}{section}{\acksname} |
| 8832 |
}{% |
| 8833 |
\endgroup |
| 8834 |
} |
| 8835 |
% \end{macrocode} |
| 8836 |
% |
| 8837 |
% \end{macro} |
| 8838 |
% |
| 8839 |
% \begin{macro}{\grantsponsor} |
| 8840 |
% \changes{v1.15}{2016/07/05}{Added macro} |
| 8841 |
% \changes{v1.17}{2016/07/10}{Renamed} |
| 8842 |
% We just typeset the name of the sponsor |
| 8843 |
% \begin{macrocode} |
| 8844 |
\def\grantsponsor#1#2#3{#2} |
| 8845 |
% \end{macrocode} |
| 8846 |
% |
| 8847 |
% \end{macro} |
| 8848 |
% |
| 8849 |
% \begin{macro}{\grantnum} |
| 8850 |
% \changes{v1.15}{2016/07/05}{Added macro} |
| 8851 |
% \changes{v1.17}{2016/07/10}{Added url} |
| 8852 |
% \begin{macrocode} |
| 8853 |
\newcommand\grantnum[3][]{#3% |
| 8854 |
\def\@tempa{#1}\ifx\@tempa\@empty\else\space(\url{#1})\fi} |
| 8855 |
% \end{macrocode} |
| 8856 |
% |
| 8857 |
% \end{macro} |
| 8858 |
% |
| 8859 |
% \subsection{Conditional typesetting} |
| 8860 |
% \label{sec:conditional} |
| 8861 |
% |
| 8862 |
% We use the |comment| package for conditional typesetting: |
| 8863 |
% \begin{macrocode} |
| 8864 |
\AtEndPreamble{% |
| 8865 |
\if@ACM@screen |
| 8866 |
\includecomment{screenonly} |
| 8867 |
\excludecomment{printonly} |
| 8868 |
\else |
| 8869 |
\excludecomment{screenonly} |
| 8870 |
\includecomment{printonly} |
| 8871 |
\fi |
| 8872 |
\if@ACM@anonymous |
| 8873 |
\excludecomment{anonsuppress} |
| 8874 |
\excludecomment{acks} |
| 8875 |
\else |
| 8876 |
\includecomment{anonsuppress} |
| 8877 |
\fi} |
| 8878 |
% \end{macrocode} |
| 8879 |
% |
| 8880 |
% |
| 8881 |
% |
| 8882 |
%\subsection{Additional bibliography commands} |
| 8883 |
%\label{sec:bibliography} |
| 8884 |
% |
| 8885 |
% \begin{macro}{\showeprint} |
| 8886 |
% \changes{v1.21}{2016/09/04}{Added macro} |
| 8887 |
% The command \cs{showeprint} has two arguments: the (optional) |
| 8888 |
% prefix and the eprint number. Right now the only prefix we understand is |
| 8889 |
% the (lowercase) word `arxiv'. |
| 8890 |
% \begin{macrocode} |
| 8891 |
\newcommand\showeprint[2][arxiv]{% |
| 8892 |
\def\@tempa{#1}% |
| 8893 |
\ifx\@tempa\@empty\def\@tempa{arxiv}\fi |
| 8894 |
\def\@tempb{arxiv}% |
| 8895 |
\ifx\@tempa\@tempb\relax |
| 8896 |
arXiv:\href{https://arxiv.org/abs/#2}{#2}% |
| 8897 |
\else |
| 8898 |
\def\@tempb{arXiv}% |
| 8899 |
\ifx\@tempa\@tempb\relax |
| 8900 |
arXiv:\href{https://arxiv.org/abs/#2}{#2}% |
| 8901 |
\else |
| 8902 |
#1:#2% |
| 8903 |
\fi |
| 8904 |
\fi} |
| 8905 |
% \end{macrocode} |
| 8906 |
% |
| 8907 |
% |
| 8908 |
% \end{macro} |
| 8909 |
% |
| 8910 |
% |
| 8911 |
%\subsection{Index} |
| 8912 |
%\label{sec:index} |
| 8913 |
% |
| 8914 |
% \begin{macro}{\theindex} |
| 8915 |
% Standard |amsart| uses plain page style in index pages. This |
| 8916 |
% clashes with line numbering for |review| option, so we redefine it. |
| 8917 |
% \begin{macrocode} |
| 8918 |
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi |
| 8919 |
\columnseprule\z@ \columnsep 35\p@ |
| 8920 |
\@indextitlestyle |
| 8921 |
\let\item\@idxitem |
| 8922 |
\parindent\z@ \parskip\z@\@plus.3\p@\relax |
| 8923 |
\raggedright |
| 8924 |
\hyphenpenalty\@M |
| 8925 |
\footnotesize} |
| 8926 |
% \end{macrocode} |
| 8927 |
% |
| 8928 |
% \end{macro} |
| 8929 |
% |
| 8930 |
%\subsection{End of Class} |
| 8931 |
%\label{end} |
| 8932 |
% |
| 8933 |
% \begin{macro}{\vspace} |
| 8934 |
% \changes{v1.57}{2018/12/16}{Added warning} |
| 8935 |
% \changes{v1.58}{2019/01/23}{Preserved old versions as |
| 8936 |
% \cs{@vspace@orig} and \cs{@vspace@orig}} |
| 8937 |
% \changes{1.69}{2020/02/02}{Added the changed command to avoid grouping} |
| 8938 |
% We do not disable \cs{vspace}, but add warning to it |
| 8939 |
% \begin{macrocode} |
| 8940 |
\let\@vspace@orig=\@vspace |
| 8941 |
\let\@vspacer@orig=\@vspacer |
| 8942 |
\apptocmd{\@vspace}{\ClassWarning{\@classname}{\string\vspace\space should |
| 8943 |
only be used to provide space above/below surrounding |
| 8944 |
objects}}{}{} |
| 8945 |
\apptocmd{\@vspacer}{\ClassWarning{\@classname}{\string\vspace\space should |
| 8946 |
only be used to provide space above/below surrounding |
| 8947 |
objects}}{}{} |
| 8948 |
\let\@vspace@acm=\@vspace |
| 8949 |
\let\@vspacer@acm=\@vspacer |
| 8950 |
% \end{macrocode} |
| 8951 |
% |
| 8952 |
% \end{macro} |
| 8953 |
% |
| 8954 |
% |
| 8955 |
% \begin{macro}{\ACM@origbaselinestretch} |
| 8956 |
% \changes{v1.57}{2018/12/16}{Added check whether the user changed |
| 8957 |
% \cs{baselinestretch}} |
| 8958 |
% We produce an error if the user tries to change \cs{baselinestretch} |
| 8959 |
% \begin{macrocode} |
| 8960 |
\let\ACM@origbaselinestretch\baselinestretch |
| 8961 |
\AtEndDocument{\ifx\baselinestretch\ACM@origbaselinestretch\else |
| 8962 |
\ClassError{\@classname}{An attempt to redefine |
| 8963 |
\string\baselinestretch\space detected. Please do not do this for |
| 8964 |
ACM submissions!}\fi} |
| 8965 |
% \end{macrocode} |
| 8966 |
% |
| 8967 |
% \end{macro} |
| 8968 |
% \begin{macro}{\ACM@origsection} |
| 8969 |
% \changes{v2.14}{2025/05/30}{Added check whether the user changed |
| 8970 |
% \cs{section}} |
| 8971 |
% We produce an error if the user tries to change \cs{section} |
| 8972 |
% \begin{macrocode} |
| 8973 |
\let\ACM@origsection\section |
| 8974 |
\AtEndDocument{\ifx\section\ACM@origsection\else |
| 8975 |
\ClassError{\@classname}{An attempt to redefine |
| 8976 |
\string\section\space detected. Please do not do this for |
| 8977 |
ACM submissions!}\fi} |
| 8978 |
% \end{macrocode} |
| 8979 |
% |
| 8980 |
% \end{macro} |
| 8981 |
% \begin{macro}{\ACM@origsubsection} |
| 8982 |
% \changes{v2.14}{2025/05/30}{Added check whether the user changed |
| 8983 |
% \cs{subsection}} |
| 8984 |
% We produce an error if the user tries to change \cs{subsection} |
| 8985 |
% \begin{macrocode} |
| 8986 |
\let\ACM@origsubsection\subsection |
| 8987 |
\AtEndDocument{\ifx\subsection\ACM@origsubsection\else |
| 8988 |
\ClassError{\@classname}{An attempt to redefine |
| 8989 |
\string\subsection\space detected. Please do not do this for |
| 8990 |
ACM submissions!}\fi} |
| 8991 |
% \end{macrocode} |
| 8992 |
% |
| 8993 |
% \end{macro} |
| 8994 |
% \begin{macro}{\ACM@origsubsubsection} |
| 8995 |
% \changes{v2.14}{2025/05/30}{Added check whether the user changed |
| 8996 |
% \cs{subsubsection}} |
| 8997 |
% We produce an error if the user tries to change \cs{subsubsection} |
| 8998 |
% \begin{macrocode} |
| 8999 |
\let\ACM@origsubsubsection\subsubsection |
| 9000 |
\AtEndDocument{\ifx\subsubsection\ACM@origsubsubsection\else |
| 9001 |
\ClassError{\@classname}{An attempt to redefine |
| 9002 |
\string\subsubsection\space detected. Please do not do this for |
| 9003 |
ACM submissions!}\fi} |
| 9004 |
% \end{macrocode} |
| 9005 |
% |
| 9006 |
% \end{macro} |
| 9007 |
% \begin{macro}{\ACM@origparagraph} |
| 9008 |
% \changes{v2.14}{2025/05/30}{Added check whether the user changed |
| 9009 |
% \cs{paragraph}} |
| 9010 |
% We produce an error if the user tries to change \cs{paragraph} |
| 9011 |
% \begin{macrocode} |
| 9012 |
\let\ACM@origparagraph\paragraph |
| 9013 |
\AtEndDocument{\ifx\paragraph\ACM@origparagraph\else |
| 9014 |
\ClassError{\@classname}{An attempt to redefine |
| 9015 |
\string\paragraph\space detected. Please do not do this for |
| 9016 |
ACM submissions!}\fi} |
| 9017 |
% \end{macrocode} |
| 9018 |
% |
| 9019 |
% \end{macro} |
| 9020 |
% |
| 9021 |
% \changes{v1.30}{2017/02/10}{Added \cs{frenchspacing}} |
| 9022 |
% \begin{macrocode} |
| 9023 |
\normalsize\normalfont\frenchspacing |
| 9024 |
%</class> |
| 9025 |
% \end{macrocode} |
| 9026 |
% |
| 9027 |
%\Finale |
| 9028 |
%\clearpage |
| 9029 |
% |
| 9030 |
%\PrintChanges |
| 9031 |
%\clearpage |
| 9032 |
%\PrintIndex |
| 9033 |
% |
| 9034 |
\endinput |