From aaa01e878281de6ba5f48687fc35f90f06a4cc36 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 12 Nov 2018 22:10:14 +0000 Subject: acmart (12nov18) git-svn-id: svn://tug.org/texlive/trunk@49137 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/acmart/acmart.cls | 68 ++++++++++++++++++++++----- 1 file changed, 57 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/acmart') diff --git a/Master/texmf-dist/tex/latex/acmart/acmart.cls b/Master/texmf-dist/tex/latex/acmart/acmart.cls index 57d17eb869b..1bc1885d088 100644 --- a/Master/texmf-dist/tex/latex/acmart/acmart.cls +++ b/Master/texmf-dist/tex/latex/acmart/acmart.cls @@ -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 @@ Computing Machinery] \else \hypersetup{hidelinks} \fi - \hypersetup{pdflang={English}, + \hypersetup{pdflang={en}, pdfdisplaydoctitle}} \if@ACM@natbib \let\citeN\cite @@ -629,6 +628,22 @@ Computing Machinery] \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}} \def\@textbottom{\vskip \z@ \@plus 1pt} \let\@texttop\relax +\ifcase\ACM@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 @@ Computing Machinery] \RequirePackage[T1]{fontenc} \ifxetex \RequirePackage[tt=false]{libertine} + \setmonofont{inconsolata} \else \RequirePackage[tt=false, type1=true]{libertine} \fi @@ -669,6 +685,21 @@ Computing Machinery] \if@ACM@sigchiamode \renewcommand{\familydefault}{\sfdefault} \fi +\newif\if@Description@present +\@Description@presenttrue +\newif\if@undescribed@images +\@undescribed@imagesfalse +\newcommand\Description[2][]{\global\@Description@presenttrue} +\AtEndDocument{\if@undescribed@images + \ClassWarningNoLine{\@classname}{Some images may lack descriptions}\fi} +\AtBeginEnvironment{figure}{\@Description@presentfalse} +\AtBeginEnvironment{figure*}{\@Description@presentfalse} +\AtEndEnvironment{figure}{\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description}\fi} +\AtEndEnvironment{figure*}{\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description}\fi} \RequirePackage{caption, float} \captionsetup[table]{position=top} \if@ACM@journal @@ -707,8 +738,14 @@ Computing Machinery] \long\def\@sidebar#1{\bgroup\captionsetup{type=sidebar}% \marginpar{\small#1}\egroup} \newenvironment{marginfigure}{\Collect@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@presentfalse\centering + \small#1\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description} + \fi}% + \egroup} \newenvironment{margintable}{\Collect@Body\@margintable}{} \long\def\@margintable#1{\bgroup\captionsetup{type=table}% \marginpar{\centering\small#1}\egroup} @@ -1332,10 +1369,12 @@ Computing Machinery] \RequirePackage{comment} \excludecomment{CCSXML} \let\@concepts\@empty +\newcounter{@concepts} \newcommand\ccsdesc[2][100]{% \ccsdesc@parse#1~#2~~\ccsdesc@parse@end} \RequirePackage{textcomp} \def\ccsdesc@parse#1~#2~#3~{% + \stepcounter{@concepts}% \expandafter\ifx\csname CCS@General@#2\endcsname\relax \expandafter\gdef\csname CCS@General@#2\endcsname{\textbullet\ \textbf{#2}}% @@ -1349,9 +1388,10 @@ Computing Machinery] \expandafter\gdef\csname CCS@Punctuation@#2\endcsname{ \textrightarrow\ }% \expandafter\g@addto@macro\expandafter{\csname CCS@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@parse@finish} \def\ccsdesc@parse@finish#1\ccsdesc@parse@end{} @@ -2149,7 +2189,12 @@ Computing Machinery] \def\@teaser##1{\par\bigskip\bgroup \captionsetup{type=figure}##1\egroup\par} \global\setbox\mktitle@bx=\vbox{\noindent\box\mktitle@bx\par - \noindent\@teaserfigures\par\medskip}% + \noindent\@Description@presentfalse + \@teaserfigures\par\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without + description}\fi + \medskip}% \fi} \def\@mkabstract{\bgroup \ifx\@abstract\@lempty\else @@ -2639,10 +2684,11 @@ Computing Machinery] }{% \popQED\endtrivlist\@endpefalse } +\newcommand\acksname{Acknowledgments} \specialcomment{acks}{% \begingroup - \section*{Acknowledgments} - \phantomsection\addcontentsline{toc}{section}{Acknowledgments} + \section*{\acksname} + \phantomsection\addcontentsline{toc}{section}{\acksname} }{% \endgroup } -- cgit v1.2.3