summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/bibtex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-06 21:23:29 +0000
committerKarl Berry <karl@freefriends.org>2021-12-06 21:23:29 +0000
commit8a215a4751b40779704e0abbe4e1282a5e192ad2 (patch)
treedcf192cdcbe75027b9a3fc1a696c788eb17cb669 /Master/texmf-dist/bibtex
parent10aaed81155d650788318b7e044f625530a1e6fc (diff)
acmart (6dec21)
git-svn-id: svn://tug.org/texlive/trunk@61233 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/bibtex')
-rw-r--r--Master/texmf-dist/bibtex/bst/acmart/ACM-Reference-Format.bst25
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