From 54424c2bc9fd7804517082053c023fb6b0cb70fa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 28 Aug 2019 23:40:39 +0000 Subject: acmart (29aug19) git-svn-id: svn://tug.org/texlive/trunk@51972 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/acmart/acmart.dtx | 32 +++++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/source/latex/acmart/acmart.dtx') diff --git a/Master/texmf-dist/source/latex/acmart/acmart.dtx b/Master/texmf-dist/source/latex/acmart/acmart.dtx index 0918598581e..918947f21d3 100644 --- a/Master/texmf-dist/source/latex/acmart/acmart.dtx +++ b/Master/texmf-dist/source/latex/acmart/acmart.dtx @@ -100,6 +100,7 @@ % I am grateful to % Michael D.~Adams, % Leif Andersen, +% Lawrence Christopher Angrave, % Dirk Beyer, % Joachim Breitner, % Benjamin Byholm, @@ -131,6 +132,7 @@ % David Shamma, % Gabriel Scherer, % Stephen Spencer, +% Shin Hwei Tan, % Daniel Thomas, % Zack Weinberg, % John Wickerson @@ -1025,6 +1027,7 @@ % \DescribeEnv{abstract}% % The environment |abstract| must \emph{precede} the \cs{maketitle} % command. Again, this is different from the standard \LaTeX. +% Putting |abstract| after \cs{maketitle} will trigger an error. % % % \DescribeEnv{teaserfigure}% @@ -1663,7 +1666,7 @@ % warning. % % You cannot change \cs{baselinestretch} in your document: this -% produces an erorr. +% produces an error. % % You should not abuse the command \cs{vspace}: this command may % disturb the typesetting of ACM papers. @@ -1825,7 +1828,7 @@ \ProvidesFile{acmart.dtx} % %\ProvidesClass{acmart} -[2019/08/05 v1.63a Typesetting articles for the Association for Computing Machinery] +[2019/08/24 v1.64 Typesetting articles for the Association for Computing Machinery] % \end{macrocode} % % \changes{v1.00}{2016/04/14}{First released version} @@ -1918,6 +1921,8 @@ % \changes{1.63}{2019/08/04}{New journal: TQUANT} % \changes{1.63}{2019/08/04}{New journal: FACMP} % \changes{1.63a}{2019/08/05}{Move: TQUANT to TQC} +% \changes{1.64}{2019/08/17}{Putting abstract after \cs{maketitle} now +% causes an error} % % And the driver code: % \begin{macrocode} @@ -3464,6 +3469,16 @@ %\subsection{Top-matter data} %\label{sec:top_matter_data} % +% \begin{macro}{\if@ACM@maketitle@typeset} +% \changes{v1.64}{2019/08/17}{Introduced macro} +% The switch to check whether \cs{maketitle} is already typeset. It +% is initally false, and setting top matter when it is true is wrong. +% \begin{macrocode} +\newif\if@ACM@maketitle@typeset +\@ACM@maketitle@typesetfalse +% \end{macrocode} +% +% \end{macro} % % \changes{v1.24}{2016/11/16}{Add IMWUT journal option} % \changes{v1.25}{2016/12/03}{Updated PACMPL} @@ -4383,7 +4398,10 @@ % \begin{macro}{\@saveabstract} % And saving the abstract % \begin{macrocode} -\long\def\@saveabstract#1{\long\gdef\@abstract{#1}} +\long\def\@saveabstract#1{\if@ACM@maketitle@typeset + \ClassError{\@classname}{Abstract must be defined before maketitle + command. Please move it!}\fi + \long\gdef\@abstract{#1}} \@saveabstract{} % \end{macrocode} % @@ -4972,6 +4990,8 @@ % \changes{v1.55}{2018/10/14}{Fixes topnum} % \changes{v1.58}{2019/01/23}{Original \cs{vspace} inside % \cs{maketitle}} +% \changes{v1.64}{2019/08/17}{Added a switch setting to show that +% \cs{maketitle} is typeset} % The (in)famous \cs{maketitle}. Note that in |sigchi-a| mode, authors % are \emph{not} in the title box. % @@ -4981,6 +5001,7 @@ % way, this was the default behavior of the old ACM classes. % \begin{macrocode} \def\maketitle{% + \@ACM@maketitle@typesettrue \if@ACM@anonymous % Anonymize omission of \author-s \ifnum\num@authorgroups=0\author{}\fi @@ -6019,6 +6040,8 @@ % cmyk colors in boxes do not work} % \changes{v1.46}{2017/08/28}{Rearranged the code to get rid of % spurious underfull messages (Benjamin Byholm)} +% \changes{v1.64}{2019/08/24}{Bug fix: made the spacing on the left +% and the right size equal} % This is the box displayed in review mode % \begin{macrocode} \if@ACM@review @@ -6027,7 +6050,8 @@ \newcount\ACM@linecount \ACM@linecount\@ne\relax \def\ACM@mk@linecount{% - \savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{% + \savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{\normalfont + \normalsize \setlength{\ACM@linecount@bxht}{0pt}% \loop{\color{red}\scriptsize\the\ACM@linecount}\\ \global\advance\ACM@linecount by \@ne -- cgit v1.2.3