summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tugboat/tugboat.bst
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-13 03:02:35 +0000
committerNorbert Preining <norbert@preining.info>2020-03-13 03:02:35 +0000
commit7f2b2a9d664831db3f6dcb985d3a10212ce3b752 (patch)
tree5b5ca88ef53ca03a6e4d8232ae8964bf2001b053 /macros/latex/contrib/tugboat/tugboat.bst
parentc4777604044f5d7ed37fd9e47edd58b44630a66d (diff)
CTAN sync 202003130302
Diffstat (limited to 'macros/latex/contrib/tugboat/tugboat.bst')
-rw-r--r--macros/latex/contrib/tugboat/tugboat.bst18
1 files changed, 14 insertions, 4 deletions
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$
}