From 7f2b2a9d664831db3f6dcb985d3a10212ce3b752 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 13 Mar 2020 03:02:35 +0000 Subject: CTAN sync 202003130302 --- macros/latex/contrib/tugboat/tugboat.bst | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'macros/latex/contrib/tugboat/tugboat.bst') diff --git a/macros/latex/contrib/tugboat/tugboat.bst b/macros/latex/contrib/tugboat/tugboat.bst index 3be31fa97e..57831f4832 100644 --- a/macros/latex/contrib/tugboat/tugboat.bst +++ b/macros/latex/contrib/tugboat/tugboat.bst @@ -1,4 +1,4 @@ -%%% $Id: tugboat.bst 261 2019-11-09 22:00:31Z karl $ +%%% $Id: tugboat.bst 271 2020-01-13 19:13:12Z karl $ %%% TUGboat changes are public domain. %%% %%% Modified for TUGboat from abbrvurl.bst: @@ -10,7 +10,8 @@ %%% Reduce long author lists in format.names per Mico Loretan. %%% New fields for editors: %%% "newpage" - force page break after entry; -%%% "urlnewline" - force line break before url value. +%%% "urlnewline" - force line break before url value; +%%% "journaltie" - ~ instead of space after journal name. %%% --karl, originally created 24jul18. %%% %%% Modification of BibTeX style file /usr/local/texlive/2009/texmf-dist/bibtex/bst/base/abbrv.bst @@ -61,8 +62,9 @@ ENTRY pubmed % urlbst url % urlbst lastchecked % urlbst - newpage % tub + newpage % tub urlnewline % tub + journaltie % tub } {} { label } @@ -150,15 +152,23 @@ STRINGS { s t last.output.check } % urlbst % arg on stack is what needs to be written. +% % If a journal, we want to omit the following comma, as in % "TUGboat 39(1)" instead of the default "TUGboat, 39(1)". % +% Furthermore, if field journaltie is non-empty, output a tie after the +% journal name instad of a space. +% FUNCTION {output.nonnull.original} { 's := output.state mid.sentence = { last.output.check "journal" = not { ", " * } - { " " *} + { journaltie empty$ not + { "~" * } + { " " * } + if$ + } if$ write$ } -- cgit v1.2.3