From d483d1bf630e7013b1f63f6a5f8484fe8c367257 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 16 Dec 2017 21:29:01 +0000 Subject: acmart (16dec17) git-svn-id: svn://tug.org/texlive/trunk@46077 c570f23f-e606-0410-a88d-b1316a301751 --- .../bibtex/bst/acmart/ACM-Reference-Format.bst | 688 ++------- Master/texmf-dist/doc/latex/acmart/Makefile | 8 +- Master/texmf-dist/doc/latex/acmart/README | 165 +- Master/texmf-dist/doc/latex/acmart/acmart.bib | 104 +- Master/texmf-dist/doc/latex/acmart/acmart.pdf | Bin 769674 -> 798564 bytes Master/texmf-dist/doc/latex/acmart/acmguide.pdf | Bin 448923 -> 415193 bytes .../doc/latex/acmart/sample-acmlarge.pdf | Bin 632212 -> 633124 bytes .../doc/latex/acmart/sample-acmlarge.tex | 14 +- .../doc/latex/acmart/sample-acmsmall.pdf | Bin 634672 -> 635483 bytes .../doc/latex/acmart/sample-acmsmall.tex | 18 +- .../texmf-dist/doc/latex/acmart/sample-acmtog.pdf | Bin 597496 -> 598343 bytes .../texmf-dist/doc/latex/acmart/sample-acmtog.tex | 12 +- .../latex/acmart/sample-bibliography-biblatex.bib | 1595 ++++++++++++++++++++ .../latex/acmart/sample-bibliography-sigchi-a.bib | 164 ++ .../doc/latex/acmart/sample-bibliography.bib | 625 ++++---- .../doc/latex/acmart/sample-manuscript.pdf | Bin 635260 -> 636135 bytes .../doc/latex/acmart/sample-manuscript.tex | 12 +- .../doc/latex/acmart/sample-sigchi-a.pdf | Bin 1281647 -> 1281697 bytes .../doc/latex/acmart/sample-sigchi-a.tex | 40 +- .../texmf-dist/doc/latex/acmart/sample-sigchi.pdf | Bin 1103624 -> 1104534 bytes .../texmf-dist/doc/latex/acmart/sample-sigchi.tex | 30 +- .../latex/acmart/sample-sigconf-authordraft.pdf | Bin 650011 -> 650758 bytes .../latex/acmart/sample-sigconf-authordraft.tex | 24 +- .../doc/latex/acmart/sample-sigconf-biblatex.tex | 185 +++ .../texmf-dist/doc/latex/acmart/sample-sigconf.pdf | Bin 645647 -> 646412 bytes .../texmf-dist/doc/latex/acmart/sample-sigconf.tex | 28 +- .../texmf-dist/doc/latex/acmart/sample-sigplan.pdf | Bin 985630 -> 986493 bytes .../texmf-dist/doc/latex/acmart/sample-sigplan.tex | 30 +- .../doc/latex/acmart/samplebody-conf.tex | 10 +- .../doc/latex/acmart/samplebody-journals.tex | 15 +- Master/texmf-dist/doc/latex/acmart/sigchi-a.bib | 164 -- Master/texmf-dist/source/latex/acmart/acmart.dtx | 1501 +++++++++--------- .../tex/latex/acmart/ACM-Reference-Format.bbx | 819 ++++++++++ .../tex/latex/acmart/ACM-Reference-Format.cbx | 5 + .../tex/latex/acmart/ACM-Reference-Format.dbx | 18 + Master/texmf-dist/tex/latex/acmart/acmart.cls | 172 ++- 36 files changed, 4407 insertions(+), 2039 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/acmart/sample-bibliography-biblatex.bib create mode 100644 Master/texmf-dist/doc/latex/acmart/sample-bibliography-sigchi-a.bib create mode 100644 Master/texmf-dist/doc/latex/acmart/sample-sigconf-biblatex.tex delete mode 100644 Master/texmf-dist/doc/latex/acmart/sigchi-a.bib create mode 100644 Master/texmf-dist/tex/latex/acmart/ACM-Reference-Format.bbx create mode 100644 Master/texmf-dist/tex/latex/acmart/ACM-Reference-Format.cbx create mode 100644 Master/texmf-dist/tex/latex/acmart/ACM-Reference-Format.dbx (limited to 'Master') 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 997485ade21..f79017ea74a 100644 --- a/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst +++ b/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst @@ -23,11 +23,13 @@ ENTRY author booktitle chapter - city - date + city + date edition editor eprint + eprinttype + eprintclass howpublished institution journal @@ -48,7 +50,7 @@ ENTRY % New keys recognized issue % UTAH: used in, e.g., ACM SIGSAM Bulletin and ACM Communications in Computer Algebra articleno - eid + eid day % UTAH: needed for newspapers, weeklies, bi-weeklies doi % UTAH url % UTAH @@ -433,11 +435,11 @@ FUNCTION { format.articleno } { "" } { numpages empty.or.unknown - { "articleno or eid field, but no numpages field, in " + { "articleno or eid field, but no numpages field, in " cite$ * warning$ } { } if$ - eid empty.or.unknown + eid empty.or.unknown { "Article \bibinfo{articleno}{" articleno * "}" * } { "Article \bibinfo{articleno}{" eid * "}" * } if$ @@ -578,14 +580,11 @@ FUNCTION { output.doi } % UTAH doi empty.or.unknown { } { - %% NB: We want URLs at beginning of line to reduce likelihood of - %% BibTeX's nasty line wrapping after column 79, which then requires - %% manual (or automated) editing of the .bbl file to repair. - %% The \url{} macro strips percent-newlines, and is thus safe in - %% the presence of the line wrapping, but \path|...| and - %% \verb|...| do not. - "\showDOI{%" writeln - "\url{https://doi.org/" strip.doi * "}}" * writeln + %% Use \urldef here for the same reason it is used in output.url, + %% see output.url for further discussion. + "\urldef\tempurl%" writeln + "\url{https://doi.org/" strip.doi * "}" * writeln + "\showDOI{\tempurl}" writeln } if$ } @@ -673,13 +672,21 @@ FUNCTION { output.eprint } % { } { "\showeprint" archiveprefix empty.or.unknown - { } - { "[" archiveprefix "l" change.case$ "]" * * * } + { eprinttype empty.or.unknown + { } + { "[" eprinttype "]" * * * } + if$ + } + { "[" archiveprefix "l" change.case$ "]" * * * } if$ "{" * primaryclass empty.or.unknown - { } - { primaryclass "/" * *} + { eprintclass empty.or.unknown + { } + { eprintclass "/" * * } + if$ + } + { primaryclass "/" * * } if$ eprint "}" * * writeln @@ -700,52 +707,22 @@ FUNCTION { output.url } % UTAH url empty.or.unknown { } { - %% NB: We want URLs at beginning of line to reduce likelihood of - %% BibTeX's nasty line wrapping after column 79, which would require - %% manual (or automated) editing of the .bbl file to repair. However, - %% the \url{} macro handles the unwrapping job automatically. + %% Use \urldef, outside \showURL, so that %nn, #, etc in URLs work + %% correctly. Put the actual URL on its own line to reduce the + %% likelihood of BibTeX's nasty line wrapping after column 79. + %% \url{} can undo this, but if that doesn't work for some reason + %% the .bbl file would have to be repaired manually. + "\urldef\tempurl%" writeln + "\url{" url * "}" * writeln + "\showURL{%" writeln lastaccessed empty.or.unknown { "" } { "Retrieved " lastaccessed * " from " * } if$ - - %% The URL field may contain a semicolon-separated list of Web - %% addresses, and we locate and wrap each of them in \url{...}. - %% The simplistic approach of putting the entire list into the - %% macro argument is that the semicolons are typeset in a - %% typewriter font, and no space follows them. - %% - %% We therefore replace the original code - %% "\url{" * url * "}}" * writeln - %% with this character-at-a-time loop: - - "\url{" * - - url 't := % get modifiable copy of URL list - - { t text.length$ } - { - t #1 #1 substring$ ";" = - { % then split argument at separator - "};" * writeln - "\url{" - } - { % else concatenate nonblank character to argument - t #1 #1 substring$ " " = - { } - { t #1 #1 substring$ * } - if$ - } - if$ - - t #2 t text.length$ #1 - substring$ 't := - } - while$ - - "}}" * writeln + "\tempurl}" * writeln } - if$ + if$ } { } if$ @@ -754,9 +731,9 @@ FUNCTION { output.url } % UTAH FUNCTION { output.year.check } { % warn if year empty, output top string and leave " YEAR