summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asmeconf/asmeconf.bst
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/asmeconf/asmeconf.bst')
-rw-r--r--macros/latex/contrib/asmeconf/asmeconf.bst42
1 files changed, 36 insertions, 6 deletions
diff --git a/macros/latex/contrib/asmeconf/asmeconf.bst b/macros/latex/contrib/asmeconf/asmeconf.bst
index 2882591d68..1dcbf48a66 100644
--- a/macros/latex/contrib/asmeconf/asmeconf.bst
+++ b/macros/latex/contrib/asmeconf/asmeconf.bst
@@ -1,10 +1,10 @@
%%%%%
-%%%%% *** This .bst produces the reference format for ASME conference papers. ***
-%%%%% *** Follows the examples given on ASME's conference web pages in early 2020. ***
-%%%%% *** https://www.asme.org/shop/proceedings/conference-publications/references ***
-%%%%% *** The examples given by ASME do *not* cover all possibilities ***
+%%%%% *** This .bst produces the reference format for ASME conference papers. ***
+%%%%% *** Follows the examples given on ASME's conference web pages in early 2021. ***
+%%%%% *** https://www.asme.org/publications-submissions/proceedings/author-guidelines/elements-of-a-paper/references ***
+%%%%% *** The examples given by ASME do *not* cover all possibilities ***
%%%%%
-%%%%% This file is version 1.11 dated 2020/04/14
+%%%%% This file is version 1.12 dated 2021/01/04
%%%%%
%%%%% Author: John H. Lienhard V
%%%%% Department of Mechanical Engineering
@@ -26,6 +26,10 @@
%%%%% Added: urlprefix = {}, format.web.urldate, bbl.urldate; urltype field changes "accessed" to something else.
%%%%% Added: venue and eventdate to @inproceedings
%%%%%
+%%%%% Edits in version 1.12, 2021/01/04:
+%%%%% Added fields: version={}, format.version, to @book, @inbook, @online, @manual;
+%%%%% versiontype = {}, with bbl.version, changes "Version" to other
+%%%%%
%%%%% Edits in version 1.11, 2020/04/14:
%%%%% correct error in journal eid code.
%%%%% remove comma between Vol. and No. in article, per ASME style
@@ -136,7 +140,9 @@ ENTRY
url
urldate
urltype
- venue
+ venue
+ version
+ versiontype
volume
year
}
@@ -389,6 +395,8 @@ FUNCTION {bbl.th}
FUNCTION {bbl.urldate}
{ "Accessed" }
+FUNCTION {bbl.version}
+ { "Version" }
MACRO {jan} {"Jan."}
@@ -617,6 +625,23 @@ FUNCTION {format.eprint}
if$
}
+FUNCTION {format.version}
+{ version empty$
+ {""}
+{version "version" bibinfo.check
+ versiontype duplicate$ empty$
+ { pop$ bbl.version }
+ 'skip$
+ if$
+ "versiontype" bibinfo.check
+ swap$ duplicate$ empty$
+ { pop$ "t" change.case$ }
+ { tie.or.space.prefix * * }
+ if$
+}
+if$
+}
+
FUNCTION {format.url}
{
url
@@ -1303,6 +1328,7 @@ FUNCTION {book}
new.block
format.btitle "title" output.check
format.edition output
+ format.version output
new.block
crossref missing$
{ format.bvolume output
@@ -1359,6 +1385,7 @@ FUNCTION {inbook}
new.block
format.btitle "title" output.check
format.edition output
+ format.version output
new.block
crossref missing$
{
@@ -1476,6 +1503,7 @@ FUNCTION {manual}
new.block
format.btitle "title" output.check
format.edition output
+ format.version output
new.block
author empty$
{ organization empty$
@@ -1557,6 +1585,8 @@ FUNCTION {online}
format.title
"title" output.check
new.block
+ format.version output
+ new.block
organization "organization" bibinfo.warn output
address "address" bibinfo.check output
format.date "year" output.check