Debian Codegraph @

texmf-dist/bibtex/bst/asmejour/asmejour.bst

raw
1 %%
2 %% This is file `asmejour.bst', initially generated with the docstrip utility and extensively customized.
3 %%
4 %% *** This bibtex style follows ASME journals ***
5 %%
6 %%
7 %% This file is asmejour.bst, version 1.10 dated 2025/11/18.
8 %%
9 %% This file was generated and edited by John Lienhard.
10 %% This file is a derivative work under Clause 6 of the LPPL license.
11 %%
12 %% The generated file and the modifications are based on the formats that ASME is using in
13 %% published journal papers in early 2022. Details of the modifications follow.
14 %%
15 %% Created entry: @online{...} for web publications (and aliased it to @www and @electronic)
16 %% Created fields: eventdate, urldate, urltype, venue, fourth, fourthtype
17 %% Format for url: urlprefix = {}, format.web.urldate, bbl.urldate; urltype = {} changes "accessed" to other text.
18 %% Added fields: venue and eventdate to @inproceedings
19 %% Added field: version={}, format.version to @book, @online, @manual; versiontype = {} changes "Version" to other
20 %% Updated doi: doi url prefix updated to https://doi.org/
21 %%
22 %% Remove "emphasize" from journal article, and linked doi (or else url) to journal name (or book title)
23 %% without explicitly showing the urls. The urls may be added to the note = {..} field to display explicitly
24 %% doilink fn is similar to tex.stackexchange.com/questions/76174/set-doi-link-on-journal-name-with-bibtex-bst
25 %% Modified fin.entry to omit period after a url, including a separate version for article and book which have
26 %% hyperlinks to titles.
27 %%
28 %% Capitalize: Vol., Chap., & No.
29 %% Remove "emphasize" before comma in format.bvolume,
30 %% @incollection: move chapter and edition, change format.in.ed.booktitle, modify format for "series"
31 %%
32 %% Modify \eprint to include full url, and provided some macros for archive={..} ...
33 %% ....this format is uncommon in ASME journals so implemented only as a url (but can easily patch if needed)
34 %%
35 %% Change format.note capitalizations from "l" to "t" and "u" to "t" respectively.
36 %%
37 %% Included macros for the titles of ASME's journals, following ASME formats (updated 4/10/20)
38 %%
39 %%
40 %% Modifications in v1.03 (2020/04/12)
41 %%
42 %% @article: add warning for empty pages; change ordering of numpages "pages" for eid
43 %% @book: reorder edition, version, and volume
44 %% @inbook: reorder edition, version, volume, etc.; hyperlink title to doi, url, or eprint
45 %% @incollection: create format.doi.booktitle to hyperlink title of collection to doi, url, or eprint.
46 %% @inproceedings: move venue, eventdate, and paper number toward end; warn that address should not be used with venue;
47 %% warn for empty venue and empty date;
48 %% create format.pvolume and format.in.ed.proctitle, to permit both [paper] number and volume
49 %% print either organization or publisher but not both
50 %% add bbl.paperno = "Paper No." and enable type ={} to change it (this is not backward compatible!)
51 %% hyperlink paper number to doi, or url, or eprint by default.
52 %% @inserialcollection: new entry type created to deal with citing articles in edited volumes that
53 %% come under different titles in a an ongoing series. This changes the placement
54 %% of Vol. number in the reference, putting series name and volume in ( ) after title.
55 %% This calls a new function format.in.ed.serialtitle. Hyperlink title of book.
56 %% For most uses, ordinary @incollection will be preferred.
57 %% This edit also reverts @incollection and @inproceedings to use Series, Vol. after eds,
58 %% which is consistent with many ASME references
59 %% @proceedings: edit order of fields; warn that address should not be used with venue;
60 %% print either organization or publisher but not both;
61 %% hyperlink title of proceedings to doi, url, or eprint;
62 %% provide format.alt.link to print the hyperlink if the report number is empty.
63 %% @techrep: move report number after address; hyperlink report number to doi, url, or eprint;
64 %% provide format.alt.link to print the hyperlink if the report number is empty.
65 %% provide institution.address function
66 %%
67 %% Modifications in v1.04 (2020/04/15)
68 %% add hdl macro as a synonym for hndl
69 %% separate format.serial.volume from format.bvolume;
70 %% arrange format.bvolume to order vol and series as ", Vol. X of Series Title", which affects
71 %% @book, @inbook, @incollection, and @proceedings.
72 %%
73 %% Modifications in v1.05 (2021/12/23)
74 %% convert remaining http:// prefixes to https://
75 %% replace \href{}{} in \eprint by \url
76 %% provide \hrefurl for compatibility with LaTeX3 pdfmanagement
77 %% use \hrefurl in doilink, rather than \href
78 %% add macro text "jht" for "ASME J. Heat Transfer-Trans. ASME"
79 %%
80 %% Modifications in v1.06 (2022/12/30)
81 %% add macro text "jhmt" for "ASME J. Heat Mass Transfer"
82 %%
83 %% Modifications in v1.07 (2023/05/06)
84 %% correct code that provides \hrefurl
85 %%
86 %% Modifications in v1.08 (2024/02/03)
87 %% correct punctuation in journal macros
88 %%
89 %% Modifications in v1.09 (2025/04/04)
90 %% support chapter and page in @book
91 %%
92 %% Modifications in v1.11 (2025/11/18)
93 %% change \textit to \emph in FUNCTION {emphasize}, for
94 %% semantic meaning in HTML conversion.
95 %%
96 %% Author: John H. Lienhard V
97 %% Department of Mechanical Engineering
98 %% Massachusetts Institute of Technology
99 %% Cambridge, MA 02139-4307 USA
100 %%
101 %========================================================================
102 %% LICENSE:
103 %%
104 %% Copyright (c) 2020 John H. Lienhard
105 %%
106 %% Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
107 %% associated documentation files (the "Software"), to deal in the Software without restriction,
108 %% including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
109 %% and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
110 %% subject to the following conditions:
111 %%
112 %% The above copyright notice and this permission notice shall be included in all copies or
113 %% substantial portions of the Software.
114 %%
115 %% The software is provided "as is", without warranty of any kind, express or implied, including but
116 %% not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement.
117 %% in no event shall the authors or copyright holders be liable for any claim, damages or other liability,
118 %% whether in an action of contract, tort or otherwise, arising from, out of or in connection with the
119 %% software or the use or other dealings in the software.
120 %%
121 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
122 %%
123 % The original source files for docstrip were:
124 %
125 % merlin.mbs (with options: `seq-no,nm-rev,jnrlst,dt-beg,xmth,tit-qq,atit-u,thtit-a,vol-bf,volp-com,jwdpg,pp-last,num-xser,numser,ser-vol,ser-ed,pre-edn,doi,edby,edbyy,blk-com,in-x,pp,ed,abr,ednx,ord,jabr,revdata,eprint,url,url-blk,eprint,url,url-nt,em-it,nfss,')
126 % ----------------------------------------
127 %
128 % Copyright 1994-2011 Patrick W Daly
129 % ===============================================================
130 % IMPORTANT NOTICE:
131 % This bibliographic style (bst) file has been generated from one or
132 % more master bibliographic style (mbs) files, listed above.
133 %
134 % This generated file can be redistributed and/or modified under the terms
135 % of the LaTeX Project Public License Distributed from CTAN
136 % archives in directory macros/latex/base/lppl.txt; either
137 % version 1 of the License, or any later version.
138 % ===============================================================
139 % Name and version information of the main mbs file:
140 % \ProvidesFile{merlin.mbs}[2011/11/18 4.33 (PWD, AO, DPC)]
141 % For use with BibTeX version 0.99a or later
142 %
143 % ===============================================================
144 %-------------------------------------------------------------------
145 %-------------------------------------------------------------------
146 % This bibliography style file is intended for texts in ENGLISH
147 % This is a numerical citation style, and as such is standard LaTeX.
148 % It requires no extra package to interface to the main text.
149 % The form of the \bibitem entries is
150 % \bibitem{key}...
151 % Usage of \cite is as follows:
152 % \cite{key} ==>> [#]
153 % \cite[chap. 2]{key} ==>> [#, chap. 2]
154 % where # is a number determined by the ordering in the reference list.
155 % The order in the reference list is that by which the works were originally
156 % cited in the text, or that in the database.
157 %---------------------------------------------------------------------
158
159 ENTRY
160 { address
161 archive
162 author
163 booktitle
164 chapter
165 collaboration
166 doi
167 edition
168 editor
169 eid
170 eprint
171 eventdate
172 howpublished
173 institution
174 journal
175 key
176 month
177 note
178 number
179 numpages
180 organization
181 pages
182 publisher
183 school
184 series
185 title
186 type
187 url
188 urldate
189 urltype
190 venue
191 version
192 versiontype
193 volume
194 year
195 }
196 {}
197 { label }
198 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
199 FUNCTION {init.state.consts}
200 { #0 'before.all :=
201 #1 'mid.sentence :=
202 #2 'after.sentence :=
203 #3 'after.block :=
204 }
205 STRINGS { s t}
206 FUNCTION {output.nonnull}
207 { 's :=
208 output.state mid.sentence =
209 { ", " * write$ }
210 { output.state after.block =
211 { add.period$ write$
212 newline$
213 "\newblock " write$
214 }
215 { output.state before.all =
216 'write$
217 { add.period$ " " * write$ }
218 if$
219 }
220 if$
221 mid.sentence 'output.state :=
222 }
223 if$
224 s
225 }
226 FUNCTION {output}
227 { duplicate$ empty$
228 'pop$
229 'output.nonnull
230 if$
231 }
232 FUNCTION {output.check}
233 { 't :=
234 duplicate$ empty$
235 { pop$ "empty " t * " in " * cite$ * warning$ }
236 'output.nonnull
237 if$
238 }
239
240 FUNCTION {fin.entry}
241 { url empty$
242 { eprint empty$
243 {
244 add.period$
245 write$
246 newline$
247 }{
248 write$
249 newline$
250 }
251 if$
252 }{
253 write$
254 newline$
255 }
256 if$
257 }
258
259 %% For entries that hyperlink content
260 FUNCTION {fin.urllink.entry}
261 { add.period$
262 write$
263 newline$
264 }
265
266 FUNCTION {new.block}
267 { output.state before.all =
268 'skip$
269 { after.block 'output.state := }
270 if$
271 }
272 FUNCTION {new.sentence}
273 { output.state after.block =
274 'skip$
275 { output.state before.all =
276 'skip$
277 { after.sentence 'output.state := }
278 if$
279 }
280 if$
281 }
282 FUNCTION {add.blank}
283 { " " * before.all 'output.state :=
284 }
285
286 FUNCTION {date.block}
287 {
288 skip$
289 }
290
291 FUNCTION {not}
292 { { #0 }
293 { #1 }
294 if$
295 }
296 FUNCTION {and}
297 { 'skip$
298 { pop$ #0 }
299 if$
300 }
301 FUNCTION {or}
302 { { pop$ #1 }
303 'skip$
304 if$
305 }
306 FUNCTION {non.stop}
307 { duplicate$
308 "}" * add.period$
309 #-1 #1 substring$ "." =
310 }
311
312 FUNCTION {new.block.checka}
313 { empty$
314 'skip$
315 'new.block
316 if$
317 }
318 FUNCTION {new.block.checkb}
319 { empty$
320 swap$ empty$
321 and
322 'skip$
323 'new.block
324 if$
325 }
326 FUNCTION {new.sentence.checka}
327 { empty$
328 'skip$
329 'new.sentence
330 if$
331 }
332 FUNCTION {new.sentence.checkb}
333 { empty$
334 swap$ empty$
335 and
336 'skip$
337 'new.sentence
338 if$
339 }
340 FUNCTION {field.or.null}
341 { duplicate$ empty$
342 { pop$ "" }
343 'skip$
344 if$
345 }
346
347 FUNCTION {emphasize}
348 { duplicate$ empty$
349 { pop$ "" }
350 { "\emph{" swap$ * "}" * }
351 if$
352 }
353 FUNCTION {bolden}
354 { duplicate$ empty$
355 { pop$ "" }
356 { "\textbf{" swap$ * "}" * }
357 if$
358 }
359 FUNCTION {tie.or.space.prefix}
360 { duplicate$ text.length$ #3 <
361 { "~" }
362 { " " }
363 if$
364 swap$
365 }
366
367 FUNCTION {capitalize}
368 { "u" change.case$ "t" change.case$ }
369
370 FUNCTION {space.word}
371 { " " swap$ * " " * }
372 % Here are the language-specific definitions for explicit words.
373 % Each function has a name bbl.xxx where xxx is the English word.
374 % The language selected here is ENGLISH
375 FUNCTION {bbl.and}
376 { "and"}
377
378 FUNCTION {bbl.etal}
379 { "et~al." }
380
381 FUNCTION {bbl.editors}
382 { "eds." }
383
384 FUNCTION {bbl.editor}
385 { "ed." }
386
387 FUNCTION {bbl.edby}
388 { "edited by" }
389
390 FUNCTION {bbl.edition}
391 { "ed." }
392
393 FUNCTION {bbl.volume}
394 { "Vol." }
395
396 FUNCTION {bbl.of}
397 { "of" }
398
399 FUNCTION {bbl.number}
400 { "No." }
401
402 FUNCTION {bbl.nr}
403 { "No." }
404
405 FUNCTION {bbl.in}
406 { "in" }
407
408 FUNCTION {bbl.pages}
409 { "pp." }
410
411 FUNCTION {bbl.page}
412 { "p." }
413
414 FUNCTION {bbl.eidpp}
415 { "pages" }
416
417 FUNCTION {bbl.chapter}
418 { "Chap." }
419
420 FUNCTION {bbl.techrep}
421 { "Tech. Rep." }
422
423 FUNCTION {bbl.paperno}
424 { "Paper No." }
425
426 FUNCTION {bbl.mthesis}
427 { "Master's thesis" }
428
429 FUNCTION {bbl.phdthesis}
430 { "Ph.D. thesis" }
431
432 FUNCTION {bbl.first}
433 { "1st" }
434
435 FUNCTION {bbl.second}
436 { "2nd" }
437
438 FUNCTION {bbl.third}
439 { "3rd" }
440
441 FUNCTION {bbl.fourth}
442 { "4th" }
443
444 FUNCTION {bbl.fifth}
445 { "5th" }
446
447 FUNCTION {bbl.st}
448 { "st" }
449
450 FUNCTION {bbl.nd}
451 { "nd" }
452
453 FUNCTION {bbl.rd}
454 { "rd" }
455
456 FUNCTION {bbl.th}
457 { "th" }
458
459 FUNCTION {bbl.urldate}
460 { "accessed" }
461
462 FUNCTION {bbl.version}
463 { "Version" }
464
465 MACRO {jan} {"Jan."}
466
467 MACRO {feb} {"Feb."}
468
469 MACRO {mar} {"Mar."}
470
471 MACRO {apr} {"Apr."}
472
473 MACRO {may} {"May"}
474
475 MACRO {jun} {"Jun."}
476
477 MACRO {jul} {"Jul."}
478
479 MACRO {aug} {"Aug."}
480
481 MACRO {sep} {"Sep."}
482
483 MACRO {oct} {"Oct."}
484
485 MACRO {nov} {"Nov."}
486
487 MACRO {dec} {"Dec."}
488
489 FUNCTION {eng.ord}
490 { duplicate$ "1" swap$ *
491 #-2 #1 substring$ "1" =
492 { bbl.th * }
493 { duplicate$ #-1 #1 substring$
494 duplicate$ "1" =
495 { pop$ bbl.st * }
496 { duplicate$ "2" =
497 { pop$ bbl.nd * }
498 { "3" =
499 { bbl.rd * }
500 { bbl.th * }
501 if$
502 }
503 if$
504 }
505 if$
506 }
507 if$
508 }
509
510 MACRO {arxiv} {"https://arxiv.org/abs/"}
511
512 MACRO {googlebooks} {"https://books.google.com/books?id="}
513
514 MACRO {hdl} {"https://hdl.handle.net/"}
515 MACRO {hndl} {"https://hdl.handle.net/"}
516
517 MACRO {jstor} {"https://www.jstor.org/stable/"}
518
519 MACRO {oclc} {"https://www.worldcat.org/oclc/"}
520
521 MACRO {pubmed} {"https://www.ncbi.nlm.nih.gov/pubmed/"}
522
523
524 MACRO {amr} {"Appl.\ Mech.\ Rev."}
525
526 MACRO {lds} {"ASME Letters Dynamic Systems"}
527
528 MACRO {jru} {"ASME J. Risk Uncertainty"}
529
530 MACRO {jsbc} {"ASME J. Sustainable Bldg.\ and Cities"}
531
532 MACRO {jam} {"ASME J. Appl.\ Mech."}
533
534 MACRO {jbe} {"ASME J. Biomed.\ Eng."}
535
536 MACRO {jcnd} {"ASME J. Comput.\ Nonlin.\ Dyn."}
537
538 MACRO {jcise} {"ASME J. Comput.\ Inf.\ Sci.\ Eng."}
539
540 MACRO {jds} {"J. Dyn.\ Syst.---T. ASME"}
541
542 MACRO {jep} {"ASME J. Electron.\ Packag."}
543
544 MACRO {jert} {"ASME J. Energy Resour."}
545
546 MACRO {jegtp} {"ASME J. Eng.\ Gas Turbines Power"}
547
548 MACRO {jem} {"ASME J. Eng.\ Mater."}
549
550 MACRO {jfe} {"ASME J. Fluids Eng."}
551
552 MACRO {jfcst} {"ASME J. Fuel Cell Sci.\ Tech."}
553
554 MACRO {jht} {"ASME J. Heat Transfer---Trans.\ ASME"}
555
556 MACRO {jhmt} {"ASME J. Heat Mass Transfer"}
557
558 MACRO {jmse} {"ASME J. Manuf.\ Sci.\ E."}
559
560 MACRO {jmd} {"ASME J. Mech.\ Des."}
561
562 MACRO {jmr} {"ASME J. Mech.\ Robot."}
563
564 MACRO {jmdv} {"ASME J. Med.\ Devices"}
565
566 MACRO {jmnm} {"ASME J. Micro Nano-Manuf."}
567
568 MACRO {jnem} {"ASME J. Nanotech Eng.\ Med."}
569
570 MACRO {joma} {"ASME J. Offshore Mech.\ Arct."}
571
572 MACRO {jpv} {"ASME J. Press.\ Vess."}
573
574 MACRO {jse} {"ASME J. Sol.\ Energy"}
575
576 MACRO {jtsea} {"ASME J. Therm.\ Sci.\ Eng.\ Appl."}
577
578 MACRO {jtb} {"ASME J. Tribol."}
579
580 MACRO {jtm} {"ASME J. Turbomach."}
581
582 MACRO {jva} {"ASME J. Vib.\ Acoust."}
583
584
585
586 MACRO {acmcs} {"ACM Comput.\ Surv."}
587
588 MACRO {acta} {"Acta Inf."}
589
590 MACRO {cacm} {"Commun.\ ACM"}
591
592 MACRO {ibmjrd} {"IBM J. Res.\ Dev."}
593
594 MACRO {ibmsj} {"IBM Syst.~J."}
595
596 MACRO {ieeese} {"IEEE Trans.\ Software Eng."}
597
598 MACRO {ieeetc} {"IEEE Trans.\ Comput."}
599
600 MACRO {ieeetcad}
601 {"IEEE Trans. Comput.\ Aid.\ Des."}
602
603 MACRO {ipl} {"Inf.\ Process.\ Lett."}
604
605 MACRO {jacm} {"J.~ACM"}
606
607 MACRO {jcss} {"J.~Comput.\ Syst.\ Sci."}
608
609 MACRO {scp} {"Sci.\ Comput.\ Program."}
610
611 MACRO {sicomp} {"SIAM J. Comput."}
612
613 MACRO {tocs} {"ACM Trans.\ Comput.\ Syst."}
614
615 MACRO {tods} {"ACM Trans.\ Database Syst."}
616
617 MACRO {tog} {"ACM Trans.\ Graphic."}
618
619 MACRO {toms} {"ACM Trans.\ Math.\ Software"}
620
621 MACRO {toois} {"ACM Trans.\ Office Inf.\ Syst."}
622
623 MACRO {toplas} {"ACM Trans.\ Progr.\ Lang.\ Syst."}
624
625 MACRO {tcs} {"Theor.\ Comput.\ Sci."}
626
627 FUNCTION {bibinfo.check}
628 { swap$
629 duplicate$ missing$
630 {
631 pop$ pop$
632 ""
633 }
634 { duplicate$ empty$
635 {
636 swap$ pop$
637 }
638 { swap$
639 pop$
640 }
641 if$
642 }
643 if$
644 }
645 FUNCTION {bibinfo.warn}
646 { swap$
647 duplicate$ missing$
648 {
649 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
650 ""
651 }
652 { duplicate$ empty$
653 {
654 swap$ "empty " swap$ * " in " * cite$ * warning$
655 }
656 { swap$
657 pop$
658 }
659 if$
660 }
661 if$
662 }
663 FUNCTION {format.eprint}
664 { eprint duplicate$ empty$
665 'skip$
666 { "\eprint"
667 archive empty$
668 { "there's an eprint but no archive in " cite$ * warning$ }
669 { "[" * archive * "]" * }
670 if$
671 "{" * swap$ * "}" *
672 }
673 if$
674 }
675
676 FUNCTION {format.version}
677 { version empty$
678 {""}
679 {version "version" bibinfo.check
680 versiontype duplicate$ empty$
681 { pop$ bbl.version }
682 'skip$
683 if$
684 "versiontype" bibinfo.check
685 swap$ duplicate$ empty$
686 { pop$ "t" change.case$ }
687 { tie.or.space.prefix * * }
688 if$
689 }
690 if$
691 }
692
693 FUNCTION {format.web.urldate}
694 { urldate empty$
695 {""}
696 {urldate "urldate" bibinfo.check
697 urltype duplicate$ empty$
698 { pop$ bbl.urldate }
699 'skip$
700 if$
701 "urltype" bibinfo.check
702 swap$ duplicate$ empty$
703 { pop$ "t" change.case$ }
704 { tie.or.space.prefix * * }
705 if$
706 ", " *
707 }
708 if$
709 }
710
711 FUNCTION {format.url}
712 {
713 url
714 duplicate$ empty$
715 { pop$ "" }
716 { "\urlprefix\url{" swap$ * "}" *
717 format.web.urldate swap$ *
718 }
719 if$
720 }
721
722 INTEGERS { nameptr namesleft numnames }
723
724
725 STRINGS { bibinfo}
726
727 FUNCTION {format.names}
728 { 'bibinfo :=
729 duplicate$ empty$ 'skip$ {
730 's :=
731 "" 't :=
732 #1 'nameptr :=
733 s num.names$ 'numnames :=
734 numnames 'namesleft :=
735 { namesleft #0 > }
736 { s nameptr
737 "{vv~}{ll}{, f.}{, jj}"
738 format.name$
739 bibinfo bibinfo.check
740 't :=
741 nameptr #1 >
742 {
743 namesleft #1 >
744 { ", " * t * }
745 {
746 s nameptr "{ll}" format.name$ duplicate$ "others" =
747 { 't := }
748 { pop$ }
749 if$
750 numnames #2 >
751 { "," * }
752 'skip$
753 if$
754 t "others" =
755 {
756 " " * bbl.etal *
757 }
758 {
759 bbl.and
760 space.word * t *
761 }
762 if$
763 }
764 if$
765 }
766 't
767 if$
768 nameptr #1 + 'nameptr :=
769 namesleft #1 - 'namesleft :=
770 }
771 while$
772 } if$
773 }
774 FUNCTION {format.names.ed}
775 {
776 'bibinfo :=
777 duplicate$ empty$ 'skip$ {
778 's :=
779 "" 't :=
780 #1 'nameptr :=
781 s num.names$ 'numnames :=
782 numnames 'namesleft :=
783 { namesleft #0 > }
784 { s nameptr
785 "{f.~}{vv~}{ll}{, jj}"
786 format.name$
787 bibinfo bibinfo.check
788 't :=
789 nameptr #1 >
790 {
791 namesleft #1 >
792 { ", " * t * }
793 {
794 s nameptr "{ll}" format.name$ duplicate$ "others" =
795 { 't := }
796 { pop$ }
797 if$
798 numnames #2 >
799 { "," * }
800 'skip$
801 if$
802 t "others" =
803 {
804
805 " " * bbl.etal *
806 }
807 {
808 bbl.and
809 space.word * t *
810 }
811 if$
812 }
813 if$
814 }
815 't
816 if$
817 nameptr #1 + 'nameptr :=
818 namesleft #1 - 'namesleft :=
819 }
820 while$
821 } if$
822 }
823 FUNCTION {format.authors}
824 { author "author" format.names
825 duplicate$ empty$ 'skip$
826 { collaboration "collaboration" bibinfo.check
827 duplicate$ empty$ 'skip$
828 { " (" swap$ * ")" * }
829 if$
830 *
831 }
832 if$
833 }
834 FUNCTION {get.bbl.editor}
835 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
836
837 FUNCTION {format.editors}
838 { editor "editor" format.names duplicate$ empty$ 'skip$
839 {
840 "," *
841 " " *
842 get.bbl.editor
843 *
844 }
845 if$
846 }
847 FUNCTION {format.doi}
848 { doi empty$
849 { "" }
850 {
851 "\doi{" doi * "}" *
852 }
853 if$
854 }
855 FUNCTION {doilink}
856 { duplicate$ empty$
857 { pop$ "" }
858 { doi empty$
859 { url empty$
860 { eprint empty$
861 { skip$ }
862 { "\hrefurl{" archive eprint * * "}{" * swap$ * "}" * }
863 if$
864 }
865 { "\hrefurl{" url * "}{" * swap$ * "}" * }
866 if$
867 }
868 { "\hrefurl{https://doi.org/" doi * "}{" * swap$ * "}" * }
869 if$
870 }
871 if$
872 }
873
874 FUNCTION {format.note}
875 {
876 note empty$
877 { "" }
878 { note #1 #1 substring$
879 duplicate$ "{" =
880 'skip$
881 { output.state mid.sentence =
882 { "t" }
883 { "t" }
884 if$
885 change.case$
886 }
887 if$
888 note #2 global.max$ substring$ * "note" bibinfo.check
889 }
890 if$
891 }
892 FUNCTION {format.title}
893 { title
894 "title" bibinfo.check
895 duplicate$ empty$ 'skip$
896 {
897 "\enquote{" swap$ *
898 non.stop
899 { ",} " * }
900 { "} " * }
901 if$
902 }
903 if$
904 }
905 FUNCTION {end.quote.title}
906 { title empty$
907 'skip$
908 { before.all 'output.state := }
909 if$
910 }
911 FUNCTION {output.bibitem}
912 { newline$
913 "\bibitem{" write$
914 cite$ write$
915 "}" write$
916 newline$
917 ""
918 before.all 'output.state :=
919 }
920
921 FUNCTION {n.dashify}
922 {
923 't :=
924 ""
925 { t empty$ not }
926 { t #1 #1 substring$ "-" =
927 { t #1 #2 substring$ "--" = not
928 { "--" *
929 t #2 global.max$ substring$ 't :=
930 }
931 { { t #1 #1 substring$ "-" = }
932 { "-" *
933 t #2 global.max$ substring$ 't :=
934 }
935 while$
936 }
937 if$
938 }
939 { t #1 #1 substring$ *
940 t #2 global.max$ substring$ 't :=
941 }
942 if$
943 }
944 while$
945 }
946
947 FUNCTION {word.in}
948 { "" }
949
950 FUNCTION {format.date}
951 {
952 ""
953 duplicate$ empty$
954 year "year" bibinfo.check duplicate$ empty$
955 { swap$ 'skip$
956 { "there's a month but no year in " cite$ * warning$ }
957 if$
958 *
959 }
960 { swap$ 'skip$
961 {
962 swap$
963 " " * swap$
964 }
965 if$
966 *
967 }
968 if$
969 }
970 FUNCTION {format.btitle}
971 { title "title" bibinfo.check
972 duplicate$ empty$ 'skip$
973 {
974 emphasize
975 }
976 if$
977 }
978 FUNCTION {format.doi.btitle}
979 { title "title" bibinfo.check
980 duplicate$ empty$ 'skip$
981 {
982 doilink emphasize
983 }
984 if$
985 }
986 FUNCTION {either.or.check}
987 { empty$
988 'pop$
989 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
990 if$
991 }
992 FUNCTION {format.bvolume}
993 { volume empty$
994 { "" }
995 { bbl.volume volume tie.or.space.prefix "volume" bibinfo.check * *
996 series "series" bibinfo.check
997 duplicate$ empty$ 'pop$
998 { swap$ bbl.of space.word * swap$
999 * }
1000 if$
1001 "volume and number" number either.or.check
1002 }
1003 if$
1004 }
1005 FUNCTION {format.pvolume}
1006 { volume empty$
1007 { "" }
1008 { bbl.volume volume tie.or.space.prefix
1009 "volume" bibinfo.check * *
1010 series "series" bibinfo.check
1011 duplicate$ empty$ 'pop$
1012 { ", " * swap$ *}
1013 if$
1014 }
1015 if$
1016 }
1017 FUNCTION {format.serial.volume}
1018 { volume empty$
1019 { "" }
1020 { bbl.volume volume tie.or.space.prefix
1021 "volume" bibinfo.check * *
1022 series "series" bibinfo.check
1023 duplicate$ empty$ 'pop$
1024 { ", " * swap$ *}
1025 if$
1026 "volume and number" number either.or.check
1027 }
1028 if$
1029 }
1030 FUNCTION {format.number.series}
1031 { volume empty$
1032 { number empty$
1033 { series field.or.null }
1034 { series empty$
1035 { number "number" bibinfo.check }
1036 { output.state mid.sentence =
1037 { bbl.number }
1038 { bbl.number capitalize }
1039 if$
1040 number tie.or.space.prefix "number" bibinfo.check * *
1041 bbl.in space.word *
1042 series "series" bibinfo.check *
1043 }
1044 if$
1045 }
1046 if$
1047 }
1048 { "" }
1049 if$
1050 }
1051 FUNCTION {is.num}
1052 { chr.to.int$
1053 duplicate$ "0" chr.to.int$ < not
1054 swap$ "9" chr.to.int$ > not and
1055 }
1056
1057 FUNCTION {extract.num}
1058 { duplicate$ 't :=
1059 "" 's :=
1060 { t empty$ not }
1061 { t #1 #1 substring$
1062 t #2 global.max$ substring$ 't :=
1063 duplicate$ is.num
1064 { s swap$ * 's := }
1065 { pop$ "" 't := }
1066 if$
1067 }
1068 while$
1069 s empty$
1070 'skip$
1071 { pop$ s }
1072 if$
1073 }
1074
1075 FUNCTION {convert.edition}
1076 { extract.num "l" change.case$ 's :=
1077 s "first" = s "1" = or
1078 { bbl.first 't := }
1079 { s "second" = s "2" = or
1080 { bbl.second 't := }
1081 { s "third" = s "3" = or
1082 { bbl.third 't := }
1083 { s "fourth" = s "4" = or
1084 { bbl.fourth 't := }
1085 { s "fifth" = s "5" = or
1086 { bbl.fifth 't := }
1087 { s #1 #1 substring$ is.num
1088 { s eng.ord 't := }
1089 { edition 't := }
1090 if$
1091 }
1092 if$
1093 }
1094 if$
1095 }
1096 if$
1097 }
1098 if$
1099 }
1100 if$
1101 t
1102 }
1103
1104 FUNCTION {format.edition}
1105 { edition duplicate$ empty$ 'skip$
1106 {
1107 convert.edition
1108 output.state mid.sentence =
1109 { "l" }
1110 { "t" }
1111 if$ change.case$
1112 "edition" bibinfo.check
1113 " " * bbl.edition *
1114 }
1115 if$
1116 }
1117 INTEGERS { multiresult }
1118 FUNCTION {multi.page.check}
1119 { 't :=
1120 #0 'multiresult :=
1121 { multiresult not
1122 t empty$ not
1123 and
1124 }
1125 { t #1 #1 substring$
1126 duplicate$ "-" =
1127 swap$ duplicate$ "," =
1128 swap$ "+" =
1129 or or
1130 { #1 'multiresult := }
1131 { t #2 global.max$ substring$ 't := }
1132 if$
1133 }
1134 while$
1135 multiresult
1136 }
1137 FUNCTION {format.pages}
1138 { pages duplicate$ empty$ 'skip$
1139 { duplicate$ multi.page.check
1140 {
1141 bbl.pages swap$
1142 n.dashify
1143 }
1144 {
1145 bbl.page swap$
1146 }
1147 if$
1148 tie.or.space.prefix
1149 "pages" bibinfo.check
1150 * *
1151 }
1152 if$
1153 }
1154 FUNCTION {format.journal.pages}
1155 { pages duplicate$ empty$
1156 { "empty pages in " cite$ * warning$ }
1157 'skip$
1158 if$
1159 duplicate$ empty$ 'pop$
1160 { swap$ duplicate$ empty$
1161 { pop$ pop$ format.pages}
1162 {
1163 ", " *
1164 swap$
1165 n.dashify
1166 pages multi.page.check
1167 'bbl.pages
1168 'bbl.page
1169 if$
1170 swap$ tie.or.space.prefix
1171 "pages" bibinfo.check
1172 * *
1173 *
1174 }
1175 if$
1176 }
1177 if$
1178 }
1179 FUNCTION {format.journal.eid}
1180 { eid "eid" bibinfo.check
1181 duplicate$ empty$ 'pop$
1182 { swap$ duplicate$ empty$ 'skip$
1183 {
1184 ", " *
1185 }
1186 if$
1187 swap$ *
1188 numpages empty$ 'skip$
1189 { numpages bbl.eidpp tie.or.space.prefix
1190 "numpages" bibinfo.check * *
1191 " (" swap$ * ")" * *
1192 }
1193 if$
1194 }
1195 if$
1196 }
1197 FUNCTION {format.vol.num.pages}
1198 { volume field.or.null
1199 duplicate$ empty$ 'skip$
1200 {
1201 "volume" bibinfo.check
1202 }
1203 if$
1204 bolden
1205 number "number" bibinfo.check duplicate$ empty$ 'skip$
1206 {
1207 swap$ duplicate$ empty$
1208 { "there's a number but no volume in " cite$ * warning$ }
1209 'skip$
1210 if$
1211 swap$
1212 "(" swap$ * ")" *
1213 }
1214 if$ *
1215 }
1216
1217 FUNCTION {format.chapter.pages}
1218 { chapter empty$
1219 { "" }
1220 { type empty$
1221 { bbl.chapter }
1222 { type "l" change.case$
1223 "type" bibinfo.check
1224 }
1225 if$
1226 chapter tie.or.space.prefix
1227 "chapter" bibinfo.check
1228 * *
1229 }
1230 if$
1231 }
1232
1233 FUNCTION {format.booktitle}
1234 {
1235 booktitle "booktitle" bibinfo.check
1236 emphasize
1237 }
1238 FUNCTION {format.doi.booktitle}
1239 {
1240 booktitle "booktitle" bibinfo.check
1241 doilink emphasize
1242 }
1243 FUNCTION {format.in.ed.booktitle}
1244 { format.doi.booktitle duplicate$ empty$ 'skip$
1245 {
1246 format.edition duplicate$ empty$ 'pop$
1247 { ", " swap$ * * }
1248 if$
1249 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1250 {
1251 get.bbl.editor
1252 swap$ "," *
1253 " " * swap$ *
1254 swap$
1255 "," *
1256 " " * swap$
1257 * }
1258 if$
1259 format.bvolume duplicate$ empty$ 'pop$
1260 { ", " swap$ * * }
1261 if$
1262 word.in swap$ *
1263 }
1264 if$
1265 }
1266 FUNCTION {format.in.ed.proctitle}
1267 { format.booktitle duplicate$ empty$ 'skip$
1268 {
1269 format.edition duplicate$ empty$ 'pop$
1270 { ", " swap$ * * }
1271 if$
1272 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1273 {
1274 get.bbl.editor
1275 swap$ "," *
1276 " " * swap$ *
1277 swap$
1278 "," *
1279 " " * swap$
1280 * }
1281 if$
1282 format.pvolume duplicate$ empty$ 'pop$
1283 { ", " swap$ * * }
1284 if$
1285 word.in swap$ *
1286 }
1287 if$
1288 }
1289 FUNCTION {format.in.ed.serialtitle}
1290 { format.doi.booktitle duplicate$ empty$ 'skip$
1291 {
1292 format.serial.volume duplicate$ empty$ 'pop$
1293 { " (" swap$ * * ")" *}
1294 if$
1295 format.edition duplicate$ empty$ 'pop$
1296 { ", " swap$ * * }
1297 if$
1298 editor "editor" format.names.ed duplicate$ empty$ 'pop$
1299 {
1300 get.bbl.editor
1301 swap$ "," *
1302 " " * swap$ *
1303 swap$
1304 "," *
1305 " " * swap$
1306 * }
1307 if$
1308 word.in swap$ *
1309 }
1310 if$
1311 }
1312
1313 FUNCTION {empty.misc.check}
1314 { author empty$ title empty$ howpublished empty$
1315 month empty$ year empty$ note empty$
1316 and and and and and
1317 { "all relevant fields are empty in " cite$ * warning$ }
1318 'skip$
1319 if$
1320 }
1321 FUNCTION {format.thesis.type}
1322 { type duplicate$ empty$
1323 'pop$
1324 { swap$ pop$
1325 "t" change.case$ "type" bibinfo.check
1326 }
1327 if$
1328 }
1329
1330 FUNCTION {format.alt.link}
1331 { doi empty$
1332 { url empty$
1333 { eprint empty$
1334 { format.note output
1335 fin.urllink.entry
1336 }
1337 { format.note output
1338 format.eprint output
1339 fin.entry
1340 }
1341 if$
1342 }
1343 { format.note output
1344 format.url output
1345 fin.entry
1346 }
1347 if$
1348 }
1349 { format.doi output
1350 format.note output
1351 fin.urllink.entry
1352 }
1353 if$
1354 }
1355
1356 FUNCTION {format.tr.number}
1357 { number "number" bibinfo.check
1358 type duplicate$ empty$
1359 { pop$ bbl.techrep }
1360 'skip$
1361 if$
1362 "type" bibinfo.check
1363 swap$ duplicate$ empty$
1364 { pop$ "t" change.case$ }
1365 { tie.or.space.prefix * * }
1366 if$
1367 duplicate$ empty$ 'skip$
1368 {
1369 doilink
1370 }
1371 if$
1372 }
1373
1374 FUNCTION {format.paper.number}
1375 { number "number" bibinfo.check
1376 type duplicate$ empty$
1377 { pop$ bbl.paperno }
1378 'skip$
1379 if$
1380 "type" bibinfo.check
1381 swap$ duplicate$ empty$
1382 { pop$ "t" change.case$ }
1383 { tie.or.space.prefix * * }
1384 if$
1385 duplicate$ empty$ 'skip$
1386 {
1387 doilink
1388 }
1389 if$
1390 }
1391 FUNCTION {format.venue}
1392 { venue "venue" bibinfo.check
1393 duplicate$ empty$ 'skip$
1394 {
1395 }
1396 if$
1397 }
1398 FUNCTION {format.eventdate}
1399 { eventdate "eventdate" bibinfo.check
1400 duplicate$ empty$ 'skip$
1401 {
1402 }
1403 if$
1404 }
1405
1406 FUNCTION {format.article.crossref}
1407 {
1408 key duplicate$ empty$
1409 { pop$
1410 journal duplicate$ empty$
1411 { "need key or journal for " cite$ * " to crossref " * crossref * warning$ }
1412 { "journal" bibinfo.check emphasize word.in swap$ * }
1413 if$
1414 }
1415 { word.in swap$ * " " *}
1416 if$
1417 " \cite{" * crossref * "}" *
1418 }
1419 FUNCTION {format.crossref.editor}
1420 { editor #1 "{vv~}{ll}" format.name$
1421 "editor" bibinfo.check
1422 editor num.names$ duplicate$
1423 #2 >
1424 { pop$
1425 "editor" bibinfo.check
1426 " " * bbl.etal
1427 *
1428 }
1429 { #2 <
1430 'skip$
1431 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1432 {
1433 "editor" bibinfo.check
1434 " " * bbl.etal
1435 *
1436 }
1437 {
1438 bbl.and space.word
1439 * editor #2 "{vv~}{ll}" format.name$
1440 "editor" bibinfo.check
1441 *
1442 }
1443 if$
1444 }
1445 if$
1446 }
1447 if$
1448 }
1449 FUNCTION {format.book.crossref}
1450 { volume duplicate$ empty$
1451 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1452 pop$ word.in
1453 }
1454 { bbl.volume
1455 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1456 }
1457 if$
1458 editor empty$
1459 editor field.or.null author field.or.null =
1460 or
1461 { key empty$
1462 { series empty$
1463 { "need editor, key, or series for " cite$ * " to crossref " *
1464 crossref * warning$
1465 "" *
1466 }
1467 { series emphasize * }
1468 if$
1469 }
1470 { key * }
1471 if$
1472 }
1473 { format.crossref.editor * }
1474 if$
1475 " \cite{" * crossref * "}" *
1476 }
1477 FUNCTION {format.incoll.inproc.crossref}
1478 {
1479 editor empty$
1480 editor field.or.null author field.or.null =
1481 or
1482 { key empty$
1483 { format.booktitle duplicate$ empty$
1484 { "need editor, key, or booktitle for " cite$ * " to crossref " *
1485 crossref * warning$
1486 }
1487 { word.in swap$ * }
1488 if$
1489 }
1490 { word.in key * " " *}
1491 if$
1492 }
1493 { word.in format.crossref.editor * " " *}
1494 if$
1495 " \cite{" * crossref * "}" *
1496 }
1497 FUNCTION {format.org.or.pub}
1498 { 't :=
1499 ""
1500 address empty$ t empty$ and
1501 'skip$
1502 {
1503 t empty$
1504 { address "address" bibinfo.check *
1505 }
1506 { t *
1507 address empty$
1508 'skip$
1509 { ", " * address "address" bibinfo.check * }
1510 if$
1511 }
1512 if$
1513 }
1514 if$
1515 }
1516 FUNCTION {format.publisher.address}
1517 { publisher "publisher" bibinfo.warn format.org.or.pub
1518 }
1519
1520 FUNCTION {format.organization.address}
1521 { organization "organization" bibinfo.check format.org.or.pub
1522 }
1523
1524 FUNCTION {format.institution.address}
1525 { institution "institution" bibinfo.check format.org.or.pub
1526 }
1527
1528 FUNCTION {article}
1529 { output.bibitem
1530 format.authors "author" output.check
1531 format.date "year" output.check
1532 date.block
1533 format.title "title" output.check
1534 end.quote.title
1535 crossref missing$
1536 {
1537 journal
1538 "journal" bibinfo.check
1539 doilink
1540 "journal" output.check
1541 format.vol.num.pages output
1542 }
1543 { format.article.crossref output.nonnull
1544 }
1545 if$
1546 eid empty$
1547 { format.journal.pages }
1548 { format.journal.eid }
1549 if$
1550 format.note output
1551 fin.urllink.entry
1552 }
1553
1554 FUNCTION {book}
1555 { output.bibitem
1556 author empty$
1557 { format.editors "author and editor" output.check
1558 }
1559 { format.authors output.nonnull
1560 crossref missing$
1561 { "author and editor" editor either.or.check }
1562 'skip$
1563 if$
1564 }
1565 if$
1566 format.date "year" output.check
1567 date.block
1568 format.doi.btitle "title" output.check
1569 crossref missing$
1570 { format.edition output
1571 format.version output
1572 format.bvolume output
1573 format.number.series output
1574 format.publisher.address output
1575 }
1576 {
1577 format.book.crossref output.nonnull
1578 }
1579 if$
1580 format.chapter.pages output
1581 format.pages output
1582 format.note output
1583 fin.urllink.entry
1584 }
1585
1586 FUNCTION {booklet}
1587 { output.bibitem
1588 format.authors output
1589 format.date output
1590 date.block
1591 format.title "title" output.check
1592 end.quote.title
1593 howpublished "howpublished" bibinfo.check output
1594 address "address" bibinfo.check output
1595 format.doi output
1596 format.note output
1597 format.eprint output
1598 format.url output
1599 fin.entry
1600 }
1601
1602 FUNCTION {inbook}
1603 { output.bibitem
1604 author empty$
1605 { format.editors "author and editor" output.check
1606 }
1607 { format.authors output.nonnull
1608 crossref missing$
1609 { "author and editor" editor either.or.check }
1610 'skip$
1611 if$
1612 }
1613 if$
1614 format.date "year" output.check
1615 date.block
1616 format.doi.btitle "title" output.check
1617 crossref missing$
1618 {
1619 format.edition output
1620 format.version output
1621 format.bvolume output
1622 format.number.series output
1623 format.publisher.address output
1624 format.chapter.pages "chapter and pages" output.check
1625 }
1626 {
1627 format.chapter.pages "chapter and pages" output.check
1628 format.book.crossref output.nonnull
1629 }
1630 if$
1631 format.pages "pages" output.check
1632 format.note output
1633 fin.urllink.entry
1634 }
1635
1636 FUNCTION {incollection}
1637 { output.bibitem
1638 format.authors "author" output.check
1639 format.date "year" output.check
1640 date.block
1641 format.title "title" output.check
1642 end.quote.title
1643 crossref missing$
1644 { format.in.ed.booktitle "booktitle" output.check
1645 format.number.series output
1646 format.publisher.address output
1647 format.chapter.pages output
1648 }
1649 { format.incoll.inproc.crossref output.nonnull
1650 format.chapter.pages output
1651 }
1652 if$
1653 format.pages "pages" output.check
1654 format.note output
1655 fin.urllink.entry
1656 }
1657
1658 FUNCTION {inserialcollection}
1659 { output.bibitem
1660 format.authors "author" output.check
1661 format.date "year" output.check
1662 date.block
1663 format.title "title" output.check
1664 end.quote.title
1665 crossref missing$
1666 { format.in.ed.serialtitle "booktitle" output.check
1667 format.number.series output
1668 format.publisher.address output
1669 format.chapter.pages output
1670 }
1671 { format.incoll.inproc.crossref output.nonnull
1672 format.chapter.pages output
1673 }
1674 if$
1675 format.pages "pages" output.check
1676 format.note output
1677 fin.urllink.entry
1678 }
1679
1680 FUNCTION {inproceedings}
1681 { output.bibitem
1682 format.authors "author" output.check
1683 format.date "year" output.check
1684 date.block
1685 format.title "title" output.check
1686 end.quote.title
1687 crossref missing$
1688 { format.in.ed.proctitle "booktitle" output.check
1689 publisher empty$
1690 { format.organization.address output }
1691 { format.publisher.address output }
1692 if$
1693 }
1694 { format.incoll.inproc.crossref output.nonnull
1695 }
1696 if$
1697 venue empty$
1698 { venue "venue" output.check}
1699 { "address and venue" address either.or.check format.venue output }
1700 if$
1701 format.eventdate "eventdate" output.check
1702 number empty$
1703 { format.pages "pages" output.check
1704 format.alt.link
1705 }
1706 { format.paper.number "number" output.check
1707 format.pages "pages" output.check
1708 format.note output
1709 fin.urllink.entry
1710 }
1711 if$
1712 }
1713 FUNCTION {conference} { inproceedings }
1714
1715 FUNCTION {manual}
1716 { output.bibitem
1717 author empty$
1718 { organization "organization" bibinfo.check
1719 duplicate$ empty$ 'pop$
1720 { output
1721 address "address" bibinfo.check output
1722 }
1723 if$
1724 }
1725 { format.authors output.nonnull }
1726 if$
1727 format.date output
1728 date.block
1729 format.btitle "title" output.check
1730 format.edition output
1731 format.version output
1732 author empty$
1733 { organization empty$
1734 {
1735 address "address" bibinfo.check output
1736 }
1737 'skip$
1738 if$
1739 }
1740 {
1741 organization "organization" bibinfo.check output
1742 address "address" bibinfo.check output
1743 }
1744 if$
1745 format.doi output
1746 format.note output
1747 format.eprint output
1748 format.url output
1749 fin.entry
1750 }
1751
1752 FUNCTION {mastersthesis}
1753 { output.bibitem
1754 format.authors "author" output.check
1755 format.date "year" output.check
1756 date.block
1757 format.title
1758 "title" output.check
1759 end.quote.title
1760 bbl.mthesis format.thesis.type output.nonnull
1761 school "school" bibinfo.warn output
1762 address "address" bibinfo.check output
1763 format.doi output
1764 format.note output
1765 format.eprint output
1766 format.url output
1767 fin.entry
1768 }
1769
1770 FUNCTION {misc}
1771 { output.bibitem
1772 format.authors output
1773 format.date output
1774 format.title output
1775 end.quote.title
1776 howpublished "howpublished" bibinfo.check output
1777 format.doi output
1778 format.note output
1779 format.eprint output
1780 format.url output
1781 fin.entry
1782 empty.misc.check
1783 }
1784
1785 FUNCTION {online}
1786 { output.bibitem
1787 author empty$
1788 { format.editors "author and editor" output.check
1789 }
1790 { format.authors output.nonnull
1791 crossref missing$
1792 { "author and editor" editor either.or.check }
1793 'skip$
1794 if$
1795 }
1796 if$
1797 format.date "year" output.check
1798 date.block
1799 format.title
1800 "title" output.check
1801 end.quote.title
1802 format.version output
1803 organization "organization" bibinfo.warn output
1804 address "address" bibinfo.check output
1805 format.doi output
1806 format.note output
1807 format.eprint output
1808 format.url "url" bibinfo.warn output
1809 fin.entry
1810 }
1811 FUNCTION {electronic} { online }
1812 FUNCTION {www} { online }
1813
1814 FUNCTION {phdthesis}
1815 { output.bibitem
1816 format.authors "author" output.check
1817 format.date "year" output.check
1818 date.block
1819 format.title
1820 "title" output.check
1821 end.quote.title
1822 bbl.phdthesis format.thesis.type output.nonnull
1823 school "school" bibinfo.warn output
1824 address "address" bibinfo.check output
1825 format.doi output
1826 format.note output
1827 format.eprint output
1828 format.url output
1829 fin.entry
1830 }
1831
1832 FUNCTION {proceedings}
1833 { output.bibitem
1834 editor empty$
1835 { organization "organization" bibinfo.check output
1836 }
1837 { format.editors output.nonnull }
1838 if$
1839 format.date "year" output.check
1840 date.block
1841 format.doi.btitle "title" output.check
1842 format.bvolume output
1843 editor empty$
1844 { publisher empty$
1845 { format.number.series output }
1846 {
1847 format.number.series output
1848 format.publisher.address output
1849 }
1850 if$
1851 }
1852 { publisher empty$
1853 {
1854 format.number.series output
1855 format.organization.address output }
1856 {
1857 format.number.series output
1858 format.publisher.address output
1859 }
1860 if$
1861 }
1862 if$
1863 "address and venue" address either.or.check format.venue "venue" output.check
1864 format.eventdate "eventdate" output.check
1865 format.note output
1866 fin.urllink.entry
1867 }
1868
1869 FUNCTION {techreport}
1870 { output.bibitem
1871 format.authors "author" output.check
1872 format.date "year" output.check
1873 date.block
1874 format.title
1875 "title" output.check
1876 end.quote.title
1877 format.institution.address output
1878 number empty$
1879 { format.alt.link }
1880 { format.tr.number output.nonnull
1881 format.note output
1882 fin.urllink.entry
1883 }
1884 if$
1885 }
1886
1887 FUNCTION {unpublished}
1888 { output.bibitem
1889 format.authors "author" output.check
1890 format.date output
1891 date.block
1892 format.title "title" output.check
1893 end.quote.title
1894 format.doi output
1895 format.note "note" output.check
1896 format.eprint output
1897 format.url output
1898 fin.entry
1899 }
1900
1901 FUNCTION {default.type} { misc }
1902 READ
1903 STRINGS { longest.label }
1904 INTEGERS { number.label longest.label.width }
1905 FUNCTION {initialize.longest.label}
1906 { "" 'longest.label :=
1907 #1 'number.label :=
1908 #0 'longest.label.width :=
1909 }
1910 FUNCTION {longest.label.pass}
1911 { number.label int.to.str$ 'label :=
1912 number.label #1 + 'number.label :=
1913 label width$ longest.label.width >
1914 { label 'longest.label :=
1915 label width$ 'longest.label.width :=
1916 }
1917 'skip$
1918 if$
1919 }
1920 EXECUTE {initialize.longest.label}
1921 ITERATE {longest.label.pass}
1922 FUNCTION {begin.bib}
1923 { preamble$ empty$
1924 'skip$
1925 { preamble$ write$ newline$ }
1926 if$
1927 "\begin{thebibliography}{" longest.label * "}" *
1928 write$ newline$
1929 "\newcommand{\enquote}[1]{``#1''}"
1930 write$ newline$
1931 "\providecommand{\url}[1]{\texttt{#1}}"
1932 write$ newline$
1933 "\providecommand{\urlprefix}{}"
1934 write$ newline$
1935 "\expandafter\ifx\csname urlstyle\endcsname\relax"
1936 write$ newline$
1937 " \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else"
1938 write$ newline$
1939 " \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi"
1940 write$ newline$
1941 "\providecommand{\eprint}[2][]{\urlprefix\url{#1#2}}"
1942 write$ newline$
1943 "\providecommand{\hrefurl}[2]{\href{#1}{#2}}"
1944 write$ newline$
1945 }
1946 EXECUTE {begin.bib}
1947 EXECUTE {init.state.consts}
1948 ITERATE {call.type$}
1949 FUNCTION {end.bib}
1950 { newline$
1951 "\end{thebibliography}" write$ newline$
1952 }
1953 EXECUTE {end.bib}
1954 %% End of customized bst file
1955 %%
1956 %% End of file `asmejour.bst'.