Debian Codegraph @

texmf-dist/bibtex/bst/jurabib/jureco.bst

raw
1 %%
2 %% This is file `jureco.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% jurabib.dtx (with options: `jurecobst')
8 %% ----------------------------------------
9 %% BibTeX style for use with the jurabib package version v0.6
10 %% Copyright (C) 1999-2004 Jens Berger (http://www.jurabib.org)
11 %% See jurabib.ins for the copyright details.
12 %%
13 ENTRY{
14 address
15 author
16 booktitle
17 chapter
18 edition
19 editor
20 howpublished
21 institution
22 isbn
23 issn
24 journal
25 key
26 language
27 month
28 note
29 number
30 organization
31 pages
32 publisher
33 school
34 series
35 title
36 type
37 volume
38 year
39 %%
40 url
41 urldate
42 volumetitle
43 dissyear
44 howcited
45 juratitle
46 juraauthor
47 shorttitle
48 shortauthor
49 ssedition
50 titleaddon
51 booktitleaddon
52 editortype
53 sortkey
54 annote
55 gender
56 translator
57 flanguage
58 oyear
59 oaddress
60 opublisher
61 updated
62 totalpages
63 founder
64 archive
65 subarchive
66 shortarchive
67 shortsubarchive
68 sig1
69 sig2
70 sig3
71 sig4
72 archname
73 }
74 { repeat-authors repeat-titles }
75 { label dummy.label extra.label sort.label current-authors }
76
77 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
78
79 INTEGERS { colon.after period.dash }
80
81 FUNCTION {init.state.consts}
82 { #0 'before.all :=
83 #1 'mid.sentence :=
84 #2 'after.sentence :=
85 #3 'after.block :=
86 #4 'colon.after :=
87 #5 'period.dash :=
88 }
89
90 STRINGS { s t u v w x }
91
92 FUNCTION {output.nonnull}
93 { 's :=
94 output.state after.block =
95 { write$ }
96 { output.state before.all =
97 { write$ }
98 { output.state colon.after =
99 { "" * write$ }
100 { output.state period.dash =
101 { ", " * write$ }
102 { output.state mid.sentence =
103 { " " * write$ }
104 { write$ }
105 if$
106 }
107 if$
108 }
109 if$
110 }
111 if$
112 after.block 'output.state :=
113 }
114 if$
115 s
116 }
117
118 FUNCTION {output}
119 { duplicate$ empty$
120 'pop$
121 'output.nonnull
122 if$
123 }
124
125 FUNCTION {output.check}
126 { 't :=
127 duplicate$ empty$
128 { pop$ "Empty " t * " in " * cite$ * warning$ }
129 'output.nonnull
130 if$
131 }
132
133 FUNCTION {not}
134 { { #0 }
135 { #1 }
136 if$
137 }
138
139 FUNCTION {and}
140 { 'skip$
141 { pop$ #0 }
142 if$
143 }
144
145 FUNCTION {or}
146 { { pop$ #1 }
147 'skip$
148 if$
149 }
150
151 FUNCTION {is.num}
152 { chr.to.int$
153 duplicate$ "0" chr.to.int$ < not
154 swap$ "9" chr.to.int$ > not and
155 }
156
157 FUNCTION {extract.num}
158 { duplicate$ 't :=
159 "" 's :=
160 { t empty$ not }
161 { t #1 #1 substring$
162 t #2 global.max$ substring$ 't :=
163 duplicate$ is.num
164 { s swap$ * 's := }
165 { pop$ "" 't := }
166 if$
167 }
168 while$
169 s empty$
170 'skip$
171 { pop$ s }
172 if$
173 }
174
175 FUNCTION {convert.edition.superscript}
176 { edition extract.num "l" change.case$ 's :=
177 s "first" = s "1" = or s "erste" = or
178 { "1" 't := }
179 { s "second" = s "2" = or s "zweite" = or
180 { "2" 't := }
181 { s "third" = s "3" = or s "dritte" = or
182 { "3" 't := }
183 { s "fourth" = s "4" = or s "vierte" = or
184 { "4" 't := }
185 { s "fifth" = s "5" = or s "fuenfte" = or
186 { "5" 't := }
187 { s "sixth" = s "6" = or s "sechste" = or
188 { "6" 't := }
189 { s "seventh" = s "7" = or s "siebte" = or s "siebente" = or
190 { "7" 't := }
191 { s "eighth" = s "8" = or s "achte" = or
192 { "8" 't := }
193 { s "nineth" = s "9" = or s "neunte" = or
194 { "9" 't := }
195 { s #1 #1 substring$ is.num
196 { s "" * 't := }
197 { edition 't := }
198 if$
199 }
200 if$
201 }
202 if$
203 }
204 if$
205 }
206 if$
207 }
208 if$
209 }
210 if$
211 }
212 if$
213 }
214 if$
215 }
216 if$
217 t
218 }
219
220 FUNCTION {n.dashify}
221 { 't :=
222 ""
223 { t empty$ not }
224 { t #1 #1 substring$ "-" =
225 { t #1 #2 substring$ "--" = not
226 { "--" * t #2 global.max$ substring$ 't := }
227 { { t #1 #1 substring$ "-" = }
228 { "-" * t #2 global.max$ substring$ 't := }
229 while$
230 }
231 if$
232 }
233 { t #1 #1 substring$ * t #2 global.max$ substring$ 't := }
234 if$
235 }
236 while$
237 }
238
239 FUNCTION {output.bibitem.fst}
240 { newline$
241 "\bibitem[{" write$
242 shortauthor empty$
243 { juraauthor empty$
244 { author empty$
245 { editor empty$
246 { organization empty$
247 { archive empty$
248 { "empty" write$ }
249 { archive write$ }
250 if$
251 }
252 { organization write$ }
253 if$
254 }
255 { label write$ }
256 if$
257 }
258 { label write$ }
259 if$
260 }
261 { juraauthor write$ }
262 if$
263 }
264 { shortauthor write$ }
265 if$
266 "}%" write$
267 sortkey empty$
268 'skip$
269 { newline$ "% SORTKEY: [" sortkey * "]" * write$ }
270 if$
271 newline$
272 shorttitle empty$
273 { juratitle empty$
274 { journal empty$
275 { " {}%" write$ }
276 { " {" journal * "}%" * write$ }
277 if$
278 }
279 { " {" juratitle * "}%" * write$ }
280 if$
281 }
282 { " {" shorttitle * "}%" * write$ }
283 if$
284 newline$
285 repeat-authors
286 { " {{1}" write$ }
287 { " {{0}" write$ }
288 if$
289 howcited empty$
290 { "{}" write$ }
291 { "{" howcited * "}" * write$ }
292 if$
293 type$ empty$
294 { "{}" write$ }
295 { "{" type$ * "}" * write$ }
296 if$
297 year empty$
298 { type$ "book" = dissyear empty$ not and
299 { "{" dissyear * write$
300 extra.label "" =
301 skip$
302 { "\el {" write$ extra.label write$ "}" write$ }
303 if$
304 "}" write$
305 }
306 { "{}" write$ }
307 if$
308 }
309 { "{" year * write$
310 extra.label "" =
311 'skip$
312 { "\el {" write$ extra.label write$ "}" write$ }
313 if$
314 "}" write$
315 }
316 if$
317 edition empty$
318 { "{}" write$ }
319 { "{" convert.edition.superscript extract.num * "}" * write$ }
320 if$
321 ssedition empty$
322 { "{}" write$ }
323 { "{" ssedition * "}" * write$ }
324 if$
325 language empty$
326 { "{}" write$ }
327 { "{" language * "}" * write$ }
328 if$
329 pages empty$
330 { "{}%" write$ }
331 { "{" write$ pages n.dashify write$ "}%" write$ }
332 if$
333 }
334
335 FUNCTION {output.bibitem.snd}
336 { newline$
337 publisher empty$
338 { address empty$
339 { " {" write$ }
340 { " {" write$ address write$ }
341 if$
342 }
343 { address empty$
344 { " {" write$ }
345 { " {" write$ address write$ "\bpubaddr {} " write$ publisher write$ }
346 if$
347 }
348 if$
349 "}}%" write$ newline$
350 " {" write$
351 title empty$
352 { "{}%" write$ newline$ }
353 { "{" title *
354 type$ "archival" =
355 { shortarchive empty$ not
356 { ", In: " shortarchive * * }
357 { archive empty$ not
358 { ", In: " archive * * }
359 'skip$
360 if$
361 }
362 if$
363 shortsubarchive empty$
364 'skip$
365 { ", " shortsubarchive * * }
366 if$
367 sig1 empty$
368 'skip$
369 { ", " sig1 * *
370 sig2 empty$
371 'skip$
372 { ". " sig2 * *
373 sig3 empty$
374 'skip$
375 { ". " sig3 * *
376 sig4 empty$
377 'skip$
378 { ". " sig4 * * }
379 if$
380 }
381 if$
382 }
383 if$
384 }
385 if$
386 pages empty$
387 'skip$
388 { " \jbArchPages {" pages n.dashify * "}" * * }
389 if$
390 }
391 'skip$
392 if$
393 "}%" * write$ newline$ }
394 if$
395 gender empty$
396 { " {}" write$ }
397 { " {" gender * "}" * write$ }
398 if$
399 oyear empty$
400 { "{}" write$ }
401 { "{" oyear * "}" * write$ }
402 if$
403 author empty$
404 { editor empty$
405 { "{4}" write$ }% author and editor empty
406 { "{3}" write$ }% author empty, editor not
407 if$
408 }
409 { editor empty$
410 { "{2}" write$ }% editor empty, author not
411 { "{1}" write$ }% both author and editor given
412 if$
413 }
414 if$
415 "{}{}{}{}{}}%" write$ newline$
416 " ]{" write$
417 cite$ write$
418 "}" write$
419 url empty$
420 'skip$
421 { newline$ " \jburldef {" write$ cite$ write$ "}{" write$ url write$ "}%" write$ }
422 if$
423 newline$
424 " \jbbibargs {" write$
425 ""
426 before.all 'output.state :=
427 }
428
429 FUNCTION {output.bibitem}
430 { output.bibitem.fst
431 output.bibitem.snd
432 }
433
434 FUNCTION {format.note}
435 { note empty$
436 'skip$
437 { output.state before.all =
438 {" \jbnote {} {" * note * "} " * }
439 {" \jbnote {1} {" * note * "} " * }
440 if$
441 }
442 if$
443 }
444
445 FUNCTION {format.endnote}
446 { note empty$
447 { "" }
448 { " \jbendnote {" note * "}" * }
449 if$
450 }
451
452
453 FUNCTION {format.juradiss.book}
454 { dissyear empty$
455 { "" }
456 { type empty$
457 { school empty$
458 { "Dissyear but no school in " cite$ * warning$
459 " (\alsothesisname {} \jurthesisname" *
460 year empty$ not year missing$ not and
461 { "\bibbdsep {} " dissyear * }
462 'skip$
463 if$
464 ")" *
465 }
466 { " (\alsothesisname {} \jurthesisname, " school *
467 year empty$ not year missing$ not and
468 { "\bibbdsep {} " dissyear * * }
469 'skip$
470 if$
471 ")" *
472 }
473 if$
474 }
475 { school empty$
476 { "Dissyear but no school in " cite$ * warning$
477 " (\alsothesisname {} " type *
478 year empty$ not year missing$ not and
479 { "\bibbdsep {} " dissyear * }
480 'skip$
481 if$
482 ")" *
483 }
484 { " (\alsothesisname {} " type *
485 ", " school * *
486 year empty$ not year missing$ not and
487 { "\bibbdsep {} " dissyear * * }
488 'skip$
489 if$
490 ")" *
491 }
492 if$
493 }
494 if$
495 }
496 if$
497 }
498
499 FUNCTION {format.thesis}
500 { year empty$
501 { school empty$
502 { "No universtiy in " cite$ * warning$ }
503 { "There's a university, but no year in " cite$ * warning$ }
504 if$
505 ""
506 }
507 { type empty$
508 { school empty$
509 { "No university in " cite$ * warning$
510 type$ "mastersthesis" =
511 { "\apyformat {\mastersthesisname" address empty$ 'skip$ { ", " address * * } if$ "}" * }
512 { type$ "jurthesis" =
513 { "\apyformat {\jurthesisname" address empty$ 'skip$ { ", " address * * } if$ "}" * }
514 { "\apyformat {\phdthesisname" address empty$ 'skip$ { ", " address * * } if$ "}" * }
515 if$
516 }
517 if$
518 }
519 { type$ "mastersthesis" =
520 { "\mastersthesisname, \apyformat {" school * address empty$ 'skip$ { ", " address * * } if$ "}" * }
521 { type$ "jurthesis" =
522 { "\jurthesisname, \apyformat {" school * address empty$ 'skip$ { ", " address * * } if$ "}" * }
523 { "\phdthesisname, \apyformat {" school * address empty$ 'skip$ { ", " address * * } if$ "}" * }
524 if$
525 }
526 if$
527 }
528 if$
529 }
530 { school empty$
531 { "No university in " cite$ * warning$ type }
532 { type " \apyformat {" * school * address empty$ 'skip$ { ", " address * * } if$ "}" * }
533 if$
534 }
535 if$
536 }
537 if$
538 }
539
540 FUNCTION {set.comma.pages.check}
541 { year empty$
542 'skip$
543 { pages empty$
544 { url empty$
545 'skip$
546 { ", " * }
547 if$
548 }
549 { ", " * }
550 if$
551 }
552 if$
553 }
554
555 FUNCTION {set.period.dash}
556 { output.state before.all =
557 'skip$
558 { period.dash 'output.state := }
559 if$
560 }
561
562 FUNCTION {set.period.dash.check}
563 { empty$
564 'skip$
565 'set.period.dash
566 if$
567 }
568
569 FUNCTION {new.sentence}
570 { output.state before.all =
571 'skip$
572 { after.sentence 'output.state := }
573 if$
574 }
575
576 FUNCTION {part.of.sentence}
577 { output.state before.all =
578 'skip$
579 { mid.sentence 'output.state := }
580 if$
581 }
582
583 FUNCTION {new.sentence.checka}
584 { empty$
585 'skip$
586 'new.sentence
587 if$
588 }
589
590 FUNCTION {field.or.null}
591 { duplicate$ empty$
592 { pop$ "" }
593 'skip$
594 if$
595 }
596
597
598 FUNCTION {get.final.nonrightbrace.char}
599 { { duplicate$
600 #-1 #1 substring$
601 duplicate$
602 "}" =
603 }
604 { pop$
605 #-2 global.max$ substring$
606 }
607 while$
608 swap$ pop$
609 }
610
611
612 FUNCTION {check.punct.instead.of.add.period}
613 { duplicate$
614 get.final.nonrightbrace.char
615 duplicate$ "." = swap$
616 duplicate$ "!" = swap$
617 "?" = or or
618 { "} " * }
619 { "}\bibatsep\ " * }
620 if$
621 }
622
623 FUNCTION {check.punct.instead.of.add.period.art}
624 { duplicate$
625 get.final.nonrightbrace.char
626 duplicate$ "." = swap$
627 duplicate$ "!" = swap$
628 "?" = or or
629 { "} " * }
630 { pages empty$ note empty$ url empty$ and and
631 { "} " * }
632 { volume empty$
633 { pages empty$
634 { "}\ajtsep\ " * }
635 { crossref missing$
636 { month empty$
637 { "}\ajtsep\ " * }
638 { "}\ajtsep " * }
639 if$
640 }
641 { "}\ajtsep " * }
642 if$
643 }
644 if$
645 }
646 { "}\ajtsep\ " * }
647 if$
648 }
649 if$
650 }
651 if$
652 }
653
654 FUNCTION {emphasize}
655 { duplicate$ empty$
656 { pop$ "" }
657 { "\bibtfont {" swap$ check.punct.instead.of.add.period * }
658 if$
659 }
660
661 FUNCTION {journaltitlemarkup}
662 { duplicate$ empty$
663 { pop$ "" }
664 { "\bibJTsep \bibjtfont {" swap$ check.punct.instead.of.add.period.art * }
665 if$
666 }
667
668 FUNCTION {incollbooktitlemarkup}
669 { duplicate$ empty$
670 { pop$ "" }
671 { "\bibbtfont {" swap$ check.punct.instead.of.add.period * }
672 if$
673 }
674
675 INTEGERS { nameptr namesleft numnames }
676
677 FUNCTION { lastnamemarkup }
678 { duplicate$ empty$
679 { pop$ "" }
680 { "\bibnf {" swap$ * "}" * }
681 if$
682 }
683
684 FUNCTION { editorlastnamemarkup }
685 { duplicate$ empty$
686 { pop$ "" }
687 { author empty$
688 { "\biblenf {" swap$ * "}" * } % lonely editor(s)!
689 { "\bibenf {" swap$ * "}" * }
690 if$
691 }
692 if$
693 }
694
695 FUNCTION { othermarkup }
696 { duplicate$ empty$
697 { pop$ " {}" }
698 { " {" swap$ * "}" * }
699 if$
700 }
701
702 FUNCTION {article.in.journal}
703 { duplicate$ empty$
704 { pop$ "" }
705 { author missing$
706 { title missing$
707 'skip$
708 { journaltitlemarkup "" swap$ * }
709 if$
710 }
711 { journaltitlemarkup "" swap$ * }
712 if$
713 }
714 if$
715 }
716
717 FUNCTION {format.names} % NEW v0.5
718 { 's :=
719 #1 'nameptr :=
720 s num.names$ 'numnames :=
721 numnames 'namesleft :=
722 { namesleft #0 > }
723 { s nameptr "{ll}" format.name$ 't := t lastnamemarkup 't :=
724 s nameptr "{ff}" format.name$ othermarkup 'u :=
725 s nameptr "{f.}" format.name$ othermarkup 'v :=
726 s nameptr "{vv}" format.name$ othermarkup 'w :=
727 s nameptr "{jj}" format.name$ othermarkup 'x :=
728 t u * v * w * x * 't :=
729 nameptr #1 >
730 { namesleft #1 >
731 { numnames #3 >
732 { "" * }
733 { numnames #3 <
734 { "\Bibbtasep " * t * } % between (exactly) two authors
735 { "\Bibbfsasep " * t * } % between first and second author (if more than two)
736 if$
737 }
738 if$
739 }
740 { t "\bibnf {others} {} {} {} {}" =
741 t "\bibnf {others} {} {} {} {} \edfont {\editorsname}" = or
742 numnames #3 > or
743 { "\bibIMfont {\Bibetal}" * }
744 { numnames #3 <
745 { "\Bibbtasep " * t * } % between (exactly) two authors
746 { "\Bibbstasep " * t * } % between second and third author
747 if$
748 }
749 if$
750 }
751 if$
752 }
753 't
754 if$
755 nameptr #1 + 'nameptr :=
756 namesleft #1 - 'namesleft :=
757 }
758 while$
759 }
760
761 FUNCTION {format.editor.names} % NEW v0.5
762 { 's :=
763 #1 'nameptr :=
764 s num.names$ 'numnames :=
765 numnames 'namesleft :=
766 { namesleft #0 > }
767 { s nameptr "{ll}" format.name$ 't := t editorlastnamemarkup 't :=
768 s nameptr "{ff}" format.name$ othermarkup 'u :=
769 s nameptr "{f.}" format.name$ othermarkup 'v :=
770 s nameptr "{vv}" format.name$ othermarkup 'w :=
771 s nameptr "{jj}" format.name$ othermarkup 'x :=
772 t u * v * w * x * 't :=
773 nameptr #1 >
774 { namesleft #1 >
775 { numnames #3 >
776 { "" * }
777 { numnames #3 <
778 { "\Bibbtesep " * t * } % between (exactly) two editors
779 { "\Bibbfsesep " * t * } % between first and second editor (if more than two)
780 if$
781 }
782 if$
783 }
784 { t "\bibenf {others} {} {} {} {}" =
785 t "\biblenf {others} {} {} {} {}" = or
786 t "\bibenf {others} {} {} {} {} \edfont {\editorsname}" = or
787 t "\biblenf {others} {} {} {} {} \edfont {\editorsname}" = or
788 numnames #3 > or
789 { "\bibIMfont {\Bibetal}" * }
790 { numnames #3 <
791 { "\Bibbtesep " * t * } % between (exactly) two editors
792 { "\Bibbstesep " * t * } % between second and third editor
793 if$
794 }
795 if$
796 }
797 if$
798 }
799 't
800 if$
801 nameptr #1 + 'nameptr :=
802 namesleft #1 - 'namesleft :=
803 }
804 while$
805 }
806
807 FUNCTION {format.name.sig}
808 { 's :=
809 #1 'nameptr :=
810 s num.names$ 'numnames :=
811 numnames 'namesleft :=
812 { namesleft #0 > }
813 { s nameptr "{ff}{ vv}{ ll}{ jj}" format.name$ 't :=
814 nameptr #1 >
815 { namesleft #1 >
816 { "" * t * }
817 { t "others" =
818 { " et al." * }
819 { "" * t * }
820 if$
821 }
822 if$
823 }
824 't
825 if$
826 nameptr #1 + 'nameptr :=
827 namesleft #1 - 'namesleft :=
828 }
829 while$
830 }
831
832 FUNCTION {indexmarkup}
833 { duplicate$ empty$
834 { pop$ "{}" }
835 { "{" swap$ * "}" * }
836 if$
837 }
838
839 FUNCTION {format.names.for.index}
840 { 's :=
841 #1 'nameptr :=
842 s num.names$ 'numnames :=
843 numnames 'namesleft :=
844 { namesleft #0 > }
845 { s nameptr "{ll}" format.name$ 't := t indexmarkup 't :=
846 s nameptr "{ff}" format.name$ indexmarkup 'u :=
847 s nameptr "{f.}" format.name$ indexmarkup 'v :=
848 s nameptr "{vv}" format.name$ indexmarkup 'w :=
849 s nameptr "{jj}" format.name$ indexmarkup 'x :=
850 t u * v * w * x * 't :=
851 t "{others}{}{}{}{}" =
852 'skip$
853 { nameptr #1 >
854 { namesleft #1 >
855 { "; " * t * }
856 {
857 t "others" =
858 'skip$
859 { "; " * t * }
860 if$
861 }
862 if$
863 }
864 't
865 if$
866 }
867 if$
868 nameptr #1 + 'nameptr :=
869 namesleft #1 - 'namesleft :=
870 }
871 while$
872 }
873
874 FUNCTION {format.authors}
875 { author empty$
876 { "" }
877 { author format.names }
878 if$
879 }
880
881 FUNCTION {format.founders}
882 { founder empty$
883 'skip$
884 { author empty$
885 'skip$
886 { " in: " * }
887 if$
888 founder format.names "\foundername" * *
889 editor empty$
890 'skip$
891 { author empty$
892 { "\afterfoundersep {}" * }
893 'skip$
894 if$
895 }
896 if$
897 }
898 if$
899 }
900
901 FUNCTION {format.editors}
902 { editor empty$
903 { "" }
904 { author empty$
905 { editor format.editor.names
906 editortype empty$
907 { editor num.names$ #1 >
908 { "\fsted {\editorsname}" * }
909 { "\fsted {\editorname}" * }
910 if$
911 }
912 { "\fsted {(" editortype * ")}" * * }
913 if$
914 }
915 { founder empty$
916 { "\bibfnfont {;} " * }
917 { type$ "commented" =
918 { "\afterfoundersep {}" * }
919 { "\bibfnfont {;} " * }
920 if$
921 }
922 if$
923 editor format.editor.names *
924 editortype empty$
925 { editor num.names$ #1 >
926 { " \edfont {\editorsname}" * }
927 { " \edfont {\editorname}" * }
928 if$
929 }
930 { " \edfont {(" editortype * ")}" * * }
931 if$
932 }
933 if$
934 }
935 if$
936 }
937
938 FUNCTION {format.snd.editors}
939 { editor empty$
940 { "" * }
941 { author empty$
942 { editortype empty$
943 { editor num.names$ #1 >
944 { "\snded {\sndeditorsname}" * }
945 { "\snded {\sndeditorname}" * }
946 if$
947 }
948 { "\snded {(" editortype * ")}" * * }
949 if$
950 }
951 'skip$
952 if$
953 }
954 if$
955 }
956
957 FUNCTION { format.howcited }
958 { "} {\bibhowcited}" format.endnote * }
959
960 FUNCTION {fin.entry.endnote}
961 { " \jbdoitem {" *
962 author empty$
963 'skip$
964 { author format.names.for.index * }
965 if$
966 "} {"
967 editor empty$
968 'skip$
969 { editor format.names.for.index * }
970 if$
971 "} {" *
972 organization empty$
973 'skip$
974 { "{" organization * "}{}{}{}{}" * * }
975 if$
976 "}" * * write$
977 annote missing$
978 { " \bibAnnoteFile {" cite$ * "}" * write$ newline$ }
979 { " \bibAnnote {" annote * "}" * write$ newline$ }
980 if$
981 }
982
983 FUNCTION {count.authors.or.editors}
984 { 's :=
985 #1 'nameptr :=
986 s num.names$ 'numnames :=
987 numnames 'namesleft :=
988 { namesleft #0 > }
989 { "" 't :=
990 nameptr #1 >
991 { namesleft #1 >
992 { "" * }
993 { "s" * } % more than one author/editor, append `s'
994 if$
995 }
996 't
997 if$
998 nameptr #1 + 'nameptr :=
999 namesleft #1 - 'namesleft :=
1000 }
1001 while$
1002 }
1003
1004
1005 FUNCTION { set.after.author.sep }
1006 { author empty$ editor empty$ and
1007 { "}{jureco} {} {" "" * }
1008 { year empty$
1009 { type$ "book" = dissyear empty$ not and
1010 { "\bibYear {" dissyear *
1011 extra.label "" =
1012 'skip$
1013 { "\el {" extra.label * "}" * * }
1014 if$
1015 "}" * *
1016 }
1017 { year missing$
1018 { "\bibYear {}" * }
1019 'skip$
1020 if$
1021 }
1022 if$
1023 }
1024 { year missing$
1025 { "\bibYear {}" * }
1026 { "\bibYear {" year *
1027 extra.label "" =
1028 'skip$
1029 { "\el {" extra.label * "}" * * }
1030 if$
1031 "}" * *
1032 }
1033 if$
1034 }
1035 if$
1036 "}{jureco} {} {" "" *
1037 }
1038 if$
1039 }
1040
1041 FUNCTION {format.names.info}
1042 { 's :=
1043 #1 'nameptr :=
1044 s num.names$ 'numnames :=
1045 numnames 'namesleft :=
1046 { namesleft #0 > }
1047 { s nameptr "{ff }{vv }{ll}" format.name$ 't :=
1048 nameptr #1 >
1049 { namesleft #1 >
1050 { " " * t * }
1051 { t "others" =
1052 { " et al." * }
1053 { " " * t * }
1054 if$
1055 }
1056 if$
1057 }
1058 't
1059 if$
1060 nameptr #1 + 'nameptr :=
1061 namesleft #1 - 'namesleft :=
1062 }
1063 while$
1064 }
1065
1066 FUNCTION { format.howcited.comment }
1067 { edition empty$
1068 { "} {\bibcommenthowcited}" format.endnote * }
1069 { "} {\bibcommenthowcited}" format.endnote * *
1070 author empty$ editor empty$ not and
1071 { " \jbauthorinfo {" editor format.names.info " " title * * * "}{" cite$ "}" * * * }
1072 { author empty$ shortauthor empty$ not and
1073 { " \jbauthorinfo {" shortauthor format.names.info " " title * * * "}{" cite$ "}" * * * }
1074 { " \jbauthorinfo {" author format.names.info " " title * * * "}{" cite$ "}" * * * }
1075 if$
1076 }
1077 if$
1078 }
1079 if$
1080 }
1081
1082 FUNCTION { format.howcited.artperiod }
1083 { "} {\bibartperiodhowcited}" format.endnote * }
1084
1085 FUNCTION {format.proceed.organization}
1086 { organization empty$
1087 { "" }
1088 { organization " \organizationname {}" * }
1089 if$
1090 }
1091
1092 FUNCTION {format.titleaddon}
1093 { title empty$
1094 { "" }
1095 { titleaddon empty$
1096 { "" }
1097 { titleaddon "\bibatsep\ " * }
1098 if$
1099 }
1100 if$
1101 }
1102
1103 FUNCTION {format.title}
1104 { title empty$
1105 { "" }
1106 { "\bibtfont {" title check.punct.instead.of.add.period * format.titleaddon * }
1107 if$
1108 }
1109
1110 FUNCTION {format.artperiodincoll.title}
1111 { title empty$
1112 { "" }
1113 { "\bibapifont {" title check.punct.instead.of.add.period * format.titleaddon * }
1114 if$
1115 }
1116
1117 FUNCTION {format.volumetitle}
1118 { volumetitle empty$
1119 { "" }
1120 { volume empty$
1121 { "There's a volumetitle but no volume in " cite$ * warning$ volumetitle ", " * }
1122 { volumetitle ", " * }
1123 if$
1124 }
1125 if$
1126 }
1127
1128 FUNCTION {add.extra.label}
1129 { extra.label "" =
1130 'skip$
1131 { "\bibel {" extra.label * "}" * * }
1132 if$
1133 }
1134
1135 FUNCTION {format.date}
1136 { year empty$
1137 { month empty$
1138 { "" }
1139 { "There's a month but no year in " cite$ * warning$ month }
1140 if$
1141 }
1142 { month empty$
1143 { edition empty$
1144 'skip$
1145 { "\jbssedbd {" convert.edition.superscript extract.num * "}" * * }
1146 if$
1147 year
1148 add.extra.label
1149 }
1150 { month " " *
1151 edition empty$
1152 'skip$
1153 { "\jbssedbd {" convert.edition.superscript extract.num * "}" * * }
1154 if$
1155 year *
1156 add.extra.label
1157 }
1158 if$
1159 }
1160 if$
1161 }
1162
1163 FUNCTION {format.update}
1164 { updated missing$ not
1165 { "\updatesep {} \updatename {} " * updated * }
1166 'skip$
1167 if$
1168 }
1169
1170 FUNCTION {oaddress.opublisher.oyear.format}
1171 { type$ "book" = type$ "inbook" = type$ "incollection" = or or
1172 { oyear empty$
1173 { opublisher empty$
1174 { oaddress empty$
1175 'skip$
1176 { oaddress "\osep {} " * * }
1177 if$
1178 }
1179 { oaddress empty$
1180 { opublisher "\osep {} " * * }
1181 { oaddress "\bpubaddr {} " * opublisher "\osep {} " * * * }
1182 if$
1183 }
1184 if$
1185 }
1186 { year empty$
1187 { "oyear without year in " cite$ * warning$ }
1188 'skip$
1189 if$
1190 opublisher empty$
1191 { oaddress empty$
1192 { oyear * "\osep {} \reprintname {}, " * }
1193 { oaddress "\bibbdsep {} " * oyear "\osep {} " * * * }
1194 if$
1195 }
1196 { oaddress empty$
1197 { opublisher * "\bibbdsep {} " * oyear "\osep {} " * * }
1198 { oaddress "\bpubaddr {} " * opublisher "\bibbdsep {} " * * oyear "\osep {} " * * * }
1199 if$
1200 }
1201 if$
1202 }
1203 if$
1204 }
1205 'skip$
1206 if$
1207 }
1208
1209 FUNCTION {make.translators}
1210 { before.all 'output.state :=
1211 translator empty$
1212 { flanguage empty$
1213 { "" }
1214 { "\translator {}{" flanguage "l" change.case$ * "}" *
1215 type$ "incollection" = not
1216 type$ "article" = not
1217 and
1218 { "{1} " * }
1219 { type$ "incollection" =
1220 { booktitle empty$
1221 { "{} " * }
1222 { "{1} " * }
1223 if$
1224 }
1225 { type$ "article" =
1226 { "{1}" * }
1227 { series empty$
1228 { "{} " * }
1229 { "{1} " * }
1230 if$
1231 }
1232 if$
1233 }
1234 if$
1235 }
1236 if$
1237 }
1238 if$
1239 }
1240 { "\translator {" translator * "}" *
1241 flanguage empty$
1242 { "{}" * }
1243 { "{" * flanguage "l" change.case$ * "}" * }
1244 if$
1245 type$ "incollection" = not
1246 type$ "article" = not
1247 and
1248 { "{1} " * }
1249 {
1250 type$ "incollection" =
1251 { booktitle empty$
1252 { "{} " * }
1253 { "{1} " * }
1254 if$
1255 }
1256 { type$ "article" =
1257 { "{1} " * }
1258 { series empty$
1259 { "{} " * }
1260 { "{1} " * }
1261 if$
1262 }
1263 if$
1264 }
1265 if$
1266 }
1267 if$
1268 }
1269 if$
1270 before.all 'output.state :=
1271 }
1272
1273 FUNCTION {format.address.publisher.year}
1274 { publisher empty$
1275 { address empty$
1276 { institution empty$
1277 { "" }
1278 { " \apyformat {" oaddress.opublisher.oyear.format * institution "}" * }
1279 if$
1280 }
1281 { institution empty$
1282 { " \apyformat {" oaddress.opublisher.oyear.format * address "}" * }
1283 { " \apyformat {" oaddress.opublisher.oyear.format * address "\bpubaddr {} " * institution "}" * * }
1284 if$
1285 }
1286 if$
1287 }
1288 { address empty$
1289 { institution empty$
1290 { "There's only a publisher (no address) in " cite$ * warning$
1291 " \apyformat {" oaddress.opublisher.oyear.format * publisher "}" * }
1292 { " \apyformat {" oaddress.opublisher.oyear.format * publisher ", " * institution "}" * * }
1293 if$
1294 }
1295 { institution empty$
1296 { " \apyformat {" oaddress.opublisher.oyear.format * address "\bpubaddr {} " * publisher "}" * * }
1297 { " \apyformat {" oaddress.opublisher.oyear.format * address "\bpubaddr {} " * publisher ", " * institution "}" * * * }
1298 if$
1299 }
1300 if$
1301 }
1302 if$
1303 }
1304
1305
1306 FUNCTION {format.howpublished.address.year}
1307 { howpublished empty$
1308 { address empty$
1309 { "No address in " cite$ warning$ }
1310 { " \apyformat {" oaddress.opublisher.oyear.format address * "}" * }
1311 if$
1312 }
1313 { address empty$
1314 { "There's only a howpublished (no address) in " cite$ * warning$ " \apyformat {" oaddress.opublisher.oyear.format howpublished * "}" * }
1315 { " \apyformat {" oaddress.opublisher.oyear.format address * "\bpubaddr {} " * howpublished "}" * * }
1316 if$
1317 }
1318 if$
1319 }
1320
1321 FUNCTION {tie.or.space.connect}
1322 { duplicate$ text.length$ #4 <
1323 { "~" }
1324 { " " }
1325 if$
1326 swap$ * *
1327 }
1328
1329 FUNCTION {bibvol.tie.or.space.connect}
1330 { duplicate$ text.length$ #4 <
1331 { "~" }
1332 { "{} " }
1333 if$
1334 swap$ * *
1335 }
1336
1337 FUNCTION {format.btitle}{ title emphasize format.titleaddon * }
1338
1339 FUNCTION {format.btitle.vol}
1340 { number empty$
1341 { series empty$
1342 { volume empty$
1343 { title emphasize format.titleaddon * }
1344 {
1345 title emphasize format.titleaddon * " \volumeformat {" volume * "} " * *
1346 }
1347 if$
1348 }
1349 { volume empty$
1350 { title emphasize format.titleaddon * }
1351 {
1352 title emphasize format.titleaddon * "\volumeformat {" volume * "} " * * series "\bibatsep\ " * *
1353 }
1354 if$
1355 }
1356 if$
1357 }
1358 { title emphasize format.titleaddon * }
1359 if$
1360 }
1361
1362 FUNCTION {format.btitle.vol.inbook}
1363 { number empty$
1364 { series empty$
1365 { volume empty$
1366 { "\bibapifont {" title check.punct.instead.of.add.period * format.titleaddon * }
1367 { "\bibapifont {" title check.punct.instead.of.add.period * format.titleaddon *
1368 " \volumeformat {" volume * "} " * *
1369 }
1370 if$
1371 }
1372 { volume empty$
1373 { "\bibapifont {" title check.punct.instead.of.add.period * format.titleaddon * }
1374 { series emphasize
1375 "\volumeformat {" volume * "} " * *
1376 "\bibapifont {" title check.punct.instead.of.add.period * format.titleaddon * * }
1377 if$
1378 }
1379 if$
1380 }
1381 { "\bibapifont {" title check.punct.instead.of.add.period * format.titleaddon * }
1382 if$
1383 }
1384
1385 FUNCTION {format.url}
1386 { url empty$
1387 { "" }
1388 { author empty$ title empty$ and
1389 'skip$
1390 { " " * }
1391 if$
1392 urldate empty$
1393 {"\jburluse {" cite$ * "}" * }
1394 {"\jburluse {" cite$ * "}\bibbudcsep {}\urldatecomment " * urldate * }
1395 if$
1396 }
1397 if$
1398 }
1399
1400 FUNCTION {format.naked.url}
1401 { url empty$
1402 { "" }
1403 { urldate empty$
1404 { title empty$
1405 'skip$
1406 { title emphasize * }
1407 if$
1408 "\jburluse {" cite$ * "}" *
1409 }
1410 { title empty$
1411 'skip$
1412 { title emphasize * }
1413 if$
1414 "\jburluse {" cite$ * "}\bibbudcsep {}\urldatecomment " * urldate *
1415 }
1416 if$
1417 }
1418 if$
1419 }
1420
1421 FUNCTION {format.series.number}
1422 { volume empty$
1423 { number empty$
1424 { series empty$
1425 { "" }
1426 { " \numberandseries {}{" series * "}" * }
1427 if$
1428 }
1429 { series empty$
1430 { " \numberandseries {" number * "}{}" * "There's a number but no series in " cite$ * warning$ }
1431 { " \numberandseries {" number * "}{" * series "}" * * }
1432 if$
1433 }
1434 if$
1435 }
1436 { series empty$
1437 { "" }
1438 { type$ "proceedings" =
1439 { " \numberandseries {}{" series * "}" * } % { " (" series * ")" * }
1440 { "" }
1441 if$
1442 }
1443 if$
1444 }
1445 if$
1446 }
1447
1448 FUNCTION {first.ed} { "\firstedname" }
1449 FUNCTION {second.ed}{ "\secondedname" }
1450 FUNCTION {third.ed} { "\thirdedname" }
1451 FUNCTION {fourth.ed}{ "\fourthedname" }
1452 FUNCTION {fifth.ed} { "\fifthedname" }
1453 FUNCTION {th.ed} { "\thedname" }
1454
1455 FUNCTION {convert.edition}
1456 { edition extract.num "l" change.case$ 's :=
1457 s "first" = s "1" = or
1458 { first.ed 't := }
1459 { s "second" = s "2" = or
1460 { second.ed 't := }
1461 { s "third" = s "3" = or
1462 { third.ed 't := }
1463 { s "fourth" = s "4" = or
1464 { fourth.ed 't := }
1465 { s "fifth" = s "5" = or
1466 { fifth.ed 't := }
1467 { s #1 #1 substring$ is.num
1468 { s th.ed * 't := }
1469 { edition 't := }
1470 if$
1471 }
1472 if$
1473 }
1474 if$
1475 }
1476 if$
1477 }
1478 if$
1479 }
1480 if$
1481 t
1482 }
1483
1484 FUNCTION {format.edition}
1485 { edition empty$
1486 { "" }
1487 { "\jbedition {" * convert.edition "~\editionname {}\jbaensep} " * }% dot or not ???????
1488 if$
1489 }
1490
1491 FUNCTION { format.isbn.issn }
1492 { isbn empty$
1493 { issn empty$
1494 { "" }
1495 { "\jbissn {" issn n.dashify * "}" * }
1496 if$
1497 }
1498 { "\jbisbn {" isbn n.dashify * "}" * }
1499 if$
1500 }
1501
1502 INTEGERS { multiresult }
1503
1504 FUNCTION {multi.page.check}
1505 { 't :=
1506 #0 'multiresult :=
1507 { multiresult not
1508 t empty$ not
1509 and
1510 }
1511 { t #1 #1 substring$
1512 duplicate$ "-" =
1513 swap$ duplicate$ "," =
1514 swap$ "+" =
1515 or or
1516 { #1 'multiresult := }
1517 { t #2 global.max$ substring$ 't := }
1518 if$
1519 }
1520 while$
1521 multiresult
1522 }
1523
1524 FUNCTION {format.pages}
1525 { pages empty$
1526 { "" }
1527 { " \jbPages{" pages n.dashify * "}" * }
1528 if$
1529 }
1530
1531 FUNCTION {multi.pagerange.check}
1532 { 't :=
1533 #0 'multiresult :=
1534 { multiresult not
1535 t empty$ not
1536 and
1537 }
1538 { t #1 #1 substring$
1539 duplicate$ "-" =
1540 swap$ duplicate$ "b" =
1541 swap$ "/" = or or
1542 { #1 'multiresult := }
1543 { t #2 global.max$ substring$ 't := }
1544 if$
1545 }
1546 while$
1547 multiresult
1548 }
1549
1550 FUNCTION {check.missing.pages}
1551 { pages empty$
1552 { "Empty pages in " cite$ * warning$ }
1553 { pages multi.pagerange.check
1554 { "" * }
1555 { type$ "article" = type$ "periodical" = or
1556 { "There's only a starting page, no pagerange in " cite$ * warning$ }
1557 'skip$
1558 if$
1559 }
1560 if$
1561 }
1562 if$
1563 }
1564
1565 FUNCTION {format.pages.book}
1566 { pages empty$
1567 { "" }
1568 { " \jbpages {" pages " \bibtotalpagesname}" *}
1569 if$
1570 }
1571
1572 FUNCTION {format.totalpages}
1573 { totalpages empty$
1574 { "" }
1575 {
1576 ", " totalpages "~\bibtotalpagesname" * *
1577 }
1578 if$
1579 }
1580
1581 FUNCTION {format.vol.year.num.pages}
1582 { volume empty$
1583 { "" }
1584 { " \artvolumeformat {" volume * "}" *
1585 year empty$
1586 { "There's a volume but no year in " cite$ * warning$ }
1587 'skip$
1588 if$
1589 }
1590 if$
1591 number empty$
1592 'skip$
1593 { "\artnumberformat {" number * "}" * * }
1594 if$
1595 pages empty$
1596 'skip$
1597 { duplicate$ empty$
1598 { pop$ format.pages }
1599 { "" format.pages * * }
1600 if$
1601 }
1602 if$
1603 }
1604
1605 FUNCTION {format.vol.bracedyear.num.pages}
1606 { volume empty$
1607 { "" }
1608 { " \pervolumeformat {" volume * "}" *
1609 year empty$
1610 { "There's a volume but no year in " cite$ * warning$ }
1611 'skip$
1612 if$
1613 }
1614 if$
1615 number empty$
1616 'skip$
1617 { volume empty$
1618 { "" * }
1619 { ", " * }
1620 if$
1621 "\pernumberformat {" number * "}" * *
1622 }
1623 if$
1624 pages empty$
1625 'skip$
1626 { duplicate$ empty$
1627 { pop$ format.pages }
1628 { "" format.pages * * }
1629 if$
1630 }
1631 if$
1632 }
1633
1634 FUNCTION {format.chapter.pages}
1635 { chapter empty$
1636 'format.pages
1637 { type empty$
1638 { "\unskip.\,-- \bibchapterlongname" }
1639 { "\unskip.\,-- " type * }
1640 if$
1641 chapter tie.or.space.connect
1642 pages empty$
1643 'skip$
1644 { format.pages * }
1645 if$
1646 }
1647 if$
1648 }
1649
1650 FUNCTION {format.booktitleaddon}
1651 { booktitle empty$
1652 { "" }
1653 { booktitleaddon empty$
1654 { "" }
1655 { booktitleaddon }
1656 if$
1657 }
1658 if$
1659 }
1660
1661 FUNCTION {format.incoll.editor.booktitle}
1662 { booktitle empty$
1663 { "" }
1664 { editor empty$
1665 { volume empty$
1666 { "\incolledformat {}{}{" booktitle incollbooktitlemarkup format.booktitleaddon * * "}{}" *
1667 booktitleaddon empty$
1668 { "{} " * }
1669 { "{1} " * }
1670 if$
1671 }
1672 { "\incolledformat {}{}{" booktitle incollbooktitlemarkup format.booktitleaddon * * "}{" * volume * "}" *
1673 booktitleaddon empty$
1674 { "{} " * }
1675 { "{1} " * }
1676 if$
1677 }
1678 if$
1679 }
1680 { volume empty$
1681 { "\incolledformat {"
1682 editor empty$
1683 { "" }
1684 { editor format.editor.names "}" * *
1685 editortype empty$
1686 { editor num.names$ #1 >
1687 { "{\edfont {\editorsname}}{" * }
1688 { "{\edfont {\editorname}}{" * }
1689 if$
1690 }
1691 { "{\edfont {(" * editortype * ")}}{" * }
1692 if$
1693 }
1694 if$
1695 booktitle incollbooktitlemarkup * format.booktitleaddon * "}{}" *
1696 booktitleaddon empty$
1697 { "{} " * }
1698 { "{1} " * }
1699 if$
1700 }
1701 { "\incolledformat {" *
1702 editor empty$
1703 { "" }
1704 { editor format.editor.names "}" * *
1705 editortype empty$
1706 { editor num.names$ #1 >
1707 { "{\edfont {\editorsname}}{" * }
1708 { "{\edfont {\editorname}}{" * }
1709 if$
1710 }
1711 { "{\edfont {(" * editortype * ")}}{" * }
1712 if$
1713 }
1714 if$
1715 booktitle incollbooktitlemarkup * format.booktitleaddon * "}{" volume * "}" *
1716 booktitleaddon empty$
1717 { "{} " * }
1718 { "{1} " * }
1719 if$
1720 }
1721 if$
1722 }
1723 if$
1724 }
1725 if$
1726 }
1727
1728 FUNCTION {format.tr.number.jur}
1729 { type empty$
1730 { number empty$
1731 { " -- \technicalreportname {} " }
1732 { "~(" number * ").\,-- \technicalreportname {} " * }
1733 if$
1734 }
1735 { number empty$
1736 { " -- " type * }
1737 { "~(" number * ").\,-- " type * " " * * }
1738 if$
1739 }
1740 if$
1741 }
1742
1743 FUNCTION {format.article.crossref.bracedyear}
1744 { key empty$
1745 { journal empty$
1746 { "Need key or journal for " cite$ * " to crossref " * crossref * warning$ "" }
1747 { "\bibJTsep\bibjtfont {" journal * check.punct.instead.of.add.period.art * }
1748 if$
1749 volume empty$
1750 { "No volume in " cite$ * warning$ }
1751 { " \pervolumeformat {" volume * "} " * }
1752 if$
1753 pages empty$
1754 'skip$
1755 { duplicate$ empty$
1756 { pop$ format.pages }
1757 { format.pages * }
1758 if$
1759 }
1760 if$
1761 }
1762 { "" key * }
1763 if$
1764 "\ \protect\jbcrossrefchecked {" * crossref * "}\unskip" *
1765 }
1766
1767 FUNCTION {format.article.crossref}
1768 { key empty$
1769 { journal empty$
1770 { "Need key or journal for " cite$ * " to crossref " * crossref * warning$ "" }
1771 { "\bibJTsep\bibjtfont {" journal * check.punct.instead.of.add.period.art * }
1772 if$
1773 }
1774 { "" key * }
1775 if$
1776 year empty$
1777 'skip$
1778 { year * }
1779 if$
1780 " \protect\jbcrossrefchecked {" crossref * "}" *
1781 }
1782
1783 FUNCTION {format.book.crossref}
1784 { editor empty$
1785 editor field.or.null author field.or.null =
1786 or
1787 { key empty$
1788 { series empty$
1789 { "Need editor, key, or series for " cite$ * " to crossref " * crossref * warning$ "" * }
1790 { "" * }
1791 if$
1792 }
1793 { key * }
1794 if$
1795 }
1796 { "" * }
1797 if$
1798 volume empty$
1799 { "Empty volume in " cite$ * "'s crossref of " * crossref * warning$ ""
1800 " \protect\jbcrossrefchecked {" * crossref * "}\unskip" * }
1801 { " \protect\jbcrossrefchecked[" * volume * "]{" * crossref "}\unskip" * }
1802 if$
1803 }
1804
1805 FUNCTION {format.incoll.inproc.crossref}
1806 { " \protect\jbincollcrossref {" * crossref * "}" *
1807 editor empty$
1808 { "{}" * }
1809 { "{1}" * }
1810 if$
1811 format.pages % *<== 0.5f removed too.
1812 }
1813
1814 FUNCTION { format.editors.organization }
1815 { organization empty$
1816 'skip$
1817 { type$ "misc" =
1818 { organization }
1819 { author empty$
1820 { editor empty$
1821 { " " organization * " \organizationname {}" * }
1822 { "; " organization * " \organizationname {}" * }
1823 if$
1824 }
1825 { "; " organization * " \organizationname {}" * }
1826 if$
1827 }
1828 if$
1829 }
1830 if$
1831 }
1832
1833 FUNCTION {format.address.organization.manual}
1834 { author empty$
1835 { organization empty$
1836 { address empty$
1837 'skip$
1838 { address output part.of.sentence
1839 year empty$ not { "\bibbdsep {}" *} 'skip$ if$
1840 }
1841 if$
1842 }
1843 'skip$
1844 if$
1845 }
1846 { address empty$
1847 { organization empty$
1848 'skip$
1849 { organization output part.of.sentence
1850 year empty$ not { "\bibbdsep {}" *} 'skip$ if$
1851 }
1852 if$
1853 }
1854 { organization empty$
1855 { address output part.of.sentence }
1856 { address "\bpubaddr {} " * organization * output part.of.sentence }
1857 if$
1858 year empty$ not { "\bibbdsep {}" *} 'skip$ if$
1859 }
1860 if$
1861 }
1862 if$
1863 }
1864
1865 FUNCTION {article}
1866 { output.bibitem
1867 format.authors "author" output.check
1868 set.after.author.sep output
1869 format.artperiodincoll.title "title" output.check
1870 crossref missing$
1871 { journal article.in.journal output.nonnull
1872 new.sentence
1873 format.vol.year.num.pages output
1874 }
1875 { format.article.crossref output.nonnull }
1876 if$
1877 format.url output
1878 format.note
1879 format.isbn.issn output
1880 format.howcited.artperiod output
1881 check.missing.pages
1882 fin.entry.endnote
1883 }
1884
1885 FUNCTION {commented}
1886 { output.bibitem
1887 author empty$
1888 { editor empty$
1889 { format.founders }
1890 { format.founders format.editors "editor" output.check }
1891 if$
1892 }
1893 { editor empty$
1894 { format.authors format.founders output.nonnull }
1895 { format.authors format.founders format.editors output.nonnull }
1896 if$
1897 }
1898 if$
1899 set.after.author.sep output
1900 crossref missing$
1901 { format.btitle.vol "title" output.check }
1902 { format.btitle "title" output.check }
1903 if$
1904 format.volumetitle output
1905 format.edition output
1906 format.address.publisher.year "publisher" output.check
1907 format.update
1908 new.sentence
1909 crossref missing$
1910 { format.series.number output }
1911 { format.book.crossref output.nonnull }
1912 if$
1913 format.url output
1914 format.pages output
1915 format.note
1916 format.howcited.comment output
1917 fin.entry.endnote
1918 }
1919
1920 FUNCTION {periodical}
1921 { output.bibitem
1922 format.authors "author" output.check
1923 set.after.author.sep output
1924 format.artperiodincoll.title "title" output.check
1925 crossref missing$
1926 { journal article.in.journal output.nonnull
1927 new.sentence
1928 format.vol.bracedyear.num.pages output
1929 }
1930 { new.sentence format.article.crossref.bracedyear output.nonnull }
1931 if$
1932 format.url output
1933 format.note
1934 format.isbn.issn output
1935 format.howcited.artperiod output
1936 fin.entry.endnote
1937 }
1938
1939 FUNCTION {book}
1940 { output.bibitem
1941 author empty$
1942 { editor empty$
1943 { "" "author and editor" output.check }
1944 { format.editors output.nonnull }
1945 if$
1946 }
1947 { editor empty$
1948 { format.authors output.nonnull }
1949 { format.authors "\jbtiafed {" format.editors * "}" * output.nonnull }
1950 if$
1951 }
1952 if$
1953 set.after.author.sep output
1954 crossref missing$
1955 { format.btitle.vol "title" output.check }
1956 { format.btitle "title" output.check }
1957 if$
1958 author empty$ not editor empty$ not and
1959 { "\jbedafti {\edbyname {} " editor * "," * * "} " * }
1960 'skip$
1961 if$
1962 make.translators output
1963 format.volumetitle output
1964 format.edition output
1965 format.address.publisher.year "publisher" output.check
1966 new.sentence
1967 format.juradiss.book output
1968 crossref missing$
1969 { format.series.number output }
1970 { format.book.crossref output.nonnull }
1971 if$
1972 format.url output
1973 format.pages output
1974 format.totalpages output
1975 format.note
1976 format.isbn.issn output
1977 format.howcited output
1978 fin.entry.endnote
1979 }
1980
1981 FUNCTION {inbook}
1982 { output.bibitem
1983 author empty$
1984 { format.editors "author and editor" output.check }
1985 { editor empty$
1986 { format.authors output.nonnull }
1987 { format.authors format.editors output.nonnull }
1988 if$
1989 }
1990 if$
1991 set.after.author.sep output
1992 crossref missing$
1993 { chapter empty$
1994 { "There's no chapter in " cite$ * warning$ "" * }
1995 { type empty$
1996 { "\Bibchaptername{}" }
1997 { type }
1998 if$
1999 chapter tie.or.space.connect " In " * *
2000 }
2001 if$
2002 format.btitle.vol.inbook "title" output.check
2003 make.translators output
2004 format.volumetitle output
2005 format.edition output
2006 format.address.publisher.year "publisher" output.check
2007 new.sentence
2008 format.series.number output
2009 format.url output
2010 format.pages "pages" output.check
2011 format.note
2012 format.isbn.issn output
2013 }
2014 { chapter empty$
2015 { "There's no chapter in " cite$ * warning$ "" *
2016 format.btitle.vol.inbook "title" output.check
2017 }
2018 { type empty$
2019 { "\Bibchaptername{}" }
2020 { type }
2021 if$
2022 chapter tie.or.space.connect "" * *
2023 }
2024 if$
2025 format.volumetitle output
2026 format.book.crossref output.nonnull
2027 format.url output
2028 format.pages "pages" output.check
2029 format.note
2030 }
2031 if$
2032 part.of.sentence
2033 format.howcited output
2034 fin.entry.endnote
2035 }
2036
2037 FUNCTION {incollection}
2038 { output.bibitem
2039 format.authors "author" output.check
2040 set.after.author.sep output
2041 format.artperiodincoll.title "title" output.check
2042 make.translators output
2043 crossref missing$
2044 { format.incoll.editor.booktitle "booktitle" output.check
2045 format.volumetitle output
2046 format.edition output
2047 format.address.publisher.year "publisher" output.check
2048 new.sentence
2049 format.series.number output
2050 format.url output
2051 format.isbn.issn output
2052 part.of.sentence
2053 format.chapter.pages output
2054 format.note
2055 }
2056 { format.volumetitle output
2057 format.incoll.inproc.crossref output.nonnull
2058 format.url output
2059 format.note
2060 }
2061 if$
2062 format.howcited output
2063 check.missing.pages
2064 fin.entry.endnote
2065 }
2066
2067 FUNCTION {inproceedings}
2068 { output.bibitem
2069 format.authors "author" output.check
2070 set.after.author.sep output
2071 format.artperiodincoll.title "title" output.check
2072 crossref missing$
2073 { format.incoll.editor.booktitle "booktitle" output.check
2074 address empty$
2075 { organization new.sentence.checka
2076 organization output
2077 part.of.sentence
2078 format.address.publisher.year output
2079 }
2080 { format.address.publisher.year "publisher" output.check }
2081 if$
2082 new.sentence
2083 series empty$
2084 'skip$
2085 { format.series.number output }
2086 if$
2087 format.url output
2088 format.note
2089 format.isbn.issn output
2090 part.of.sentence
2091 format.pages output
2092 }
2093 { format.incoll.inproc.crossref output.nonnull
2094 format.url output
2095 format.note
2096 }
2097 if$
2098 format.howcited output
2099 fin.entry.endnote
2100 }
2101
2102 FUNCTION {conference}{inproceedings}
2103
2104 FUNCTION {manual}
2105 { output.bibitem
2106 author empty$
2107 { organization empty$
2108 'skip$
2109 { "\bibnf{" organization * "} {} {} {} {}" * output.nonnull }
2110 if$
2111 }
2112 { format.authors output.nonnull }
2113 if$
2114 set.after.author.sep output
2115 format.btitle "title" output.check
2116 format.edition output
2117 format.address.organization.manual
2118 format.date output
2119 pages set.period.dash.check
2120 format.pages.book output
2121 format.url output
2122 format.note
2123 format.howcited output
2124 fin.entry.endnote
2125 }
2126
2127 FUNCTION {mastersthesis}
2128 { output.bibitem
2129 format.authors "author" output.check
2130 set.after.author.sep output
2131 format.btitle "title" output.check
2132 format.thesis output
2133 set.comma.pages.check
2134 pages new.sentence.checka
2135 format.pages output
2136 format.url output
2137 format.note
2138 format.howcited output
2139 fin.entry.endnote
2140 }
2141
2142 FUNCTION {phdthesis}
2143 { output.bibitem
2144 format.authors "author" output.check
2145 set.after.author.sep output
2146 format.btitle "title" output.check
2147 format.thesis output
2148 set.comma.pages.check
2149 pages new.sentence.checka
2150 format.pages output
2151 format.url output
2152 format.note
2153 format.howcited output
2154 fin.entry.endnote
2155 }
2156
2157 FUNCTION {jurthesis}
2158 { output.bibitem
2159 format.authors "author" output.check
2160 set.after.author.sep output
2161 format.btitle "title" output.check
2162 format.thesis output
2163 set.comma.pages.check
2164 pages new.sentence.checka
2165 format.pages output
2166 format.url output
2167 format.note
2168 format.howcited output
2169 fin.entry.endnote
2170 }
2171
2172 FUNCTION {booklet}
2173 { output.bibitem
2174 format.authors "author" output.check
2175 set.after.author.sep output
2176 format.title "title" output.check
2177 format.howpublished.address.year output
2178 format.note
2179 format.url output
2180 format.howcited output
2181 fin.entry.endnote
2182 }
2183
2184 FUNCTION {misc}
2185 { output.bibitem
2186 format.authors "author" output.check
2187 set.after.author.sep output
2188 format.title output
2189 format.howpublished.address.year output
2190 format.note
2191 format.url output
2192 format.howcited output
2193 fin.entry.endnote
2194 }
2195
2196 FUNCTION {proceedings}
2197 { output.bibitem
2198 editor empty$
2199 { organization empty$
2200 'skip$
2201 { "\biblnfont {" organization * " \organizationname}" * output }
2202 if$
2203 }
2204 { format.editors output.nonnull }
2205 if$
2206 set.after.author.sep output
2207 format.btitle "title" output.check
2208 new.sentence
2209 editor empty$
2210 'skip$
2211 { format.proceed.organization output }
2212 if$
2213 new.sentence
2214 format.series.number output.nonnull
2215 volume empty$
2216 { "" output.nonnull }
2217 { "\volumeformat {" volume * "} " * "volume" output.check }
2218 if$
2219 format.address.publisher.year "publisher" output.check
2220 pages set.period.dash.check
2221 format.pages.book output
2222 format.url output
2223 format.note
2224 format.isbn.issn output
2225 format.howcited output
2226 fin.entry.endnote
2227 }
2228
2229 FUNCTION {techreport}
2230 { output.bibitem
2231 author empty$
2232 { format.editors "author and editor" output.check }
2233 { editor empty$
2234 { format.authors output.nonnull }
2235 { format.authors format.editors output.nonnull }
2236 if$
2237 }
2238 if$
2239 set.after.author.sep output
2240 format.title "title" output.check
2241 institution new.sentence.checka
2242 format.address.publisher.year output
2243 number new.sentence.checka
2244 format.tr.number.jur "number" output.check
2245 pages set.period.dash.check
2246 format.pages.book output
2247 format.url output
2248 format.note
2249 format.isbn.issn output
2250 format.howcited output
2251 fin.entry.endnote
2252 }
2253
2254 FUNCTION {www}
2255 { output.bibitem
2256 format.authors "author" output.check
2257 set.after.author.sep output
2258 format.naked.url output
2259 format.howcited output
2260 fin.entry.endnote
2261 }
2262
2263 FUNCTION {lexicon}
2264 { output.bibitem
2265 set.after.author.sep output
2266 crossref missing$
2267 { format.btitle.vol "title" output.check }
2268 { format.btitle "title" output.check }
2269 if$
2270 author empty$
2271 { editor empty$
2272 'skip$
2273 { "\edbyname{} " * editor format.editor.names "," * * }
2274 if$
2275 }
2276 { "\byname{} " author format.names * "," * * }
2277 if$
2278 make.translators output
2279 format.volumetitle output
2280 format.edition output
2281 format.address.publisher.year "publisher" output.check
2282 new.sentence
2283 format.juradiss.book output
2284 crossref missing$
2285 { format.series.number output }
2286 { format.book.crossref output.nonnull }
2287 if$
2288 format.url output
2289 format.pages output
2290 format.totalpages output
2291 format.note
2292 format.isbn.issn output
2293 format.howcited output
2294 fin.entry.endnote
2295 }
2296
2297 STRINGS { last.archive last.subarchive }
2298
2299 FUNCTION {init.last.archive }
2300 { "" 'last.archive :=
2301 "" 'last.subarchive := }
2302
2303 FUNCTION {archival}
2304 { output.bibitem
2305 archive empty$
2306 { "" 'last.archive := }
2307 { archive last.archive =
2308 { "} {" archive format.name.sig * "} {} {\jbsamearch{} " * * }
2309 { "\bibanfont{" archive * "archive" output.check
2310 shortarchive empty$
2311 'skip$
2312 { " \jbshortarchformat{" shortarchive * "}" * * }
2313 if$
2314 "}" *
2315 "} {" archive format.name.sig * "} {} {\jbnotsamearch{} " * *
2316 }
2317 if$
2318 archive 'last.archive :=
2319 }
2320 if$
2321 subarchive empty$
2322 { "" 'last.subarchive := }
2323 { subarchive last.subarchive =
2324 'skip$
2325 { subarchive output
2326 shortsubarchive empty$
2327 'skip$
2328 { " \jbshortsubarchformat{" shortsubarchive * "}" * * }
2329 if$
2330 "\jbsubarchsep{} " *
2331 }
2332 if$
2333 subarchive 'last.subarchive :=
2334 }
2335 if$
2336 sig1 empty$
2337 'skip$
2338 { "\jbarchsig {" *
2339 subarchive empty$
2340 'skip$
2341 { "\jbsamesubarchindent{} " * }
2342 if$
2343 sig1 *
2344 sig2 empty$
2345 'skip$
2346 { ". " sig2 * *
2347 sig3 empty$
2348 'skip$
2349 { ". " sig3 * *
2350 sig4 empty$
2351 'skip$
2352 { ". " sig4 * * }
2353 if$
2354 }
2355 if$
2356 }
2357 if$
2358 "} {" *
2359 }
2360 if$
2361 archname missing$
2362 { "}" * }
2363 { archname "}" * output }
2364 if$
2365 format.howcited output
2366 fin.entry.endnote
2367 }
2368
2369 FUNCTION {unpublished}{misc}
2370
2371 FUNCTION {default.type}{misc}
2372
2373 MACRO {jan} {"\janname\ "}
2374 MACRO {feb} {"\febname\ "}
2375 MACRO {mar} {"\marname\ "}
2376 MACRO {apr} {"\aprname\ "}
2377 MACRO {may} {"\mayname\ "}
2378 MACRO {jun} {"\junname\ "}
2379 MACRO {jul} {"\julname\ "}
2380 MACRO {aug} {"\augname\ "}
2381 MACRO {sep} {"\sepname\ "}
2382 MACRO {oct} {"\octname\ "}
2383 MACRO {nov} {"\novname\ "}
2384 MACRO {dec} {"\decname\ "}
2385
2386 READ
2387
2388 FUNCTION {sortify}{ purify$ "l" change.case$ }
2389
2390 INTEGERS { len }
2391
2392 FUNCTION {chop.word}
2393 { 's :=
2394 'len :=
2395 s #1 len substring$ =
2396 { s len #1 + global.max$ substring$ }
2397 's
2398 if$
2399 }
2400
2401 FUNCTION {format.lab.names}
2402 { 's := % for two: (Jones/de~Bruijn)
2403 s #1 "{vv~}{ll}" format.name$ % for three: (Jones/de~Bruijn/Smith)
2404 s num.names$ duplicate$ % for more: (Jones et\,al.)
2405 #2 <
2406 'pop$ % for just one person
2407 { duplicate$ duplicate$
2408 #3 >
2409 swap$ s swap$ "{ff }{vv }{ll}{ jj}" format.name$ "others" =
2410 or
2411 { pop$ "\Bibetal" * } % for 4 or more, or last is `others'
2412 { #2 =
2413 { "\jbbtasep " * s #2 "{vv~}{ll}" format.name$ * } % for (exactly) two
2414 { "\jbbfsasep " * s #2 "{vv~}{ll}" format.name$ * % for three
2415 "\jbbstasep " * s #3 "{vv~}{ll}" format.name$ *
2416 }
2417 if$
2418 }
2419 if$
2420 }
2421 if$
2422 year missing$
2423 'skip$
2424 { "\jbdy {" year * "}" * * }% dummy year to prevent from `1993a' and `2001b' for works by the same author
2425 if$
2426 }
2427
2428 FUNCTION {format.editor.lab.names}
2429 { 's := % for two: (Jones/de~Bruijn)
2430 s #1 "{vv~}{ll}" format.name$ % for three: (Jones/de~Bruijn/Smith)
2431 s num.names$ duplicate$ % for more: (Jones et\,al.)
2432 #2 <
2433 'pop$ % for just one person
2434 { duplicate$ duplicate$
2435 #3 >
2436 swap$ s swap$ "{ff }{vv }{ll}{ jj}" format.name$ "others" =
2437 or
2438 { pop$ "\Bibetal" * } % for 4 or more, or last is `others'
2439 { #2 =
2440 { "\jbbtesep " * s #2 "{vv~}{ll}" format.name$ * } % for (exactly) two
2441 { "\jbbfsesep " * s #2 "{vv~}{ll}" format.name$ * % for three
2442 "\jbbstesep " * s #3 "{vv~}{ll}" format.name$ *
2443 }
2444 if$
2445 }
2446 if$
2447 }
2448 if$
2449 year missing$
2450 'skip$
2451 { "\jbdy {" year * "}" * * }% dummy year to prevent from `1993a' and `2001b' for works by the same author
2452 if$
2453 }
2454
2455 FUNCTION {author.key.label}
2456 { author empty$
2457 { key empty$
2458 { cite$ #1 #3 substring$ }
2459 'key
2460 if$
2461 }
2462 { author format.lab.names }
2463 if$
2464 }
2465
2466 FUNCTION {author.editor.key.label}
2467 { author empty$
2468 { editor empty$
2469 { key empty$
2470 { cite$ #1 #3 substring$ }
2471 'key
2472 if$
2473 }
2474 { editor format.editor.lab.names }
2475 if$
2476 }
2477 { author format.lab.names }
2478 if$
2479 }
2480
2481 FUNCTION {editor.key.label}
2482 { editor empty$
2483 { key empty$
2484 { cite$ #1 #3 substring$ }
2485 'key
2486 if$
2487 }
2488 { editor format.editor.lab.names }
2489 if$
2490 }
2491
2492 FUNCTION {calc.label}
2493 { type$ "book" = type$ "inbook" = or type$ "incollection" = or type$ "commented" = or type$ "lexicon" = or
2494 'author.editor.key.label
2495 { type$ "proceedings" =
2496 'editor.key.label
2497 'author.key.label
2498 if$
2499 }
2500 if$
2501 'label :=
2502 }
2503
2504 FUNCTION {calc.dummy.label}
2505 { type$ "book" = type$ "inbook" = or type$ "incollection" = or type$ "commented" = or
2506 'author.editor.key.label
2507 { type$ "proceedings" =
2508 'editor.key.label
2509 'author.key.label
2510 if$
2511 }
2512 if$
2513 'dummy.label :=
2514 }
2515
2516 FUNCTION {sort.format.names}
2517 { 's :=
2518 #1 'nameptr :=
2519 ""
2520 s num.names$ 'numnames :=
2521 numnames 'namesleft :=
2522 { namesleft #0 > }
2523 { nameptr #1 >
2524 { " " * }
2525 'skip$
2526 if$
2527 s nameptr "{ll{ }}{ ff{ }}{ vv{ }}{ jj{ }}" format.name$ 't :=
2528 nameptr numnames = t "\bibnf {others} {} {} {} {}" = and
2529 { "\Bibetal" * }
2530 { t sortify * }
2531 if$
2532 nameptr #1 + 'nameptr :=
2533 namesleft #1 - 'namesleft :=
2534 }
2535 while$
2536 }
2537
2538 FUNCTION {sort.format.title}
2539 { 't :=
2540 "A " #2
2541 "An " #3
2542 "Der " #4
2543 "Die " #4
2544 "Das " #4
2545 "Ein " #4
2546 "Eine " #5
2547 "The " #4 t chop.word
2548 chop.word
2549 chop.word
2550 chop.word
2551 chop.word
2552 chop.word
2553 chop.word
2554 chop.word
2555 sortify
2556 #1 global.max$ substring$
2557 }
2558
2559 FUNCTION {author.sort}
2560 { author empty$
2561 { key empty$
2562 {
2563 %% "to sort, need author or key in " cite$ * warning$
2564 ""
2565 }
2566 { key sortify }
2567 if$
2568 }
2569 { author sort.format.names }
2570 if$
2571 }
2572
2573 FUNCTION {author.editor.sort}
2574 { author empty$
2575 { editor empty$
2576 { key empty$
2577 {
2578 %% "to sort, need author, editor, or key in " cite$ * warning$
2579 ""
2580 }
2581 { key sortify }
2582 if$
2583 }
2584 { editor sort.format.names }
2585 if$
2586 }
2587 { author sort.format.names }
2588 if$
2589 }
2590
2591 FUNCTION {editor.sort}
2592 { editor empty$
2593 { key empty$
2594 { "to sort, need editor or key in " cite$ * warning$ "" }
2595 { key sortify }
2596 if$
2597 }
2598 { editor sort.format.names }
2599 if$
2600 }
2601
2602 FUNCTION {archival.sort}
2603 { archive empty$
2604 { shortarchive empty$
2605 { "to sort, need archive or shortarchive in " cite$ * warning$ "" }
2606 { shortarchive sortify }
2607 if$
2608 }
2609 { archive sortify }
2610 if$
2611 }
2612
2613 FUNCTION {presort}
2614 { calc.label
2615 calc.dummy.label
2616 dummy.label sortify " " *
2617 sortkey empty$
2618 { type$ "book" =
2619 type$ "incollection" = or
2620 type$ "inbook" = or
2621 type$ "commented" = or
2622 'author.editor.sort
2623 { type$ "proceedings" =
2624 'editor.sort
2625 { type$ "archival" =
2626 'archival.sort
2627 'author.sort
2628 if$
2629 }
2630 if$
2631 }
2632 if$
2633 }
2634 { sortkey sort.format.names }
2635 if$
2636 type$ "archival" = not
2637 { " "
2638 *
2639 year field.or.null sortify
2640 *
2641 " "
2642 *
2643 title field.or.null
2644 sort.format.title
2645 *
2646 }
2647 { " "
2648 *
2649 subarchive field.or.null sortify
2650 *
2651 " "
2652 *
2653 sig1 field.or.null sortify
2654 *
2655 " "
2656 *
2657 sig2 field.or.null sortify
2658 *
2659 " "
2660 *
2661 sig3 field.or.null sortify
2662 *
2663 " "
2664 *
2665 sig4 field.or.null sortify
2666 *
2667 }
2668 if$
2669 #1 entry.max$ substring$
2670 'sort.label :=
2671 sort.label *
2672 #1 entry.max$ substring$
2673 'sort.key$ :=
2674 }
2675
2676 ITERATE {presort}
2677
2678 %% FUNCTION {before.sort} { "BEFORE SORT:" top$ }
2679 %% EXECUTE {before.sort}
2680 %% FUNCTION {print.sort.keys} {sort.key$ top$}
2681 %% ITERATE {print.sort.keys}
2682
2683 SORT
2684
2685 %% FUNCTION {after.sort} {"AFTER SORT:" top$}
2686 %% EXECUTE {after.sort}
2687 %% ITERATE {print.sort.keys}
2688
2689
2690 INTEGERS { last.extra.num number.label extra.extra.num }
2691
2692 FUNCTION {make.extra.label}
2693 { last.extra.num #122 <
2694 { last.extra.num #1 + }
2695 { extra.extra.num #0 =
2696 { "a" chr.to.int$ }
2697 { extra.extra.num #1 + }
2698 if$
2699 'extra.extra.num :=
2700 "a" chr.to.int$ }
2701 if$
2702 'last.extra.num :=
2703 extra.extra.num #0 =
2704 { last.extra.num int.to.chr$ }
2705 { extra.extra.num int.to.chr$ 'extra.label :=
2706 extra.label last.extra.num int.to.chr$ * }
2707 if$
2708 }
2709
2710 FUNCTION {forward.pass}
2711 { w dummy.label =
2712 { make.extra.label 'extra.label := }
2713 { "a" chr.to.int$ 'last.extra.num :=
2714 #0 'extra.extra.num :=
2715 "" 'extra.label :=
2716 dummy.label 'w :=
2717 }
2718 if$
2719 number.label #1 + 'number.label :=
2720 }
2721
2722 FUNCTION {reverse.pass}
2723 { x "b" =
2724 { "a" 'extra.label := }
2725 'skip$
2726 if$
2727 extra.label 'x :=
2728 extra.label
2729 duplicate$ empty$
2730 'skip$
2731 { "" swap$ * }
2732 if$
2733 'extra.label :=
2734 dummy.label extra.label * 'dummy.label :=
2735 }
2736
2737 ITERATE {forward.pass}
2738 REVERSE {reverse.pass}
2739
2740 FUNCTION {bib.sort.order} { sort.label 'sort.key$ := }
2741
2742 ITERATE {bib.sort.order}
2743
2744 SORT
2745
2746 FUNCTION {set.current.authors}
2747 { author empty$
2748 { editor empty$
2749 { organization empty$
2750 { cite$ 'current-authors := }
2751 { organization 'current-authors := }
2752 if$
2753 }
2754 { editor format.names #1 entry.max$ substring$ 'current-authors := }
2755 %% ^^^^^^^^^^^^ NOT format.editor.names, otherwise \jb@@arg is always = 0!!!
2756 if$
2757 }
2758 { author format.names #1 entry.max$ substring$ 'current-authors := }
2759 if$
2760 }
2761
2762 STRINGS { previous-authors }
2763
2764 FUNCTION {initialize.previous.authors} { "" 'previous-authors := }
2765
2766 FUNCTION {mark.repeat.authors}
2767 { current-authors previous-authors =
2768 { #1 'repeat-authors := }
2769 'skip$
2770 if$
2771 current-authors 'previous-authors :=
2772 }
2773
2774 ITERATE {set.current.authors}
2775
2776 EXECUTE {initialize.previous.authors}
2777
2778 ITERATE {mark.repeat.authors}
2779
2780 EXECUTE {initialize.previous.authors}
2781
2782 REVERSE {mark.repeat.authors}
2783
2784 FUNCTION {begin.bib}
2785 { preamble$ empty$
2786 'skip$
2787 { preamble$ write$ newline$ }
2788 if$
2789 "%" write$ newline$
2790 "% This bibliography was produced by using jureco.bst" write$ newline$
2791 "%" write$ newline$
2792 "\begin{thebibliography}{}" write$ newline$
2793 }
2794
2795 EXECUTE {begin.bib}
2796
2797 EXECUTE {init.state.consts}
2798
2799 ITERATE {call.type$}
2800
2801 FUNCTION {end.bib}
2802 { newline$
2803 "\end{thebibliography}" write$ newline$
2804 }
2805
2806 EXECUTE {end.bib}
2807 %%
2808 %%
2809 %% End of file `jureco.bst'.