Debian Codegraph @

texmf-dist/bibtex/bst/tufte-latex/tufte.bst

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