texlive[49137] Master/texmf-dist: acmart (12nov18)
commits+karl at tug.org
commits+karl at tug.org
Mon Nov 12 23:10:14 CET 2018
Revision: 49137
http://tug.org/svn/texlive?view=revision&revision=49137
Author: karl
Date: 2018-11-12 23:10:14 +0100 (Mon, 12 Nov 2018)
Log Message:
-----------
acmart (12nov18)
Modified Paths:
--------------
trunk/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst
trunk/Master/texmf-dist/doc/latex/acmart/README
trunk/Master/texmf-dist/doc/latex/acmart/acmart.pdf
trunk/Master/texmf-dist/doc/latex/acmart/acmguide.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-acmlarge.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-acmsmall.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-acmtog.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-manuscript.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi-a.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi-a.tex
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi.tex
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigconf-authordraft.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigconf-xelatex.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigconf.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigplan.pdf
trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigplan.tex
trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-conf.tex
trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-journals.tex
trunk/Master/texmf-dist/source/latex/acmart/acmart.dtx
trunk/Master/texmf-dist/tex/latex/acmart/acmart.cls
Modified: trunk/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst
===================================================================
--- trunk/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst 2018-11-12 22:10:14 UTC (rev 49137)
@@ -506,15 +506,14 @@
% result on the output stack, as recommended by CrossRef DOI
% documentation.
% For example, reduce "http://doi.acm.org/10.1145/1534530.1534545" to
- % "10.1145/1534530.1534545". That is later typeset and displayed as
- % doi:10.1145/1534530.1534545 as the LAST item in the reference list
- % entry. Publisher Web sites wrap this with a suitable link to a real
- % URL to resolve the DOI, and the master https://doi.org/ address is
- % preferred, since publisher-specific URLs can disappear in response
- % to economic events. All journals are encouraged by the DOI
- % authorities to use that typeset format and link procedures for
- % uniformity across all publications that include DOIs in reference
- % lists.
+ % "10.1145/1534530.1534545". A suitable URL is later typeset and
+ % displayed as the LAST item in the reference list entry. Publisher Web
+ % sites wrap this with a suitable link to a real URL to resolve the DOI,
+ % and the master https://doi.org/ address is preferred, since publisher-
+ % specific URLs can disappear in response to economic events. All
+ % journals are encouraged by the DOI authorities to use that typeset
+ % format and link procedures for uniformity across all publications that
+ % include DOIs in reference lists.
% The numeric prefix is guaranteed to start with "10.", so we use
% that as a test.
% 2017-02-04 Added stripping of https:// (Boris)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acmart/README 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/doc/latex/acmart/README 2018-11-12 22:10:14 UTC (rev 49137)
@@ -198,5 +198,11 @@
Version 1.55 Bug fixes
Font changes for SIGCHI table captions
-
+
+Version 1.56 Bug fixes
+ Added \flushbottom to two column formats (Philip Quinn)
+ The final punctuation for the list of concepts
+ is now period instead of semilcolon (Philip Quinn)
+ New command \Description to describe images for visually
+ impaired users.
Modified: trunk/Master/texmf-dist/doc/latex/acmart/acmart.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/acmguide.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-acmlarge.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-acmsmall.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-acmtog.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-manuscript.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi-a.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi-a.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi-a.tex 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi-a.tex 2018-11-12 22:10:14 UTC (rev 49137)
@@ -155,7 +155,8 @@
\end{sidebar}
\begin{figure}
- \includegraphics[width=\marginparwidth]{sigchi-logo}
+ \includegraphics[width=\marginparwidth]{sigchi-logo}\Description{SIGCHI
+ logo}
\caption{Insert a caption below each figure.}
\label{fig:sample}
\end{figure}
@@ -272,7 +273,8 @@
\begin{marginfigure}
- \includegraphics[width=\marginparwidth]{cats}
+ \includegraphics[width=\marginparwidth]{cats}\Description{An image
+ of tesselated cats}
\caption{In this image, the cats are tessellated within a square
frame. Images should also have captions and be within the
boundaries of the sidebar on page~\pageref{bar:sidebar}. Photo:
@@ -289,13 +291,13 @@
the \texttt{marginfigure} environment to insert figures in the (left) margin
of the document (see Figure~\ref{fig:marginfig}). Finally, be sure to
make images large enough so the important details are legible and
-clear (see Figure~\ref{fig:cats}).
+clear (see Figure~\ref{fig:map}).
\begin{figure*}
- \includegraphics[width=\fulltextwidth]{map}
+ \includegraphics[width=\fulltextwidth]{map}\Description{A world map}
\caption{In this image, the map maximizes use of space.
Note that \LaTeX\ tends to render large figures on a
- dedicated page. Image: \ccbynd~ayman on Flickr.}~\label{fig:cats}
+ dedicated page. Image: \ccbynd~ayman on Flickr.}~\label{fig:map}
\end{figure*}
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi.tex 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigchi.tex 2018-11-12 22:10:14 UTC (rev 49137)
@@ -158,7 +158,8 @@
\keywords{ACM proceedings, \LaTeX, text tagging}
\begin{teaserfigure}
- \includegraphics[width=\textwidth]{sampleteaser}
+ \includegraphics[width=\textwidth]{sampleteaser}\Description{A
+ baseball field}
\caption{This is a teaser}
\label{fig:teaser}
\end{teaserfigure}
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigconf-authordraft.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigconf-xelatex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigconf.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigplan.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigplan.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigplan.tex 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/doc/latex/acmart/samples/sample-sigplan.tex 2018-11-12 22:10:14 UTC (rev 49137)
@@ -165,7 +165,8 @@
\keywords{ACM proceedings, \LaTeX, text tagging}
\begin{teaserfigure}
- \includegraphics[width=\textwidth]{sampleteaser}
+ \includegraphics[width=\textwidth]{sampleteaser}\Description{A
+ baseball field}
\caption{This is a teaser}
\label{fig:teaser}
\end{teaserfigure}
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-conf.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-conf.tex 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-conf.tex 2018-11-12 22:10:14 UTC (rev 49137)
@@ -232,12 +232,13 @@
each of these are found in the \textit{Author's Guide}.
\begin{figure}
-\includegraphics{fly}
+\includegraphics{fly}\Description{A fly}
\caption{A sample black and white graphic.}
\end{figure}
\begin{figure}
-\includegraphics[height=1in, width=1in]{fly}
+\includegraphics[height=1in, width=1in]{fly}\Description{A fly image,
+ to $1''\times1''$}
\caption{A sample black and white graphic
that has been resized with the \texttt{includegraphics} command.}
\end{figure}
@@ -250,7 +251,8 @@
with \textbf{figure*}, not \textbf{figure}!
\begin{figure*}
-\includegraphics{flies}
+\includegraphics{flies}\Description{Several flies, spanning two
+ columns of text}
\caption{A sample black and white graphic
that needs to span two columns of text.}
\end{figure*}
@@ -257,7 +259,7 @@
\begin{figure}
-\includegraphics[height=1in, width=1in]{rosette}
+\includegraphics[height=1in, width=1in]{rosette}\Description{A rosette}
\caption{A sample black and white graphic that has
been resized with the \texttt{includegraphics} command.}
\end{figure}
Modified: trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-journals.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-journals.tex 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/doc/latex/acmart/samples/samplebody-journals.tex 2018-11-12 22:10:14 UTC (rev 49137)
@@ -186,6 +186,7 @@
% Figure
\begin{figure}
\includegraphics{mouse}
+ \Description{A mouse}
\caption{Code before preprocessing.}
\label{fig:one}
\end{figure}
Modified: trunk/Master/texmf-dist/source/latex/acmart/acmart.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/acmart/acmart.dtx 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/source/latex/acmart/acmart.dtx 2018-11-12 22:10:14 UTC (rev 49137)
@@ -1,4 +1,3 @@
-
% \iffalse
%
% Copyright 2016-2018, Association for Computing Machinery
@@ -104,6 +103,7 @@
% Dirk Beyer,
% Joachim Breitner,
% Benjamin Byholm,
+% Nils Anders Danielsson,
% Michael Ekstrand,
% Matthew Fluet,
% Paolo G.~Giarrusso,
@@ -119,6 +119,7 @@
% John Owens,
% Joel Nider,
% Tobias Pape,
+% Philip Quinn,
% Mathias Rav,
% Andreas Reichinger,
% Matteo Riondato,
@@ -1189,6 +1190,35 @@
% A good way to do so is to put the contents into a
% \cs{minipage} of the width \cs{columnwidth}.
%
+%
+%\subsection{Descriptions of images}
+%\label{sec:descriptions}
+%
+% \DescribeMacro{\Description}%
+% Some readers of ACM publications might be visually challenged.
+% These readers might use a voice-over software to read aloud the
+% papers. It is important to provided them a description of each
+% image used in the paper.
+%
+% The command \cs{Description}\oarg{short description}\marg{long
+% description} should be placed inside every \texttt{figure},
+% \texttt{teaserfigure} or \texttt{marginfigure} environment to
+% provide a description of the image(s) used in the figure. Unlike
+% \cs{caption}, which is used alongside the image, \cs{Description} is
+% intended to be used instead of the image, for example,
+% \begin{verbatim}
+% \begin{figure}
+% \centering
+% \includegraphics{voltage}
+% \Description{A bell-like histogram centered at $0.5$~V with most
+% measurements between $0.2$~V and $0.8$~V}
+% \caption{Histogram of the measurements of voltage}
+% \label{fig:voltage}
+% \end{figure}
+% \end{verbatim}
+% At present the lack of descriptions generates a warning at
+% compilation.
+%
%\subsection{Theorems}
%\label{sec:ug_theorems}
%
@@ -1715,7 +1745,7 @@
\ProvidesFile{acmart.dtx}
%</gobble>
%<class>\ProvidesClass{acmart}
-[2018/10/20 v1.55 Typesetting articles for the Association for
+[2018/11/11 v1.56 Typesetting articles for the Association for
Computing Machinery]
% \end{macrocode}
%
@@ -1799,6 +1829,7 @@
% \changes{1.53}{2018/04/14}{Rearranged docs}
% \changes{1.54}{2018/06/17}{Moved footnote stuff before hyperref call
% (Ross Moore)}
+% \changes{1.56}{2018/11/11}{Documented \cs{Description}}
%
% And the driver code:
% \begin{macrocode}
@@ -2580,7 +2611,7 @@
\else
\hypersetup{hidelinks}
\fi
- \hypersetup{pdflang={English},
+ \hypersetup{pdflang={en},
pdfdisplaydoctitle}}
% \end{macrocode}
%
@@ -2668,6 +2699,7 @@
% \changes{v1.17}{2016/07/07}{Slightly decreased margins for sigs}
% \changes{v1.29}{2017/01/22}{Increased head to 13pt}
% \changes{v1.40}{2017/07/15}{Added heightrounded to geometry}
+% \changes{v1.56}{2018/10/16}{Make two-column layouts flush (Philip Quinn)}
% We use |geometry| for dimensions. Note that the present margins do not
% depend on the font size option---we might need to change this.
% See \url{https://github.com/borisveytsman/acmart/issues/5#issuecomment-272881329}.
@@ -2843,6 +2875,28 @@
% \end{macrocode}
%
% \end{macro}
+%
+% In two-column layouts, force both columns to be the same height by inserting
+% extra internal vertical space to fill out the page.
+% \begin{macrocode}
+\ifcase\ACM at format@nr
+\relax % manuscript
+\or % acmsmall
+\or % acmlarge
+\or % acmtog
+ \flushbottom
+\or % sigconf
+ \flushbottom
+\or % siggraph
+ \flushbottom
+\or % sigplan
+ \flushbottom
+\or % sigchi
+ \flushbottom
+\or % sigchi-a
+\fi
+% \end{macrocode}
+%
%\subsection{Fonts}
%\label{sec:fonts}
%
@@ -2898,6 +2952,8 @@
% \changes{v1.51}{2018/04/05}{XeTeX now uses OTF fonts (Joachim
% Breitner)}
% \changes{v1.54}{2018/07/16}{XeTeX now uses T1 encoding}
+% \changes{v1.56}{2018/11/11}{Looks like XeTeX requires explicit
+% monotype font delcaration}
% We use Libertine throughout.
% \begin{macrocode}
\if at ACM@newfonts
@@ -2904,6 +2960,7 @@
\RequirePackage[T1]{fontenc}
\ifxetex
\RequirePackage[tt=false]{libertine}
+ \setmonofont{inconsolata}
\else
\RequirePackage[tt=false, type1=true]{libertine}
\fi
@@ -2933,6 +2990,55 @@
% \end{macrocode}
%
%
+%
+%\subsection{Image descriptions}
+%\label{sec:description}
+%
+% \begin{macro}{\if at Description@present}
+% \changes{v1.56}{2018/11/11}{Added macro}
+% A local switch: whether there is a description in the given figure
+% \begin{macrocode}
+\newif\if at Description@present
+\@Description at presenttrue
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\if at undescribed@images}
+% \changes{v1.56}{2018/11/11}{Added macro}
+% A global switch whether some images were \emph{not} described
+% \begin{macrocode}
+\newif\if at undescribed@images
+\@undescribed at imagesfalse
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\Description}
+% \changes{v1.56}{2018/11/11}{Added macro}
+% The Description macro right now just sets switches
+% \begin{macrocode}
+\newcommand\Description[2][]{\global\@Description at presenttrue}
+% \end{macrocode}
+% \end{macro}
+%
+% The global warning
+% \begin{macrocode}
+\AtEndDocument{\if at undescribed@images
+ \ClassWarningNoLine{\@classname}{Some images may lack descriptions}\fi}
+% \end{macrocode}
+%
+% Hooks for figures
+% \begin{macrocode}
+\AtBeginEnvironment{figure}{\@Description at presentfalse}
+\AtBeginEnvironment{figure*}{\@Description at presentfalse}
+\AtEndEnvironment{figure}{\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without description}\fi}
+\AtEndEnvironment{figure*}{\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without description}\fi}
+% \end{macrocode}
+%
+%
%\subsection{Floats}
%\label{sec:floats}
%
@@ -3003,10 +3109,17 @@
%
% \begin{macro}{\@marginfigure}
% \changes{v1.12}{2016/05/30}{Now centering by default}
+% \changes{v1.56}{2018/11/11}{Added checking for description}
% The processing of the saved text
% \begin{macrocode}
-\long\def\@marginfigure#1{\bgroup\captionsetup{type=figure}%
- \marginpar{\centering\small#1}\egroup}
+\long\def\@marginfigure#1{\bgroup
+ \captionsetup{type=figure}%
+ \marginpar{\@Description at presentfalse\centering
+ \small#1\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without description}
+ \fi}%
+ \egroup}
% \end{macrocode}
%
% \end{macro}
@@ -4212,9 +4325,10 @@
% \end{macrocode}
%
% \begin{macro}{\@concepts}
-% This is the storage macro for concepts
+% This is the storage macro and counter for concepts
% \begin{macrocode}
\let\@concepts\@empty
+\newcounter{@concepts}
% \end{macrocode}
%
% \end{macro}
@@ -4236,11 +4350,14 @@
% \changes{v1.29}{2017/01/22}{Add spacing after bullet and around
% rightarrow; semicolon separators no longer in bold/italic (John Wickerson)}
% \changes{v1.40}{2017/05/27}{Now we can parse |Significance~General| nodes}
+% \changes{v1.56}{2018/10/23}{End the concepts list with a period
+% (Philip Quinn)}
% The parser of the expression |Significance~General~Specific| (we need
% |textcomp| for |\textrightarrow|). Note that |Specific| can be empty!
% \begin{macrocode}
\RequirePackage{textcomp}
\def\ccsdesc at parse#1~#2~#3~{%
+ \stepcounter{@concepts}%
\expandafter\ifx\csname CCS at General@#2\endcsname\relax
\expandafter\gdef\csname CCS at General@#2\endcsname{\textbullet\
\textbf{#2}}%
@@ -4254,9 +4371,10 @@
\expandafter\gdef\csname CCS at Punctuation@#2\endcsname{
\textrightarrow\ }%
\expandafter\g at addto@macro\expandafter{\csname CCS at Specific@#2\endcsname}{%
- \ifnum#1>499\textbf{#3}; \else
- \ifnum#1>299\textit{#3}; \else
- #3; \fi\fi}%
+ \addtocounter{@concepts}{-1}%
+ \ifnum#1>499\textbf{#3}\else
+ \ifnum#1>299\textit{#3}\else
+ #3\fi\fi\ifnum\value{@concepts}=0.\else; \fi}%
\fi
\ccsdesc at parse@finish}
% \end{macrocode}
@@ -5539,7 +5657,8 @@
% \end{macro}
%
% \begin{macro}{\@mkteasers}
-% Typesetting the teasers
+% Typesetting the teasers
+% \changes{v1.56}{2018/11/1}{Added check for description}
% \begin{macrocode}
\def\@mkteasers{%
\ifx\@teaserfigures\@empty\else
@@ -5546,7 +5665,12 @@
\def\@teaser##1{\par\bigskip\bgroup
\captionsetup{type=figure}##1\egroup\par}
\global\setbox\mktitle at bx=\vbox{\noindent\box\mktitle at bx\par
- \noindent\@teaserfigures\par\medskip}%
+ \noindent\@Description at presentfalse
+ \@teaserfigures\par\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without
+ description}\fi
+ \medskip}%
\fi}
% \end{macrocode}
%
@@ -6471,6 +6595,14 @@
%\subsection{Acknowledgments}
%\label{sec:acks}
%
+% \begin{macro}{\acksname}
+% \changes{v1.56}{2018/10/16}{Added macro (Philip Quinn)}
+% \begin{macrocode}
+\newcommand\acksname{Acknowledgments}
+% \end{macrocode}
+%
+% \end{macro}
+%
% \begin{macro}{\acks}
% \changes{v1.19}{2016/07/28}{Include 'Acknowledgements' in PDF bookmarks
% (Matthew Fluet)}
@@ -6479,8 +6611,8 @@
% \begin{macrocode}
\specialcomment{acks}{%
\begingroup
- \section*{Acknowledgments}
- \phantomsection\addcontentsline{toc}{section}{Acknowledgments}
+ \section*{\acksname}
+ \phantomsection\addcontentsline{toc}{section}{\acksname}
}{%
\endgroup
}
Modified: trunk/Master/texmf-dist/tex/latex/acmart/acmart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/acmart/acmart.cls 2018-11-12 05:44:06 UTC (rev 49136)
+++ trunk/Master/texmf-dist/tex/latex/acmart/acmart.cls 2018-11-12 22:10:14 UTC (rev 49137)
@@ -20,7 +20,6 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -38,7 +37,7 @@
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{acmart}
-[2018/10/20 v1.55 Typesetting articles for the Association for
+[2018/11/11 v1.56 Typesetting articles for the Association for
Computing Machinery]
\def\@classname{acmart}
\InputIfFileExists{acmart-preload-hook.tex}{%
@@ -482,7 +481,7 @@
\else
\hypersetup{hidelinks}
\fi
- \hypersetup{pdflang={English},
+ \hypersetup{pdflang={en},
pdfdisplaydoctitle}}
\if at ACM@natbib
\let\citeN\cite
@@ -629,6 +628,22 @@
\expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
\def\@textbottom{\vskip \z@ \@plus 1pt}
\let\@texttop\relax
+\ifcase\ACM at format@nr
+\relax % manuscript
+\or % acmsmall
+\or % acmlarge
+\or % acmtog
+ \flushbottom
+\or % sigconf
+ \flushbottom
+\or % siggraph
+ \flushbottom
+\or % sigplan
+ \flushbottom
+\or % sigchi
+ \flushbottom
+\or % sigchi-a
+\fi
\RequirePackage{iftex}
\ifPDFTeX
\input{glyphtounicode}
@@ -657,6 +672,7 @@
\RequirePackage[T1]{fontenc}
\ifxetex
\RequirePackage[tt=false]{libertine}
+ \setmonofont{inconsolata}
\else
\RequirePackage[tt=false, type1=true]{libertine}
\fi
@@ -669,6 +685,21 @@
\if at ACM@sigchiamode
\renewcommand{\familydefault}{\sfdefault}
\fi
+\newif\if at Description@present
+\@Description at presenttrue
+\newif\if at undescribed@images
+\@undescribed at imagesfalse
+\newcommand\Description[2][]{\global\@Description at presenttrue}
+\AtEndDocument{\if at undescribed@images
+ \ClassWarningNoLine{\@classname}{Some images may lack descriptions}\fi}
+\AtBeginEnvironment{figure}{\@Description at presentfalse}
+\AtBeginEnvironment{figure*}{\@Description at presentfalse}
+\AtEndEnvironment{figure}{\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without description}\fi}
+\AtEndEnvironment{figure*}{\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without description}\fi}
\RequirePackage{caption, float}
\captionsetup[table]{position=top}
\if at ACM@journal
@@ -707,8 +738,14 @@
\long\def\@sidebar#1{\bgroup\captionsetup{type=sidebar}%
\marginpar{\small#1}\egroup}
\newenvironment{marginfigure}{\Collect at Body\@marginfigure}{}
-\long\def\@marginfigure#1{\bgroup\captionsetup{type=figure}%
- \marginpar{\centering\small#1}\egroup}
+\long\def\@marginfigure#1{\bgroup
+ \captionsetup{type=figure}%
+ \marginpar{\@Description at presentfalse\centering
+ \small#1\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without description}
+ \fi}%
+ \egroup}
\newenvironment{margintable}{\Collect at Body\@margintable}{}
\long\def\@margintable#1{\bgroup\captionsetup{type=table}%
\marginpar{\centering\small#1}\egroup}
@@ -1332,10 +1369,12 @@
\RequirePackage{comment}
\excludecomment{CCSXML}
\let\@concepts\@empty
+\newcounter{@concepts}
\newcommand\ccsdesc[2][100]{%
\ccsdesc at parse#1~#2~~\ccsdesc at parse@end}
\RequirePackage{textcomp}
\def\ccsdesc at parse#1~#2~#3~{%
+ \stepcounter{@concepts}%
\expandafter\ifx\csname CCS at General@#2\endcsname\relax
\expandafter\gdef\csname CCS at General@#2\endcsname{\textbullet\
\textbf{#2}}%
@@ -1349,9 +1388,10 @@
\expandafter\gdef\csname CCS at Punctuation@#2\endcsname{
\textrightarrow\ }%
\expandafter\g at addto@macro\expandafter{\csname CCS at Specific@#2\endcsname}{%
- \ifnum#1>499\textbf{#3}; \else
- \ifnum#1>299\textit{#3}; \else
- #3; \fi\fi}%
+ \addtocounter{@concepts}{-1}%
+ \ifnum#1>499\textbf{#3}\else
+ \ifnum#1>299\textit{#3}\else
+ #3\fi\fi\ifnum\value{@concepts}=0.\else; \fi}%
\fi
\ccsdesc at parse@finish}
\def\ccsdesc at parse@finish#1\ccsdesc at parse@end{}
@@ -2149,7 +2189,12 @@
\def\@teaser##1{\par\bigskip\bgroup
\captionsetup{type=figure}##1\egroup\par}
\global\setbox\mktitle at bx=\vbox{\noindent\box\mktitle at bx\par
- \noindent\@teaserfigures\par\medskip}%
+ \noindent\@Description at presentfalse
+ \@teaserfigures\par\if at Description@present\else
+ \global\@undescribed at imagestrue
+ \ClassWarning{\@classname}{A possible image without
+ description}\fi
+ \medskip}%
\fi}
\def\@mkabstract{\bgroup
\ifx\@abstract\@lempty\else
@@ -2639,10 +2684,11 @@
}{%
\popQED\endtrivlist\@endpefalse
}
+\newcommand\acksname{Acknowledgments}
\specialcomment{acks}{%
\begingroup
- \section*{Acknowledgments}
- \phantomsection\addcontentsline{toc}{section}{Acknowledgments}
+ \section*{\acksname}
+ \phantomsection\addcontentsline{toc}{section}{\acksname}
}{%
\endgroup
}
More information about the tex-live-commits
mailing list