Debian Codegraph @

texmf-dist/bibtex/bst/is-bst/is-unsrt.bst

raw
1 %% =====================================================================
2 %% WARNING: Do NOT edit this file. It was produced automatically by
3 %% Nelson H. F. Beebe <[email protected]>
4 %% from file://plot79.math.utah.edu/u/sy/beebe/tex/bib/merge/xbtxbst.doc
5 %% on Wed May 15 10:36:08 MDT 1996.
6 %% =====================================================================
7 %%%=====================================================================
8 %%% @BibTeX-style-file{
9 %%% author = "Nelson H. F. Beebe",
10 %%% version = "2.03",
11 %%% date = "15 May 1996",
12 %%% time = "10:35:51 MDT",
13 %%% filename = "is-unsrt.bst",
14 %%% address = "Center for Scientific Computing
15 %%% Department of Mathematics
16 %%% University of Utah
17 %%% Salt Lake City, UT 84112
18 %%% USA",
19 %%% telephone = "+1 801 581 5254",
20 %%% FAX = "+1 801 581 4148",
21 %%% URL = "http://www.math.utah.edu/~beebe",
22 %%% checksum = "64263 1673 4293 35112",
23 %%% email = "[email protected] (Internet)",
24 %%% codetable = "ISO/ASCII",
25 %%% keywords = "BibTeX, style, bibliography",
26 %%% supported = "yes",
27 %%% docstring = "This file is a modification of the standard
28 %%% BibTeX btxbst.doc file, or is a .bst file
29 %%% derived from that modification. It contains
30 %%% optional added support for CODEN, ISBN, ISSN,
31 %%% LCCN, and PRICE fields, extended PAGES
32 %%% fields, the PERIODICAL entry, and extended
33 %%% citation label suffixing.
34 %%%
35 %%% In addition, date formatting supports a day
36 %%% keyword, so that bibliography entries can be
37 %%% written with
38 %%%
39 %%% day = {23},
40 %%% month = aug,
41 %%%
42 %%% instead of the language-dependent awkward
43 %%% forms required by the standard styles
44 %%%
45 %%% month = {23~} # aug,
46 %%% month = aug # {~23},
47 %%%
48 %%% These older forms are, of course, still
49 %%% handled correctly.
50 %%%
51 %%% The UNIX C preprocessor can be used to
52 %%% extract the standard styles, as follows:
53 %%%
54 %%% cpp -P -DPLAIN xbtxbst.doc >plain.bst
55 %%% cpp -P -DUNSRT xbtxbst.doc >unsrt.bst
56 %%% cpp -P -DALPHA xbtxbst.doc >alpha.bst
57 %%% cpp -P -DABBRV xbtxbst.doc >abbrv.bst
58 %%%
59 %%% To obtain correct file header checksums, pipe
60 %%% the output through the checksum program, e.g.
61 %%%
62 %%% cpp -P -DPLAIN xbtxbst.doc | checksum >plain.bst
63 %%%
64 %%% The accompanying UNIX Makefile automates this
65 %%% job, and provides some extra leading comments
66 %%% in the generated style files warning the user
67 %%% not to modify them.
68 %%%
69 %%% Additional optional definitions are recognized
70 %%% to provide extensions to the standard styles:
71 %%%
72 %%% -D_CODEN for CODEN output
73 %%%
74 %%% -D_ISBN for ISBN output
75 %%%
76 %%% -D_ISSN for ISSN output
77 %%%
78 %%% -D_LCCN for LCCN output
79 %%%
80 %%% -D_PRICE for price output,
81 %%%
82 %%% -D_BOOKPAGES for book, techreport, manual,
83 %%% and thesis pages output.
84 %%%
85 %%% -D_URL to get World-Wide Web Uniform
86 %%% Resource Locator (URL) output.
87 %%%
88 %%% -D_NUMERIC_SUFFIXES to get numeric
89 %%% label suffixes -1, -2, ..., -26, instead of
90 %%% letters a, b, ..., z, so as to correctly
91 %%% handle alpha-style bibliographies with more
92 %%% than 26 entries for a single author in one
93 %%% year. Change letter suffix code to switch
94 %%% to numeric suffixes if more than 26 letters
95 %%% are used, so that no matter which scheme is
96 %%% selected, correct output will always be
97 %%% obtained.
98 %%%
99 %%% The CODEN, ISBN, ISSN, LCCN, PRICE, and URL
100 %%% values are wrapped inside macros \showCODEN{}
101 %%% etc. that the user can provide alternate
102 %%% definitions of to change the formatting, or
103 %%% to suppress their output altogether. That
104 %%% way, output identical to that of the four
105 %%% standard BibTeX style files can be obtained
106 %%% with these extended files, if these macros
107 %%% are defined to expand to empty strings.
108 %%%
109 %%% URL handling is slightly more complex,
110 %%% because URLs can contain characters which TeX
111 %%% must handle in verbatim mode in a typewriter
112 %%% font, and such text cannot readily appear
113 %%% inside nested macro arguments. Consequently,
114 %%% URLs are formatted in the .bbl file like
115 %%% this:
116 %%% \ifshowURL {\showURL \path|...|} \fi
117 %%% where \showURL takes no argument, and
118 %%% normally expands to the 4-character string
119 %%% URL<space>. The grouping braces ensure that
120 %%% any font changes made by \showURL remain
121 %%% localized. Vertical bar is chosen as the
122 %%% verbatim path delimiter, because it cannot
123 %%% appear in URLs. The other prohibited ISO
124 %%% Latin 1 characters are the non-printing
125 %%% control characters 0..31, plus those in the
126 %%% range 128..255, plus the ten special
127 %%% characters
128 %%%
129 %%% { } [ ] \ ^ ~ < > `
130 %%%
131 %%% See Internet RFC 1630 (June 1994) for more
132 %%% details. (Backquote is not even mentioned
133 %%% there.)
134 %%%
135 %%% As an example of font changes, in LaTeX 2e
136 %%% you might define
137 %%% \newcommand{\showURL}{URL
138 %%% \let \oldtt = \tt
139 %%% \renewcommand{\tt}{\oldtt \itshape}}
140 %%% to get URLs set in a typewriter italic font.
141 %%%
142 %%% If desired, a sed script can be used to
143 %%% eliminate non-essential comments (this
144 %%% reduces the file size by 2/3); a command
145 %%% filter step like
146 %%% sed -e '/^%$/d' -e '/^%[^%].*$/d'
147 %%% will accomplish that job.
148 %%%
149 %%% The checksum field above contains a CRC-16
150 %%% checksum as the first value, followed by the
151 %%% equivalent of the standard UNIX wc (word
152 %%% count) utility output of lines, words, and
153 %%% characters. This is produced by Robert
154 %%% Solovay's checksum utility."
155 %%% }
156 %%% ====================================================================
157 %%% Revision history (reverse time order):
158 %%%
159 %%% 2.03 [15-May-1996]
160 %%% Add CODEN support, ISBN and ISSN output for Article entries,
161 %%% and ISBN output for TechReport entries (yes, these sometimes
162 %%% do have ISBNs).
163 %%%
164 %%% Add wrapper macros \showXYZ{} (XYZ = CODEN, ISBN, ISSN, LCCN,
165 %%% PRICE, and URL) defined inside the thebibliography environment
166 %%% to expand to XYZ (except for PRICE) and their arguments,
167 %%% PROVIDED they are not already defined. That way, the user can
168 %%% provide alternate definitions outside the thebibliography
169 %%% environment, for example, to suppress particular ones, or
170 %%% to alter the font used.
171 %%%
172 %%% Substantially revise leading comments to better document the
173 %%% extensions.
174 %%%
175 %%% 2.02 [01-Apr-1996]
176 %%% Add day keyword support with new code in format.date function.
177 %%% Oren Patashnik will include this new keyword in standard styles
178 %%% in BibTeX 1.0.
179 %%%
180 %%% Add new function collapse.pagerange, and use it to collapse
181 %%% page ranges with identical initial and final numbers to a
182 %%% single number, so that bibliography files can distinguish
183 %%% between one-page documents, and documents missing final page
184 %%% numbers.
185 %%%
186 %%% 2.01 [25-Oct-1994]
187 %%% Add URL output support.
188 %%%
189 %%% 2.00 [12-Oct-1994]
190 %%% Add support for pages in theses and manuals, treating them
191 %%% like Book and InBook pages.
192 %%%
193 %%% Correct ISSN support: a typo caused output of ISBN instead of
194 %%% ISSN.
195 %%%
196 %%% Wherever ISBNs are output, also output an ISSN, if one
197 %%% exists, and vice versa. The reason is that some periodicals
198 %%% (e.g. The X Resource, published by O'Reilly and Associates)
199 %%% have both ISSN and ISBN numbers, and can be purchased either
200 %%% as journal subscriptions, or as single volumes.
201 %%%
202 %%% For InProceedings and Proceedings output, issue a warning for
203 %%% a missing publisher: even though that field is optional, a
204 %%% bibliographic reference without it is incomplete.
205 %%%
206 %%% Remove harmless, but unneeded, single horizontal space before
207 %%% price output added with version 1.03.
208 %%%
209 %%% Change Proceedings and InProceedings to treat address values
210 %%% as publisher addresses, as they are with every other document
211 %%% type, rather than as conference addresses, which belong in
212 %%% the title field (that is how major libraries, including OCLC
213 %%% and Library of Congress, with nearly 60M holdings, represent
214 %%% them). The need for this change has been discussed with
215 %%% BibTeX's author, Oren Patashnik, and there is a good
216 %%% possibility that BibTeX 1.0 will contain the change
217 %%% implemented here. This is an INCOMPATIBLE change that will
218 %%% produce different .bbl file formatting. However, the TUG and
219 %%% BibNet bibliography projects have consistently used address
220 %%% to me publisher/organization/institution address, and so
221 %%% already conform to the new practice.
222 %%%
223 %%% 1.05 [30-May-1994]
224 %%% Add NUMERIC_SUFFIXES support.
225 %%%
226 %%% Change all preprocessor statements to put else and endif
227 %%% labels inside C-style comments to conform to 1989 ISO/ANSI C
228 %%% Standard.
229 %%%
230 %%% 1.04 [11-Nov-1993]
231 %%% Add underscore prefix to new processor symbols to prevent
232 %%% substitution in comments
233 %%%
234 %%% 1.03 [11-Oct-1993]
235 %%% Add support for LCCN (Library of Congress Catalog Number)
236 %%% and price fields, and make ISBN, ISSN, LCCN, and price
237 %%% selectable by preprocessor conditionals.
238 %%%
239 %%% 1.02 [12-Sep-1991]
240 %%% Merge in Barbara N. Beeton's suggestion for hyphen-less
241 %%% line breaks around volume(number):page.
242 %%%
243 %%% 1.01 [10-Sep-1991]
244 %%% Update file comment header and use Solovay checksum program.
245 %%%
246 %%% 1.00 [17-Oct-1990]
247 %%% Original version merging hand-edits of is-xxx.bst files into
248 %%% this master file, xbtxbst.doc.
249 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
250
251 %% BibTeX `plain' family
252 %% version 0.99b for BibTeX versions 0.99a or later, LaTeX version 2.09.
253 %% Copyright (C) 1985, all rights reserved.
254 %% Copying of this file is authorized only if either
255 %% (1) you make absolutely no changes to your copy, including name, or
256 %% (2) if you do make changes, you name it something other than
257 %% btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
258 %% This restriction helps ensure that all standard styles are identical.
259 %% The file btxbst.doc has the documentation for this style.
260
261
262
263
264
265
266
267
268
269
270
271
272
273 ENTRY
274 { address
275 author
276 booktitle
277 chapter
278
279 coden
280
281 day
282 edition
283 editor
284 howpublished
285 institution
286
287 isbn
288
289
290 issn
291
292 journal
293 key
294
295 lccn
296
297 month
298 note
299 number
300 organization
301 pages
302
303 price
304
305 publisher
306 school
307 series
308 title
309 type
310
311 URL
312
313 volume
314 year
315 }
316 {}
317
318 { label }
319
320
321
322 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
323
324 FUNCTION {init.state.consts}
325 { #0 'before.all :=
326 #1 'mid.sentence :=
327 #2 'after.sentence :=
328 #3 'after.block :=
329 }
330
331
332 STRINGS { b e new.pages original.t s t }
333
334 FUNCTION {output.nonnull}
335 { 's :=
336 output.state mid.sentence =
337 { ", " * write$ }
338 { output.state after.block =
339 { add.period$ write$
340 newline$
341 "\newblock " write$
342 }
343 { output.state before.all =
344 'write$
345 { add.period$ " " * write$ }
346 if$
347 }
348 if$
349 mid.sentence 'output.state :=
350 }
351 if$
352 s
353 }
354
355 FUNCTION {output}
356 { duplicate$ empty$
357 'pop$
358 'output.nonnull
359 if$
360 }
361
362 FUNCTION {output.check}
363 { 't :=
364 duplicate$ empty$
365 { pop$ "empty " t * " in " * cite$ * warning$ }
366 'output.nonnull
367 if$
368 }
369
370 FUNCTION {output.bibitem}
371 { newline$
372
373 "\bibitem{" write$
374
375 cite$ write$
376 "}" write$
377 newline$
378 ""
379 before.all 'output.state :=
380 }
381
382
383 FUNCTION {fin.entry}
384 { add.period$
385 write$
386 newline$
387 }
388
389 FUNCTION {new.block}
390 { output.state before.all =
391 'skip$
392 { after.block 'output.state := }
393 if$
394 }
395
396 FUNCTION {new.sentence}
397 { output.state after.block =
398 'skip$
399 { output.state before.all =
400 'skip$
401 { after.sentence 'output.state := }
402 if$
403 }
404 if$
405 }
406
407
408 FUNCTION {not}
409 { { #0 }
410 { #1 }
411 if$
412 }
413
414 FUNCTION {and}
415 { 'skip$
416 { pop$ #0 }
417 if$
418 }
419
420 FUNCTION {or}
421 { { pop$ #1 }
422 'skip$
423 if$
424 }
425
426
427 FUNCTION {new.block.checka}
428 { empty$
429 'skip$
430 'new.block
431 if$
432 }
433
434 FUNCTION {new.block.checkb}
435 { empty$
436 swap$ empty$
437 and
438 'skip$
439 'new.block
440 if$
441 }
442
443
444 FUNCTION {new.sentence.checka}
445 { empty$
446 'skip$
447 'new.sentence
448 if$
449 }
450
451 FUNCTION {new.sentence.checkb}
452 { empty$
453 swap$ empty$
454 and
455 'skip$
456 'new.sentence
457 if$
458 }
459
460
461 FUNCTION {field.or.null}
462 { duplicate$ empty$
463 { pop$ "" }
464 'skip$
465 if$
466 }
467
468 FUNCTION {emphasize}
469 { duplicate$ empty$
470 { pop$ "" }
471 { "{\em " swap$ * "}" * }
472 if$
473 }
474
475 INTEGERS { nameptr namesleft numnames }
476
477 FUNCTION {format.names}
478 { 's :=
479 #1 'nameptr :=
480 s num.names$ 'numnames :=
481 numnames 'namesleft :=
482 { namesleft #0 > }
483
484 { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
485
486 nameptr #1 >
487 { namesleft #1 >
488 { ", " * t * }
489 { numnames #2 >
490 { "," * }
491 'skip$
492 if$
493 t "others" =
494 { " et~al." * }
495 { " and " * t * }
496 if$
497 }
498 if$
499 }
500 't
501 if$
502 nameptr #1 + 'nameptr :=
503 namesleft #1 - 'namesleft :=
504 }
505 while$
506 }
507
508 FUNCTION {format.authors}
509 { author empty$
510 { "" }
511 { author format.names }
512 if$
513 }
514
515
516 FUNCTION {format.coden}
517 { coden empty$
518 { "" }
519 { new.block "\showCODEN{" coden * "}" *}
520 if$
521 }
522
523
524 FUNCTION {format.editors}
525 { editor empty$
526 { "" }
527 { editor format.names
528 editor num.names$ #1 >
529 { ", editors" * }
530 { ", editor" * }
531 if$
532 }
533 if$
534 }
535
536
537 FUNCTION {format.isbn}
538 { isbn empty$
539 { "" }
540 { new.block "\showISBN{" isbn * "}" *}
541 if$
542 }
543
544
545
546 FUNCTION {format.issn}
547 { issn empty$
548 { "" }
549 { new.block "\showISSN{" issn * "}" *}
550 if$
551 }
552
553
554
555 FUNCTION {format.lccn}
556 { lccn empty$
557 { "" }
558 { new.block "\showLCCN{" lccn * "}" *}
559 if$
560 }
561
562
563
564 FUNCTION {format.price}
565 { price empty$
566 { "" }
567 { new.block "\showPRICE{" price * "}" *}
568 if$
569 }
570
571
572
573 FUNCTION {format.url}
574 { url empty$
575 { "" }
576 { new.block "\ifshowURL {\showURL \path|" url * "|}\fi" *}
577 if$
578 }
579
580
581
582
583 FUNCTION {format.title}
584 { title empty$
585 { "" }
586
587 { title "t" change.case$ }
588
589 if$
590 }
591
592
593
594 FUNCTION {collapse.pagerange}
595 { 't := % save input page range string
596 t 'original.t := % save original page range
597 "" 'b := % beginning page number
598 "" 'e := % ending page number
599 { t empty$ not } % while-loop Boolean condition
600 { % while-loop body
601 t #1 #2 substring$ "--" = % have we found the en-dash?
602 {
603 t #3 global.max$ substring$ 'e := % yes, save ending page number
604 "" 't := % and set t to empty string to terminate loop
605 }
606 {
607 b t #1 #1 substring$ * 'b := % no, just accumulate this character
608 t #2 global.max$ substring$ 't := % and set t to the remaining string
609 }
610 if$
611 }
612 while$ % on exit, t has ending page number string
613 e b = % are beginning and ending numbers the same?
614 { b } % yes, return the beginning page number string
615 { original.t } % no, return the original page number string
616 if$
617 }
618
619
620 FUNCTION {n.dashify}
621 { 't :=
622 ""
623 { t empty$ not }
624 { t #1 #1 substring$ "-" =
625 { t #1 #2 substring$ "--" = not
626 { "--" *
627 t #2 global.max$ substring$ 't :=
628 }
629 { { t #1 #1 substring$ "-" = }
630 { "-" *
631 t #2 global.max$ substring$ 't :=
632 }
633 while$
634 }
635 if$
636 }
637 { t #1 #1 substring$ *
638 t #2 global.max$ substring$ 't :=
639 }
640 if$
641 }
642 while$
643 }
644
645
646 FUNCTION {format.date}
647 { year empty$
648 { month empty$
649 {
650 day empty$
651 { "" }
652 { "there's a day but no month or year in " cite$ * warning$ }
653 if$
654 }
655 { "there's a month but no year in " cite$ * warning$
656 month
657 day empty$
658 { }
659 { " " * day * }
660 if$
661 }
662 if$
663 }
664 { month empty$
665 {
666 day empty$
667 { year }
668 { "there's a day and year but no month in " cite$ * warning$ }
669 if$
670 }
671 {
672 month " " *
673 day empty$
674 { }
675 { day * ", " * }
676 if$
677 year *
678 }
679 if$
680 }
681 if$
682 }
683
684
685 FUNCTION {format.btitle}
686 { title emphasize
687 }
688
689
690 FUNCTION {tie.or.space.connect}
691 { duplicate$ text.length$ #3 <
692 { "~" }
693 { " " }
694 if$
695 swap$ * *
696 }
697
698
699 FUNCTION {either.or.check}
700 { empty$
701 'pop$
702 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
703 if$
704 }
705
706
707 FUNCTION {format.bvolume}
708 { volume empty$
709 { "" }
710 { "volume" volume tie.or.space.connect
711 series empty$
712 'skip$
713 { " of " * series emphasize * }
714 if$
715 "volume and number" number either.or.check
716 }
717 if$
718 }
719
720
721 FUNCTION {format.number.series}
722 { volume empty$
723 { number empty$
724 { series field.or.null }
725 { output.state mid.sentence =
726 { "number" }
727 { "Number" }
728 if$
729 number tie.or.space.connect
730 series empty$
731 { "there's a number but no series in " cite$ * warning$ }
732 { " in " * series * }
733 if$
734 }
735 if$
736 }
737 { "" }
738 if$
739 }
740
741
742 FUNCTION {format.edition}
743 { edition empty$
744 { "" }
745 { output.state mid.sentence =
746 { edition "l" change.case$ " edition" * }
747 { edition "t" change.case$ " edition" * }
748 if$
749 }
750 if$
751 }
752
753
754 INTEGERS { multiresult }
755
756 FUNCTION {multi.page.check}
757 { 't :=
758 #0 'multiresult :=
759 { multiresult not
760 t empty$ not
761 and
762 }
763 { t #1 #1 substring$
764 duplicate$ "-" =
765 swap$ duplicate$ "," =
766 swap$ "+" =
767 or or
768 { #1 'multiresult := }
769 { t #2 global.max$ substring$ 't := }
770 if$
771 }
772 while$
773 multiresult
774 }
775
776
777 FUNCTION {format.book.pages}
778 { pages empty$
779 { "" }
780 { new.block pages " pp." * }
781 if$
782 }
783
784
785
786 FUNCTION {format.pages}
787 { pages empty$
788 { "" }
789 {
790 pages multi.page.check
791 { pages collapse.pagerange 'new.pages := }
792 { pages 'new.pages := }
793 if$
794 new.pages multi.page.check
795 { "pages" new.pages n.dashify tie.or.space.connect }
796 { "page" new.pages tie.or.space.connect }
797 if$
798 }
799 if$
800 }
801
802
803 FUNCTION {format.vol.num.pages}
804 { volume field.or.null
805 number empty$
806 'skip$
807 { "\penalty0 (" number * ")" * *
808 volume empty$
809 { "there's a number but no volume in " cite$ * warning$ }
810 'skip$
811 if$
812 }
813 if$
814 pages empty$
815 'skip$
816 { duplicate$ empty$
817 { pop$ format.pages }
818 { ":\penalty0 " * pages collapse.pagerange n.dashify * }
819 if$
820 }
821 if$
822 }
823
824
825
826 FUNCTION {format.chapter.pages}
827 { chapter empty$
828 'format.pages
829 { type empty$
830 { "chapter" }
831 { type "l" change.case$ }
832 if$
833 chapter tie.or.space.connect
834 pages empty$
835 'skip$
836 { ", " * format.pages * }
837 if$
838 }
839 if$
840 }
841
842
843 FUNCTION {format.in.ed.booktitle}
844 { booktitle empty$
845 { "" }
846 { editor empty$
847 { "In " booktitle emphasize * }
848 { "In " format.editors * ", " * booktitle emphasize * }
849 if$
850 }
851 if$
852 }
853
854
855 FUNCTION {empty.misc.check}
856 { author empty$ title empty$ howpublished empty$
857 month empty$ year empty$ note empty$
858 and and and and and
859
860
861
862 { "all relevant fields are empty in " cite$ * warning$ }
863 'skip$
864 if$
865 }
866
867
868 FUNCTION {format.thesis.type}
869 { type empty$
870 'skip$
871 { pop$
872 type "t" change.case$
873 }
874 if$
875 }
876
877
878 FUNCTION {format.tr.number}
879 { type empty$
880 { "Technical Report" }
881 'type
882 if$
883 number empty$
884 { "t" change.case$ }
885 { number tie.or.space.connect }
886 if$
887 }
888
889
890 FUNCTION {format.article.crossref}
891 { key empty$
892 { journal empty$
893 { "need key or journal for " cite$ * " to crossref " * crossref *
894 warning$
895 ""
896 }
897 { "In {\em " journal * "\/}" * }
898 if$
899 }
900 { "In " key * }
901 if$
902 " \cite{" * crossref * "}" *
903 }
904
905
906 FUNCTION {format.crossref.editor}
907 { editor #1 "{vv~}{ll}" format.name$
908 editor num.names$ duplicate$
909 #2 >
910 { pop$ " et~al." * }
911 { #2 <
912 'skip$
913 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
914 { " et~al." * }
915 { " and " * editor #2 "{vv~}{ll}" format.name$ * }
916 if$
917 }
918 if$
919 }
920 if$
921 }
922
923
924 FUNCTION {format.book.crossref}
925 { volume empty$
926 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
927 "In "
928 }
929 { "Volume" volume tie.or.space.connect
930 " of " *
931 }
932 if$
933 editor empty$
934 editor field.or.null author field.or.null =
935 or
936 { key empty$
937 { series empty$
938 { "need editor, key, or series for " cite$ * " to crossref " *
939 crossref * warning$
940 "" *
941 }
942 { "{\em " * series * "\/}" * }
943 if$
944 }
945 { key * }
946 if$
947 }
948 { format.crossref.editor * }
949 if$
950 " \cite{" * crossref * "}" *
951 }
952
953
954 FUNCTION {format.incoll.inproc.crossref}
955 { editor empty$
956 editor field.or.null author field.or.null =
957 or
958 { key empty$
959 { booktitle empty$
960 { "need editor, key, or booktitle for " cite$ * " to crossref " *
961 crossref * warning$
962 ""
963 }
964 { "In {\em " booktitle * "\/}" * }
965 if$
966 }
967 { "In " key * }
968 if$
969 }
970 { "In " format.crossref.editor * }
971 if$
972 " \cite{" * crossref * "}" *
973 }
974
975
976 FUNCTION {article}
977 { output.bibitem
978 format.authors "author" output.check
979 new.block
980 format.title "title" output.check
981 new.block
982 crossref missing$
983 { journal emphasize "journal" output.check
984 format.vol.num.pages output
985 format.date "year" output.check
986 }
987 { format.article.crossref output.nonnull
988 format.pages output
989 }
990 if$
991
992 format.coden output
993
994
995 format.isbn output
996
997
998 format.issn output
999
1000
1001 format.url output
1002
1003 new.block
1004 note output
1005 fin.entry
1006 }
1007
1008 FUNCTION {book}
1009 { output.bibitem
1010 author empty$
1011 { format.editors "author and editor" output.check }
1012 { format.authors output.nonnull
1013 crossref missing$
1014 { "author and editor" editor either.or.check }
1015 'skip$
1016 if$
1017 }
1018 if$
1019 new.block
1020 format.btitle "title" output.check
1021 crossref missing$
1022 { format.bvolume output
1023 new.block
1024 format.number.series output
1025 new.sentence
1026 publisher "publisher" output.check
1027 address output
1028 }
1029 { new.block
1030 format.book.crossref output.nonnull
1031 }
1032 if$
1033 format.edition output
1034 format.date "year" output.check
1035
1036 format.coden output
1037
1038
1039 format.isbn output
1040
1041
1042 format.issn output
1043
1044
1045 format.book.pages output
1046
1047
1048 format.lccn output
1049
1050
1051 format.price output
1052
1053
1054 format.url output
1055
1056 new.block
1057 note output
1058 fin.entry
1059 }
1060
1061
1062 FUNCTION {booklet}
1063 { output.bibitem
1064 format.authors output
1065 new.block
1066 format.title "title" output.check
1067 howpublished address new.block.checkb
1068 howpublished output
1069 address output
1070 format.date output
1071
1072 format.coden output
1073
1074
1075 format.isbn output
1076
1077
1078 format.issn output
1079
1080
1081 format.book.pages output
1082
1083
1084 format.lccn output
1085
1086
1087 format.price output
1088
1089
1090 format.url output
1091
1092 new.block
1093 note output
1094 fin.entry
1095 }
1096
1097
1098
1099 FUNCTION {inbook}
1100 { output.bibitem
1101 author empty$
1102 { format.editors "author and editor" output.check }
1103 { format.authors output.nonnull
1104 crossref missing$
1105 { "author and editor" editor either.or.check }
1106 'skip$
1107 if$
1108 }
1109 if$
1110 new.block
1111 format.btitle "title" output.check
1112 crossref missing$
1113 { format.bvolume output
1114 format.chapter.pages "chapter and pages" output.check
1115 new.block
1116 format.number.series output
1117 new.sentence
1118 publisher "publisher" output.check
1119 address output
1120 }
1121 { format.chapter.pages "chapter and pages" output.check
1122 new.block
1123 format.book.crossref output.nonnull
1124 }
1125 if$
1126 format.edition output
1127 format.date "year" output.check
1128
1129 format.coden output
1130
1131
1132 format.isbn output
1133
1134
1135 format.issn output
1136
1137
1138 format.lccn output
1139
1140
1141 format.price output
1142
1143
1144 format.url output
1145
1146 new.block
1147 note output
1148 fin.entry
1149 }
1150
1151
1152 FUNCTION {incollection}
1153 { output.bibitem
1154 format.authors "author" output.check
1155 new.block
1156 format.title "title" output.check
1157 new.block
1158 crossref missing$
1159 { format.in.ed.booktitle "booktitle" output.check
1160 format.bvolume output
1161 format.number.series output
1162 format.chapter.pages output
1163 new.sentence
1164 publisher "publisher" output.check
1165 address output
1166 format.edition output
1167 format.date "year" output.check
1168 }
1169 { format.incoll.inproc.crossref output.nonnull
1170 format.chapter.pages output
1171 }
1172 if$
1173
1174 format.coden output
1175
1176
1177 format.isbn output
1178
1179
1180 format.issn output
1181
1182
1183 format.lccn output
1184
1185
1186 format.price output
1187
1188
1189 format.url output
1190
1191 new.block
1192 note output
1193 fin.entry
1194 }
1195
1196
1197 FUNCTION {inproceedings}
1198 { output.bibitem
1199 format.authors "author" output.check
1200 new.block
1201 format.title "title" output.check
1202 new.block
1203 crossref missing$
1204 { format.in.ed.booktitle "booktitle" output.check
1205 format.bvolume output
1206 format.number.series output
1207 format.pages output
1208 address empty$
1209 { organization publisher new.sentence.checkb
1210 organization output
1211 publisher "publisher" output.check
1212 format.date "year" output.check
1213 }
1214 { new.sentence
1215 organization output
1216 publisher "publisher" output.check
1217 address output.nonnull
1218 format.date "year" output.check
1219 }
1220 if$
1221 }
1222 { format.incoll.inproc.crossref output.nonnull
1223 format.pages output
1224 }
1225 if$
1226
1227 format.coden output
1228
1229
1230 format.isbn output
1231
1232
1233 format.issn output
1234
1235
1236 format.lccn output
1237
1238
1239 format.price output
1240
1241
1242 format.url output
1243
1244 new.block
1245 note output
1246 fin.entry
1247 }
1248
1249
1250 FUNCTION {conference} { inproceedings }
1251
1252
1253 FUNCTION {manual}
1254 { output.bibitem
1255 author empty$
1256 { organization empty$
1257 'skip$
1258 { organization output.nonnull
1259 address output
1260 }
1261 if$
1262 }
1263 { format.authors output.nonnull }
1264 if$
1265 new.block
1266 format.btitle "title" output.check
1267 author empty$
1268 { organization empty$
1269 { address new.block.checka
1270 address output
1271 }
1272 'skip$
1273 if$
1274 }
1275 { organization address new.block.checkb
1276 organization output
1277 address output
1278 }
1279 if$
1280 format.edition output
1281 format.date output
1282
1283 format.book.pages output
1284
1285
1286 format.price output
1287
1288
1289 format.url output
1290
1291 new.block
1292 note output
1293 fin.entry
1294 }
1295
1296
1297 FUNCTION {mastersthesis}
1298 { output.bibitem
1299 format.authors "author" output.check
1300 new.block
1301 format.title "title" output.check
1302 new.block
1303 "Master's thesis" format.thesis.type output.nonnull
1304 school "school" output.check
1305 address output
1306 format.date "year" output.check
1307
1308 format.book.pages output
1309
1310
1311 format.url output
1312
1313 new.block
1314 note output
1315 fin.entry
1316 }
1317
1318
1319 FUNCTION {misc}
1320 { output.bibitem
1321 format.authors output
1322 title howpublished new.block.checkb
1323 format.title output
1324 howpublished new.block.checka
1325 howpublished output
1326 format.date output
1327
1328 format.coden output
1329
1330
1331 format.isbn output
1332
1333
1334 format.issn output
1335
1336
1337 format.price output
1338
1339
1340 format.url output
1341
1342 new.block
1343 note output
1344 fin.entry
1345 empty.misc.check
1346 }
1347
1348
1349 FUNCTION {phdthesis}
1350 { output.bibitem
1351 format.authors "author" output.check
1352 new.block
1353 format.btitle "title" output.check
1354 new.block
1355 "PhD thesis" format.thesis.type output.nonnull
1356 school "school" output.check
1357 address output
1358 format.date "year" output.check
1359
1360 format.book.pages output
1361
1362
1363 format.url output
1364
1365 new.block
1366 note output
1367 fin.entry
1368 }
1369
1370
1371 FUNCTION {periodical}
1372 { output.bibitem
1373 editor empty$
1374 { organization output }
1375 { format.editors output.nonnull }
1376 if$
1377 new.block
1378 title emphasize "title" output.check
1379 format.vol.num.pages output
1380 format.date output
1381
1382 format.coden output
1383
1384
1385 format.isbn output
1386
1387
1388 format.issn output
1389
1390
1391 format.price output
1392
1393
1394 format.url output
1395
1396 new.sentence
1397 publisher output
1398 address output
1399 howpublished new.block.checka
1400 howpublished output
1401 new.block
1402 note output
1403 fin.entry
1404 }
1405
1406
1407 FUNCTION {proceedings}
1408 { output.bibitem
1409 editor empty$
1410 { organization output }
1411 { format.editors output.nonnull }
1412 if$
1413 new.block
1414 format.btitle "title" output.check
1415 format.bvolume output
1416 format.number.series output
1417 address empty$
1418 { editor empty$
1419 { publisher new.sentence.checka }
1420 { organization publisher new.sentence.checkb
1421 organization output
1422 }
1423 if$
1424 publisher "publisher" output.check %%% <- new check for missing
1425 format.date "year" output.check
1426 }
1427 { new.sentence
1428 editor empty$
1429 'skip$
1430 { organization output }
1431 if$
1432 publisher "publisher" output.check
1433 address output.nonnull
1434 format.date "year" output.check
1435 }
1436 if$
1437
1438 format.coden output
1439
1440
1441 format.isbn output
1442
1443
1444 format.issn output
1445
1446
1447 format.lccn output
1448
1449
1450 format.price output
1451
1452
1453 format.url output
1454
1455 new.block
1456 note output
1457 fin.entry
1458 }
1459
1460
1461 FUNCTION {techreport}
1462 { output.bibitem
1463 format.authors "author" output.check
1464 new.block
1465 format.title "title" output.check
1466 new.block
1467 format.tr.number output.nonnull
1468 institution "institution" output.check
1469 address output
1470 format.date "year" output.check
1471
1472 format.isbn output % NB: TechReports occasionally have ISBNs
1473
1474
1475 format.book.pages output
1476
1477
1478 format.price output
1479
1480
1481 format.url output
1482
1483 new.block
1484 note output
1485 fin.entry
1486 }
1487
1488
1489 FUNCTION {unpublished}
1490 { output.bibitem
1491 format.authors "author" output.check
1492 new.block
1493 format.title "title" output.check
1494 new.block
1495 note "note" output.check
1496 format.date output
1497
1498 format.url output
1499
1500 fin.entry
1501 }
1502
1503
1504 FUNCTION {default.type} { misc }
1505
1506
1507
1508
1509 MACRO {jan} {"January"}
1510
1511 MACRO {feb} {"February"}
1512
1513 MACRO {mar} {"March"}
1514
1515 MACRO {apr} {"April"}
1516
1517 MACRO {may} {"May"}
1518
1519 MACRO {jun} {"June"}
1520
1521 MACRO {jul} {"July"}
1522
1523 MACRO {aug} {"August"}
1524
1525 MACRO {sep} {"September"}
1526
1527 MACRO {oct} {"October"}
1528
1529 MACRO {nov} {"November"}
1530
1531 MACRO {dec} {"December"}
1532
1533
1534
1535
1536
1537
1538 MACRO {acmcs} {"ACM Computing Surveys"}
1539
1540 MACRO {acta} {"Acta Informatica"}
1541
1542 MACRO {cacm} {"Communications of the ACM"}
1543
1544 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
1545
1546 MACRO {ibmsj} {"IBM Systems Journal"}
1547
1548 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
1549
1550 MACRO {ieeetc} {"IEEE Transactions on Computers"}
1551
1552 MACRO {ieeetcad}
1553 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
1554
1555 MACRO {ipl} {"Information Processing Letters"}
1556
1557 MACRO {jacm} {"Journal of the ACM"}
1558
1559 MACRO {jcss} {"Journal of Computer and System Sciences"}
1560
1561 MACRO {scp} {"Science of Computer Programming"}
1562
1563 MACRO {sicomp} {"SIAM Journal on Computing"}
1564
1565 MACRO {tocs} {"ACM Transactions on Computer Systems"}
1566
1567 MACRO {tods} {"ACM Transactions on Database Systems"}
1568
1569 MACRO {tog} {"ACM Transactions on Graphics"}
1570
1571 MACRO {toms} {"ACM Transactions on Mathematical Software"}
1572
1573 MACRO {toois} {"ACM Transactions on Office Information Systems"}
1574
1575 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
1576
1577 MACRO {tcs} {"Theoretical Computer Science"}
1578
1579
1580
1581
1582 READ
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599 STRINGS { longest.label }
1600
1601 INTEGERS { number.label longest.label.width }
1602
1603 FUNCTION {initialize.longest.label}
1604 { "" 'longest.label :=
1605 #1 'number.label :=
1606 #0 'longest.label.width :=
1607 }
1608
1609 FUNCTION {longest.label.pass}
1610 { number.label int.to.str$ 'label :=
1611 number.label #1 + 'number.label :=
1612 label width$ longest.label.width >
1613 { label 'longest.label :=
1614 label width$ 'longest.label.width :=
1615 }
1616 'skip$
1617 if$
1618 }
1619
1620 EXECUTE {initialize.longest.label}
1621
1622 ITERATE {longest.label.pass}
1623
1624
1625
1626
1627 FUNCTION {begin.bib}
1628
1629 { preamble$ empty$
1630
1631 'skip$
1632 { preamble$ write$ newline$ }
1633 if$
1634 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
1635
1636 "\ifx \showCODEN \undefined \def \showCODEN #1{CODEN #1} \fi" write$ newline$
1637
1638
1639 "\ifx \showISBN \undefined \def \showISBN #1{ISBN #1} \fi" write$ newline$
1640
1641
1642 "\ifx \showISSN \undefined \def \showISSN #1{ISSN #1} \fi" write$ newline$
1643
1644
1645 "\ifx \showLCCN \undefined \def \showLCCN #1{LCCN #1} \fi" write$ newline$
1646
1647
1648 "\ifx \showPRICE \undefined \def \showPRICE #1{#1} \fi" write$ newline$
1649
1650
1651 "\ifx \showURL \undefined \def \showURL {URL } \fi" write$ newline$
1652 "\ifx \path \undefined \input path.sty \fi" write$ newline$
1653 "\ifx \ifshowURL \undefined" write$ newline$
1654 " \newif \ifshowURL" write$ newline$
1655 " \showURLtrue" write$ newline$
1656 "\fi" write$ newline$
1657
1658 }
1659
1660 EXECUTE {begin.bib}
1661
1662 EXECUTE {init.state.consts}
1663
1664
1665 ITERATE {call.type$}
1666
1667
1668 FUNCTION {end.bib}
1669 { newline$
1670 "\end{thebibliography}" write$ newline$
1671 }
1672
1673 EXECUTE {end.bib}