diff options
author | Karl Berry <karl@freefriends.org> | 2017-09-01 01:31:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-09-01 01:31:58 +0000 |
commit | d23537f56720850db3dedce1b78bd65bbd6d0b0a (patch) | |
tree | 42f1f1adc8f39849f14edef450e5a2cce60f6497 /Master/texmf-dist | |
parent | 6e36d6bd53aa0e277252686a2f6eff44c579b7fc (diff) |
acmart (31aug17)
git-svn-id: svn://tug.org/texlive/trunk@45184 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
21 files changed, 503 insertions, 360 deletions
diff --git a/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst b/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst index ea3f35af251..997485ade21 100644 --- a/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst +++ b/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst @@ -3086,6 +3086,22 @@ ITERATE { presort } SORT % by label, year, author/editor, title +% From plainnat.bst +STRINGS { longest.label } + +INTEGERS { longest.label.width number.label } + +FUNCTION {initialize.longest.label} +{ "" 'longest.label := + #0 int.to.chr$ 'last.label := + "" 'next.extra := + #0 'longest.label.width := + #0 'last.extra.num := + #0 'number.label := +} + + + FUNCTION { initialize.extra.label.stuff } { #0 int.to.chr$ 'last.label := "" 'next.extra := @@ -3099,8 +3115,6 @@ FUNCTION { forward.pass } % if two entries are the same (see presort) last.label - % OLD:calc.label year field.or.null purify$ #-1 #4 substring$ * % add year - % NEW: calc.basic.label year field.or.null purify$ #-1 #4 substring$ * % add year #1 entry.max$ substring$ = % are they equal? { last.extra.num #1 + 'last.extra.num := @@ -3108,12 +3122,11 @@ FUNCTION { forward.pass } } { "a" chr.to.int$ 'last.extra.num := "" 'extra.label := - % OLD: calc.label year field.or.null purify$ #-1 #4 substring$ * % add year - % NEW: calc.basic.label year field.or.null purify$ #-1 #4 substring$ * % add year #1 entry.max$ substring$ 'last.label := % assign to last.label } if$ + number.label #1 + 'number.label := } FUNCTION { reverse.pass } @@ -3127,6 +3140,8 @@ FUNCTION { reverse.pass } } EXECUTE {initialize.extra.label.stuff} +EXECUTE {initialize.longest.label} + ITERATE {forward.pass} @@ -3167,7 +3182,7 @@ FUNCTION { begin.bib } 'skip$ { preamble$ writeln } if$ - "\begin{thebibliography}{00}" writeln + "\begin{thebibliography}{" number.label int.to.str$ * "}" * writeln "" writeln "%%% ====================================================================" writeln "%%% NOTE TO THE USER: you can override these defaults by providing" writeln diff --git a/Master/texmf-dist/doc/latex/acmart/README b/Master/texmf-dist/doc/latex/acmart/README index 4ebcfd0efae..f14bb96f406 100644 --- a/Master/texmf-dist/doc/latex/acmart/README +++ b/Master/texmf-dist/doc/latex/acmart/README @@ -134,10 +134,22 @@ Version 1.43 Bug fixes Version 1.44 Bug fixes. Empty DOI and ISBN suppress printing DOI or ISBN lines - Separated theorem code into acmthm.sty, loaded by defualt. + Separated theorem code into acmthm.sty, loaded by default. Article number can be set for proceedings. New commands: \acmBooktile, \editor. Reference citation format updated. Version 1.45 Workaround for a Libertine bug. Thanks to LianTze Lim - from Overleaf
\ No newline at end of file + from Overleaf + +Version 1.46 Bug fixes for bibliography: label width is now calculated + correctly. + All PACM now use screen option. This requires etoolbox. + Added subtitle to ACM reference format. + Now acmart is compatible with fontspec. + \thanks is now obsolete. The addresses are automatically + added to the journal version; this can be overriden with + \authorsaddresses command. + Deleted the rule at the end of frontmatter for all formats. + Deleted new line before doi in the reference format. + Reintegrated theorem code into acmart.dtx (Matthew Fluet) diff --git a/Master/texmf-dist/doc/latex/acmart/acmart.pdf b/Master/texmf-dist/doc/latex/acmart/acmart.pdf Binary files differindex 7f816f83d95..ceb7be7cfeb 100644 --- a/Master/texmf-dist/doc/latex/acmart/acmart.pdf +++ b/Master/texmf-dist/doc/latex/acmart/acmart.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/acmguide.pdf b/Master/texmf-dist/doc/latex/acmart/acmguide.pdf Binary files differindex e53a69d22fc..96ab20b7568 100644 --- a/Master/texmf-dist/doc/latex/acmart/acmguide.pdf +++ b/Master/texmf-dist/doc/latex/acmart/acmguide.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf b/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf Binary files differindex 5e52c112bf4..0ee10592297 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.tex b/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.tex index 167f79189c0..44d57c689f7 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.tex +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmlarge.tex @@ -47,8 +47,10 @@ % Title portion \title{A Multifrequency MAC Specially Designed for Wireless Sensor Network Applications} +\titlenote{We can add a note to the title} \author{Gang Zhou} +\authornote{This is the corresponding author} \orcid{1234-5678-9012-3456} \affiliation{% \institution{College of William and Mary} @@ -57,12 +59,14 @@ \state{VA} \postcode{23185} \country{USA}} +\email{gang_zhou@wm.edu} \author{Valerie B\'eranger} \affiliation{% \institution{Inria Paris-Rocquencourt} \city{Rocquencourt} \country{France} } +\email{beranger@inria.fr} \author{Aparna Patel} \affiliation{% \institution{Rajiv Gandhi University} @@ -70,6 +74,7 @@ \city{Doimukh} \state{Arunachal Pradesh} \country{India}} +\email{aprna_patel@rguhs.ac.in} \author{Huifen Chan} \affiliation{% \institution{Tsinghua University} @@ -78,11 +83,13 @@ \state{Beijing Shi} \country{China} } +\email{chan0345@tsinghua.edu.cn} \author{Ting Yan} \affiliation{% \institution{Eaton Innovation Center} \city{Prague} \country{Czech Republic}} +\email{yanting02@gmail.com} \author{Tian He} \affiliation{% \institution{University of Virginia} @@ -95,6 +102,7 @@ \affiliation{% \institution{University of Minnesota} \country{USA}} +\email{tinghe@uva.edu} \author{Chengdu Huang} \author{John A. Stankovic} \author{Tarek F. Abdelzaher} @@ -108,6 +116,7 @@ } + \begin{abstract} Multifrequency media access control has been well understood in general wireless ad hoc networks, while in wireless sensor networks, @@ -173,21 +182,19 @@ synchronization errors. \keywords{Wireless sensor networks, media access control, multi-channel, radio interference, time synchronization} - -\thanks{This work is supported by the National Science Foundation, - under grant CNS-0435060, grant CCR-0325197 and grant EN-CS-0329609. - - Authors' addresses: G.~Zhou, Computer Science Department, College of - William and Mary, 104 Jameson Rd, Williamsburg, PA 23185, US; - V.~B\'eranger, Inria Paris-Rocquencourt, Rocquencourt, France; - A.~Patel, Rajiv Gandhi University, Rono-Hills, Doimukh, Arunachal - Pradesh, India; H.~Chan, Tsinghua University, 30 Shuangqing Rd, - Haidian Qu, Beijing Shi, China; T.~Yan, Eaton Innovation Center, - Prague, Czech Republic; T.~He, C.~Huang, J.~A.~Stankovic University - of Virginia, School of Engineering Charlottesville, VA 22903, USA; - T. F. Abdelzaher, (Current address) NASA Ames Research Center, - Moffett Field, California 94035.} - +% DO NOT use this command unless you want to change +% the default behavior +% \authorsaddresses{Authors' addresses: G.~Zhou, Computer Science +% Department, College of William and Mary, 104 Jameson Rd, +% Williamsburg, PA 23185, US, \path{gzhou@wm.edu}; V.~B\'eranger, +% Inria Paris-Rocquencourt, Rocquencourt, France; A.~Patel, Rajiv +% Gandhi University, Rono-Hills, Doimukh, Arunachal Pradesh, India; +% H.~Chan, Tsinghua University, 30 Shuangqing Rd, Haidian Qu, Beijing +% Shi, China; T.~Yan, Eaton Innovation Center, Prague, Czech Republic; +% T.~He, C.~Huang, J.~A.~Stankovic University of Virginia, School of +% Engineering Charlottesville, VA 22903, USA; T. F. Abdelzaher, +% (Current address) NASA Ames Research Center, Moffett Field, +% California 94035.} \maketitle diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf b/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf Binary files differindex 110c640ca6f..4ad40718094 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.tex b/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.tex index a208003b14c..b40e809875a 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.tex +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmsmall.tex @@ -54,12 +54,14 @@ \state{VA} \postcode{23185} \country{USA}} +\email{gang_zhou@wm.edu} \author{Valerie B\'eranger} \affiliation{% \institution{Inria Paris-Rocquencourt} \city{Rocquencourt} \country{France} } +\email{beranger@inria.fr} \author{Aparna Patel} \affiliation{% \institution{Rajiv Gandhi University} @@ -67,6 +69,7 @@ \city{Doimukh} \state{Arunachal Pradesh} \country{India}} +\email{aprna_patel@rguhs.ac.in} \author{Huifen Chan} \affiliation{% \institution{Tsinghua University} @@ -75,11 +78,13 @@ \state{Beijing Shi} \country{China} } +\email{chan0345@tsinghua.edu.cn} \author{Ting Yan} \affiliation{% \institution{Eaton Innovation Center} \city{Prague} \country{Czech Republic}} +\email{yanting02@gmail.com} \author{Tian He} \affiliation{% \institution{University of Virginia} @@ -92,6 +97,7 @@ \affiliation{% \institution{University of Minnesota} \country{USA}} +\email{tinghe@uva.edu} \author{Chengdu Huang} \author{John A. Stankovic} \author{Tarek F. Abdelzaher} @@ -167,19 +173,6 @@ parallel transmissions among neighboring nodes. multi-channel, radio interference, time synchronization} -\thanks{This work is supported by the National Science Foundation, - under grant CNS-0435060, grant CCR-0325197 and grant EN-CS-0329609. - - Authors' addresses: G.~Zhou, Computer Science Department, College of - William and Mary, 104 Jameson Rd, Williamsburg, PA 23185, US; - V.~B\'eranger, Inria Paris-Rocquencourt, Rocquencourt, France; - A.~Patel, Rajiv Gandhi University, Rono-Hills, Doimukh, Arunachal - Pradesh, India; H.~Chan, Tsinghua University, 30 Shuangqing Rd, - Haidian Qu, Beijing Shi, China; T.~Yan, Eaton Innovation Center, - Prague, Czech Republic; T.~He, C.~Huang, J.~A.~Stankovic University - of Virginia, School of Engineering Charlottesville, VA 22903, USA; - T. F. Abdelzaher, (Current address) NASA Ames Research Center, - Moffett Field, California 94035.} \maketitle diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf b/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf Binary files differindex 56658a9b68d..f29f3ad6884 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmtog.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-acmtog.tex b/Master/texmf-dist/doc/latex/acmart/sample-acmtog.tex index 48ab486bf9f..77f48ade449 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-acmtog.tex +++ b/Master/texmf-dist/doc/latex/acmart/sample-acmtog.tex @@ -57,12 +57,14 @@ \state{VA} \postcode{23185} \country{USA}} +\email{gang_zhou@wm.edu} \author{Valerie B\'eranger} \affiliation{% \institution{Inria Paris-Rocquencourt} \city{Rocquencourt} \country{France} } +\email{beranger@inria.fr} \author{Aparna Patel} \affiliation{% \institution{Rajiv Gandhi University} @@ -70,6 +72,7 @@ \city{Doimukh} \state{Arunachal Pradesh} \country{India}} +\email{aprna_patel@rguhs.ac.in} \author{Huifen Chan} \affiliation{% \institution{Tsinghua University} @@ -78,11 +81,13 @@ \state{Beijing Shi} \country{China} } +\email{chan0345@tsinghua.edu.cn} \author{Ting Yan} \affiliation{% \institution{Eaton Innovation Center} \city{Prague} \country{Czech Republic}} +\email{yanting02@gmail.com} \author{Tian He} \affiliation{% \institution{University of Virginia} @@ -95,6 +100,7 @@ \affiliation{% \institution{University of Minnesota} \country{USA}} +\email{tinghe@uva.edu} \author{Chengdu Huang} \author{John A. Stankovic} \author{Tarek F. Abdelzaher} @@ -175,19 +181,6 @@ synchronization errors. multi-channel, radio interference, time synchronization} -\thanks{This work is supported by the National Science Foundation, - under grant CNS-0435060, grant CCR-0325197 and grant EN-CS-0329609. - - Authors' addresses: G.~Zhou, Computer Science Department, College of - William and Mary, 104 Jameson Rd, Williamsburg, PA 23185, US; - V.~B\'eranger, Inria Paris-Rocquencourt, Rocquencourt, France; - A.~Patel, Rajiv Gandhi University, Rono-Hills, Doimukh, Arunachal - Pradesh, India; H.~Chan, Tsinghua University, 30 Shuangqing Rd, - Haidian Qu, Beijing Shi, China; T.~Yan, Eaton Innovation Center, - Prague, Czech Republic; T.~He, C.~Huang, J.~A.~Stankovic University - of Virginia, School of Engineering Charlottesville, VA 22903, USA; - T. F. Abdelzaher, (Current address) NASA Ames Research Center, - Moffett Field, California 94035.} \maketitle diff --git a/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf b/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf Binary files differindex deae14a5aec..d4247fa9aee 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-manuscript.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-manuscript.tex b/Master/texmf-dist/doc/latex/acmart/sample-manuscript.tex index ae0d652e477..0fc27be59e9 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-manuscript.tex +++ b/Master/texmf-dist/doc/latex/acmart/sample-manuscript.tex @@ -48,12 +48,14 @@ \state{VA} \postcode{23185} \country{USA}} +\email{gang_zhou@wm.edu} \author{Valerie B\'eranger} \affiliation{% \institution{Inria Paris-Rocquencourt} \city{Rocquencourt} \country{France} } +\email{beranger@inria.fr} \author{Aparna Patel} \affiliation{% \institution{Rajiv Gandhi University} @@ -61,6 +63,7 @@ \city{Doimukh} \state{Arunachal Pradesh} \country{India}} +\email{aprna_patel@rguhs.ac.in} \author{Huifen Chan} \affiliation{% \institution{Tsinghua University} @@ -69,11 +72,13 @@ \state{Beijing Shi} \country{China} } +\email{chan0345@tsinghua.edu.cn} \author{Ting Yan} \affiliation{% \institution{Eaton Innovation Center} \city{Prague} \country{Czech Republic}} +\email{yanting02@gmail.com} \author{Tian He} \affiliation{% \institution{University of Virginia} @@ -86,6 +91,7 @@ \affiliation{% \institution{University of Minnesota} \country{USA}} +\email{tinghe@uva.edu} \author{Chengdu Huang} \author{John A. Stankovic} \author{Tarek F. Abdelzaher} @@ -166,19 +172,6 @@ synchronization errors.\footnote{This is an abstract footnote} multi-channel, radio interference, time synchronization} -\thanks{This work is supported by the National Science Foundation, - under grant CNS-0435060, grant CCR-0325197 and grant EN-CS-0329609. - - Authors' addresses: G.~Zhou, Computer Science Department, College of - William and Mary, 104 Jameson Rd, Williamsburg, PA 23185, US; - V.~B\'eranger, Inria Paris-Rocquencourt, Rocquencourt, France; - A.~Patel, Rajiv Gandhi University, Rono-Hills, Doimukh, Arunachal - Pradesh, India; H.~Chan, Tsinghua University, 30 Shuangqing Rd, - Haidian Qu, Beijing Shi, China; T.~Yan, Eaton Innovation Center, - Prague, Czech Republic; T.~He, C.~Huang, J.~A.~Stankovic University - of Virginia, School of Engineering Charlottesville, VA 22903, USA; - T. F. Abdelzaher, (Current address) NASA Ames Research Center, - Moffett Field, California 94035.} \maketitle diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf Binary files differindex 8674c3b78a3..ee0dc468f05 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigchi-a.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf Binary files differindex cd11ebb5181..ad4b738e53c 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigchi.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf Binary files differindex 31d95a0ac67..61ff258daed 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigconf-authordraft.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf Binary files differindex 4842f3d54d0..e8ba19396d5 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigconf.pdf diff --git a/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf b/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf Binary files differindex 9a274ab7c85..187623a03b4 100644 --- a/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf +++ b/Master/texmf-dist/doc/latex/acmart/sample-sigplan.pdf diff --git a/Master/texmf-dist/source/latex/acmart/acmart.dtx b/Master/texmf-dist/source/latex/acmart/acmart.dtx index a95593b235c..e4ed2233966 100644 --- a/Master/texmf-dist/source/latex/acmart/acmart.dtx +++ b/Master/texmf-dist/source/latex/acmart/acmart.dtx @@ -15,8 +15,8 @@ % The Current Maintainer of this work is Boris Veytsman, % <borisv@lk.net> % -% This work consists of the file acmart.dtx, the derived files -% acmart.cls, acmthm.sty, the files ACM-Reference-Format.bst, and templates +% This work consists of the file acmart.dtx, the derived file +% acmart.cls, the files ACM-Reference-Format.bst, and templates % sample-acmlarge.tex, sample-acmsmall.tex, sample-acmtog.tex, % samplebody-conf.tex, samplebody-journals.tex, sample-manuscript.tex, % sample-sigchi-a.tex, sample-sigchi.tex, @@ -101,12 +101,14 @@ % Michael D.~Adams, % Leif Andersen, % Dirk Beyer, +% Benjamin Byholm, % Michael Ekstrand, % Matthew Fluet, % Paolo G.~Giarrusso, % Ben Greenman, % LianTze Lim, % Ben Liblit, +% Kai Mindermann, % Frank Mittelbach, % Ross Moore, % John Owens, @@ -128,6 +130,17 @@ %\label{sec:ug} % % +% The class uses many commands and customizaton options, so it might +% appear intimidating for a casual user. Do not panic! Many of these +% commands and options can be safely left with their default values, +% or the values recommended by your conference or journal editors. If +% you have problems or questions, do not hesitate to ask me directly +% or the community at \url{https://github.com/borisveytsman/acmart}, +% \url{https://tex.stackexchange.com} or the closest \TeX\ Users +% Group. The world-wide \TeX\ Users Group is at +% \url{https://tug.org/}; please consider joining us if you use \TeX\ +% regularly. +% %\subsection{Installation} %\label{sec:ug_install} % @@ -148,9 +161,9 @@ % and rather rely on their \TeX\ distributions to provide it. If you % decide to install the package yourself, follow the standard rules: % \begin{enumerate} -% \item Run \progname{latex} on |acmart.ins|. This will produce the files -% |acmart.cls| and |acmthm.sty| -% \item Put the files |acmart.cls|, |acmthm.sty| +% \item Run \progname{latex} on |acmart.ins|. This will produce the file +% |acmart.cls| +% \item Put the file |acmart.cls| % and the bibliography files |*.bst| % to the places where \LaTeX{} can find them (see \cite{TeXFAQ} or % the documentation for your \TeX{} system).\label{item:install} @@ -180,6 +193,7 @@ % \item \textsl{cmap}, \url{http://www.ctan.org/pkg/cmap} % \item \textsl{draftwatermark}, \url{http://www.ctan.org/pkg/draftwatermark} % \item \textsl{environ}, \url{http://www.ctan.org/pkg/environ} +% \item \textsl{etoolbox}, \url{http://www.ctan.org/pkg/etoolbox} % \item \textsl{fancyhdr}, \url{http://www.ctan.org/pkg/fancyhdr} % \item \textsl{float}, \url{http://www.ctan.org/pkg/float} % \item \textsl{fontaxes}, \url{http://www.ctan.org/pkg/fontaxes} @@ -291,9 +305,12 @@ % option: it provides a version suitable for reviewers and % copyeditors. % -% The option |screen| may in the future involve -% additional features suitable for on-screen versions of the -% articles. +% The default for the option |screen| depends on the publication. At +% present it is |false| for all publications \emph{but} PACM, since +% PACM is now electronic-only. Thus PACM titles (see +% Table~\ref{tab:pubs} set this option to |true|. This option may in +% the future involve additional features suitable for on-screen +% versions of the articles. % % The option |natbib| is used when the corresponding % \BibTeX\ style is based on |natbib|. In most cases you do not need @@ -328,7 +345,8 @@ % \midrule % review & false & A review version: lines are numbered, % hyperlinks are colored\\ -% screen & false & A screen version: hyperlinks are colored\\ +% screen & {\rmfamily see text} & A screen version: +% hyperlinks are colored\\ % natbib & true & Whether to use |natbib| package (see % Section~\ref{sec:ug_bibliography})\\ % anonymous & false & Whether to make author(s) anonymous\\ @@ -338,7 +356,7 @@ % timestamp & false & Whether to put a time stamp in the % footer of each page\\ % authordraft & false & Whether author's draft mode is enabled\\ -% acmthm & true & Whether to load |acmthm.sty|, see +% acmthm & true & Whether to define theorem-like environments, see % Section~\ref{sec:ug_theorems}\\ % \bottomrule % \end{tabularx} @@ -734,23 +752,34 @@ % It is expected that these commands are inserted by the author of the % manuscript. % -% \DescribeMacro{\thanks} -% Like \progname{amsart} (and unlike standard \LaTeX{}), -% we allow |\thanks| only \emph{outside} of -% commands |\title| and |\author|. Example: +% \DescribeMacro{\thanks}% +% Like \progname{amsart} (and unlike standard \LaTeX{}), we allow +% |\thanks| only \emph{outside} of commands |\title| and |\author|. +% This command is obsolete, and should \emph{not} be used in most +% cases. Do not list your acknowledgements and grant sponsors here: +% put this information in the |acks| environment (see +% Section~\ref{sec:ug_acks}). +% +% \DescribeMacro{\authorsaddresses}% +% In some formats the addresses are printed as a footnote on the first +% page. By default \LaTeX\ typesets them itself using the information +% you give it. However, you can override its choice using the +% commmand \cs{authorsaddresses}\marg{contact addresses}, for example, % \begin{verbatim} -% \thanks{This work is supported by the Widget Corporation Grant -% \#312-001.\\ -% Author's address: D. Pineo, Kingsbury Hall, 33 Academic Way, Durham, -% N.H. 03824; email: dspineo@comcast.net; Colin Ware, Jere A. Chase -% Ocean Engineering Lab, 24 Colovos Road, Durham, NH 03824; email: -% cware@ccom.unh.edu; -% Sean Fogarty, (Current address) NASA Ames Research Center, Moffett -% Field, California 94035.} +% \authorsaddresses{% +% Authors' addresses: G.~Zhou, Computer Science Department, College of +% William and Mary, 104 Jameson Rd, Williamsburg, PA 23185, US; +% V.~B\'eranger, Inria Paris-Rocquencourt, Rocquencourt, France; +% A.~Patel, Rajiv Gandhi University, Rono-Hills, Doimukh, Arunachal +% Pradesh, India; H.~Chan, Tsinghua University, 30 Shuangqing Rd, +% Haidian Qu, Beijing Shi, China; T.~Yan, Eaton Innovation Center, +% Prague, Czech Republic; T.~He, C.~Huang, J.~A.~Stankovic University +% of Virginia, School of Engineering Charlottesville, VA 22903, USA; +% T. F. Abdelzaher, (Current address) NASA Ames Research Center, +% Moffett Field, California 94035.} % \end{verbatim} -% -% It is expected that this command is inserted by the author of the -% manuscript. +% You can \emph{suppress} printing authors' addresses by setting them +% to an empty string: |\authorsaddresses{}|. % % \DescribeMacro{\titlenote}% % \DescribeMacro{\subtitlenote}% @@ -1230,18 +1259,10 @@ % \end{description} % % -% These definitions are in the separate style file |acmthm.sty|, which -% is loaded by default. However, sometimes the user might want to -% delay loading this package, for example, if she wants for load -% package like |cleveref| first. In this case use the option -% |acmthm=false| in the preamble, for example, -% \begin{verbatim} -% \documentclass[acmsmall, acmthm=false]{acmart} -% \usepackage{cleveref} -% \usepackage{acmthm} -% \end{verbatim} -% -% +% These environments are defined by default. In the unusual +% circumstance that a user does not wish to have these environments +% defined, the option |acmthm=false| in the preamble will suppress +% them. % %\subsection{Online-only and offline-only material} %\label{sec:ug_screen} @@ -1629,8 +1650,7 @@ \ProvidesFile{acmart.dtx} %</gobble> %<class>\ProvidesClass{acmart} -%<acmthm>\ProvidesPackage{acmthm} -[2017/08/15 v1.45 Typesetting articles for Association of +[2017/08/29 v1.46 Typesetting articles for Association of Computing Machinery] % \end{macrocode} % @@ -1697,6 +1717,10 @@ Computing Machinery] % \changes{v1.44}{2017/07/30}{Added package refcount} % \changes{v1.44}{2017/07/30}{Deleted package cleveref} % \changes{v1.44}{2017/07/30}{Put theorem defs in a separate style} +% \changes{v1.46}{2017/08/17}{Bst file bug fixes: label width is +% calculated correctly} +% \changes{v1.46}{2017/08/25}{Added etoolbox} +% \changes{v1.46}{2017/08/29}{Restore theorem defs to class file} % % % And the driver code: @@ -1790,7 +1814,8 @@ Computing Machinery] % % \begin{macro}{\if@ACM@acmthm} % \changes{v1.44}{2017/07/30}{Added macro} -% Whether we load |acmthm| +% \changes{v1.46}{2017/08/29}{Modified description} +% Whether we define theorem-like environments. % \begin{macrocode} \define@boolkey+{acmart.cls}[@ACM@]{acmthm}[true]{% \if@ACM@acmthm @@ -2039,6 +2064,11 @@ Computing Machinery] \RequirePackage{microtype} % \end{macrocode} % +% We need |etoolbox| for delayed code +% \begin{macrocode} +\RequirePackage{etoolbox} +% \end{macrocode} +% % % We need |totpages| package to calculate the number of pages and % |refcount| to use the number @@ -2350,6 +2380,8 @@ Computing Machinery] % % And |hyperref| % \changes{v1.28}{2017/01/07}{Got rid of warnings in pdf keywords} +% \changes{v1.46}{2017/08/25}{Delayed hypersetup since journal options +% may change screen mode} % \begin{macrocode} \let\@footnotemark@nolink\@footnotemark \let\@footnotetext@nolink\@footnotetext @@ -2374,15 +2406,16 @@ Computing Machinery] \or % sigchi-a \urlstyle{sf} \fi -\if@ACM@screen - \hypersetup{colorlinks, - linkcolor=ACMRed, - citecolor=ACMPurple, - urlcolor=ACMDarkBlue, - filecolor=ACMDarkBlue} -\else - \hypersetup{hidelinks} -\fi +\AtEndPreamble{% + \if@ACM@screen + \hypersetup{colorlinks, + linkcolor=ACMRed, + citecolor=ACMPurple, + urlcolor=ACMDarkBlue, + filecolor=ACMDarkBlue} + \else + \hypersetup{hidelinks} + \fi} % \end{macrocode} % % Bibliography mangling. @@ -2595,6 +2628,8 @@ Computing Machinery] % \begin{macrocode} \RequirePackage{manyfoot} \SelectFootnoteRule[2]{copyrightpermission} +\DeclareNewFootnote{authorsaddresses} +\SelectFootnoteRule[2]{copyrightpermission} \DeclareNewFootnote{copyrightpermission} % \end{macrocode} % @@ -2757,6 +2792,19 @@ Computing Machinery] \fi % \end{macrocode} % +% \begin{macro}{\liningnums} +% \changes{v1.46}{2017/08/28}{Workaround for compatibility with fontspec} +% Libertine defines \cs{liningnums}, which makes fontspec unhappy. +% While we do not use fontspec, some users do\dots +% \begin{macrocode} +\let\liningnums\@undefined +\AtEndPreamble{% + \DeclareTextFontCommand{\liningnums}{\libertineLF}} +% \end{macrocode} +% +% \end{macro} +% +% % The SIGCHI extended abstracts are sans serif: % \begin{macrocode} \if@ACM@sigchiamode @@ -3023,6 +3071,7 @@ Computing Machinery] % \changes{v1.25}{2016/12/03}{Updated PACMPL} % \changes{v1.30}{2017/02/15}{Updated IMWUT and PACMPL} % \changes{v1.36}{2017/05/13}{Added PACMHCI journal options} +% \changes{v1.46}{2017/08/25}{PACM now set screen to true} % % We use keyval interface to define journal title and relevant % information @@ -3094,6 +3143,8 @@ Computing Machinery] Wearable and Ubiquitous Technologies}% \def\@journalNameShort{Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.}% \def\@permissionCodeOne{2474-9567}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % JACM \def\@journalName{Journal of the ACM}% \def\@journalNameShort{J. ACM}% @@ -3121,14 +3172,20 @@ Computing Machinery] \def\@journalName{Proceedings of the ACM on Human-Computer Interaction}% \def\@journalName{Proc. ACM Hum.-Comput. Interact.}% \def\@permissionCodeOne{2573-0142}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % PACMPL \def\@journalName{Proceedings of the ACM on Programming Languages}% \def\@journalName{Proc. ACM Program. Lang.}% \def\@permissionCodeOne{2475-1421}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % POMACS \def\@journalName{Proceedings of the ACM on Measurement and Analysis of Computing Systems}% \def\@journalName{Proc. ACM Meas. Anal. Comput. Syst.}% \def\@permissionCodeOne{2476-1249}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % TAAS \def\@journalName{ACM Transactions on Autonomous and Adaptive Systems}% \def\@journalNameShort{ACM Trans. Autonom. Adapt. Syst.}% @@ -3384,6 +3441,19 @@ Computing Machinery] % % \end{macro} % +% \begin{macro}{\num@authors} +% \changes{v1.46}{2017/08/27}{Introduced macro} +% The total number of authors. +% \begin{macrocode} +\newcount\num@authors +\num@authors=0\relax +% \end{macrocode} +% +% \end{macro} +% +% +% +% % \begin{macro}{\if@insideauthorgroup} % \changes{v1.15}{2016/06/25}{Introduced macro} % Whether we are continuing an author group @@ -3393,9 +3463,11 @@ Computing Machinery] % % \begin{macro}{\author} % \changes{v1.15}{2016/06/25}{Added code for author groups} +% \changes{v1.46}{2017/08/27}{Started counting authors} % Adding an author to the list of authors and addresses % \begin{macrocode} \renewcommand\author[2][]{% + \global\advance\num@authors by 1\relax \if@insideauthorgroup\else \global\advance\num@authorgroups by 1\relax \global\@insideauthorgrouptrue @@ -3512,7 +3584,15 @@ Computing Machinery] % Right now we do not typeset orcids \def\orcid#1{\unskip\ignorespaces} % \end{macro} -% +% +% \begin{macro}{\authorsaddresses} +% \changes{v1.46}{2017/08/27}{Introduced macro} +% Setting up authors' addresses +\def\authorsaddresses#1{\def\@authorsaddresses{#1}} +\authorsaddresses{\@mkauthorsaddresses} +% \end{macro} +% +% % \begin{macro}{\@titlenotes} % The titlenotes % \begin{macrocode} @@ -4368,6 +4448,8 @@ Computing Machinery] % \changes{v1.34}{2017/04/11}{Rearranged bibstrip} % \changes{v1.44}{2017/07/30}{Empty DOI or ISBN are not printed (by % Michael Ekstrand)} +% \changes{v1.46}{2017/08/27}{Added authors' addresses} +% \changes{v1.46}{2017/08/28}{Thankses go before authors' addresses} % The (in)famous \cs{maketitle}. Note that in sigchi-a mode authors % are \emph{not} in the title box. % @@ -4401,9 +4483,17 @@ Computing Machinery] \let\@makefnmark\relax \let\@thefnmark\relax \let\@makefntext\noindent \ifx\@empty\thankses\else - \footnotetextcopyrightpermission{% + \footnotetextauthorsaddresses{% \def\par{\let\par\@par}\parindent\z@\@setthanks}% \fi + \ifx\@empty\@authorsaddresses\else + \if@ACM@anonymous\else + \if@ACM@journal + \footnotetextauthorsaddresses{% + \def\par{\let\par\@par}\parindent\z@\@setauthorsaddresses}% + \fi + \fi + \fi \footnotetextcopyrightpermission{% \if@ACM@authordraft \raisebox{-2ex}[\z@][\z@]{\makebox[0pt][l]{\large\bfseries @@ -4521,6 +4611,7 @@ Computing Machinery] % % \begin{macro}{\@printtopmatter} % \changes{v1.06}{2016/05/01}{Added processing badges} +% \changes{v1.46}{2017/08/29}{Deleted rule} % The printing of top matter starts the 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 on the margins. @@ -4536,13 +4627,10 @@ Computing Machinery] \ifcase\ACM@format@nr \relax % manuscript \box\mktitle@bx\par - \noindent\hrulefill\par \or % acmsmall \box\mktitle@bx\par - \noindent\hrulefill\par \or % acmlarge \box\mktitle@bx\par - \noindent\hrulefill\par \or % acmtog \twocolumn[\box\mktitle@bx]% \or % sigconf @@ -4816,6 +4904,7 @@ Computing Machinery] % \changes{v1.33}{2017/03/28}{Added obeypunctuation code} % \changes{v1.40}{2017/05/27}{Fixed bugs with extra spaces} % \changes{v1.43}{2017/07/11}{Added comma before country for journals} +% \changes{v1.46}{Corrected spacing for institution} % Theoretically we can define the macros for \cs{affiliation} inside % the \cs{@mkauthors}-style commands. However, this would lead to a % strange error if an author uses them outside \cs{affiliation}. Of @@ -4825,10 +4914,10 @@ Computing Machinery] \def\postcode#1{\unskip\ignorespaces} \if@ACM@journal \def\position#1{\unskip\ignorespaces} - \def\institution#1{#1\ignorespaces} + \def\institution#1{\unskip~#1\ignorespaces} \def\city#1{\unskip\ignorespaces} \def\state#1{\unskip\ignorespaces} - \newcommand\department[2][0]{} + \newcommand\department[2][0]{\unskip\ignorespaces} \def\country#1{\if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} \else \def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% @@ -5178,6 +5267,39 @@ Computing Machinery] % % \end{macro} % +% \begin{macro}{\@mkauthorsaddresses} +% \changes{v1.46}{2017/08/27}{Introduced macro} +% Typesetting authors' addresses in the footnote style +\def\@mkauthorsaddresses{% + \ifnum\num@authors>1\relax + Authors' \else Author's \fi + \ifnum\num@authorgroups>1\relax + addresses: \else address: \fi + \bgroup + \def\streetaddress##1{\unskip\@addpunct, ##1}% + \def\postcode##1{\unskip\@addpunct, ##1}% + \def\position##1{\unskip\ignorespaces}% + \def\institution##1{\unskip\@addpunct, ##1}% + \def\city##1{\unskip\@addpunct, ##1}% + \def\state##1{\unskip\@addpunct, ##1}% + \renewcommand\department[2][0]{\unskip\@addpunct, ##2}% + \def\country##1{\unskip\@addpunct, ##1}% + \def\and{\unskip\@addpunct; }% + \def\@author##1{##1}% + \def\email##1##2{\unskip\@addpunct, \nolinkurl{##2}}% + \addresses + \egroup} +% \end{macro} +% +% \begin{macro}{\@setaddresses} +% This is an |amsart| macro, which we do not need. +% \begin{macrocode} +\def\@setaddresses{} +% \end{macrocode} +% +% \end{macro} +% +% % \begin{macro}{\@authornotemark} % Adding footnotemark to authors. This version adds ``normal'' % footnotemark. @@ -5210,14 +5332,6 @@ Computing Machinery] % % \end{macro} % -% \begin{macro}{\@setaddresses} -% This is an |amsart| macro, which we do not need. -% \begin{macrocode} -\def\@setaddresses{} -% \end{macrocode} -% -% \end{macro} -% % \begin{macro}{\@mkabstract} % \changes{v1.19}{2016/07/28}{Include 'Abstract' in PDF bookmarks % (Matthew Fluet)} @@ -5246,6 +5360,7 @@ Computing Machinery] % \changes{v1.34}{2017/04/09}{Deleted DOI from doi numbers} % \changes{v1.44}{2017/07/30}{If the paper has just one page, use % `page' instead of `pages'} +% \changes{v1.46}{2017/08/25}{Added subtitle} % Print bibcitation format % \begin{macrocode} \def\@mkbibcitation{\bgroup @@ -5258,7 +5373,8 @@ Computing Machinery] \def\@article@string{\ifx\@acmArticle\@empty{\ }\else, Article~\@acmArticle\ \fi}% \par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak - \noindent\authors. \@acmYear. \@title. + \noindent\authors. \@acmYear. \@title + \ifx\@subtitle\@empty. \else: \@subtitle. \fi \if@ACM@journal \textit{\@journalNameShort} \@acmVolume, \@acmNumber \@article@string (\@acmPubDate), @@ -5270,37 +5386,18 @@ Computing Machinery] \fi\ ACM, New York, NY, USA% \@article@string\unskip, \ref{TotPages}~\@pages@word. - \fi\par - \noindent\@formatdoi{\@acmDOI} + \fi + \@formatdoi{\@acmDOI} \par\egroup} % \end{macrocode} % % \end{macro} % % \begin{macro}{\@printendtopmatter} +% \changes{v1.46}{2017/08/28}{Made it \cs{par}\cs{bigskip} uniformly} % End the top matter % \begin{macrocode} -\def\@printendtopmatter{\par\medskip - \ifcase\ACM@format@nr - \relax % manuscript - \noindent\hrulefill\par\medskip - \or % acmsmall - \noindent\hrulefill\par\medskip - \or % acmlarge - \noindent\hrulefill\par\medskip - \or % acmtog - \par\bigskip - \or % sigconf - \par\bigskip - \or % siggraph - \par\bigskip - \or % sigplan - \par\bigskip - \or % sigchi - \par\bigskip - \or % sigchi-a - \fi -} +\def\@printendtopmatter{\par\bigskip} % \end{macrocode} % % \end{macro} @@ -5313,6 +5410,14 @@ Computing Machinery] % % \end{macro} % +% \begin{macro}{\@setauthorsaddresses} +% \changes{v1.46}{2018/08/25}{Introduced macro} +% \begin{macrocode} +\def\@setauthorsaddresses{\@authorsaddresses\unskip\@addpunct.} +% \end{macrocode} +% +% \end{macro} +% % % %\subsection{Headers and Footers} @@ -5327,6 +5432,8 @@ Computing Machinery] % \changes{v1.34}{2017/04/10}{Rulers now are continuous} % \changes{v1.40}{2017/05/27}{Work around a bug in xcolor: looks like % 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)} % This is the box displayed in the review mode % \begin{macrocode} \if@ACM@review @@ -5336,11 +5443,13 @@ Computing Machinery] \ACM@linecount\@ne\relax \def\ACM@mk@linecount{% \savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{% - \setlength{\ACM@linecount@bxht}{-\baselineskip}% + \setlength{\ACM@linecount@bxht}{0pt}% \loop{\color{red}\scriptsize\the\ACM@linecount}\\ \global\advance\ACM@linecount by \@ne \addtolength{\ACM@linecount@bxht}{\baselineskip}% - \ifdim\ACM@linecount@bxht<\textheight\repeat}}} + \ifdim\ACM@linecount@bxht<\textheight\repeat + {\color{red}\scriptsize\the\ACM@linecount}\hfill + \global\advance\ACM@linecount by \@ne}}} \fi % \end{macrocode} % @@ -5796,18 +5905,9 @@ Computing Machinery] %\subsection{Theorems} %\label{sec:theorems} % -% The conditional loading -% \begin{macrocode} -\if@ACM@acmthm - \RequirePackage{acmthm} -\fi -% \end{macrocode} -% % \begin{macro}{\@acmplainbodyfont} % The font to typeset the |acmplain| theorem style body. % \begin{macrocode} -%</class> -%<*acmthm> \def\@acmplainbodyfont{\itshape} % \end{macrocode} % @@ -5944,18 +6044,49 @@ Computing Machinery] % % \end{macro} % -% The definitions for theorems: +% Make |acmplain| the default theorem style. % \begin{macrocode} \theoremstyle{acmplain} -\newtheorem{theorem}{Theorem}[section] -\newtheorem{conjecture}[theorem]{Conjecture} -\newtheorem{proposition}[theorem]{Proposition} -\newtheorem{lemma}[theorem]{Lemma} -\newtheorem{corollary}[theorem]{Corollary} -\theoremstyle{acmdefinition} -\newtheorem{example}[theorem]{Example} -\newtheorem{definition}[theorem]{Definition} -\theoremstyle{acmplain} +% \end{macrocode} +% +% Delay defining the theorem environments until after other packages +% have been loaded. In particular, the |cleveref| package must be +% loaded before the theorem environments are defined in order to show +% the correct environment name (see +% https://github.com/borisveytsman/acmart/issues/138). The |acmthm| +% option is used to suppress the definition of any theorem +% environments. Also, to avoid obscure errors arising from these +% environment definitions conflicting with environments defined by the +% user or by user-loaded packages, we only define environments that +% have not yet been defined. +% \begin{macrocode} +\AtEndPreamble{% + \if@ACM@acmthm + \theoremstyle{acmplain} + \@ifundefined{theorem}{% + \newtheorem{theorem}{Theorem}[section] + }{} + \@ifundefined{conjecture}{% + \newtheorem{conjecture}[theorem]{Conjecture} + }{} + \@ifundefined{proposition}{% + \newtheorem{proposition}[theorem]{Proposition} + }{} + \newtheorem{lemma}[theorem]{Lemma} + \@ifundefined{lemma}{}{} + \@ifundefined{corollary}{% + \newtheorem{corollary}[theorem]{Corollary} + }{} + \theoremstyle{acmdefinition} + \@ifundefined{example}{% + \newtheorem{example}[theorem]{Example} + }{} + \@ifundefined{definition}{% + \newtheorem{definition}[theorem]{Definition} + }{} + \fi + \theoremstyle{acmplain} +} % \end{macrocode} % % @@ -6004,8 +6135,6 @@ Computing Machinery] }{% \popQED\endtrivlist\@endpefalse } -%</acmthm> -%<*class> % \end{macrocode} % % \end{macro} @@ -6056,6 +6185,7 @@ Computing Machinery] % % We use the |comment| package for conditional typesetting: % \begin{macrocode} +\AtEndPreamble{% \if@ACM@screen \includecomment{screenonly} \excludecomment{printonly} @@ -6068,7 +6198,7 @@ Computing Machinery] \excludecomment{acks} \else \includecomment{anonsuppress} -\fi +\fi} % \end{macrocode} % % diff --git a/Master/texmf-dist/source/latex/acmart/acmart.ins b/Master/texmf-dist/source/latex/acmart/acmart.ins index aa74c69ed32..d17dc066fd7 100644 --- a/Master/texmf-dist/source/latex/acmart/acmart.ins +++ b/Master/texmf-dist/source/latex/acmart/acmart.ins @@ -13,7 +13,6 @@ \generate{% \file{acmart.cls}{\from{acmart.dtx}{class}} - \file{acmthm.sty}{\from{acmart.dtx}{acmthm}} } \obeyspaces @@ -21,9 +20,9 @@ \Msg{* Congratulations! You successfully generated the *}% \Msg{* acmart package. *}% \Msg{* *}% -\Msg{* Please move the files acmart.cls and acmthm.sty *}% -\Msg{* to the location where LaTeX files are stored in *}% -\Msg{* your system. The manual is acmart.pdf. *}% +\Msg{* Please move the file acmart.cls to where LaTeX *}% +\Msg{* files are stored in your system. The manual is *}% +\Msg{* acmart.pdf. *}% \Msg{* *}% \Msg{* The package is released under LPPL *}% \Msg{* *}% diff --git a/Master/texmf-dist/tex/latex/acmart/acmart.cls b/Master/texmf-dist/tex/latex/acmart/acmart.cls index 28dcf587305..8554fae0cb3 100644 --- a/Master/texmf-dist/tex/latex/acmart/acmart.cls +++ b/Master/texmf-dist/tex/latex/acmart/acmart.cls @@ -37,7 +37,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{acmart} -[2017/08/15 v1.45 Typesetting articles for Association of +[2017/08/29 v1.46 Typesetting articles for Association of Computing Machinery] \def\@classname{acmart} \InputIfFileExists{acmart-preload-hook.tex}{% @@ -198,6 +198,7 @@ Computing Machinery] \ClassInfo{\@classname}{Using fontsize \ACM@fontsize} \LoadClass[\ACM@fontsize, reqno]{amsart} \RequirePackage{microtype} +\RequirePackage{etoolbox} \RequirePackage{refcount} \RequirePackage{totpages} \RequirePackage{environ} @@ -431,15 +432,16 @@ Computing Machinery] \or % sigchi-a \urlstyle{sf} \fi -\if@ACM@screen - \hypersetup{colorlinks, - linkcolor=ACMRed, - citecolor=ACMPurple, - urlcolor=ACMDarkBlue, - filecolor=ACMDarkBlue} -\else - \hypersetup{hidelinks} -\fi +\AtEndPreamble{% + \if@ACM@screen + \hypersetup{colorlinks, + linkcolor=ACMRed, + citecolor=ACMPurple, + urlcolor=ACMDarkBlue, + filecolor=ACMDarkBlue} + \else + \hypersetup{hidelinks} + \fi} \if@ACM@natbib \let\citeN\cite \let\cite\citep @@ -566,6 +568,8 @@ Computing Machinery] \hrule \@width \columnwidth \kern 2.6\p@} \RequirePackage{manyfoot} \SelectFootnoteRule[2]{copyrightpermission} +\DeclareNewFootnote{authorsaddresses} +\SelectFootnoteRule[2]{copyrightpermission} \DeclareNewFootnote{copyrightpermission} \def\footnoterule{\kern-3\p@ \hrule \@width 4pc \kern 2.6\p@} @@ -638,6 +642,9 @@ Computing Machinery] \RequirePackage[libertine]{newtxmath} \RequirePackage[T1]{fontenc} \fi +\let\liningnums\@undefined +\AtEndPreamble{% + \DeclareTextFontCommand{\liningnums}{\libertineLF}} \if@ACM@sigchiamode \renewcommand{\familydefault}{\sfdefault} \fi @@ -832,6 +839,8 @@ Computing Machinery] Wearable and Ubiquitous Technologies}% \def\@journalNameShort{Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.}% \def\@permissionCodeOne{2474-9567}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % JACM \def\@journalName{Journal of the ACM}% \def\@journalNameShort{J. ACM}% @@ -859,14 +868,20 @@ Computing Machinery] \def\@journalName{Proceedings of the ACM on Human-Computer Interaction}% \def\@journalName{Proc. ACM Hum.-Comput. Interact.}% \def\@permissionCodeOne{2573-0142}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % PACMPL \def\@journalName{Proceedings of the ACM on Programming Languages}% \def\@journalName{Proc. ACM Program. Lang.}% \def\@permissionCodeOne{2475-1421}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % POMACS \def\@journalName{Proceedings of the ACM on Measurement and Analysis of Computing Systems}% \def\@journalName{Proc. ACM Meas. Anal. Comput. Syst.}% \def\@permissionCodeOne{2476-1249}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% \or % TAAS \def\@journalName{ACM Transactions on Autonomous and Adaptive Systems}% \def\@journalNameShort{ACM Trans. Autonom. Adapt. Syst.}% @@ -1053,9 +1068,12 @@ Computing Machinery] \subtitle{} \newcount\num@authorgroups \num@authorgroups=0\relax +\newcount\num@authors +\num@authors=0\relax \newif\if@insideauthorgroup \@insideauthorgroupfalse \renewcommand\author[2][]{% + \global\advance\num@authors by 1\relax \if@insideauthorgroup\else \global\advance\num@authorgroups by 1\relax \global\@insideauthorgrouptrue @@ -1118,6 +1136,8 @@ Computing Machinery] \g@addto@macro\addresses{\email{#1}{#2}}% \fi} \def\orcid#1{\unskip\ignorespaces} +\def\authorsaddresses#1{\def\@authorsaddresses{#1}} +\authorsaddresses{\@mkauthorsaddresses} \def\@titlenotes{} \def\titlenote#1{% \g@addto@macro\@title{\footnotemark}% @@ -1515,9 +1535,17 @@ Computing Machinery] \let\@makefnmark\relax \let\@thefnmark\relax \let\@makefntext\noindent \ifx\@empty\thankses\else - \footnotetextcopyrightpermission{% + \footnotetextauthorsaddresses{% \def\par{\let\par\@par}\parindent\z@\@setthanks}% \fi + \ifx\@empty\@authorsaddresses\else + \if@ACM@anonymous\else + \if@ACM@journal + \footnotetextauthorsaddresses{% + \def\par{\let\par\@par}\parindent\z@\@setauthorsaddresses}% + \fi + \fi + \fi \footnotetextcopyrightpermission{% \if@ACM@authordraft \raisebox{-2ex}[\z@][\z@]{\makebox[0pt][l]{\large\bfseries @@ -1632,13 +1660,10 @@ Computing Machinery] \ifcase\ACM@format@nr \relax % manuscript \box\mktitle@bx\par - \noindent\hrulefill\par \or % acmsmall \box\mktitle@bx\par - \noindent\hrulefill\par \or % acmlarge \box\mktitle@bx\par - \noindent\hrulefill\par \or % acmtog \twocolumn[\box\mktitle@bx]% \or % sigconf @@ -1805,10 +1830,10 @@ Computing Machinery] \def\postcode#1{\unskip\ignorespaces} \if@ACM@journal \def\position#1{\unskip\ignorespaces} - \def\institution#1{#1\ignorespaces} + \def\institution#1{\unskip~#1\ignorespaces} \def\city#1{\unskip\ignorespaces} \def\state#1{\unskip\ignorespaces} - \newcommand\department[2][0]{} + \newcommand\department[2][0]{\unskip\ignorespaces} \def\country#1{\if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} \else \def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% @@ -2009,6 +2034,26 @@ Computing Machinery] \par\raggedright\leftskip=\z@ \lineskip=1pc\noindent \addresses\let\and\@typeset@author@bx\and\par\bigskip\egroup} +\def\@mkauthorsaddresses{% + \ifnum\num@authors>1\relax + Authors' \else Author's \fi + \ifnum\num@authorgroups>1\relax + addresses: \else address: \fi + \bgroup + \def\streetaddress##1{\unskip\@addpunct, ##1}% + \def\postcode##1{\unskip\@addpunct, ##1}% + \def\position##1{\unskip\ignorespaces}% + \def\institution##1{\unskip\@addpunct, ##1}% + \def\city##1{\unskip\@addpunct, ##1}% + \def\state##1{\unskip\@addpunct, ##1}% + \renewcommand\department[2][0]{\unskip\@addpunct, ##2}% + \def\country##1{\unskip\@addpunct, ##1}% + \def\and{\unskip\@addpunct; }% + \def\@author##1{##1}% + \def\email##1##2{\unskip\@addpunct, \nolinkurl{##2}}% + \addresses + \egroup} +\def\@setaddresses{} \def\@authornotemark{\g@addto@macro\@currentauthors{\footnotemark\relax}} \def\@@authornotemark#1{\g@addto@macro\@currentauthors{\footnotemark[#1]}} \def\@mkteasers{% @@ -2018,7 +2063,6 @@ Computing Machinery] \global\setbox\mktitle@bx=\vbox{\noindent\box\mktitle@bx\par \noindent\@teaserfigures\par\medskip}% \fi} -\def\@setaddresses{} \def\@mkabstract{\bgroup \ifx\@abstract\@lempty\else {\phantomsection\addcontentsline{toc}{section}{Abstract}% @@ -2039,7 +2083,8 @@ Computing Machinery] \def\@article@string{\ifx\@acmArticle\@empty{\ }\else, Article~\@acmArticle\ \fi}% \par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak - \noindent\authors. \@acmYear. \@title. + \noindent\authors. \@acmYear. \@title + \ifx\@subtitle\@empty. \else: \@subtitle. \fi \if@ACM@journal \textit{\@journalNameShort} \@acmVolume, \@acmNumber \@article@string (\@acmPubDate), @@ -2051,31 +2096,12 @@ Computing Machinery] \fi\ ACM, New York, NY, USA% \@article@string\unskip, \ref{TotPages}~\@pages@word. - \fi\par - \noindent\@formatdoi{\@acmDOI} -\par\egroup} -\def\@printendtopmatter{\par\medskip - \ifcase\ACM@format@nr - \relax % manuscript - \noindent\hrulefill\par\medskip - \or % acmsmall - \noindent\hrulefill\par\medskip - \or % acmlarge - \noindent\hrulefill\par\medskip - \or % acmtog - \par\bigskip - \or % sigconf - \par\bigskip - \or % siggraph - \par\bigskip - \or % sigplan - \par\bigskip - \or % sigchi - \par\bigskip - \or % sigchi-a \fi -} + \@formatdoi{\@acmDOI} +\par\egroup} +\def\@printendtopmatter{\par\bigskip} \def\@setthanks{\long\def\thanks##1{\par##1\@addpunct.}\thankses} +\def\@setauthorsaddresses{\@authorsaddresses\unskip\@addpunct.} \RequirePackage{fancyhdr} \if@ACM@review \newsavebox{\ACM@linecount@bx} @@ -2084,11 +2110,13 @@ Computing Machinery] \ACM@linecount\@ne\relax \def\ACM@mk@linecount{% \savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{% - \setlength{\ACM@linecount@bxht}{-\baselineskip}% + \setlength{\ACM@linecount@bxht}{0pt}% \loop{\color{red}\scriptsize\the\ACM@linecount}\\ \global\advance\ACM@linecount by \@ne \addtolength{\ACM@linecount@bxht}{\baselineskip}% - \ifdim\ACM@linecount@bxht<\textheight\repeat}}} + \ifdim\ACM@linecount@bxht<\textheight\repeat + {\color{red}\scriptsize\the\ACM@linecount}\hfill + \global\advance\ACM@linecount by \@ne}}} \fi \def\ACM@linecountL{% \if@ACM@review @@ -2362,9 +2390,118 @@ Computing Machinery] \def\@adddotafter#1{#1\@addpunct{.}} \def\@addspaceafter#1{#1\@addpunct{\enspace}} \providecommand*\@dotsep{4.5} -\if@ACM@acmthm - \RequirePackage{acmthm} +\def\@acmplainbodyfont{\itshape} +\def\@acmplainindent{\parindent} +\def\@acmplainheadfont{\scshape} +\def\@acmplainnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmplainbodyfont{\itshape} + \def\@acmplainindent{\z@} + \def\@acmplainheadfont{\bfseries} + \def\@acmplainnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\fi +\newtheoremstyle{acmplain}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmplainbodyfont}% body font + {\@acmplainindent}% indent amount + {\@acmplainheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec +\def\@acmdefinitionbodyfont{\normalfont} +\def\@acmdefinitionindent{\parindent} +\def\@acmdefinitionheadfont{\itshape} +\def\@acmdefinitionnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmdefinitionbodyfont{\normalfont} + \def\@acmdefinitionindent{\z@} + \def\@acmdefinitionheadfont{\bfseries} + \def\@acmdefinitionnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\fi +\newtheoremstyle{acmdefinition}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmdefinitionbodyfont}% body font + {\@acmdefinitionindent}% indent amount + {\@acmdefinitionheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec +\theoremstyle{acmplain} +\AtEndPreamble{% + \if@ACM@acmthm + \theoremstyle{acmplain} + \@ifundefined{theorem}{% + \newtheorem{theorem}{Theorem}[section] + }{} + \@ifundefined{conjecture}{% + \newtheorem{conjecture}[theorem]{Conjecture} + }{} + \@ifundefined{proposition}{% + \newtheorem{proposition}[theorem]{Proposition} + }{} + \newtheorem{lemma}[theorem]{Lemma} + \@ifundefined{lemma}{}{} + \@ifundefined{corollary}{% + \newtheorem{corollary}[theorem]{Corollary} + }{} + \theoremstyle{acmdefinition} + \@ifundefined{example}{% + \newtheorem{example}[theorem]{Example} + }{} + \@ifundefined{definition}{% + \newtheorem{definition}[theorem]{Definition} + }{} + \fi + \theoremstyle{acmplain} +} +\def\@proofnamefont{\scshape} +\def\@proofindent{\indent} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@proofnamefont{\itshape} + \def\@proofindent{\noindent} +\or % sigchi +\or % sigchi-a \fi +\renewenvironment{proof}[1][\proofname]{\par + \pushQED{\qed}% + \normalfont \topsep6\p@\@plus6\p@\relax + \trivlist + \item[\@proofindent\hskip\labelsep + {\@proofnamefont #1\@addpunct{.}}]\ignorespaces +}{% + \popQED\endtrivlist\@endpefalse +} \specialcomment{acks}{% \begingroup \section*{Acknowledgments} @@ -2375,6 +2512,7 @@ Computing Machinery] \def\grantsponsor#1#2#3{#2} \newcommand\grantnum[3][]{#3% \def\@tempa{#1}\ifx\@tempa\@empty\else\space(\url{#1})\fi} +\AtEndPreamble{% \if@ACM@screen \includecomment{screenonly} \excludecomment{printonly} @@ -2387,7 +2525,7 @@ Computing Machinery] \excludecomment{acks} \else \includecomment{anonsuppress} -\fi +\fi} \newcommand\showeprint[2][arxiv]{% \def\@tempa{#1}% \ifx\@tempa\@empty\def\@tempa{arxiv}\fi diff --git a/Master/texmf-dist/tex/latex/acmart/acmthm.sty b/Master/texmf-dist/tex/latex/acmart/acmthm.sty deleted file mode 100644 index 86d34a69027..00000000000 --- a/Master/texmf-dist/tex/latex/acmart/acmthm.sty +++ /dev/null @@ -1,137 +0,0 @@ -%% -%% This is file `acmthm.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% acmart.dtx (with options: `acmthm') -%% -%% IMPORTANT NOTICE: -%% -%% For the copyright see the source file. -%% -%% Any modified versions of this file must be renamed -%% with new filenames distinct from acmthm.sty. -%% -%% For distribution of the original source see the terms -%% for copying and modification in the file acmart.dtx. -%% -%% This generated file may be distributed as long as the -%% 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 -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} -\ProvidesPackage{acmthm} -[2017/08/15 v1.45 Typesetting articles for Association of -Computing Machinery] -\def\@acmplainbodyfont{\itshape} -\def\@acmplainindent{\parindent} -\def\@acmplainheadfont{\scshape} -\def\@acmplainnotefont{\@empty} -\ifcase\ACM@format@nr -\relax % manuscript -\or % acmsmall -\or % acmlarge -\or % acmtog -\or % sigconf -\or % siggraph -\or % sigplan - \def\@acmplainbodyfont{\itshape} - \def\@acmplainindent{\z@} - \def\@acmplainheadfont{\bfseries} - \def\@acmplainnotefont{\normalfont} -\or % sigchi -\or % sigchi-a -\fi -\newtheoremstyle{acmplain}% - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space above - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space below - {\@acmplainbodyfont}% body font - {\@acmplainindent}% indent amount - {\@acmplainheadfont}% head font - {.}% punctuation after head - {.5em}% spacing after head - {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec -\def\@acmdefinitionbodyfont{\normalfont} -\def\@acmdefinitionindent{\parindent} -\def\@acmdefinitionheadfont{\itshape} -\def\@acmdefinitionnotefont{\@empty} -\ifcase\ACM@format@nr -\relax % manuscript -\or % acmsmall -\or % acmlarge -\or % acmtog -\or % sigconf -\or % siggraph -\or % sigplan - \def\@acmdefinitionbodyfont{\normalfont} - \def\@acmdefinitionindent{\z@} - \def\@acmdefinitionheadfont{\bfseries} - \def\@acmdefinitionnotefont{\normalfont} -\or % sigchi -\or % sigchi-a -\fi -\newtheoremstyle{acmdefinition}% - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space above - {.5\baselineskip\@plus.2\baselineskip - \@minus.2\baselineskip}% space below - {\@acmdefinitionbodyfont}% body font - {\@acmdefinitionindent}% indent amount - {\@acmdefinitionheadfont}% head font - {.}% punctuation after head - {.5em}% spacing after head - {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec -\theoremstyle{acmplain} -\newtheorem{theorem}{Theorem}[section] -\newtheorem{conjecture}[theorem]{Conjecture} -\newtheorem{proposition}[theorem]{Proposition} -\newtheorem{lemma}[theorem]{Lemma} -\newtheorem{corollary}[theorem]{Corollary} -\theoremstyle{acmdefinition} -\newtheorem{example}[theorem]{Example} -\newtheorem{definition}[theorem]{Definition} -\theoremstyle{acmplain} -\def\@proofnamefont{\scshape} -\def\@proofindent{\indent} -\ifcase\ACM@format@nr -\relax % manuscript -\or % acmsmall -\or % acmlarge -\or % acmtog -\or % sigconf -\or % siggraph -\or % sigplan - \def\@proofnamefont{\itshape} - \def\@proofindent{\noindent} -\or % sigchi -\or % sigchi-a -\fi -\renewenvironment{proof}[1][\proofname]{\par - \pushQED{\qed}% - \normalfont \topsep6\p@\@plus6\p@\relax - \trivlist - \item[\@proofindent\hskip\labelsep - {\@proofnamefont #1\@addpunct{.}}]\ignorespaces -}{% - \popQED\endtrivlist\@endpefalse -} -\endinput -%% -%% End of file `acmthm.sty'. |