diff options
Diffstat (limited to 'Master/texmf-dist/bibtex')
-rw-r--r-- | Master/texmf-dist/bibtex/bst/resphilosophica/resphilosophica.bst | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Master/texmf-dist/bibtex/bst/resphilosophica/resphilosophica.bst b/Master/texmf-dist/bibtex/bst/resphilosophica/resphilosophica.bst index 67679bdd167..436ae6cf327 100644 --- a/Master/texmf-dist/bibtex/bst/resphilosophica/resphilosophica.bst +++ b/Master/texmf-dist/bibtex/bst/resphilosophica/resphilosophica.bst @@ -540,12 +540,30 @@ FUNCTION {format.editors} +% +% We print url only if (1) it is NOT a doi, or (2) doi is empty +% + FUNCTION {format.note} { new.sentence url empty$ 'skip$ - { "\urlprefix\url{" url * "}" * output } + { + url 's := + s #1 #14 substring$ "http://doi.org" = + s #1 #17 substring$ "http://dx.doi.org" = + or + s #1 #15 substring$ "https://doi.org" = + or + s #1 #18 substring$ "https://dx.doi.org" = + or + doi empty$ not + and + 'skip$ + { "\urlprefix\url{" s * "}" * output } + if$ + } if$ new.sentence doi empty$ |