summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/acmart
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-30 21:25:18 +0000
committerKarl Berry <karl@freefriends.org>2019-03-30 21:25:18 +0000
commit287c4ade701dca1447f7de6ecf5b7ef216b7a794 (patch)
tree7739b6510681c9b9b7f08bf6b36dbd7f710763b8 /Master/texmf-dist/source/latex/acmart
parentdd6bb2ce98e55e005893bdd5c6736725697db748 (diff)
acmart (30mar19)
git-svn-id: svn://tug.org/texlive/trunk@50662 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/acmart')
-rw-r--r--Master/texmf-dist/source/latex/acmart/Makefile132
-rw-r--r--Master/texmf-dist/source/latex/acmart/acmart.dtx82
2 files changed, 196 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/acmart/Makefile b/Master/texmf-dist/source/latex/acmart/Makefile
new file mode 100644
index 00000000000..e5ec7272df7
--- /dev/null
+++ b/Master/texmf-dist/source/latex/acmart/Makefile
@@ -0,0 +1,132 @@
+#
+# Makefile for acmart package
+#
+# This file is in public domain
+#
+# $Id: Makefile,v 1.10 2016/04/14 21:55:57 boris Exp $
+#
+
+PACKAGE=acmart
+
+SAMPLES = \
+ samples/sample-manuscript.tex \
+ samples/sample-acmsmall.tex \
+ samples/sample-acmlarge.tex \
+ samples/sample-acmtog.tex \
+ samples/sample-sigconf.tex \
+ samples/sample-authordraft.tex \
+ samples/sample-xelatex.tex \
+ samples/sample-sigplan.tex \
+ samples/sample-sigchi.tex \
+ samples/sample-sigchi-a.tex
+
+
+PDF = $(PACKAGE).pdf ${SAMPLES:%.tex=%.pdf} acmguide.pdf
+
+all: ${PDF}
+
+
+%.pdf: %.dtx $(PACKAGE).cls
+ pdflatex $<
+ - bibtex $*
+ pdflatex $<
+ - makeindex -s gind.ist -o $*.ind $*.idx
+ - makeindex -s gglo.ist -o $*.gls $*.glo
+ pdflatex $<
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
+ do pdflatex $<; done
+
+
+acmguide.pdf: $(PACKAGE).dtx $(PACKAGE).cls
+ pdflatex -jobname acmguide $(PACKAGE).dtx
+ - bibtex acmguide
+ pdflatex -jobname acmguide $(PACKAGE).dtx
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' acmguide.log) \
+ do pdflatex -jobname acmguide $(PACKAGE).dtx; done
+
+%.cls: %.ins %.dtx
+ pdflatex $<
+
+samples/%: %
+ cp $^ samples
+
+samples/sample-acmsmall.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[acmsmall]{acmart}/' $< > $@
+
+samples/sample-acmlarge.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[acmlarge,screen]{acmart}/' $< > $@
+
+samples/sample-acmtog.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[acmtog]{acmart}/' $< | sed 's/^%\\citestyle{acmauthoryear}/\\citestyle{acmauthoryear}/' > $@
+
+samples/sample-sigconf.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[sigconf]{acmart}/' $< | sed 's/^%%//' > $@
+
+samples/sample-authordraft.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[sigconf,authordraft]{acmart}/' $< | sed 's/^%%//' > $@
+
+samples/sample-xelatex.tex: samples/sample-sigconf.tex
+ cp $< $@
+
+samples/sample-sigplan.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[sigplan,screen]{acmart}/' $< | sed 's/^%%//' > $@
+
+samples/sample-sigchi.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[sigchi]{acmart}/' $< | sed 's/^%%//' > $@
+
+samples/sample-sigchi-a.tex: samples/sample-manuscript.tex
+ sed 's/documentclass\[manuscript,screen\]{acmart}/documentclass[sigchi-a]{acmart}/' $< | \
+ sed 's/begin{figure}\[h\]/begin{marginfigure}/' | \
+ sed 's/end{figure}/end{marginfigure}/' | \
+ sed 's/begin{table}/begin{margintable}/' | \
+ sed 's/end{table}/end{margintable}/' > $@
+
+
+samples/$(PACKAGE).cls: $(PACKAGE).cls
+samples/ACM-Reference-Format.bst: ACM-Reference-Format.bst
+
+samples/%.pdf: samples/%.tex samples/$(PACKAGE).cls samples/ACM-Reference-Format.bst
+ cd $(dir $@) && pdflatex $(notdir $<)
+ - cd $(dir $@) && bibtex $(notdir $(basename $<))
+ cd $(dir $@) && pdflatex $(notdir $<)
+ cd $(dir $@) && pdflatex $(notdir $<)
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' $(basename $<).log) \
+ do cd $(dir $@) && pdflatex $(notdir $<); done
+
+samples/sample-xelatex.pdf: samples/sample-xelatex.tex samples/$(PACKAGE).cls samples/ACM-Reference-Format.bst
+ cd $(dir $@) && xelatex $(notdir $<)
+ - cd $(dir $@) && bibtex $(notdir $(basename $<))
+ cd $(dir $@) && xelatex $(notdir $<)
+ cd $(dir $@) && xelatex $(notdir $<)
+ while ( grep -q '^LaTeX Warning: Label(s) may have changed' $(basename $<).log) \
+ do cd $(dir $@) && xelatex $(notdir $<); done
+
+
+
+.PRECIOUS: $(PACKAGE).cfg $(PACKAGE).cls
+
+
+clean:
+ $(RM) $(PACKAGE).cls *.log *.aux \
+ *.cfg *.glo *.idx *.toc \
+ *.ilg *.ind *.out *.lof \
+ *.lot *.bbl *.blg *.gls *.cut *.hd \
+ *.dvi *.ps *.thm *.tgz *.zip *.rpi \
+ samples/$(PACKAGE).cls samples/ACM-Reference-Format.bst \
+ samples/*.log samples/*.aux samples/*.out \
+ samples/*.bbl samples/*.blg samples/*.cut
+
+distclean: clean
+
+
+#
+# Archive for the distribution. Includes typeset documentation
+#
+archive: all clean
+ COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '*~' --exclude '*.tgz' --exclude '*.zip' --exclude CVS --exclude '.git*' $(PACKAGE); mv ../$(PACKAGE).tgz .
+
+zip: all clean
+ zip -r $(PACKAGE).zip * -x '*~' -x '*.tgz' -x '*.zip' -x CVS -x 'CVS/*'
+
+documents.zip: all
+ zip $@ acmart.pdf acmguide.pdf samples/sample-*.pdf *.cls *.bst
diff --git a/Master/texmf-dist/source/latex/acmart/acmart.dtx b/Master/texmf-dist/source/latex/acmart/acmart.dtx
index 9cb8d0c4995..89afdd9a3fe 100644
--- a/Master/texmf-dist/source/latex/acmart/acmart.dtx
+++ b/Master/texmf-dist/source/latex/acmart/acmart.dtx
@@ -1,6 +1,6 @@
% \iffalse
%
-% Copyright 2016-2018, Association for Computing Machinery
+% Copyright 2016-2019, Association for Computing Machinery
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3 of this license or (at your option) any
@@ -58,7 +58,7 @@
% \ifx\currentjob\guide\OnlyDescription\fi
% \GetFileInfo{acmart.dtx}
% \title{\LaTeX{} Class for the \emph{Association for Computing
-% Machinery}\thanks{\copyright 2016--2018, Association for Computing Machinery}}
+% Machinery}\thanks{\copyright 2016--2019, Association for Computing Machinery}}
% \author{Boris Veytsman\thanks{%
% \href{mailto:borisv@lk.net}{\texttt{borisv@lk.net}},
% \href{mailto:boris@varphi.com}{\texttt{boris@varphi.com}}}}
@@ -108,6 +108,7 @@
% Matthew Fluet,
% Paolo G.~Giarrusso,
% Ben Greenman,
+% Enrico Gregorio,
% Jamie Davis,
% Luis Leiva,
% Ben Liblit,
@@ -284,9 +285,9 @@
% \midrule
% manuscript & A manuscript. This is the default. \\
% acmsmall & Small single-column format. Used for CIE, CSUR, DTRAP,
-% JACM, JDIQ, JEA, JERIC,
+% HEALTH, JACM, JDIQ, JEA, JERIC,
% JETC, PACMCGIT, PACMHCI, PACMPL, TAAS, TACCESS, TACO,
-% TALG, TALLIP (formerly TALIP), TCPS, TDSCI,
+% TALG, TALLIP (formerly TALIP), TCPS, TDS,
% TEAC, TECS, THRI, TIIS, TIOT, TISSEC, TIST, TKDD, TMIS,
% TOCE, TOCHI, TOCL,
% TOCS, TOCT, TODAES, TODS, TOIS, TOIT, TOMACS, TOMM (formerly
@@ -1692,6 +1693,7 @@
% CIE & ACM Computers in Entertainment \\
% CSUR & ACM Computing Surveys\\
% DTRAP & Digital Threats: Research and Practice\\
+% HEALTH & ACM Transactions on Computing for Healthcare\\
% IMWUT & PACM on Interactive, Mobile, Wearable and Ubiquitous
% Technologies\\
% JACM & Journal of the ACM \\
@@ -1713,7 +1715,7 @@
% Information Processing\\
% TAP & ACM Transactions on Applied Perception \\
% TCPS & ACM Transactions on Cyber-Physical Systems\\
-% TDSCI & ACM Transactions on Data Science\\
+% TDS & ACM Transactions on Data Science\\
% TEAC & ACM Transactions on Economics and Computation\\
% TECS & ACM Transactions on Embedded Computing Systems \\
% THRI & ACM Transactions on Human-Robot Interaction\\
@@ -1776,7 +1778,7 @@
\ProvidesFile{acmart.dtx}
%</gobble>
%<class>\ProvidesClass{acmart}
-[2018/12/16 v1.57 Typesetting articles for the Association for
+[2019/03/29 v1.59 Typesetting articles for the Association for
Computing Machinery]
% \end{macrocode}
%
@@ -1862,6 +1864,9 @@ Computing Machinery]
% (Ross Moore)}
% \changes{1.56}{2018/11/11}{Documented \cs{Description}}
% \changes{1.57}{2018/12/16}{Booktabs package is now the default}
+% \changes{1.58}{2019/02/09}{Changes in samples (Enrico Gregorio)}
+% \changes{1.58}{2019/03/29}{New journal: HEALTH. TDS is renamed to
+% TDSCI}
%
% And the driver code:
% \begin{macrocode}
@@ -2627,11 +2632,13 @@ Computing Machinery]
% \changes{v1.46}{2017/08/25}{Delayed hypersetup since journal options
% may change screen mode}
% \changes{v1.55}{2018/10/20}{Now we use purple color for links}
+% \changes{v1.58}{2019/26/01}{Suppressed \cs{addtocounter} in pdf subject}
% \begin{macrocode}
\let\@footnotemark@nolink\@footnotemark
\let\@footnotetext@nolink\@footnotetext
\RequirePackage[bookmarksnumbered,unicode]{hyperref}
\pdfstringdefDisableCommands{%
+ \def\addtocounter#1#2{}%
\def\unskip{}%
\def\textbullet{- }%
\def\textrightarrow{ -> }%
@@ -3066,7 +3073,7 @@ Computing Machinery]
% \changes{v1.56}{2018/11/11}{Added macro}
% The Description macro right now just sets switches
% \begin{macrocode}
-\newcommand\Description[2][]{\global\@Description@presenttrue}
+\newcommand\Description[2][]{\global\@Description@presenttrue\ignorespaces}
% \end{macrocode}
% \end{macro}
%
@@ -3076,16 +3083,24 @@ Computing Machinery]
\ClassWarningNoLine{\@classname}{Some images may lack descriptions}\fi}
% \end{macrocode}
%
-% Hooks for figures
+% Hooks for figures and tables
% \begin{macrocode}
-\AtBeginEnvironment{figure}{\@Description@presentfalse}
-\AtBeginEnvironment{figure*}{\@Description@presentfalse}
+\AtBeginEnvironment{figure}{\@Description@presentfalse
+ \let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig}
+\AtBeginEnvironment{figure*}{\@Description@presentfalse
+ \let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig}
\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}
+\AtBeginEnvironment{table}{\let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig}
+\AtBeginEnvironment{table*}{\let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig}
% \end{macrocode}
%
%
@@ -3141,9 +3156,11 @@ Computing Machinery]
% \end{macro}
%
% \begin{macro}{\@sidebar}
+% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning}
% The processing of the saved text
% \begin{macrocode}
-\long\def\@sidebar#1{\bgroup\captionsetup{type=sidebar}%
+\long\def\@sidebar#1{\bgroup\let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig\captionsetup{type=sidebar}%
\marginpar{\small#1}\egroup}
% \end{macrocode}
%
@@ -3160,9 +3177,12 @@ Computing Machinery]
% \begin{macro}{\@marginfigure}
% \changes{v1.12}{2016/05/30}{Now centering by default}
% \changes{v1.56}{2018/11/11}{Added checking for description}
+% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning}
% The processing of the saved text
% \begin{macrocode}
\long\def\@marginfigure#1{\bgroup
+ \let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig
\captionsetup{type=figure}%
\marginpar{\@Description@presentfalse\centering
\small#1\if@Description@present\else
@@ -3184,9 +3204,11 @@ Computing Machinery]
%
% \begin{macro}{\@margintable}
% \changes{v1.12}{2016/05/30}{Now centering by default}
+% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning}
% The processing of the saved text
% \begin{macrocode}
-\long\def\@margintable#1{\bgroup\captionsetup{type=table}%
+\long\def\@margintable#1{\bgroup\let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig\captionsetup{type=table}%
\marginpar{\centering\small#1}\egroup}
% \end{macrocode}
%
@@ -3205,12 +3227,14 @@ Computing Machinery]
% \end{macro}
%
% \begin{macro}{\@dblfloat}
+% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning}
% We redefine the double-float command. First, we make the size
% bigger. Second, our default position is going to be |tp| (to give
% marginalia a chance)
% \begin{macrocode}
\if@ACM@sigchiamode
-\def\@dblfloat{\bgroup\columnwidth=\fulltextwidth
+\def\@dblfloat{\bgroup\let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig\columnwidth=\fulltextwidth
\let\@endfloatbox\@endwidefloatbox
\def\@fpsadddefault{\def\@fps{tp}}%
\@float}
@@ -3362,6 +3386,7 @@ Computing Machinery]
% \changes{v1.36}{2017/05/13}{Added PACMHCI journal options}
% \changes{v1.46}{2017/08/25}{PACM now set screen to true}
% \changes{v1.53}{2018/04/14}{Added PACMCGIT, TIOT, TDSCI}
+% \changes{v1.58}{2019/03/29}{Added HEALTH. TDSCI is renamed to TDS}
%
% We use the |xkeyval| interface to define journal titles and the relevant
% information
@@ -3370,6 +3395,7 @@ Computing Machinery]
CIE,%
CSUR,%
DTRAP,%
+ HEALTH,%
IMWUT,%
JACM,%
JDIQ,%
@@ -3388,7 +3414,7 @@ Computing Machinery]
TALLIP,%
TAP,%
TCPS,%
- TDSCI,%
+ TDS,%
TEAC,%
TECS,%
THRI,%
@@ -3437,6 +3463,10 @@ Computing Machinery]
\def\@journalName{Digital Threats: Research and Practice}%
\def\@journalNameShort{Digit. Threat. Res. Pract.}%
\def\@permissionCodeOne{2576-5337}%
+\or % HEALTH
+ \def\@journalName{ACM Transactions on Computing for Healthcare}%
+ \def\@journalNameShort{ACM Trans. Comput. Healthcare}%
+ \def\@permissionCodeOne{2637-8051}%
\or % IMWUT
\def\@journalName{Proceedings of the ACM on Interactive, Mobile,
Wearable and Ubiquitous Technologies}%
@@ -3514,7 +3544,7 @@ Computing Machinery]
\def\@journalName{ACM Transactions on Applied Perception}%
\or % TCPS
\def\@journalName{ACM Transactions on Cyber-Physical Systems}%
-\or % TDSCI
+\or % TDS
\def\@journalName{ACM Transactions on Data Science}%
\def\@journalNameShort{ACM Trans. Data Sci.}%
\def\@permissionCodeOne{2577-3224}%
@@ -4833,6 +4863,8 @@ Computing Machinery]
% \changes{v1.48}{2017/11/18}{Added language and doctitle attributes
% to PDF (Andreas Reichinger)}
% \changes{v1.55}{2018/10/14}{Fixes topnum}
+% \changes{v1.58}{2019/01/23}{Original \cs{vspace} inside
+% \cs{maketitle}}
% The (in)famous \cs{maketitle}. Note that in |sigchi-a| mode, authors
% are \emph{not} in the title box.
%
@@ -4847,6 +4879,8 @@ Computing Machinery]
\ifnum\num@authorgroups=0\author{}\fi
\fi
\begingroup
+ \let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig
\let\@footnotemark\@footnotemark@nolink
\let\@footnotetext\@footnotetext@nolink
\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
@@ -4931,7 +4965,7 @@ Computing Machinery]
\setcounter{footnote}{0}%
\@mkabstract
\if@ACM@printccs
- \ifx\@concepts\@empty\else\bgroup
+ \ifx\@concepts\@empty\else\bgroup
{\@specialsection{CCS Concepts}%
\@concepts\par}\egroup
\fi
@@ -4994,7 +5028,7 @@ Computing Machinery]
\section*{#1}%
\or % sigchi-a
\section*{#1}%
- \fi}
+ \fi}
% \end{macrocode}
%
% \end{macro}
@@ -5768,9 +5802,12 @@ Computing Machinery]
% \changes{v1.46}{2017/08/25}{Added subtitle}
% \changes{v1.54}{2018/06/10}{Bug corrected (Ross Moore)}
% \changes{v1.55}{2018/07/25}{Bug corrected}
+% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning}
% Print the |bibcitation| format
% \begin{macrocode}
\def\@mkbibcitation{\bgroup
+ \let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig
\def\@pages@word{\ifnum\getrefnumber{TotPages}=1\relax page\else pages\fi}%
\def\footnotemark{}%
\def\\{\unskip{} \ignorespaces}%
@@ -5809,9 +5846,14 @@ Computing Machinery]
%
% \begin{macro}{\@printendtopmatter}
% \changes{v1.46}{2017/08/28}{Made it \cs{par}\cs{bigskip} uniformly}
+% \changes{v1.58}{2019/01/23}{Deleted spurious \cs{vspace} warning}
% End the top matter
% \begin{macrocode}
-\def\@printendtopmatter{\par\bigskip}
+\def\@printendtopmatter{\bgroup
+ \let\@vspace\@vspace@orig
+ \let\@vspacer\@vspacer@orig
+ \par\bigskip
+ \egroup}
% \end{macrocode}
%
% \end{macro}
@@ -6787,8 +6829,12 @@ Computing Machinery]
%
% \begin{macro}{\vspace}
% \changes{v1.57}{2018/12/16}{Added warning}
+% \changes{v1.58}{2019/01/23}{Preserved old versions as
+% \cs{@vspace@orig} and \cs{@vspace@orig}}
% We do not disable \cs{vspace}, but add warning to it
% \begin{macrocode}
+\let\@vspace@orig=\@vspace
+\let\@vspacer@orig=\@vspacer
\apptocmd{\@vspace}{\ClassWarning{\@classname}{\string\vspace\space should
only be used to provide space above/below surrounding
objects}}{}{}