diff options
Diffstat (limited to 'Master/texmf-dist/bibtex/bst/bibhtml/plainhtml.bst')
-rw-r--r-- | Master/texmf-dist/bibtex/bst/bibhtml/plainhtml.bst | 50 |
1 files changed, 14 insertions, 36 deletions
diff --git a/Master/texmf-dist/bibtex/bst/bibhtml/plainhtml.bst b/Master/texmf-dist/bibtex/bst/bibhtml/plainhtml.bst index f40c226132b..28ea144bf77 100644 --- a/Master/texmf-dist/bibtex/bst/bibhtml/plainhtml.bst +++ b/Master/texmf-dist/bibtex/bst/bibhtml/plainhtml.bst @@ -1,15 +1,18 @@ -%% plainhtml.bst, version 1.1 -%% Copyright 1999, 2005, Norman Gray. +%% plainhtml.bst %% -%% Part of bibhtml, Norman Gray <norman@astro.gla.ac.uk>, April 1996 +%% Part of bibhtml, version 1.3, released 2006 October 31 +%% See <http://purl.org/nxg/dist/bibhtml> +%% +%% Copyright 1999, 2005, 2006, Norman Gray <norman@astro.gla.ac.uk> % -% $Id: plainhtml.bst,v 1.2 2005/09/19 16:10:52 norman Exp $ +% $Id: plainhtml.bst.in,v 1.2 2006/10/31 15:45:57 norman Exp $ % % Released under the terms of the GNU General Public Licence -- % see the file LICENCE, included in the distribution. % % Version history: -% * 19 September 2005: added `webpage' entry type, and +% 1.3 31 October 2006: added 'hrefprefix' variable; minor code tidups +% 1.2 19 September 2005: added `webpage' entry type, and % `lastchecked' field. % 1.1 6 June 1999. Tidied documenation, clarified licence. % 1.0b3 April 1998, added support for eprint field @@ -69,7 +72,7 @@ ENTRY INTEGERS { output.state before.all mid.sentence after.sentence after.block close.link } -STRINGS { s t xxxmirror } +STRINGS { s t xxxmirror hrefprefix } % Initialise state constants, and location of nearest XXX mirror (for eprints) FUNCTION {init.state.consts} @@ -79,7 +82,8 @@ FUNCTION {init.state.consts} #3 'after.block := #0 'close.link := - "xxx.lanl.gov" 'xxxmirror := + "" 'hrefprefix := % "ref:" is a good alternative + "xxx.arxiv.org" 'xxxmirror := } FUNCTION {output.nonnull} @@ -127,7 +131,7 @@ FUNCTION {output.check} FUNCTION {output.bibitem} { newline$ - "<dt><a name=" quote$ * write$ + "<dt><a name=" quote$ * hrefprefix * write$ cite$ write$ quote$ ">[" * cite$ * "] " * write$ % the <dt> is closed within output.nonnull, as long as close.link is true @@ -551,41 +555,15 @@ FUNCTION {format.article.crossref} warning$ "" } - { "In <em><a href=" quote$ * "#" * crossref * quote$ * ">" * + { "In <em><a href=" quote$ * "#" * hrefprefix * crossref * quote$ * ">" * journal * "</a></em>" * } % { "In <em>" journal * "</em>" * } if$ } { "In " key * } if$ -% " <a href=" quote$ * "#" * crossref * quote$ * ">" * crossref * "</a>" * } -%FUNCTION {format.crossref.editor} -%{ crossref empty$ -% 'skip$ -% { "<a href=" * quote$ * "#" * crossref * quote$ * " >" * } -% if$ -% editor #1 "{vv~}{ll}" format.name$ -% editor num.names$ duplicate$ -% #2 > -% { pop$ " et~al." * } -% { #2 < -% 'skip$ -% { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = -% { " et~al." * } -% { " and " * editor #2 "{vv~}{ll}" format.name$ * } -% if$ -% } -% if$ -% } -% if$ -% crossref empty$ -% 'skip$ -% { "</a>" * } -% if$ -%} - % if there is indeed a crossref, make the reference a link FUNCTION {format.crossref.editor} { crossref empty$ @@ -604,7 +582,7 @@ FUNCTION {format.crossref.editor} } if$ } - { "<a href=" quote$ * "#" * crossref * quote$ * " >[" * + { "<a href=" quote$ * "#" * hrefprefix * crossref * quote$ * " >[" * crossref * "]</a>" * } if$ |