Debian Codegraph @

texmf-dist/bibtex/bst/elsarticle/elsarticle-harv.bst

raw
1 %%
2 %% This is file `elsarticle-harv.bst' (Version 2.1),
3 %%
4 %% Copyright 2009-2026 Elsevier Ltd
5 %%
6 %% This file is part of the 'Elsarticle Bundle'.
7 %% ---------------------------------------------
8 %%
9 %% It may be distributed under the conditions of the LaTeX Project Public
10 %% License, either version 1.3 of this license or (at your option) any
11 %% later version. The latest version of this license is in
12 %% http://www.latex-project.org/lppl.txt
13 %% and version 1.3 or later is part of all distributions of LaTeX
14 %% version 1999/12/01 or later.
15 %%
16 %% $Id: elsarticle-harv.bst 288 2026-01-09 06:11:11Z rishi $
17 %%
18 %% $URL: https://lenova.river-valley.com/svn/elsarticle/trunk/elsarticle-harv.bst $
19 %%
20
21 ENTRY
22 { address
23 archive
24 author
25 booktitle
26 chapter
27 collaboration
28 edition
29 editor
30 howpublished
31 institution
32 journal
33 key
34 month
35 note
36 number
37 organization
38 pages
39 publisher
40 school
41 series
42 title
43 type
44 volume
45 year
46 url
47 doi
48 eprint
49 pubmed
50 }
51 {}
52 { label extra.label sort.label short.list }
53
54 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
55
56 STRINGS { urlprefix doiprefix eprintprefix pubmedprefix }
57
58 FUNCTION {init.web.variables}
59 {
60 "\URLprefix " 'urlprefix :=
61 "\DOIprefix" 'doiprefix :=
62 "\ArXivprefix " 'eprintprefix :=
63 "\Pubmedprefix " 'pubmedprefix :=
64 }
65
66 FUNCTION {init.state.consts}
67 { #0 'before.all :=
68 #1 'mid.sentence :=
69 #2 'after.sentence :=
70 #3 'after.block :=
71 }
72 STRINGS { s t}
73 FUNCTION {output.comma}
74 { ", " * write$}
75
76 FUNCTION {output.nonnull}
77 { 's :=
78 output.state mid.sentence =
79 { ". " * write$ }
80 { output.state after.block =
81 { add.period$ write$
82 newline$
83 "\newblock " write$
84 }
85 { output.state before.all =
86 'write$
87 { ", " * write$ }
88 if$
89 }
90 if$
91 mid.sentence 'output.state :=
92 }
93 if$
94 s
95 }
96 FUNCTION {output.commanull}
97 { 's :=
98 output.state mid.sentence =
99 { ", " * write$ }
100 { output.state after.block =
101 { ", " * write$
102 newline$
103 "\newblock " write$
104 }
105 { output.state before.all =
106 'write$
107 { add.period$ " " * write$ }
108 if$
109 }
110 if$
111 mid.sentence 'output.state :=
112 }
113 if$
114 s
115 }
116 FUNCTION {output}
117 { duplicate$ empty$
118 'pop$
119 'output.nonnull
120 if$
121 }
122 FUNCTION {output.check}
123 { 't :=
124 duplicate$ empty$
125 { pop$ "empty " t * " in " * cite$ * warning$ }
126 'output.nonnull
127 if$
128 }
129 FUNCTION {output.book.check}
130 { 't :=
131 duplicate$ empty$
132 { pop$ "empty " t * " in " * cite$ * warning$ }
133 'output.nonnull
134 if$
135 }
136 FUNCTION {fin.entry}
137 { add.period$
138 write$
139 newline$
140 }
141
142 FUNCTION {new.block}
143 { output.state before.all =
144 'skip$
145 { after.block 'output.state := }
146 if$
147 }
148 FUNCTION {new.sentence}
149 { output.state after.block =
150 'skip$
151 { output.state before.all =
152 'skip$
153 { after.sentence 'output.state := }
154 if$
155 }
156 if$
157 }
158 FUNCTION {add.blank}
159 { " " * before.all 'output.state :=
160 }
161
162 FUNCTION {date.block}
163 {
164 new.block
165 }
166
167 FUNCTION {not}
168 { { #0 }
169 { #1 }
170 if$
171 }
172 FUNCTION {and}
173 { 'skip$
174 { pop$ #0 }
175 if$
176 }
177 FUNCTION {or}
178 { { pop$ #1 }
179 'skip$
180 if$
181 }
182 FUNCTION {new.block.checkb}
183 { empty$
184 swap$ empty$
185 and
186 'skip$
187 'new.block
188 if$
189 }
190 FUNCTION {field.or.null}
191 { duplicate$ empty$
192 { pop$ "" }
193 'skip$
194 if$
195 }
196 FUNCTION {emphasize}
197 { duplicate$ empty$
198 { pop$ "" }
199 { "\textit{" swap$ * "}" * }
200 if$
201 }
202 FUNCTION {tie.or.space.prefix}
203 { duplicate$ text.length$ #3 <
204 { "~" }
205 { " " }
206 if$
207 swap$
208 }
209
210 FUNCTION {capitalize}
211 { "u" change.case$ "t" change.case$ }
212
213 FUNCTION {space.word}
214 { " " swap$ * " " * }
215 % Here are the language-specific definitions for explicit words.
216 % Each function has a name bbl.xxx where xxx is the English word.
217 % The language selected here is ENGLISH
218 FUNCTION {bbl.and}
219 { "and"}
220
221 FUNCTION {bbl.etal}
222 { "et~al." }
223
224 FUNCTION {bbl.editors}
225 { "Eds." }
226
227 FUNCTION {bbl.editor}
228 { "Ed." }
229
230 FUNCTION {bbl.edby}
231 { "edited by" }
232
233 FUNCTION {bbl.edition}
234 { "ed." }
235
236 FUNCTION {bbl.volume}
237 { "volume" }
238
239 FUNCTION {bbl.of}
240 { "of" }
241
242 FUNCTION {bbl.number}
243 { "number" }
244
245 FUNCTION {bbl.nr}
246 { "no." }
247
248 FUNCTION {bbl.in}
249 { "in" }
250
251 FUNCTION {bbl.pages}
252 { "pp." }
253
254 FUNCTION {bbl.page}
255 { "p." }
256
257 FUNCTION {bbl.chapter}
258 { "chapter" }
259
260 FUNCTION {bbl.techrep}
261 { "Technical Report" }
262
263 FUNCTION {bbl.mthesis}
264 { "Master's thesis" }
265
266 FUNCTION {bbl.phdthesis}
267 { "Ph.D. thesis" }
268
269 MACRO {jan} {"January"}
270
271 MACRO {feb} {"February"}
272
273 MACRO {mar} {"March"}
274
275 MACRO {apr} {"April"}
276
277 MACRO {may} {"May"}
278
279 MACRO {jun} {"June"}
280
281 MACRO {jul} {"July"}
282
283 MACRO {aug} {"August"}
284
285 MACRO {sep} {"September"}
286
287 MACRO {oct} {"October"}
288
289 MACRO {nov} {"November"}
290
291 MACRO {dec} {"December"}
292
293 MACRO {acmcs} {"ACM Comput. Surv."}
294
295 MACRO {acta} {"Acta Inf."}
296
297 MACRO {cacm} {"Commun. ACM"}
298
299 MACRO {ibmjrd} {"IBM J. Res. Dev."}
300
301 MACRO {ibmsj} {"IBM Syst.~J."}
302
303 MACRO {ieeese} {"IEEE Trans. Software Eng."}
304
305 MACRO {ieeetc} {"IEEE Trans. Comput."}
306
307 MACRO {ieeetcad}
308 {"IEEE Trans. Comput. Aid. Des."}
309
310 MACRO {ipl} {"Inf. Process. Lett."}
311
312 MACRO {jacm} {"J.~ACM"}
313
314 MACRO {jcss} {"J.~Comput. Syst. Sci."}
315
316 MACRO {scp} {"Sci. Comput. Program."}
317
318 MACRO {sicomp} {"SIAM J. Comput."}
319
320 MACRO {tocs} {"ACM Trans. Comput. Syst."}
321
322 MACRO {tods} {"ACM Trans. Database Syst."}
323
324 MACRO {tog} {"ACM Trans. Graphic."}
325
326 MACRO {toms} {"ACM Trans. Math. Software"}
327
328 MACRO {toois} {"ACM Trans. Office Inf. Syst."}
329
330 MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."}
331
332 MACRO {tcs} {"Theor. Comput. Sci."}
333
334 FUNCTION {bibinfo.check}
335 { swap$
336 duplicate$ missing$
337 {
338 pop$ pop$
339 ""
340 }
341 { duplicate$ empty$
342 {
343 swap$ pop$
344 }
345 { swap$
346 "\bibinfo{" swap$ * "}{" * swap$ * "}" *
347 }
348 if$
349 }
350 if$
351 }
352 FUNCTION {bibinfo.warn}
353 { swap$
354 duplicate$ missing$
355 {
356 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
357 ""
358 }
359 { duplicate$ empty$
360 {
361 swap$ "empty " swap$ * " in " * cite$ * warning$
362 }
363 { swap$
364 pop$
365 }
366 if$
367 }
368 if$
369 }
370
371 STRINGS { bibinfo}
372
373 INTEGERS { nameptr namesleft numnames }
374
375 FUNCTION {format.names}
376 { 'bibinfo :=
377 duplicate$ empty$ 'skip$ {
378 's :=
379 "" 't :=
380 #1 'nameptr :=
381 s num.names$ 'numnames :=
382 numnames 'namesleft :=
383 { namesleft #0 > }
384 { s nameptr
385 "{vv~}{ll}{, jj}{, f{.}.}"
386 format.name$
387 bibinfo bibinfo.check
388 't :=
389 nameptr #1 >
390 {
391 namesleft #1 >
392 { ", " * t * }
393 {
394 "," *
395 s nameptr "{ll}" format.name$ duplicate$ "others" =
396 { 't := }
397 { pop$ }
398 if$
399 t "others" =
400 {
401 " " * bbl.etal *
402 }
403 { " " * t * }
404 if$
405 }
406 if$
407 }
408 't
409 if$
410 nameptr #1 + 'nameptr :=
411 namesleft #1 - 'namesleft :=
412 }
413 while$
414 } if$
415 }
416 FUNCTION {format.names.ed}
417 {
418 format.names
419 }
420 FUNCTION {format.key}
421 { empty$
422 { key field.or.null }
423 { "" }
424 if$
425 }
426
427 FUNCTION {format.authors}
428 { author "author" format.names
429 duplicate$ empty$ 'skip$
430 { collaboration "collaboration" bibinfo.check
431 duplicate$ empty$ 'skip$
432 { " (" swap$ * ")" * }
433 if$
434 *
435 }
436 if$
437 }
438
439 FUNCTION {get.bbl.editor}
440 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
441
442 FUNCTION {format.editors}
443 { editor "editor" format.names duplicate$ empty$ 'skip$
444 {
445 " " *
446 get.bbl.editor
447 capitalize
448 "(" swap$ * ")" *
449 *
450 }
451 if$
452 }
453 FUNCTION {format.note}
454 {
455 note empty$
456 { "" }
457 { note #1 #1 substring$
458 duplicate$ "{" =
459 'skip$
460 { output.state mid.sentence =
461 { "l" }
462 { "u" }
463 if$
464 change.case$
465 }
466 if$
467 note #2 global.max$ substring$ * "note" bibinfo.check
468 }
469 if$
470 }
471
472 FUNCTION {format.title}
473 { title
474 duplicate$ empty$ 'skip$
475 { "t" change.case$ }
476 if$
477 "title" bibinfo.check
478 }
479 FUNCTION {format.full.names}
480 {'s :=
481 "" 't :=
482 #1 'nameptr :=
483 s num.names$ 'numnames :=
484 numnames 'namesleft :=
485 { namesleft #0 > }
486 { s nameptr
487 "{vv~}{ll}" format.name$
488 't :=
489 nameptr #1 >
490 {
491 namesleft #1 >
492 { ", " * t * }
493 {
494 s nameptr "{ll}" format.name$ duplicate$ "others" =
495 { 't := }
496 { pop$ }
497 if$
498 t "others" =
499 {
500 " " * bbl.etal *
501 }
502 {
503 bbl.and
504 space.word * t *
505 }
506 if$
507 }
508 if$
509 }
510 't
511 if$
512 nameptr #1 + 'nameptr :=
513 namesleft #1 - 'namesleft :=
514 }
515 while$
516 }
517
518 FUNCTION {author.editor.key.full}
519 { author empty$
520 { editor empty$
521 { key empty$
522 { cite$ #1 #3 substring$ }
523 'key
524 if$
525 }
526 { editor format.full.names }
527 if$
528 }
529 { author format.full.names }
530 if$
531 }
532
533 FUNCTION {author.key.full}
534 { author empty$
535 { key empty$
536 { cite$ #1 #3 substring$ }
537 'key
538 if$
539 }
540 { author format.full.names }
541 if$
542 }
543
544 FUNCTION {editor.key.full}
545 { editor empty$
546 { key empty$
547 { cite$ #1 #3 substring$ }
548 'key
549 if$
550 }
551 { editor format.full.names }
552 if$
553 }
554
555 FUNCTION {make.full.names}
556 { type$ "book" =
557 type$ "inbook" =
558 or
559 'author.editor.key.full
560 { type$ "proceedings" =
561 'editor.key.full
562 'author.key.full
563 if$
564 }
565 if$
566 }
567
568 FUNCTION {output.bibitem}
569 { newline$
570 "\bibitem[{" write$
571 label write$
572 ")" make.full.names duplicate$ short.list =
573 { pop$ }
574 { * }
575 if$
576 "}]{" * write$
577 cite$ write$
578 "}" write$
579 newline$
580 ""
581 before.all 'output.state :=
582 }
583
584 FUNCTION {n.dashify}
585 {
586 't :=
587 ""
588 { t empty$ not }
589 { t #1 #1 substring$ "-" =
590 { t #1 #2 substring$ "--" = not
591 { "--" *
592 t #2 global.max$ substring$ 't :=
593 }
594 { { t #1 #1 substring$ "-" = }
595 { "-" *
596 t #2 global.max$ substring$ 't :=
597 }
598 while$
599 }
600 if$
601 }
602 { t #1 #1 substring$ *
603 t #2 global.max$ substring$ 't :=
604 }
605 if$
606 }
607 while$
608 }
609
610 FUNCTION {word.in}
611 { bbl.in %capitalize
612 ":" *
613 " " * }
614
615 FUNCTION {format.date}
616 { year "year" bibinfo.check duplicate$ empty$
617 {
618 }
619 'skip$
620 if$
621 extra.label *
622 before.all 'output.state :=
623 ", " swap$ *
624 }
625 FUNCTION {format.btitle}
626 { title "title" bibinfo.check
627 duplicate$ empty$ 'skip$
628 {
629 }
630 if$
631 }
632 FUNCTION {either.or.check}
633 { empty$
634 'pop$
635 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
636 if$
637 }
638 FUNCTION {format.bvolume}
639 { volume empty$
640 { "" }
641 { bbl.volume volume tie.or.space.prefix
642 "volume" bibinfo.check * *
643 series "series" bibinfo.check
644 duplicate$ empty$ 'pop$
645 { swap$ bbl.of space.word * swap$
646 emphasize * }
647 if$
648 "volume and number" number either.or.check
649 }
650 if$
651 }
652 FUNCTION {format.number.series}
653 { volume empty$
654 { number empty$
655 { series field.or.null }
656 { series empty$
657 { number "number" bibinfo.check }
658 { output.state mid.sentence =
659 { bbl.number }
660 { bbl.number capitalize }
661 if$
662 number tie.or.space.prefix "number" bibinfo.check * *
663 bbl.in space.word *
664 series "series" bibinfo.check *
665 }
666 if$
667 }
668 if$
669 }
670 { "" }
671 if$
672 }
673
674 FUNCTION {format.edition}
675 { edition duplicate$ empty$ 'skip$
676 {
677 output.state mid.sentence =
678 { "l" }
679 { "t" }
680 if$ change.case$
681 "edition" bibinfo.check
682 " " * bbl.edition *
683 }
684 if$
685 }
686 INTEGERS { multiresult }
687 FUNCTION {multi.page.check}
688 { 't :=
689 #0 'multiresult :=
690 { multiresult not
691 t empty$ not
692 and
693 }
694 { t #1 #1 substring$
695 duplicate$ "-" =
696 swap$ duplicate$ "," =
697 swap$ "+" =
698 or or
699 { #1 'multiresult := }
700 { t #2 global.max$ substring$ 't := }
701 if$
702 }
703 while$
704 multiresult
705 }
706 %FUNCTION {format.pages}
707 %{ pages duplicate$ empty$ 'skip$
708 % { duplicate$ multi.page.check
709 % {
710 % n.dashify
711 % }
712 % {
713 % }
714 % if$
715 % "pages" bibinfo.check
716 % }
717 % if$
718 %}
719
720 FUNCTION {format.pages}
721 { pages duplicate$ empty$ 'skip$
722 { duplicate$ multi.page.check
723 {
724 bbl.pages swap$
725 n.dashify
726 }
727 {
728 bbl.page swap$
729 }
730 if$
731 tie.or.space.prefix
732 "pages" bibinfo.check
733 * *
734 }
735 if$
736 }
737
738 FUNCTION {format.journal.pages}
739 { pages duplicate$ empty$ 'pop$
740 { swap$ duplicate$ empty$
741 { pop$ pop$ format.pages }
742 {
743 ", " *
744 swap$
745 n.dashify
746 "pages" bibinfo.check
747 *
748 }
749 if$
750 }
751 if$
752 }
753 FUNCTION {format.vol.num.pages}
754 { volume field.or.null
755 duplicate$ empty$ 'skip$
756 {
757 "volume" bibinfo.check
758 }
759 if$
760 }
761
762 FUNCTION {format.chapter.pages}
763 { chapter empty$
764 { "" }
765 { type empty$
766 { bbl.chapter }
767 { type "l" change.case$
768 "type" bibinfo.check
769 }
770 if$
771 chapter tie.or.space.prefix
772 "chapter" bibinfo.check
773 * *
774 }
775 if$
776 }
777
778 FUNCTION {format.booktitle}
779 {
780 booktitle "booktitle" bibinfo.check
781 }
782 FUNCTION {format.in.ed.booktitle}
783 { format.booktitle duplicate$ empty$ 'skip$
784 {
785 editor "editor" format.names.ed duplicate$ empty$ 'pop$
786 {
787 " " *
788 get.bbl.editor
789 capitalize
790 "(" swap$ * "), " *
791 * swap$
792 * }
793 if$
794 word.in swap$ *
795 }
796 if$
797 }
798 FUNCTION {format.thesis.type}
799 { type duplicate$ empty$
800 'pop$
801 { swap$ pop$
802 "t" change.case$ "type" bibinfo.check
803 }
804 if$
805 }
806 FUNCTION {format.tr.number}
807 { number "number" bibinfo.check
808 type duplicate$ empty$
809 { pop$ bbl.techrep }
810 'skip$
811 if$
812 "type" bibinfo.check
813 swap$ duplicate$ empty$
814 { pop$ "t" change.case$ }
815 { tie.or.space.prefix * * }
816 if$
817 }
818 FUNCTION {format.article.crossref}
819 {
820 word.in
821 " \cite{" * crossref * "}" *
822 }
823 FUNCTION {format.book.crossref}
824 { volume duplicate$ empty$
825 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
826 pop$ word.in
827 }
828 { bbl.volume
829 capitalize
830 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
831 }
832 if$
833 " \cite{" * crossref * "}" *
834 }
835 FUNCTION {format.incoll.inproc.crossref}
836 {
837 word.in
838 " \cite{" * crossref * "}" *
839 }
840 FUNCTION {format.org.or.pub}
841 { 't :=
842 ""
843 address empty$ t empty$ and
844 'skip$
845 {
846 t empty$
847 { address "address" bibinfo.check *
848 }
849 { t *
850 address empty$
851 'skip$
852 { ", " * address "address" bibinfo.check * }
853 if$
854 }
855 if$
856 }
857 if$
858 }
859 FUNCTION {format.publisher.address}
860 { publisher "publisher" bibinfo.check format.org.or.pub
861 }
862
863 FUNCTION {format.organization.address}
864 { organization "organization" bibinfo.check format.org.or.pub
865 }
866
867 FUNCTION {print.url}
868 {url duplicate$ empty$
869 { pop$ "" }
870 { new.sentence
871 urlprefix "\url{" * swap$ * "}" *
872 }
873 if$
874 }
875
876 FUNCTION {print.doi}
877 {doi duplicate$ empty$
878 { pop$ "" }
879 { new.sentence
880 doiprefix "\doi{" * swap$ * "}" *
881 }
882 if$
883 }
884
885 FUNCTION {print.eprint}
886 {eprint duplicate$ empty$
887 { pop$ "" }
888 { new.sentence
889 duplicate$ "\href{http://arxiv.org/abs/" swap$ * "}{{\tt arXiv:" * swap$ * "}}" * }
890 if$
891 }
892
893 FUNCTION {print.pubmed}
894 {pubmed duplicate$ empty$
895 { pop$ "" }
896 { new.sentence
897 pubmedprefix "\Pubmed{" * swap$ * "}" *
898 }
899 if$
900 }
901
902 FUNCTION {webpage}
903 { "%Type = Webpage" write$
904 output.bibitem
905 format.authors "author" output.check
906 author format.key output
907 author empty$
908 {
909 format.title "title" output.check
910 new.block
911 format.date "year" output.check
912 date.block
913 }
914 {
915 format.date "year" output.check
916 date.block
917 format.title "title" output.check
918 new.block
919 }
920 if$
921 print.url output
922 fin.entry
923 }
924
925
926 FUNCTION {article}
927 { "%Type = Article" write$
928 output.bibitem
929 format.authors "author" output.check
930 author format.key output
931 format.date "year" output.check
932 date.block
933 format.title "title" output.check
934 new.block
935 crossref missing$
936 {
937 journal
938 "journal" bibinfo.check
939 "journal" output.check
940 add.blank
941 format.vol.num.pages output
942 }
943 { format.article.crossref output.nonnull
944 }
945 if$
946 format.journal.pages
947 new.block
948 print.url output
949 print.doi output
950 print.eprint output
951 print.pubmed output
952 format.note output
953 fin.entry
954 }
955
956 FUNCTION {book}
957 { "%Type = Book" write$
958 output.bibitem
959 author empty$
960 { format.editors "author and editor" output.check
961 editor format.key output
962 }
963 { format.authors output.nonnull
964 crossref missing$
965 { "author and editor" editor either.or.check }
966 'skip$
967 if$
968 }
969 if$
970 format.date "year" output.check
971 date.block
972 format.btitle "title" output.check
973 crossref missing$
974 { format.bvolume output
975 new.block
976 format.number.series output
977 format.edition output
978 new.sentence
979 format.publisher.address output
980 }
981 {
982 new.block
983 format.book.crossref output.nonnull
984 }
985 if$
986 new.block
987 print.url output
988 print.doi output
989 print.eprint output
990 print.pubmed output
991 format.note output
992 fin.entry
993 }
994
995 FUNCTION {booklet}
996 { "%Type = Booklet" write$
997 output.bibitem
998 format.authors output
999 author format.key output
1000 format.date "year" output.check
1001 date.block
1002 format.title "title" output.check
1003 new.block
1004 howpublished "howpublished" bibinfo.check output
1005 address "address" bibinfo.check output
1006 new.block
1007 print.url output
1008 print.doi output
1009 print.eprint output
1010 print.pubmed output
1011 format.note output
1012 fin.entry
1013 }
1014
1015 FUNCTION {inbook}
1016 { "%Type = Inbook" write$
1017 output.bibitem
1018 author empty$
1019 { format.editors "author and editor" output.check
1020 editor format.key output
1021 }
1022 { format.authors output.nonnull
1023 crossref missing$
1024 { "author and editor" editor either.or.check }
1025 'skip$
1026 if$
1027 }
1028 if$
1029 format.date "year" output.check
1030 date.block
1031 format.btitle "title" output.check
1032 format.edition output
1033 crossref missing$
1034 {
1035 format.publisher.address output
1036 format.bvolume output
1037 format.chapter.pages "chapter and pages" output.check
1038 new.block
1039 format.number.series output
1040 new.sentence
1041 }
1042 {
1043 format.chapter.pages "chapter and pages" output.check
1044 new.block
1045 format.book.crossref output.nonnull
1046 }
1047 if$
1048 format.pages "pages" output.check
1049 new.block
1050 print.url output
1051 print.doi output
1052 print.eprint output
1053 print.pubmed output
1054 format.note output
1055 fin.entry
1056 }
1057
1058 FUNCTION {incollection}
1059 { "%Type = Incollection" write$
1060 output.bibitem
1061 format.authors "author" output.check
1062 author format.key output
1063 format.date "year" output.check
1064 date.block
1065 format.title "title" output.book.check
1066 new.sentence
1067 crossref missing$
1068 { format.in.ed.booktitle "booktitle" output.book.check
1069 format.edition output
1070 format.publisher.address output
1071 format.bvolume output
1072 format.number.series output
1073 format.chapter.pages output
1074 new.sentence
1075 }
1076 { format.incoll.inproc.crossref output.nonnull
1077 format.chapter.pages output
1078 }
1079 if$
1080 format.pages "pages" output.check
1081 new.block
1082 print.url output
1083 print.doi output
1084 print.eprint output
1085 print.pubmed output
1086 format.note output
1087 fin.entry
1088 }
1089
1090 FUNCTION {inproceedings}
1091 { "%Type = Inproceedings" write$
1092 output.bibitem
1093 format.authors "author" output.check
1094 author format.key output
1095 format.date "year" output.check
1096 date.block
1097 format.title "title" output.book.check
1098 new.sentence
1099 crossref missing$
1100 { format.in.ed.booktitle "booktitle" output.check
1101 new.sentence
1102 publisher empty$
1103 { format.organization.address output }
1104 { organization "organization" bibinfo.check output
1105 format.publisher.address output
1106 }
1107 if$
1108 % format.bvolume output
1109 % format.number.series output
1110 % format.pages output
1111 }
1112 { format.incoll.inproc.crossref output.nonnull
1113 format.pages output
1114 }
1115 if$
1116 format.pages "pages" output.check
1117 new.block
1118 print.url output
1119 print.doi output
1120 print.eprint output
1121 print.pubmed output
1122 format.note output
1123 fin.entry
1124 }
1125
1126 FUNCTION {conference} { inproceedings }
1127
1128 FUNCTION {manual}
1129 { "%Type = Manual" write$
1130 output.bibitem
1131 format.authors output
1132 author format.key output
1133 format.date "year" output.check
1134 date.block
1135 format.btitle "title" output.check
1136 format.edition output
1137 organization address new.block.checkb
1138 organization "organization" bibinfo.check output
1139 address "address" bibinfo.check output
1140 new.block
1141 print.url output
1142 print.doi output
1143 print.eprint output
1144 print.pubmed output
1145 format.note output
1146 fin.entry
1147 }
1148
1149 FUNCTION {mastersthesis}
1150 { "%Type = Masterthesis" write$
1151 output.bibitem
1152 format.authors "author" output.check
1153 author format.key output
1154 format.date "year" output.check
1155 date.block
1156 format.btitle
1157 "title" output.check
1158 new.block
1159 bbl.mthesis format.thesis.type output.nonnull
1160 school "school" bibinfo.warn output
1161 address "address" bibinfo.check output
1162 new.block
1163 print.url output
1164 print.doi output
1165 print.eprint output
1166 print.pubmed output
1167 format.note output
1168 fin.entry
1169 }
1170
1171 FUNCTION {misc}
1172 { "%Type = Misc" write$
1173 output.bibitem
1174 format.authors output
1175 author format.key output
1176 format.date "year" output.check
1177 date.block
1178 format.title output
1179 new.block
1180 howpublished "howpublished" bibinfo.check output
1181 new.block
1182 print.url output
1183 print.doi output
1184 print.eprint output
1185 print.pubmed output
1186 format.note output
1187 fin.entry
1188 }
1189
1190 FUNCTION {phdthesis}
1191 { "%Type = Phdthesis" write$
1192 output.bibitem
1193 format.authors "author" output.check
1194 author format.key output
1195 format.date "year" output.check
1196 date.block
1197 format.btitle
1198 "title" output.check
1199 new.block
1200 bbl.phdthesis format.thesis.type output.nonnull
1201 school "school" bibinfo.warn output
1202 address "address" bibinfo.check output
1203 new.block
1204 print.url output
1205 print.doi output
1206 print.eprint output
1207 print.pubmed output
1208 format.note output
1209 fin.entry
1210 }
1211
1212 FUNCTION {proceedings}
1213 { "%Type = Proceedings" write$
1214 output.bibitem
1215 format.editors output
1216 editor format.key output
1217 format.date "year" output.check
1218 date.block
1219 format.btitle "title" output.check
1220 format.bvolume output
1221 format.number.series output
1222 new.sentence
1223 publisher empty$
1224 { format.organization.address output }
1225 { organization "organization" bibinfo.check output
1226 format.publisher.address output
1227 }
1228 if$
1229 new.block
1230 print.url output
1231 print.doi output
1232 print.eprint output
1233 print.pubmed output
1234 format.note output
1235 fin.entry
1236 }
1237
1238 FUNCTION {techreport}
1239 { "%Type = Techreport" write$
1240 output.bibitem
1241 format.authors "author" output.check
1242 author format.key output
1243 format.date "year" output.check
1244 date.block
1245 format.btitle
1246 "title" output.check
1247 new.block
1248 format.tr.number output.nonnull
1249 institution "institution" bibinfo.warn output
1250 address "address" bibinfo.check output
1251 new.block
1252 print.url output
1253 print.doi output
1254 print.eprint output
1255 print.pubmed output
1256 format.note output
1257 fin.entry
1258 }
1259
1260 FUNCTION {unpublished}
1261 { "%Type = Unpublished" write$
1262 output.bibitem
1263 format.authors "author" output.check
1264 author format.key output
1265 format.date "year" output.check
1266 date.block
1267 format.title "title" output.check
1268 new.block
1269 print.url output
1270 print.doi output
1271 print.eprint output
1272 print.pubmed output
1273 format.note "note" output.check
1274 fin.entry
1275 }
1276
1277 FUNCTION {default.type} { misc }
1278 READ
1279 FUNCTION {sortify}
1280 { purify$
1281 "l" change.case$
1282 }
1283 INTEGERS { len }
1284 FUNCTION {chop.word}
1285 { 's :=
1286 'len :=
1287 s #1 len substring$ =
1288 { s len #1 + global.max$ substring$ }
1289 's
1290 if$
1291 }
1292 FUNCTION {format.lab.names}
1293 { 's :=
1294 "" 't :=
1295 s #1 "{vv~}{ll}" format.name$
1296 s num.names$ duplicate$
1297 #2 >
1298 { pop$
1299 " " * bbl.etal *
1300 }
1301 { #2 <
1302 'skip$
1303 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1304 {
1305 " " * bbl.etal *
1306 }
1307 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
1308 * }
1309 if$
1310 }
1311 if$
1312 }
1313 if$
1314 }
1315
1316 FUNCTION {author.key.label}
1317 { author empty$
1318 { key empty$
1319 { cite$ #1 #3 substring$ }
1320 'key
1321 if$
1322 }
1323 { author format.lab.names }
1324 if$
1325 }
1326
1327 FUNCTION {author.editor.key.label}
1328 { author empty$
1329 { editor empty$
1330 { key empty$
1331 { cite$ #1 #3 substring$ }
1332 'key
1333 if$
1334 }
1335 { editor format.lab.names }
1336 if$
1337 }
1338 { author format.lab.names }
1339 if$
1340 }
1341
1342 FUNCTION {editor.key.label}
1343 { editor empty$
1344 { key empty$
1345 { cite$ #1 #3 substring$ }
1346 'key
1347 if$
1348 }
1349 { editor format.lab.names }
1350 if$
1351 }
1352
1353 FUNCTION {calc.short.authors}
1354 { type$ "book" =
1355 type$ "inbook" =
1356 or
1357 'author.editor.key.label
1358 { type$ "proceedings" =
1359 'editor.key.label
1360 'author.key.label
1361 if$
1362 }
1363 if$
1364 'short.list :=
1365 }
1366
1367 FUNCTION {calc.label}
1368 { calc.short.authors
1369 short.list
1370 "("
1371 *
1372 year duplicate$ empty$
1373 short.list key field.or.null = or
1374 { pop$ "" }
1375 'skip$
1376 if$
1377 *
1378 'label :=
1379 }
1380
1381 FUNCTION {sort.format.names}
1382 { 's :=
1383 #1 'nameptr :=
1384 ""
1385 s num.names$ 'numnames :=
1386 numnames 'namesleft :=
1387 { namesleft #0 > }
1388 { s nameptr
1389 "{ll{ }}{ f{ }}{ jj{ }}"
1390 format.name$ 't :=
1391 nameptr #1 >
1392 {
1393 " " *
1394 namesleft #1 = t "others" = and
1395 { "zzzzz" * }
1396 { t sortify * }
1397 if$
1398 }
1399 { t sortify * }
1400 if$
1401 nameptr #1 + 'nameptr :=
1402 namesleft #1 - 'namesleft :=
1403 }
1404 while$
1405 }
1406
1407 FUNCTION {sort.format.title}
1408 { 't :=
1409 "A " #2
1410 "An " #3
1411 "The " #4 t chop.word
1412 chop.word
1413 chop.word
1414 sortify
1415 #1 global.max$ substring$
1416 }
1417 FUNCTION {author.sort}
1418 { author empty$
1419 { key empty$
1420 { "to sort, need author or key in " cite$ * warning$
1421 ""
1422 }
1423 { key sortify }
1424 if$
1425 }
1426 { author sort.format.names }
1427 if$
1428 }
1429 FUNCTION {author.editor.sort}
1430 { author empty$
1431 { editor empty$
1432 { key empty$
1433 { "to sort, need author, editor, or key in " cite$ * warning$
1434 ""
1435 }
1436 { key sortify }
1437 if$
1438 }
1439 { editor sort.format.names }
1440 if$
1441 }
1442 { author sort.format.names }
1443 if$
1444 }
1445 FUNCTION {editor.sort}
1446 { editor empty$
1447 { key empty$
1448 { "to sort, need editor or key in " cite$ * warning$
1449 ""
1450 }
1451 { key sortify }
1452 if$
1453 }
1454 { editor sort.format.names }
1455 if$
1456 }
1457 FUNCTION {presort}
1458 { calc.label
1459 label sortify
1460 " "
1461 *
1462 type$ "book" =
1463 type$ "inbook" =
1464 or
1465 'author.editor.sort
1466 { type$ "proceedings" =
1467 'editor.sort
1468 'author.sort
1469 if$
1470 }
1471 if$
1472 #1 entry.max$ substring$
1473 'sort.label :=
1474 sort.label
1475 *
1476 " "
1477 *
1478 title field.or.null
1479 sort.format.title
1480 *
1481 #1 entry.max$ substring$
1482 'sort.key$ :=
1483 }
1484
1485 ITERATE {presort}
1486 SORT
1487 STRINGS { last.label next.extra }
1488 INTEGERS { last.extra.num number.label }
1489 FUNCTION {initialize.extra.label.stuff}
1490 { #0 int.to.chr$ 'last.label :=
1491 "" 'next.extra :=
1492 #0 'last.extra.num :=
1493 #0 'number.label :=
1494 }
1495 FUNCTION {forward.pass}
1496 { last.label label =
1497 { last.extra.num #1 + 'last.extra.num :=
1498 last.extra.num int.to.chr$ 'extra.label :=
1499 }
1500 { "a" chr.to.int$ 'last.extra.num :=
1501 "" 'extra.label :=
1502 label 'last.label :=
1503 }
1504 if$
1505 number.label #1 + 'number.label :=
1506 }
1507 FUNCTION {reverse.pass}
1508 { next.extra "b" =
1509 { "a" 'extra.label := }
1510 'skip$
1511 if$
1512 extra.label 'next.extra :=
1513 extra.label
1514 duplicate$ empty$
1515 'skip$
1516 % { "{\natexlab{" swap$ * "}}" * }
1517 { "" swap$ * "" * }
1518 if$
1519 'extra.label :=
1520 label extra.label * 'label :=
1521 }
1522 EXECUTE {initialize.extra.label.stuff}
1523 ITERATE {forward.pass}
1524 REVERSE {reverse.pass}
1525 FUNCTION {bib.sort.order}
1526 { sort.label
1527 " "
1528 *
1529 year field.or.null sortify
1530 *
1531 " "
1532 *
1533 title field.or.null
1534 sort.format.title
1535 *
1536 #1 entry.max$ substring$
1537 'sort.key$ :=
1538 }
1539 ITERATE {bib.sort.order}
1540 SORT
1541 FUNCTION {begin.bib}
1542 { preamble$ empty$
1543 'skip$
1544 { preamble$ write$ newline$ }
1545 if$
1546 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1547 write$ newline$
1548 "\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi"
1549 write$ newline$
1550 "\providecommand{\url}[1]{\texttt{#1}}"
1551 write$ newline$
1552 "\providecommand{\href}[2]{#2}"
1553 write$ newline$
1554 "\providecommand{\path}[1]{#1}"
1555 write$ newline$
1556 "\providecommand{\DOIprefix}{doi:}"
1557 write$ newline$
1558 "\providecommand{\ArXivprefix}{arXiv:}"
1559 write$ newline$
1560 "\providecommand{\URLprefix}{URL: }"
1561 write$ newline$
1562 "\providecommand{\Pubmedprefix}{pmid:}"
1563 write$ newline$
1564 "\providecommand{\doi}[1]{\href{http://dx.doi.org/#1}{\path{#1}}}"
1565 write$ newline$
1566 "\providecommand{\Pubmed}[1]{\href{pmid:#1}{\path{#1}}}"
1567 write$ newline$
1568 "\providecommand{\bibinfo}[2]{#2}"
1569 write$ newline$
1570 "\ifx\xfnm\relax \def\xfnm[#1]{\unskip,\space#1}\fi"
1571 write$ newline$
1572 }
1573 EXECUTE {begin.bib}
1574 EXECUTE {init.state.consts}
1575 EXECUTE {init.web.variables}
1576 ITERATE {call.type$}
1577 FUNCTION {end.bib}
1578 { newline$
1579 "\end{thebibliography}" write$ newline$
1580 }
1581 EXECUTE {end.bib}
1582 %% End of customized bst file
1583 %%
1584 %% End of file `elsarticle-harv.bst'.
1585 %%
1586 %% Change log:
1587 %% -----------
1588 %% 22.04.2011
1589 %%
1590 %% 10.08.2012
1591 %% a. doi, url, eprint, pmid added
1592 %% b. Bibtype `webpage' defined
1593 %%
1594 %% 30.08.2012
1595 %% a. collaboration added.
1596 %%
1597
1598