diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-28 21:32:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-28 21:32:01 +0000 |
commit | b93e30db8606f12389976318678d926f36a32f02 (patch) | |
tree | 13a1ab66fbc3bd65556063817fd21d5db2ccb805 /Master/texmf-dist/bibtex | |
parent | aae1d79f28d9a96e40d2bbeea4b485a716aa8f72 (diff) |
resphilosophica (28dec18)
git-svn-id: svn://tug.org/texlive/trunk@49514 c570f23f-e606-0410-a88d-b1316a301751
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$ |