diff options
author | Norbert Preining <norbert@preining.info> | 2023-07-05 03:01:54 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-07-05 03:01:54 +0000 |
commit | 973c785dccc1812d63162178e8362e83e8c263c2 (patch) | |
tree | b2cb12a6b36a0a59e90f1611d32cf7e8d125d575 /macros/latex/contrib/tugboat/tugboat.bst | |
parent | ab7f5e4df027c13f5aef4fbdb032184cf2f3d5c3 (diff) |
CTAN sync 202307050301
Diffstat (limited to 'macros/latex/contrib/tugboat/tugboat.bst')
-rw-r--r-- | macros/latex/contrib/tugboat/tugboat.bst | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/macros/latex/contrib/tugboat/tugboat.bst b/macros/latex/contrib/tugboat/tugboat.bst index 1129bb8ab5..403256d1a4 100644 --- a/macros/latex/contrib/tugboat/tugboat.bst +++ b/macros/latex/contrib/tugboat/tugboat.bst @@ -1,4 +1,4 @@ -%%% $Id: tugboat.bst 462 2023-03-08 17:26:54Z karl $ +%%% $Id: tugboat.bst 487 2023-06-22 22:39:59Z karl $ %%% TUGboat changes are public domain. %%% %%% Modified for TUGboat from abbrvurl.bst: @@ -28,7 +28,7 @@ %%% "nowarning" - if set, omit empty field warnings from output.check. %%% "prebibitem" - material output before \bibitem, with newline appended %%% (for example, section headings). -%%% "urlnewline" - force line break before url value; +%%% "urlnewline" - force line break before url or doi value; %%% --karl, originally created 24jul18. %%% %%% Modification of BibTeX style file /usr/local/texlive/2009/texmf-dist/bibtex/bst/base/abbrv.bst @@ -85,6 +85,7 @@ ENTRY version % ctan % journaltie % tub + monthtie % tub newpage % tub nowarning % tub prebibitem % tub @@ -189,9 +190,10 @@ FUNCTION {output.nonnull.original} { last.output.check "journal" = not { ", " * } { journaltie empty$ not - { "~" * } - { " " * } + { "~" } + { " " } if$ + * } if$ write$ @@ -350,10 +352,18 @@ FUNCTION {output.bibitem.original} % urlbst (renamed from output.bibitem, so it before.all 'output.state := } -FUNCTION {fin.entry.original} % urlbst (renamed from fin.entry, so it can be wrapped below) +% we wrap this function below to handle urls. +% The url string to print (of whatever sort) is on the stack to write$. +% If the `urlnewline' field is set, write "\newline" first. +FUNCTION {fin.entry.original} % urlbst (renamed from fin.entry) { doi empty$ url empty$ and { add.period$ } - { skip$ } + { + urlnewline empty$ not + { "\newline " write$ } + 'skip$ + if$ + } if$ write$ newline$ @@ -600,7 +610,14 @@ FUNCTION {format.date} } { month empty$ 'year - { month " " * year * } + { month + monthtie empty$ not + { "~" } + { " " } + if$ + * + year * + } if$ } if$ @@ -1033,17 +1050,11 @@ FUNCTION {format.doi} % so that `format.url format.lastchecked * output' ends up with both % the URL and the lastchecked in brackets. % -% If the `urlnewline' field is present, output \newline before the -% url value. FUNCTION {output.url} { url empty$ 'skip$ { new.block format.url output - urlnewline empty$ not - { "\newline " write$ } - 'skip$ - if$ format.lastchecked output } if$ @@ -1108,10 +1119,10 @@ FUNCTION {fin.entry} % Title and url fields required; % author, note, year, month, and lastchecked fields optional % See references -% ISO 690-2 http://www.nlc-bnc.ca/iso/tc46sc9/standard/690-2e.htm -% http://www.classroom.net/classroom/CitingNetResources.html -% http://neal.ctstateu.edu/history/cite.html -% http://www.cas.usf.edu/english/walker/mla.html +% [gone] ISO 690-2 http://www.nlc-bnc.ca/iso/tc46sc9/standard/690-2e.htm +% [gone] http://www.classroom.net/classroom/CitingNetResources.html +% [gone] http://neal.ctstateu.edu/history/cite.html +% [gone] http://www.cas.usf.edu/english/walker/mla.html % for citation formats for web pages. FUNCTION {webpage} { output.bibitem @@ -1130,7 +1141,8 @@ FUNCTION {webpage} new.block title empty$ 'skip$ 'possibly.setup.inlinelink if$ format.title "title" output.check - inbrackets onlinestring output + % This causes the year to be output in brackets, which we don't want: + % inbrackets onlinestring output new.block year empty$ 'skip$ |