From 58aa1ac09b1d9e4769d0a0661cf12e2b2db41b14 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 22 May 2021 03:00:53 +0000 Subject: CTAN sync 202105220300 --- macros/latex/contrib/acmart/acmart.dtx | 71 +++++++++++++++++++++++++++++++--- 1 file changed, 65 insertions(+), 6 deletions(-) (limited to 'macros/latex/contrib/acmart/acmart.dtx') diff --git a/macros/latex/contrib/acmart/acmart.dtx b/macros/latex/contrib/acmart/acmart.dtx index c0e62e554c..d113dd5043 100644 --- a/macros/latex/contrib/acmart/acmart.dtx +++ b/macros/latex/contrib/acmart/acmart.dtx @@ -1679,6 +1679,36 @@ % uppercasing. % % +%\subsection{Counting words} +%\label{sec:ug_counting} +% +% Some ACM conferences use word count limits for papers. The +% calculation of word number for a paper with math, tables and figures +% is not a trivial task. Currently the authoritative word count is +% done by translating the PDF to text and using |wc -w| on the +% output. Authors can use the package |texcount| (used by Overleaf) +% to get an estimate of the word count. To faciliate this one adds to the +% beginning of the package metacomments +% \begin{verbatim} +% %TC:macro \cite [option:text,text] +% %TC:macro \citep [option:text,text] +% %TC:macro \citet [option:text,text] +% %TC:envir table 0 1 +% %TC:envir table* 0 1 +% %TC:envir tabular [ignore] word +% %TC:envir displaymath 0 word +% %TC:envir math 0 word +% %TC:envir comment 0 0 +% \end{verbatim} +% and uses |\begin{math}...\end{math}| instead of dollar signs for +% math. Note that the count is in any case approximate, and the final +% decision of editors is based on PDF count. +% +% The script |texcount| provides a report of word count in the +% document. +% +% +% % %\subsection{Disabled or forbidden commands} %\label{sec:ug_disabled} @@ -1907,7 +1937,7 @@ \ProvidesFile{acmart.dtx} % %\ProvidesClass{acmart} -[2021/04/16 v1.77 Typesetting articles for the Association for Computing Machinery] +[2021/05/01 v1.78 Typesetting articles for the Association for Computing Machinery] % \end{macrocode} % % \changes{v1.00}{2016/04/14}{First released version} @@ -2014,6 +2044,7 @@ % \changes{1.71}{2020/05/02}{LuaTeX now uses the OTF versions of % fonts} % \changes{1.75}{2020/10/29}{Documentation update} +% \changes{1.78}{2021/05/01}{Documentation update: Word count} % % And the driver code: % \begin{macrocode} @@ -4669,8 +4700,11 @@ % \begin{macrocode} \AtEndDocument{\if@ACM@nonacm\else\if@ACM@printacmref\else \ifnum\getrefnumber{TotPages}>1\relax - \ClassWarningNoLine{\@classname}{ACM reference format is mandatory - for papers over one page}% + \ClassWarningNoLine{\@classname}{% + ACM reference format is mandatory \MessageBreak + for papers over one page. \MessageBreak + Please add printacmref=true to the \MessageBreak + \string\settopmatter\space command.}% \fi\fi\fi} % \end{macrocode} % @@ -5417,9 +5451,12 @@ % its argument. Added a bugfix} % \changes{v1.68}{2020/01/19}{Deleted grouping altogether} % \changes{v1.69}{2020/02/02}{Changed dot to colon for sigplan} +% \changes{v1.78}{2021/05/02}{Again suppressed \cs{vspace} warning} % This macro starts sections for proceedings and uses \cs{small} for journals % \begin{macrocode} \def\@specialsection#1{% + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig \ifcase\ACM@format@nr \relax % manuscript \par\medskip\small\noindent#1: % @@ -5440,6 +5477,8 @@ \or % sigchi-a \section*{#1}% \fi + \let\@vspace\@vspace@acm + \let\@vspacer\@vspacer@acm } % \end{macrocode} % @@ -5449,9 +5488,14 @@ % \begin{macro}{\@printtopmatter} % \changes{v1.06}{2016/05/01}{Added processing badges} % \changes{v1.46}{2017/08/29}{Deleted rule} +% \changes{v1.78}{2021/05/16}{Added processing the overflowing title box} % The printing of top matter starts a new page and uses the given % title box. Note that for |sigchi-a| we print badges here rather % than in \cs{mktitle} since we want them in the margins. +% +% Note that if there are too many authors, |\mktitle@bx| might +% overflow the page. Therefore we start with checking this and if +% this happens, we split the box and print it page by page. % \begin{macrocode} \def\@printtopmatter{% \ifx\@startPage\@empty @@ -5459,6 +5503,18 @@ \else \setcounter{page}{\@startPage}% \fi + \@tempdima=\ht\mktitle@bx + \advance\@tempdima by \dp\mktitle@bx + \ifdim\@tempdima>0.9\textheight + \loop + \setbox\@tempboxa=\vsplit \mktitle@bx to 0.9\textheight + \thispagestyle{firstpagestyle}% + \noindent\unvbox\@tempboxa + \clearpage + \@tempdima=\ht\mktitle@bx + \advance\@tempdima by \dp\mktitle@bx + \ifdim\@tempdima>0.9\textheight\repeat + \fi \thispagestyle{firstpagestyle}% \noindent \ifcase\ACM@format@nr @@ -5954,6 +6010,7 @@ % \changes{v1.40}{2017/06/04}{Switched to MakeTextUppercase} % \changes{v1.73}{2020/09/07}{Check the presence of required elements % for affiliations} +% \changes{v1.78}{2021/05/16}{Unboxing \cs{mktitle@bx}} % This version is used in most journal formats. Note that \cs{and} between % authors with the same affiliation becomes \verb*| and |: % \begin{macrocode} @@ -5985,7 +6042,7 @@ \fi \fi \global\let\and\@typeset@author@line}% - \global\setbox\mktitle@bx=\vbox{\noindent\box\mktitle@bx\par\medskip + \global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par\medskip \noindent\addresses\@typeset@author@line \par\medskip}% } @@ -6050,6 +6107,7 @@ % \changes{v1.36}{2017/05/12}{Added authorsperrow overrride} % \changes{v1.73}{2020/09/07}{Check the presence of required elements % for affiliations} +% \changes{v1.78}{2021/05/16}{Unboxing \cs{mktitle@bx}} % The |sigconf| version. Here we use a centered design with each % author in a separate box. % \begin{macrocode} @@ -6116,7 +6174,7 @@ % \begin{macrocode} \hsize=\textwidth \global\setbox\mktitle@bx=\vbox{\noindent - \box\mktitle@bx\par\medskip\leavevmode + \unvbox\mktitle@bx\par\medskip\leavevmode \lineskip=1pc\relax\centering\hspace*{-1em}% \addresses\let\and\@typeset@author@bx\and\par\bigskip}} % \end{macrocode} @@ -6261,12 +6319,13 @@ % \begin{macro}{\@mkteasers} % Typesetting the teasers % \changes{v1.56}{2018/11/1}{Added check for description} +% \changes{v1.78}{2021/05/16}{Unboxing \cs{mktitle@bx}} % \begin{macrocode} \def\@mkteasers{% \ifx\@teaserfigures\@empty\else \def\@teaser##1{\par\bigskip\bgroup \captionsetup{type=figure}##1\egroup\par} - \global\setbox\mktitle@bx=\vbox{\noindent\box\mktitle@bx\par + \global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par \noindent\@Description@presentfalse \@teaserfigures\par\if@Description@present\else \global\@undescribed@imagestrue -- cgit v1.2.3