From 23874e3b30e5dbeba8cb8d27231c6c247e7f97dc Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 6 Jan 2011 00:17:06 +0000 Subject: rsc 3.1d (4jan11) git-svn-id: svn://tug.org/texlive/trunk@20942 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/bibtex/bst/rsc/angew.bst | 31 +++++++++++++++++++++++++++--- Master/texmf-dist/bibtex/bst/rsc/rsc.bst | 31 +++++++++++++++++++++++++++--- 2 files changed, 56 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/bibtex') diff --git a/Master/texmf-dist/bibtex/bst/rsc/angew.bst b/Master/texmf-dist/bibtex/bst/rsc/angew.bst index 316263279be..f598f0717e4 100644 --- a/Master/texmf-dist/bibtex/bst/rsc/angew.bst +++ b/Master/texmf-dist/bibtex/bst/rsc/angew.bst @@ -20,6 +20,7 @@ ENTRY chapter ctrl-use-title ctrl-etal-number + ctrl-link-doi ctrl-use-doi-all doi edition @@ -59,7 +60,7 @@ FUNCTION {init.state.consts} #4 'after.item := } -INTEGERS { is.use.title etal.number use.doi.all } +INTEGERS { is.use.title etal.number use.doi.all link.doi } %% #0 turns off the display of the title for articles %% #1 enables @@ -72,6 +73,10 @@ FUNCTION {default.etal.number} { #0 } %% #1 enables FUNCTION {default.use.doi.all} { #0 } +%% #0 turns off hyperlinks for DOI +%% #1 enables +FUNCTION {default.link.doi} { #0 } + FUNCTION {add.comma} { ", " * } @@ -510,7 +515,19 @@ FUNCTION {format.doi} { use.doi.all { doi empty$ 'skip$ - { bbl.doi doi tie.or.space.connect output } + { + link.doi + { + "\href{http://dx.doi.org/" + doi * + "}{" * + bbl.doi doi tie.or.space.connect * + "}" * + } + { bbl.doi doi tie.or.space.connect } + if$ + output + } if$ } 'skip$ @@ -1234,6 +1251,13 @@ FUNCTION {Control} yes.no.to.int 'use.doi.all := } if$ + ctrl-link-doi + empty$ + { skip$ } + { ctrl-link-doi + yes.no.to.int + 'link.doi := } + if$ } FUNCTION {conference} {inproceedings} @@ -1261,6 +1285,7 @@ FUNCTION {initialize.controls} { default.is.use.title 'is.use.title := default.etal.number 'etal.number := default.use.doi.all 'use.doi.all := + default.link.doi 'link.doi := } INTEGERS { len } @@ -1473,7 +1498,7 @@ FUNCTION {end.bib} EXECUTE {end.bib} %% -%% Copyright (C) 2006-2009 by +%% Copyright (C) 2006-2009,2011 by %% Joseph Wright %% %% It may be distributed and/or modified under the conditions of diff --git a/Master/texmf-dist/bibtex/bst/rsc/rsc.bst b/Master/texmf-dist/bibtex/bst/rsc/rsc.bst index cd9785e103b..b912ae1cae7 100644 --- a/Master/texmf-dist/bibtex/bst/rsc/rsc.bst +++ b/Master/texmf-dist/bibtex/bst/rsc/rsc.bst @@ -20,6 +20,7 @@ ENTRY chapter ctrl-use-title ctrl-etal-number + ctrl-link-doi ctrl-use-doi-all doi edition @@ -59,7 +60,7 @@ FUNCTION {init.state.consts} #4 'after.item := } -INTEGERS { is.use.title etal.number use.doi.all } +INTEGERS { is.use.title etal.number use.doi.all link.doi } %% #0 turns off the display of the title for articles %% #1 enables @@ -72,6 +73,10 @@ FUNCTION {default.etal.number} { #0 } %% #1 enables FUNCTION {default.use.doi.all} { #0 } +%% #0 turns off hyperlinks for DOI +%% #1 enables +FUNCTION {default.link.doi} { #0 } + FUNCTION {add.comma} { ", " * } @@ -503,7 +508,19 @@ FUNCTION {format.doi} { use.doi.all { doi empty$ 'skip$ - { bbl.doi doi tie.or.space.connect output } + { + link.doi + { + "\href{http://dx.doi.org/" + doi * + "}{" * + bbl.doi doi tie.or.space.connect * + "}" * + } + { bbl.doi doi tie.or.space.connect } + if$ + output + } if$ } 'skip$ @@ -1227,6 +1244,13 @@ FUNCTION {Control} yes.no.to.int 'use.doi.all := } if$ + ctrl-link-doi + empty$ + { skip$ } + { ctrl-link-doi + yes.no.to.int + 'link.doi := } + if$ } FUNCTION {conference} {inproceedings} @@ -1254,6 +1278,7 @@ FUNCTION {initialize.controls} { default.is.use.title 'is.use.title := default.etal.number 'etal.number := default.use.doi.all 'use.doi.all := + default.link.doi 'link.doi := } INTEGERS { len } @@ -1466,7 +1491,7 @@ FUNCTION {end.bib} EXECUTE {end.bib} %% -%% Copyright (C) 2006-2009 by +%% Copyright (C) 2006-2009,2011 by %% Joseph Wright %% %% It may be distributed and/or modified under the conditions of -- cgit v1.2.3