Debian Codegraph @

texmf-dist/bibtex/bst/prtec/prtec.bst

raw
1 %%
2 %% This is file `prtec.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% merlin.mbs (with options: `seq-no,nm-rev,ed-rev,jnrlst,yr-par,xmth,tit-qq,atit-u,trtit-b,vol-bf,vnum-x,volp-com,num-xser,ser-vol,ser-ed,add-pub,pre-pub,doi,blk-com,blknt,pp,ed,abr,ord,revdata,eprint,url,url-blk,em-it,nfss,')
8 %% ----------------------------------------
9 %% *** This is the bibliography format for PRTEC conference ***
10 %%
11 %% Copyright 1994-2011 Patrick W Daly
12 % ===============================================================
13 % IMPORTANT NOTICE:
14 % This bibliographic style (bst) file has been generated from one or
15 % more master bibliographic style (mbs) files, listed above.
16 %
17 % This generated file can be redistributed and/or modified under the terms
18 % of the LaTeX Project Public License Distributed from CTAN
19 % archives in directory macros/latex/base/lppl.txt; either
20 % version 1 of the License, or any later version.
21 % ===============================================================
22 % Name and version information of the main mbs file:
23 % \ProvidesFile{merlin.mbs}[2011/11/18 4.33 (PWD, AO, DPC)]
24 % For use with BibTeX version 0.99a or later
25 %-------------------------------------------------------------------
26 %%
27 %% This file is prtec.bst, version 1.01 dated 2019/04/28.
28 %%
29 %% This file was generated and edited by John Lienhard.
30 %% This file is a derivative work under Clause 6 of the LPPL license.
31 %%
32 %%
33 %% Modifications to the generated file are:
34 %%
35 %% Capitalize Ed. and Eds.
36 %% create function: format.ed.proctitle (no In)
37 %% for misc: removed {format.title output , end.quote.title} added {format.btitle, "title" output.check}
38 %% for inproceedings: use format.ed.proctitle (no In); change position of year; remove {format.bvolume output}
39 %% line 1410: change to url:~ rather than URL
40 %% add: urldate, urltype, and some associated functions and code
41 %% move note to the end of most formats.
42 %%
43 %% Author: John H. Lienhard V
44 %% Department of Mechanical Engineering
45 %% Massachusetts Institute of Technology
46 %% Cambridge, MA 02139-4307 USA
47 %%
48 %========================================================================
49 %% LICENSE:
50 %%
51 %% Copyright (c) 2019 John H. Lienhard
52 %%
53 %% Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
54 %% associated documentation files (the "Software"), to deal in the Software without restriction,
55 %% including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
56 %% and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
57 %% subject to the following conditions:
58 %%
59 %% The above copyright notice and this permission notice shall be included in all copies or
60 %% substantial portions of the Software.
61 %%
62 %% The software is provided "as is", without warranty of any kind, express or implied, including but
63 %% not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement.
64 %% in no event shall the authors or copyright holders be liable for any claim, damages or other liability,
65 %% whether in an action of contract, tort or otherwise, arising from, out of or in connection with the
66 %% software or the use or other dealings in the software.
67 %%
68 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69 %%
70 % This bibliography style file is intended for texts in ENGLISH
71 % This is a numerical citation style, and as such is standard LaTeX.
72 % It requires no extra package to interface to the main text.
73 % The form of the \bibitem entries is
74 % \bibitem{key}...
75 % Usage of \cite is as follows:
76 % \cite{key} ==>> [#]
77 % \cite[chap. 2]{key} ==>> [#, chap. 2]
78 % where # is a number determined by the ordering in the reference list.
79 % The order in the reference list is that by which the works were originally
80 % cited in the text, or that in the database.
81 %---------------------------------------------------------------------
82
83 ENTRY
84 { address
85 archive
86 author
87 booktitle
88 chapter
89 collaboration
90 doi
91 edition
92 editor
93 eid
94 eprint
95 howpublished
96 institution
97 journal
98 key
99 month
100 note
101 number
102 numpages
103 organization
104 pages
105 publisher
106 school
107 series
108 title
109 type
110 url
111 urldate
112 urltype
113 volume
114 year
115 }
116 {}
117 { label }
118 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
119 FUNCTION {init.state.consts}
120 { #0 'before.all :=
121 #1 'mid.sentence :=
122 #2 'after.sentence :=
123 #3 'after.block :=
124 }
125 STRINGS { s t}
126 FUNCTION {output.nonnull}
127 { 's :=
128 output.state mid.sentence =
129 { ", " * write$ }
130 { output.state after.block =
131 { add.period$ write$
132 newline$
133 "\newblock " write$
134 }
135 { output.state before.all =
136 'write$
137 { add.period$ " " * write$ }
138 if$
139 }
140 if$
141 mid.sentence 'output.state :=
142 }
143 if$
144 s
145 }
146 FUNCTION {output}
147 { duplicate$ empty$
148 'pop$
149 'output.nonnull
150 if$
151 }
152 FUNCTION {output.check}
153 { 't :=
154 duplicate$ empty$
155 { pop$ "empty " t * " in " * cite$ * warning$ }
156 'output.nonnull
157 if$
158 }
159 FUNCTION {fin.entry}
160 { add.period$
161 write$
162 newline$
163 }
164
165 FUNCTION {new.block}
166 { output.state before.all =
167 'skip$
168 { after.block 'output.state := }
169 if$
170 }
171 FUNCTION {new.sentence}
172 { output.state after.block =
173 'skip$
174 { output.state before.all =
175 'skip$
176 { after.sentence 'output.state := }
177 if$
178 }
179 if$
180 }
181 FUNCTION {add.blank}
182 { " " * before.all 'output.state :=
183 }
184
185 FUNCTION {date.block}
186 {
187 skip$
188 }
189
190 FUNCTION {not}
191 { { #0 }
192 { #1 }
193 if$
194 }
195 FUNCTION {and}
196 { 'skip$
197 { pop$ #0 }
198 if$
199 }
200 FUNCTION {or}
201 { { pop$ #1 }
202 'skip$
203 if$
204 }
205 FUNCTION {non.stop}
206 { duplicate$
207 "}" * add.period$
208 #-1 #1 substring$ "." =
209 }
210
211 FUNCTION {new.block.checka}
212 { empty$
213 'skip$
214 'new.block
215 if$
216 }
217 FUNCTION {new.block.checkb}
218 { empty$
219 swap$ empty$
220 and
221 'skip$
222 'new.block
223 if$
224 }
225 FUNCTION {new.sentence.checka}
226 { empty$
227 'skip$
228 'new.sentence
229 if$
230 }
231 FUNCTION {new.sentence.checkb}
232 { empty$
233 swap$ empty$
234 and
235 'skip$
236 'new.sentence
237 if$
238 }
239 FUNCTION {field.or.null}
240 { duplicate$ empty$
241 { pop$ "" }
242 'skip$
243 if$
244 }
245 FUNCTION {emphasize}
246 { duplicate$ empty$
247 { pop$ "" }
248 { "\textit{" swap$ * "}" * }
249 if$
250 }
251 FUNCTION {bolden}
252 { duplicate$ empty$
253 { pop$ "" }
254 { "\textbf{" swap$ * "}" * }
255 if$
256 }
257 FUNCTION {tie.or.space.prefix}
258 { duplicate$ text.length$ #3 <
259 { "~" }
260 { " " }
261 if$
262 swap$
263 }
264
265 FUNCTION {capitalize}
266 { "u" change.case$ "t" change.case$ }
267
268 FUNCTION {space.word}
269 { " " swap$ * " " * }
270 % Here are the language-specific definitions for explicit words.
271 % Each function has a name bbl.xxx where xxx is the English word.
272 % The language selected here is ENGLISH
273 FUNCTION {bbl.and}
274 { "and"}
275
276 FUNCTION {bbl.etal}
277 { "et~al." }
278
279 FUNCTION {bbl.editors}
280 { "Eds." }
281
282 FUNCTION {bbl.editor}
283 { "Ed." }
284
285 FUNCTION {bbl.edby}
286 { "edited by" }
287
288 FUNCTION {bbl.edition}
289 { "edn." }
290
291 FUNCTION {bbl.volume}
292 { "vol." }
293
294 FUNCTION {bbl.of}
295 { "of" }
296
297 FUNCTION {bbl.number}
298 { "no." }
299
300 FUNCTION {bbl.nr}
301 { "no." }
302
303 FUNCTION {bbl.in}
304 { "in" }
305
306 FUNCTION {bbl.pages}
307 { "pp." }
308
309 FUNCTION {bbl.page}
310 { "p." }
311
312 FUNCTION {bbl.eidpp}
313 { "pages" }
314
315 FUNCTION {bbl.chapter}
316 { "chap." }
317
318 FUNCTION {bbl.techrep}
319 { "Tech. Rep." }
320
321 FUNCTION {bbl.mthesis}
322 { "Master's thesis" }
323
324 FUNCTION {bbl.phdthesis}
325 { "Ph.D. thesis" }
326
327 FUNCTION {bbl.first}
328 { "1st" }
329
330 FUNCTION {bbl.second}
331 { "2nd" }
332
333 FUNCTION {bbl.third}
334 { "3rd" }
335
336 FUNCTION {bbl.fourth}
337 { "4th" }
338
339 FUNCTION {bbl.fifth}
340 { "5th" }
341
342 FUNCTION {bbl.st}
343 { "st" }
344
345 FUNCTION {bbl.nd}
346 { "nd" }
347
348 FUNCTION {bbl.rd}
349 { "rd" }
350
351 FUNCTION {bbl.th}
352 { "th" }
353
354 FUNCTION {bbl.urldate}
355 { "Retrieved" }
356
357
358 MACRO {jan} {"Jan."}
359
360 MACRO {feb} {"Feb."}
361
362 MACRO {mar} {"Mar."}
363
364 MACRO {apr} {"Apr."}
365
366 MACRO {may} {"May"}
367
368 MACRO {jun} {"Jun."}
369
370 MACRO {jul} {"Jul."}
371
372 MACRO {aug} {"Aug."}
373
374 MACRO {sep} {"Sep."}
375
376 MACRO {oct} {"Oct."}
377
378 MACRO {nov} {"Nov."}
379
380 MACRO {dec} {"Dec."}
381
382 FUNCTION {eng.ord}
383 { duplicate$ "1" swap$ *
384 #-2 #1 substring$ "1" =
385 { bbl.th * }
386 { duplicate$ #-1 #1 substring$
387 duplicate$ "1" =
388 { pop$ bbl.st * }
389 { duplicate$ "2" =
390 { pop$ bbl.nd * }
391 { "3" =
392 { bbl.rd * }
393 { bbl.th * }
394 if$
395 }
396 if$
397 }
398 if$
399 }
400 if$
401 }
402
403 MACRO {acmcs} {"ACM Computing Surveys"}
404
405 MACRO {acta} {"Acta Informatica"}
406
407 MACRO {cacm} {"Communications of the ACM"}
408
409 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
410
411 MACRO {ibmsj} {"IBM Systems Journal"}
412
413 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
414
415 MACRO {ieeetc} {"IEEE Transactions on Computers"}
416
417 MACRO {ieeetcad}
418 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
419
420 MACRO {ipl} {"Information Processing Letters"}
421
422 MACRO {jacm} {"Journal of the ACM"}
423
424 MACRO {jcss} {"Journal of Computer and System Sciences"}
425
426 MACRO {scp} {"Science of Computer Programming"}
427
428 MACRO {sicomp} {"SIAM Journal on Computing"}
429
430 MACRO {tocs} {"ACM Transactions on Computer Systems"}
431
432 MACRO {tods} {"ACM Transactions on Database Systems"}
433
434 MACRO {tog} {"ACM Transactions on Graphics"}
435
436 MACRO {toms} {"ACM Transactions on Mathematical Software"}
437
438 MACRO {toois} {"ACM Transactions on Office Information Systems"}
439
440 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
441
442 MACRO {tcs} {"Theoretical Computer Science"}
443 FUNCTION {bibinfo.check}
444 { swap$
445 duplicate$ missing$
446 {
447 pop$ pop$
448 ""
449 }
450 { duplicate$ empty$
451 {
452 swap$ pop$
453 }
454 { swap$
455 pop$
456 }
457 if$
458 }
459 if$
460 }
461 FUNCTION {bibinfo.warn}
462 { swap$
463 duplicate$ missing$
464 {
465 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
466 ""
467 }
468 { duplicate$ empty$
469 {
470 swap$ "empty " swap$ * " in " * cite$ * warning$
471 }
472 { swap$
473 pop$
474 }
475 if$
476 }
477 if$
478 }
479 FUNCTION {format.eprint}
480 { eprint duplicate$ empty$
481 'skip$
482 { "\eprint"
483 archive empty$
484 'skip$
485 { "[" * archive * "]" * }
486 if$
487 "{" * swap$ * "}" *
488 }
489 if$
490 }
491 FUNCTION {format.web.urldate}
492 { urldate empty$
493 {""}
494 {urldate "urldate" bibinfo.check
495 urltype duplicate$ empty$
496 { pop$ bbl.urldate }
497 'skip$
498 if$
499 "urltype" bibinfo.check
500 swap$ duplicate$ empty$
501 { pop$ "t" change.case$ }
502 { tie.or.space.prefix * * }
503 if$
504 ", " *
505 }
506 if$
507 }
508
509 FUNCTION {format.url}
510 {
511 url
512 duplicate$ empty$
513 { pop$ "" }
514 { "\urlprefix\url{" swap$ * "}" *
515 format.web.urldate swap$ *
516 }
517 if$
518 }
519
520 INTEGERS { nameptr namesleft numnames }
521
522
523 STRINGS { bibinfo}
524
525 FUNCTION {format.names}
526 { 'bibinfo :=
527 duplicate$ empty$ 'skip$ {
528 's :=
529 "" 't :=
530 #1 'nameptr :=
531 s num.names$ 'numnames :=
532 numnames 'namesleft :=
533 { namesleft #0 > }
534 { s nameptr
535 "{vv~}{ll}{, f.}{, jj}"
536 format.name$
537 bibinfo bibinfo.check
538 't :=
539 nameptr #1 >
540 {
541 namesleft #1 >
542 { ", " * t * }
543 {
544 s nameptr "{ll}" format.name$ duplicate$ "others" =
545 { 't := }
546 { pop$ }
547 if$
548 numnames #2 >
549 { "," * }
550 'skip$
551 if$
552 t "others" =
553 {
554 " " * bbl.etal *
555 }
556 {
557 bbl.and
558 space.word * t *
559 }
560 if$
561 }
562 if$
563 }
564 't
565 if$
566 nameptr #1 + 'nameptr :=
567 namesleft #1 - 'namesleft :=
568 }
569 while$
570 } if$
571 }
572 FUNCTION {format.names.ed}
573 {
574 format.names
575 }
576 FUNCTION {format.authors}
577 { author "author" format.names
578 duplicate$ empty$ 'skip$
579 { collaboration "collaboration" bibinfo.check
580 duplicate$ empty$ 'skip$
581 { " (" swap$ * ")" * }
582 if$
583 *
584 }
585 if$
586 }
587 FUNCTION {get.bbl.editor}
588 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
589
590 FUNCTION {format.editors}
591 { editor "editor" format.names duplicate$ empty$ 'skip$
592 {
593 "," *
594 " " *
595 get.bbl.editor
596 *
597 }
598 if$
599 }
600 FUNCTION {format.doi}
601 { doi empty$
602 { "" }
603 {
604 "\doi{" doi * "}" *
605 }
606 if$
607 }
608 FUNCTION {format.note}
609 {
610 note empty$
611 { "" }
612 { note #1 #1 substring$
613 duplicate$ "{" =
614 'skip$
615 { output.state mid.sentence =
616 { "l" }
617 { "u" }
618 if$
619 change.case$
620 }
621 if$
622 note #2 global.max$ substring$ * "note" bibinfo.check
623 }
624 if$
625 }
626
627 FUNCTION {format.title}
628 { title
629 "title" bibinfo.check
630 duplicate$ empty$ 'skip$
631 {
632 "\enquote{" swap$ *
633 non.stop
634 { ",} " * }
635 { "} " * }
636 if$
637 }
638 if$
639 }
640 FUNCTION {end.quote.title}
641 { title empty$
642 'skip$
643 { before.all 'output.state := }
644 if$
645 }
646 FUNCTION {output.bibitem}
647 { newline$
648 "\bibitem{" write$
649 cite$ write$
650 "}" write$
651 newline$
652 ""
653 before.all 'output.state :=
654 }
655
656 FUNCTION {n.dashify}
657 {
658 't :=
659 ""
660 { t empty$ not }
661 { t #1 #1 substring$ "-" =
662 { t #1 #2 substring$ "--" = not
663 { "--" *
664 t #2 global.max$ substring$ 't :=
665 }
666 { { t #1 #1 substring$ "-" = }
667 { "-" *
668 t #2 global.max$ substring$ 't :=
669 }
670 while$
671 }
672 if$
673 }
674 { t #1 #1 substring$ *
675 t #2 global.max$ substring$ 't :=
676 }
677 if$
678 }
679 while$
680 }
681
682 FUNCTION {word.in}
683 { bbl.in
684 " " * }
685
686 FUNCTION {format.date}
687 {
688 ""
689 duplicate$ empty$
690 year "year" bibinfo.check duplicate$ empty$
691 { swap$ 'skip$
692 { "there's a month but no year in " cite$ * warning$ }
693 if$
694 *
695 }
696 { swap$ 'skip$
697 {
698 swap$
699 " " * swap$
700 }
701 if$
702 *
703 }
704 if$
705 duplicate$ empty$
706 'skip$
707 {
708 before.all 'output.state :=
709 " (" swap$ * ")" *
710 }
711 if$
712 }
713 FUNCTION {format.btitle}
714 { title "title" bibinfo.check
715 duplicate$ empty$ 'skip$
716 {
717 emphasize
718 }
719 if$
720 }
721 FUNCTION {either.or.check}
722 { empty$
723 'pop$
724 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
725 if$
726 }
727 FUNCTION {format.bvolume}
728 { volume empty$
729 { "" }
730 { bbl.volume volume tie.or.space.prefix
731 "volume" bibinfo.check * *
732 series "series" bibinfo.check
733 duplicate$ empty$ 'pop$
734 { emphasize ", " * swap$ * }
735 if$
736 "volume and number" number either.or.check
737 }
738 if$
739 }
740 FUNCTION {format.number.series}
741 { volume empty$
742 { number empty$
743 { series field.or.null }
744 { series empty$
745 { number "number" bibinfo.check }
746 { output.state mid.sentence =
747 { bbl.number }
748 { bbl.number capitalize }
749 if$
750 number tie.or.space.prefix "number" bibinfo.check * *
751 bbl.in space.word *
752 series "series" bibinfo.check *
753 }
754 if$
755 }
756 if$
757 }
758 { "" }
759 if$
760 }
761 FUNCTION {is.num}
762 { chr.to.int$
763 duplicate$ "0" chr.to.int$ < not
764 swap$ "9" chr.to.int$ > not and
765 }
766
767 FUNCTION {extract.num}
768 { duplicate$ 't :=
769 "" 's :=
770 { t empty$ not }
771 { t #1 #1 substring$
772 t #2 global.max$ substring$ 't :=
773 duplicate$ is.num
774 { s swap$ * 's := }
775 { pop$ "" 't := }
776 if$
777 }
778 while$
779 s empty$
780 'skip$
781 { pop$ s }
782 if$
783 }
784
785 FUNCTION {convert.edition}
786 { extract.num "l" change.case$ 's :=
787 s "first" = s "1" = or
788 { bbl.first 't := }
789 { s "second" = s "2" = or
790 { bbl.second 't := }
791 { s "third" = s "3" = or
792 { bbl.third 't := }
793 { s "fourth" = s "4" = or
794 { bbl.fourth 't := }
795 { s "fifth" = s "5" = or
796 { bbl.fifth 't := }
797 { s #1 #1 substring$ is.num
798 { s eng.ord 't := }
799 { edition 't := }
800 if$
801 }
802 if$
803 }
804 if$
805 }
806 if$
807 }
808 if$
809 }
810 if$
811 t
812 }
813
814 FUNCTION {format.edition}
815 { edition duplicate$ empty$ 'skip$
816 {
817 convert.edition
818 output.state mid.sentence =
819 { "l" }
820 { "t" }
821 if$ change.case$
822 "edition" bibinfo.check
823 " " * bbl.edition *
824 }
825 if$
826 }
827 INTEGERS { multiresult }
828 FUNCTION {multi.page.check}
829 { 't :=
830 #0 'multiresult :=
831 { multiresult not
832 t empty$ not
833 and
834 }
835 { t #1 #1 substring$
836 duplicate$ "-" =
837 swap$ duplicate$ "," =
838 swap$ "+" =
839 or or
840 { #1 'multiresult := }
841 { t #2 global.max$ substring$ 't := }
842 if$
843 }
844 while$
845 multiresult
846 }
847 FUNCTION {format.pages}
848 { pages duplicate$ empty$ 'skip$
849 { duplicate$ multi.page.check
850 {
851 bbl.pages swap$
852 n.dashify
853 }
854 {
855 bbl.page swap$
856 }
857 if$
858 tie.or.space.prefix
859 "pages" bibinfo.check
860 * *
861 }
862 if$
863 }
864 FUNCTION {format.journal.pages}
865 { pages duplicate$ empty$ 'pop$
866 { swap$ duplicate$ empty$
867 { pop$ pop$ format.pages }
868 {
869 ", " *
870 swap$
871 n.dashify
872 "pages" bibinfo.check
873 *
874 }
875 if$
876 }
877 if$
878 }
879 FUNCTION {format.journal.eid}
880 { eid "eid" bibinfo.check
881 duplicate$ empty$ 'pop$
882 { swap$ duplicate$ empty$ 'skip$
883 {
884 ", " *
885 }
886 if$
887 swap$ *
888 numpages empty$ 'skip$
889 { bbl.eidpp numpages tie.or.space.prefix
890 "numpages" bibinfo.check * *
891 " (" swap$ * ")" * *
892 }
893 if$
894 }
895 if$
896 }
897 FUNCTION {format.vol.num.pages}
898 { volume field.or.null
899 duplicate$ empty$ 'skip$
900 {
901 "volume" bibinfo.check
902 }
903 if$
904 bolden
905 eid empty$
906 { format.journal.pages }
907 { format.journal.eid }
908 if$
909 }
910
911 FUNCTION {format.chapter.pages}
912 { chapter empty$
913 'format.pages
914 { type empty$
915 { bbl.chapter }
916 { type "l" change.case$
917 "type" bibinfo.check
918 }
919 if$
920 chapter tie.or.space.prefix
921 "chapter" bibinfo.check
922 * *
923 pages empty$
924 'skip$
925 { ", " * format.pages * }
926 if$
927 }
928 if$
929 }
930
931 FUNCTION {format.booktitle}
932 {
933 booktitle "booktitle" bibinfo.check
934 emphasize
935 }
936 FUNCTION {format.ed.proctitle}
937 { format.booktitle duplicate$ empty$ 'skip$
938 {
939 format.bvolume duplicate$ empty$ 'pop$
940 { ", " swap$ * * }
941 if$
942 editor "editor" format.names.ed duplicate$ empty$ 'pop$
943 {
944 "," *
945 " " *
946 get.bbl.editor
947 ", " *
948 * swap$
949 * }
950 if$
951 }
952 if$
953 }
954
955 FUNCTION {format.in.ed.booktitle}
956 { format.booktitle duplicate$ empty$ 'skip$
957 {
958 format.bvolume duplicate$ empty$ 'pop$
959 { ", " swap$ * * }
960 if$
961 editor "editor" format.names.ed duplicate$ empty$ 'pop$
962 {
963 "," *
964 " " *
965 get.bbl.editor
966 ", " *
967 * swap$
968 * }
969 if$
970 word.in swap$ *
971 }
972 if$
973 }
974 FUNCTION {empty.misc.check}
975 { author empty$ title empty$ howpublished empty$
976 month empty$ year empty$ note empty$
977 and and and and and
978 { "all relevant fields are empty in " cite$ * warning$ }
979 'skip$
980 if$
981 }
982 FUNCTION {format.thesis.type}
983 { type duplicate$ empty$
984 'pop$
985 { swap$ pop$
986 "t" change.case$ "type" bibinfo.check
987 }
988 if$
989 }
990 FUNCTION {format.tr.number}
991 { number "number" bibinfo.check
992 type duplicate$ empty$
993 { pop$ bbl.techrep }
994 'skip$
995 if$
996 "type" bibinfo.check
997 swap$ duplicate$ empty$
998 { pop$ "t" change.case$ }
999 { tie.or.space.prefix * * }
1000 if$
1001 }
1002 FUNCTION {format.article.crossref}
1003 {
1004 key duplicate$ empty$
1005 { pop$
1006 journal duplicate$ empty$
1007 { "need key or journal for " cite$ * " to crossref " * crossref * warning$ }
1008 { "journal" bibinfo.check emphasize word.in swap$ * }
1009 if$
1010 }
1011 { word.in swap$ * " " *}
1012 if$
1013 " \cite{" * crossref * "}" *
1014 }
1015 FUNCTION {format.crossref.editor}
1016 { editor #1 "{vv~}{ll}" format.name$
1017 "editor" bibinfo.check
1018 editor num.names$ duplicate$
1019 #2 >
1020 { pop$
1021 "editor" bibinfo.check
1022 " " * bbl.etal
1023 *
1024 }
1025 { #2 <
1026 'skip$
1027 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1028 {
1029 "editor" bibinfo.check
1030 " " * bbl.etal
1031 *
1032 }
1033 {
1034 bbl.and space.word
1035 * editor #2 "{vv~}{ll}" format.name$
1036 "editor" bibinfo.check
1037 *
1038 }
1039 if$
1040 }
1041 if$
1042 }
1043 if$
1044 }
1045 FUNCTION {format.book.crossref}
1046 { volume duplicate$ empty$
1047 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
1048 pop$ word.in
1049 }
1050 { bbl.volume
1051 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
1052 }
1053 if$
1054 editor empty$
1055 editor field.or.null author field.or.null =
1056 or
1057 { key empty$
1058 { series empty$
1059 { "need editor, key, or series for " cite$ * " to crossref " *
1060 crossref * warning$
1061 "" *
1062 }
1063 { series emphasize * }
1064 if$
1065 }
1066 { key * }
1067 if$
1068 }
1069 { format.crossref.editor * }
1070 if$
1071 " \cite{" * crossref * "}" *
1072 }
1073 FUNCTION {format.incoll.inproc.crossref}
1074 {
1075 editor empty$
1076 editor field.or.null author field.or.null =
1077 or
1078 { key empty$
1079 { format.booktitle duplicate$ empty$
1080 { "need editor, key, or booktitle for " cite$ * " to crossref " *
1081 crossref * warning$
1082 }
1083 { word.in swap$ * }
1084 if$
1085 }
1086 { word.in key * " " *}
1087 if$
1088 }
1089 { word.in format.crossref.editor * " " *}
1090 if$
1091 " \cite{" * crossref * "}" *
1092 }
1093 FUNCTION {format.org.or.pub}
1094 { 't :=
1095 ""
1096 address empty$ t empty$ and
1097 'skip$
1098 {
1099 address "address" bibinfo.check *
1100 t empty$
1101 'skip$
1102 { address empty$
1103 'skip$
1104 { ": " * }
1105 if$
1106 t *
1107 }
1108 if$
1109 }
1110 if$
1111 }
1112 FUNCTION {format.publisher.address}
1113 { publisher "publisher" bibinfo.warn format.org.or.pub
1114 }
1115
1116 FUNCTION {format.organization.address}
1117 { organization "organization" bibinfo.check format.org.or.pub
1118 }
1119
1120 FUNCTION {article}
1121 { output.bibitem
1122 format.authors "author" output.check
1123 format.title "title" output.check
1124 end.quote.title
1125 crossref missing$
1126 {
1127 journal
1128 "journal" bibinfo.check
1129 emphasize
1130 "journal" output.check
1131 format.vol.num.pages output
1132 format.date "year" output.check
1133 }
1134 { format.article.crossref output.nonnull
1135 format.pages output
1136 }
1137 if$
1138 format.doi output
1139 new.sentence
1140 format.eprint output
1141 format.url output
1142 new.sentence
1143 format.note output
1144 fin.entry
1145 }
1146 FUNCTION {book}
1147 { output.bibitem
1148 author empty$
1149 { format.editors "author and editor" output.check
1150 }
1151 { format.authors output.nonnull
1152 crossref missing$
1153 { "author and editor" editor either.or.check }
1154 'skip$
1155 if$
1156 }
1157 if$
1158 format.btitle "title" output.check
1159 crossref missing$
1160 { format.bvolume output
1161 format.number.series output
1162 format.publisher.address output
1163 }
1164 {
1165 format.book.crossref output.nonnull
1166 }
1167 if$
1168 format.edition output
1169 format.date "year" output.check
1170 format.doi output
1171 new.sentence
1172 format.eprint output
1173 format.url output
1174 new.sentence
1175 format.note output
1176 fin.entry
1177 }
1178 FUNCTION {booklet}
1179 { output.bibitem
1180 format.authors output
1181 format.title "title" output.check
1182 end.quote.title
1183 howpublished "howpublished" bibinfo.check output
1184 address "address" bibinfo.check output
1185 format.date output
1186 format.doi output
1187 new.sentence
1188 format.eprint output
1189 format.url output
1190 new.sentence
1191 format.note output
1192 fin.entry
1193 }
1194
1195 FUNCTION {inbook}
1196 { output.bibitem
1197 author empty$
1198 { format.editors "author and editor" output.check
1199 }
1200 { format.authors output.nonnull
1201 crossref missing$
1202 { "author and editor" editor either.or.check }
1203 'skip$
1204 if$
1205 }
1206 if$
1207 format.btitle "title" output.check
1208 crossref missing$
1209 {
1210 format.publisher.address output
1211 format.bvolume output
1212 format.chapter.pages "chapter and pages" output.check
1213 format.number.series output
1214 }
1215 {
1216 format.chapter.pages "chapter and pages" output.check
1217 format.book.crossref output.nonnull
1218 }
1219 if$
1220 format.edition output
1221 format.date "year" output.check
1222 format.doi output
1223 new.sentence
1224 format.eprint output
1225 format.url output
1226 new.sentence
1227 format.note output
1228 fin.entry
1229 }
1230
1231 FUNCTION {incollection}
1232 { output.bibitem
1233 format.authors "author" output.check
1234 format.title "title" output.check
1235 end.quote.title
1236 crossref missing$
1237 { format.in.ed.booktitle "booktitle" output.check
1238 format.publisher.address output
1239 format.number.series output
1240 format.chapter.pages output
1241 format.edition output
1242 format.date "year" output.check
1243 }
1244 { format.incoll.inproc.crossref output.nonnull
1245 format.chapter.pages output
1246 }
1247 if$
1248 format.doi output
1249 new.sentence
1250 format.eprint output
1251 format.url output
1252 new.sentence
1253 format.note output
1254 fin.entry
1255 }
1256 FUNCTION {inproceedings}
1257 { output.bibitem
1258 format.authors "author" output.check
1259 format.title "title" output.check
1260 end.quote.title
1261 crossref missing$
1262 { format.ed.proctitle "booktitle" output.check
1263 publisher empty$
1264 { format.organization.address output }
1265 { organization "organization" bibinfo.check output
1266 format.publisher.address output
1267 }
1268 if$
1269 format.number.series output
1270 format.pages output
1271 format.date "year" output.check
1272 }
1273 { format.incoll.inproc.crossref output.nonnull
1274 format.pages output
1275 }
1276 if$
1277 format.doi output
1278 new.sentence
1279 format.eprint output
1280 format.url output
1281 new.sentence
1282 format.note output
1283 fin.entry
1284 }
1285 FUNCTION {conference} { inproceedings }
1286 FUNCTION {manual}
1287 { output.bibitem
1288 author empty$
1289 { organization "organization" bibinfo.check
1290 duplicate$ empty$ 'pop$
1291 { output
1292 address "address" bibinfo.check output
1293 }
1294 if$
1295 }
1296 { format.authors output.nonnull }
1297 if$
1298 format.btitle "title" output.check
1299 author empty$
1300 { organization empty$
1301 {
1302 address "address" bibinfo.check output
1303 }
1304 'skip$
1305 if$
1306 }
1307 {
1308 organization "organization" bibinfo.check output
1309 address "address" bibinfo.check output
1310 }
1311 if$
1312 format.edition output
1313 format.date output
1314 format.doi output
1315 new.sentence
1316 format.eprint output
1317 format.url output
1318 new.sentence
1319 format.note output
1320 fin.entry
1321 }
1322
1323 FUNCTION {mastersthesis}
1324 { output.bibitem
1325 format.authors "author" output.check
1326 format.btitle
1327 "title" output.check
1328 bbl.mthesis format.thesis.type output.nonnull
1329 school "school" bibinfo.warn output
1330 address "address" bibinfo.check output
1331 format.date "year" output.check
1332 format.doi output
1333 new.sentence
1334 format.note output
1335 format.eprint output
1336 format.url output
1337 fin.entry
1338 }
1339
1340 FUNCTION {misc}
1341 { output.bibitem
1342 format.authors output
1343 format.btitle
1344 "title" output.check
1345 howpublished "howpublished" bibinfo.check output
1346 format.date output
1347 format.doi output
1348 new.sentence
1349 format.eprint output
1350 format.url output
1351 new.sentence
1352 format.note output
1353 fin.entry
1354 empty.misc.check
1355 }
1356 FUNCTION {phdthesis}
1357 { output.bibitem
1358 format.authors "author" output.check
1359 format.btitle
1360 "title" output.check
1361 bbl.phdthesis format.thesis.type output.nonnull
1362 school "school" bibinfo.warn output
1363 address "address" bibinfo.check output
1364 format.date "year" output.check
1365 format.doi output
1366 new.sentence
1367 format.note output
1368 format.eprint output
1369 format.url output
1370 fin.entry
1371 }
1372
1373 FUNCTION {proceedings}
1374 { output.bibitem
1375 editor empty$
1376 { organization "organization" bibinfo.check output
1377 }
1378 { format.editors output.nonnull }
1379 if$
1380 format.btitle "title" output.check
1381 format.bvolume output
1382 format.number.series output
1383 editor empty$
1384 { publisher empty$
1385 'skip$
1386 {
1387 format.publisher.address output
1388 }
1389 if$
1390 }
1391 { publisher empty$
1392 {
1393 format.organization.address output }
1394 {
1395 organization "organization" bibinfo.check output
1396 format.publisher.address output
1397 }
1398 if$
1399 }
1400 if$
1401 format.date "year" output.check
1402 format.doi output
1403 new.sentence
1404 format.eprint output
1405 format.url output
1406 new.sentence
1407 format.note output
1408 fin.entry
1409 }
1410
1411 FUNCTION {techreport}
1412 { output.bibitem
1413 format.authors "author" output.check
1414 format.btitle
1415 "title" output.check
1416 format.tr.number output.nonnull
1417 institution "institution" bibinfo.warn output
1418 address "address" bibinfo.check output
1419 format.date "year" output.check
1420 format.doi output
1421 new.sentence
1422 format.eprint output
1423 format.url output
1424 new.sentence
1425 format.note output
1426 fin.entry
1427 }
1428
1429 FUNCTION {unpublished}
1430 { output.bibitem
1431 format.authors "author" output.check
1432 format.title "title" output.check
1433 end.quote.title
1434 format.date output
1435 format.doi output
1436 new.sentence
1437 format.note "note" output.check
1438 format.eprint output
1439 format.url output
1440 fin.entry
1441 }
1442
1443 FUNCTION {default.type} { misc }
1444 READ
1445 STRINGS { longest.label }
1446 INTEGERS { number.label longest.label.width }
1447 FUNCTION {initialize.longest.label}
1448 { "" 'longest.label :=
1449 #1 'number.label :=
1450 #0 'longest.label.width :=
1451 }
1452 FUNCTION {longest.label.pass}
1453 { number.label int.to.str$ 'label :=
1454 number.label #1 + 'number.label :=
1455 label width$ longest.label.width >
1456 { label 'longest.label :=
1457 label width$ 'longest.label.width :=
1458 }
1459 'skip$
1460 if$
1461 }
1462 EXECUTE {initialize.longest.label}
1463 ITERATE {longest.label.pass}
1464 FUNCTION {begin.bib}
1465 { preamble$ empty$
1466 'skip$
1467 { preamble$ write$ newline$ }
1468 if$
1469 "\begin{thebibliography}{" longest.label * "}" *
1470 write$ newline$
1471 "\newcommand{\enquote}[1]{``#1''}"
1472 write$ newline$
1473 "\providecommand{\url}[1]{\texttt{#1}}"
1474 write$ newline$
1475 "\providecommand{\urlprefix}{url:~}"
1476 write$ newline$
1477 "\expandafter\ifx\csname urlstyle\endcsname\relax"
1478 write$ newline$
1479 " \providecommand{\doi}[1]{doi:\discretionary{}{}{}#1}\else"
1480 write$ newline$
1481 " \providecommand{\doi}{doi:\discretionary{}{}{}\begingroup \urlstyle{rm}\Url}\fi"
1482 write$ newline$
1483 "\providecommand{\eprint}[2][]{\url{#2}}"
1484 write$ newline$
1485 }
1486 EXECUTE {begin.bib}
1487 EXECUTE {init.state.consts}
1488 ITERATE {call.type$}
1489 FUNCTION {end.bib}
1490 { newline$
1491 "\end{thebibliography}" write$ newline$
1492 }
1493 EXECUTE {end.bib}
1494 %% End of customized bst file
1495 %%
1496 %% End of file `prtec.bst'.