diff options
author | Karl Berry <karl@freefriends.org> | 2021-12-06 21:23:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-12-06 21:23:29 +0000 |
commit | 8a215a4751b40779704e0abbe4e1282a5e192ad2 (patch) | |
tree | dcf192cdcbe75027b9a3fc1a696c788eb17cb669 /Master/texmf-dist/bibtex/bst | |
parent | 10aaed81155d650788318b7e044f625530a1e6fc (diff) |
acmart (6dec21)
git-svn-id: svn://tug.org/texlive/trunk@61233 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/bibtex/bst')
-rw-r--r-- | Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst | 25 |
1 files changed, 21 insertions, 4 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 bdc7bc2147d..7984639a6d9 100644 --- a/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst +++ b/Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst @@ -64,6 +64,7 @@ ENTRY isbn-13 % UTAH issn % UTAH lccn % UTAH + distinctURL % whether to print url if doi is present } {} { label.year extra.label sort.year sort.label basic.label.year} @@ -150,6 +151,16 @@ FUNCTION { empty.or.unknown } if$ } +FUNCTION { empty.or.zero } +{ + %% Examine the top entry and push 1 if it is empty, or is zero + duplicate$ empty$ + { pop$ #1 } + { "0" = } + if$ +} + + FUNCTION { writeln } { %% In BibTeX style files, the sequences @@ -737,10 +748,14 @@ FUNCTION { output.eprint } % % Changes by BV 2011/04/15. Do not output % url if doi is defined % +% +% Changes by BV 2021/11/26. Output url even if doi is defined +% if distinctURL is not zero. +% FUNCTION { output.url } % UTAH { % return with stack untouched % output URL and associated lastaccessed fields - doi empty.or.unknown + doi empty.or.unknown distinctURL empty.or.zero not or { url empty.or.unknown { } @@ -2048,10 +2063,12 @@ FUNCTION { calc.label } FUNCTION { output.bibitem } { newline$ - "\bibitem[\protect\citeauthoryear{" write$ - calc.label write$ + "\bibitem[" write$ + calc.basic.label write$ + "(" write$ sort.year write$ - "}]%" writeln + ")" write$ + "]%" writeln " {" write$ cite$ write$ "}" writeln |