summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/bibtex/bst
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-10-27 20:11:04 +0000
committerKarl Berry <karl@freefriends.org>2024-10-27 20:11:04 +0000
commit04eede1907d5d9d3d8fa87a186fb5013f0e2ddd7 (patch)
treea4b9e605d2152c1621833f5debe8bd3c5652c72f /Master/texmf-dist/bibtex/bst
parent6b5f7b246683d139c4106597423eaf59421a4bbd (diff)
tugboat (27oct24)
git-svn-id: svn://tug.org/texlive/trunk@72676 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/bibtex/bst')
-rw-r--r--Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst47
1 files changed, 30 insertions, 17 deletions
diff --git a/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst b/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst
index ce1a5c34767..940fb8bc92e 100644
--- a/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst
+++ b/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst
@@ -1,9 +1,10 @@
-%%% $Id: tugboat.bst 557 2024-03-31 15:56:24Z karl $
+%%% $Id: tugboat.bst 593 2024-10-07 18:02:33Z karl $
%%% TUGboat changes are public domain.
%%%
%%% Modified for TUGboat from abbrvurl.bst:
-%%% New entry types: @ctan (see ctanbib);
-%%% @online and @software (aliases for @misc).
+%%% New entry types: @ctan (see ctanbib package);
+%%% @online and @software (aliases for @misc);
+%%% @webpage (see definition below).
%%% For @misc, the editor field is accepted along with author.
%%% For @misc, the organization field is output.
%%% New field bookauthor for @incollection and @inproceedings.
@@ -18,9 +19,9 @@
%%% Set urlintro="" and onlinestring="" to omit labels from output.
%%% Use \url instead of \href, so we don't require hyperref.
%%% Always use https://doi.org/ for the doi url; omit "doi:" from output.
-%%% If doi or howpublished is present, omit url, since in practice
-%%% they are usually all the same thing. Should check if
-%%% howpublished is in fact a url, but we currently don't.
+%%% If doi is present, omit url, since in practice they are usually
+%%% the same thing. Should also omit if howpublished is the same
+%%% value, but we currently don't.
%%% Truncate long author lists in format.names (max.names, trunc.num);
%%% omit "and" from author lists, per Oren P.
%%% Use \emph instead of \em so we get automatic italic corrections.
@@ -28,6 +29,7 @@
%%% "journaltie" - ~ instead of space after journal name.
%%% "monthtie" - ~ instead of space after month name.
%%% "newpage" - force page break after entry.
+%%% "nojournalcomma" - if set, omit comma after journal name.
%%% "nowarning" - if set, omit empty field warnings from output.check.
%%% "pagesnodashify" - if set, don't convert - to -- in pages field.
%%% "prebibitem" - material output before \bibitem, with newline appended
@@ -91,6 +93,7 @@ ENTRY
journaltie % tub
monthtie % tub
newpage % tub
+ nojournalcomma % tub
nowarning % tub
pagesnodashify % tub
prebibitem % tub
@@ -197,8 +200,9 @@ FUNCTION {output.nonnull.original}
journal missing$
or
{ ", " * } % not a journal, normal comma+space separator
- { journal "TUGboat" = journal "\TUB" = or
- { skip$ } % TUGboat, no comma
+ { journal "TUGboat" = journal "\TUB" = or
+ nojournalcomma empty$ not or
+ { skip$ } % TUGboat or no comma requested
{ "," * } % not TUGboat, want comma
if$
journaltie empty$
@@ -816,7 +820,11 @@ FUNCTION {format.vol.num.pages}
'skip$
{ "(" number * ")" * *
volume empty$
- { "there's a number but no volume in " cite$ * warning$ }
+ { nowarning empty$
+ { "there's a number but no volume in " cite$ * warning$ }
+ 'skip$
+ if$
+ }
'skip$
if$
}
@@ -1009,19 +1017,24 @@ FUNCTION {make.href}
if$
}
-% If inlinelinks is true, then format.url should be a no-op, since it's
-% (a) redundant, and (b) could end up as a link-within-a-link.
-% Likewise if the url is empty.
-% Likewise if doi or howpublished is present, on the assumption that
-% url most likely redundantly specifies the same info as those fields; this
-% seems to be what people do in practice.
+% This function, format.url, should do nothing if
+% - inlinelinks is true, since then it's (a) redundant, and (b) could
+% end up as a link-within-a-link.
+% - if the url is empty.
+% - if the doi field is present, on the assumption that it most
+% likely redundantly specifies the same info; this seems to be what
+% people do in practice, unfortunately.
+%
+% If we find this case again in the future, we'll implement it.
+% For tb141lang-dh, howpublished is intentionally and reasonably
+% separate from url.
+% - if the howpublished field contains the same value as the url field;
FUNCTION {format.url}
{ inlinelinks #1 = url empty$ or
doi empty$ not or
- howpublished empty$ not or
{ "" }
{ hrefform #1 =
- { % special case -- add HyperTeX specials
+ { % #1 means add HyperTeX, which we never do
urlintro "\url{" url * "}" * url make.href.hypertex * }
{ urlintro "\url{" * url * "}" * }
if$