Debian Codegraph @

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

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