From 04bf73f7dcc458922f6c26d1c868424833208c82 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Jul 2019 21:27:26 +0000 Subject: asmeconf (8jul19) git-svn-id: svn://tug.org/texlive/trunk@51583 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/bibtex/bst/asmeconf/asmeconf.bst | 104 +++++++++++++++++---- 1 file changed, 88 insertions(+), 16 deletions(-) (limited to 'Master/texmf-dist/bibtex/bst') diff --git a/Master/texmf-dist/bibtex/bst/asmeconf/asmeconf.bst b/Master/texmf-dist/bibtex/bst/asmeconf/asmeconf.bst index f7d3a5d46b9..961645f7fef 100644 --- a/Master/texmf-dist/bibtex/bst/asmeconf/asmeconf.bst +++ b/Master/texmf-dist/bibtex/bst/asmeconf/asmeconf.bst @@ -4,7 +4,7 @@ %%%%% *** https://www.asme.org/shop/proceedings/conference-publications/references *** %%%%% *** The examples given by ASME do not cover all possibilities *** %%%%% -%%%%% This file is version 1.0 dated 2019/03/24 +%%%%% This file is version 1.1 dated 2019/07/07 %%%%% %%%%% Author: John H. Lienhard V %%%%% Department of Mechanical Engineering @@ -15,13 +15,16 @@ %%%%% conformance to ASME specifications. Two new fields have been introduced for ASME %%%%% conference papers: %%%%% -%%%%% venue = {city of conference}, -%%%%% confmonth = {month, day[s] on which conference was held}, +%%%%% venue = {city of conference}, +%%%%% eventdate = {month, day[s] on which conference was held}, %% called confmonth in version 1.0 %%%%% %%%%% This approach leaves the address field as publisher's address, %%%%% and it leaves the notes field open for other uses. %%%%% -%%%%% A simple version of eprint can be used with @misc. +%%%%% Added fields: eventdate, urldate, urltype, venue +%%%%% Added: @online{...} for web publications (and aliased it to @www and @electronic) +%%%%% Added: urlprefix = {}, format.web.urldate, bbl.urldate; urltype field changes "accessed" to something else. +%%%%% Added: venue and eventdate to @inproceedings %%%%% %%%%% Feel free to edit this file to suit your own needs, but please make note of changes in this header. %%%%% @@ -89,17 +92,16 @@ ENTRY { address archive - archivePrefix author booktitle chapter collaboration - confmonth doi edition editor eid eprint + eventdate howpublished institution journal @@ -110,14 +112,15 @@ ENTRY numpages organization pages - primaryClass publisher school series title type url - venue + urldate + urltype + venue volume year } @@ -364,6 +367,10 @@ FUNCTION {bbl.rd} FUNCTION {bbl.th} { "th" } +FUNCTION {bbl.urldate} + { "accessed" } + + MACRO {jan} {"Jan."} MACRO {feb} {"Feb."} @@ -409,6 +416,17 @@ FUNCTION {eng.ord} if$ } +MACRO {arxiv} {"https://arxiv.org/abs/"} + +MACRO {googlebooks} {"http://books.google.com/books?id="} + +MACRO {hndl} {"http://hdl.handle.net/"} + +MACRO {jstor} {"http://www.jstor.org/stable/"} + +MACRO {pubmed} {"http://www.ncbi.nlm.nih.gov/pubmed/"} + + MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} @@ -488,22 +506,47 @@ FUNCTION {bibinfo.warn} FUNCTION {format.eprint} -{ eprint empty$ - { ""} - {"\href{http://arxiv.org/abs/" eprint * "}{" * eprint "}" * *} - if$ +{ eprint duplicate$ empty$ + 'skip$ + { "\eprint" + archive empty$ + { "there's an eprint but no archive in " cite$ * warning$ } + { "[" * archive * "]" * } + if$ + "{" * swap$ * "}" * + } + if$ } +FUNCTION {format.web.urldate} +{ urldate empty$ + {""} + {urldate "urldate" bibinfo.check + urltype duplicate$ empty$ + { pop$ bbl.urldate } + 'skip$ + if$ + "urltype" bibinfo.check + swap$ duplicate$ empty$ + { pop$ "t" change.case$ } + { tie.or.space.prefix * * } + if$ + ", " * + } + if$ +} + FUNCTION {format.url} { url duplicate$ empty$ { pop$ "" } - { "\urlprefix\url{" swap$ * "}" * } + { "\urlprefix\url{" swap$ * "}" * + format.web.urldate swap$ * + } if$ } - INTEGERS { nameptr namesleft numnames } @@ -1290,7 +1333,7 @@ FUNCTION {inproceedings} format.pages "pages" output.check new.sentence venue output - confmonth output + eventdate output format.thesis.year "year" output.check new.sentence publisher empty$ @@ -1478,6 +1521,35 @@ FUNCTION {techreport} fin.entry } +FUNCTION {online} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + } + { format.authors output.nonnull + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + format.title + "title" output.check + new.block + organization "organization" bibinfo.warn output + address "address" bibinfo.check output + format.date "year" output.check + format.doi output + format.note output + format.eprint output + format.url "url" bibinfo.warn output + fin.entry +} + +FUNCTION {electronic} { online } + +FUNCTION {www} { online } + FUNCTION {unpublished} { output.bibitem format.authors "author" output.check @@ -1533,7 +1605,7 @@ FUNCTION {begin.bib} write$ newline$ " \providecommand{\doi}{DOI \discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi" write$ newline$ - "\providecommand{\eprint}[2][]{\url{#2}}" + "\providecommand{\eprint}[2][]{\urlprefix\href{#1#2}{#1#2}}" write$ newline$ } EXECUTE {begin.bib} -- cgit v1.2.3