From 2a472d54878ef0ee4d5785a7b5110b4e088cde9d Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Wed, 18 Apr 2018 17:47:48 +0800 Subject: [PATCH] fix doi check --- ustcauthoryear.bst | 4 ++-- ustcbachelor.bst | 4 ++-- ustcnumerical.bst | 4 ++-- ustcthesis.dtx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ustcauthoryear.bst b/ustcauthoryear.bst index a7423d3..ad3652f 100644 --- a/ustcauthoryear.bst +++ b/ustcauthoryear.bst @@ -463,7 +463,8 @@ FUNCTION {format.doi} { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or - { s is.doi.in.url not + { s empty$ s is.doi.in.url or + 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } @@ -471,7 +472,6 @@ FUNCTION {format.doi} if$ "\doi{" s * "}" * * } - 'skip$ if$ "" 's := } diff --git a/ustcbachelor.bst b/ustcbachelor.bst index 1ed280c..171c610 100644 --- a/ustcbachelor.bst +++ b/ustcbachelor.bst @@ -462,7 +462,8 @@ FUNCTION {format.doi} { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or - { s is.doi.in.url not + { s empty$ s is.doi.in.url or + 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } @@ -470,7 +471,6 @@ FUNCTION {format.doi} if$ "\doi{" s * "}" * * } - 'skip$ if$ "" 's := } diff --git a/ustcnumerical.bst b/ustcnumerical.bst index e06857c..652d6a0 100644 --- a/ustcnumerical.bst +++ b/ustcnumerical.bst @@ -463,7 +463,8 @@ FUNCTION {format.doi} { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or - { s is.doi.in.url not + { s empty$ s is.doi.in.url or + 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } @@ -471,7 +472,6 @@ FUNCTION {format.doi} if$ "\doi{" s * "}" * * } - 'skip$ if$ "" 's := } diff --git a/ustcthesis.dtx b/ustcthesis.dtx index a59667a..43d9ce9 100644 --- a/ustcthesis.dtx +++ b/ustcthesis.dtx @@ -2643,7 +2643,8 @@ FUNCTION {format.doi} { t empty$ not} { t #1 #1 substring$ 'tmp.str := tmp.str "," = tmp.str " " = or - { s is.doi.in.url not + { s empty$ s is.doi.in.url or + 'skip$ { numnames #1 + 'numnames := numnames #1 > { ", " * } @@ -2651,7 +2652,6 @@ FUNCTION {format.doi} if$ "\doi{" s * "}" * * } - 'skip$ if$ "" 's := }