sttex 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1451 @@
1
+ %% File: `sttex.bst' -- an LPPL modification of plainnat.bst
2
+ %% A modification of `plain.bst' for use with natbib package
3
+ %%
4
+ %% Copyright 1993-2007 Patrick W Daly
5
+ %% Max-Planck-Institut f\"ur Sonnensystemforschung
6
+ %% Max-Planck-Str. 2
7
+ %% D-37191 Katlenburg-Lindau
8
+ %% Germany
9
+ %% E-mail: daly@mps.mpg.de
10
+ %%
11
+ %% This program can be redistributed and/or modified under the terms
12
+ %% of the LaTeX Project Public License Distributed from CTAN
13
+ %% archives in directory macros/latex/base/lppl.txt; either
14
+ %% version 1 of the License, or any later version.
15
+ %%
16
+ % Version and source file information:
17
+ % \ProvidesFile{natbst.mbs}[2007/11/26 1.93 (PWD)]
18
+ %
19
+ % BibTeX `plainnat' family
20
+ % version 0.99b for BibTeX versions 0.99a or later,
21
+ % for LaTeX versions 2.09 and 2e.
22
+ %
23
+ % For use with the `natbib.sty' package; emulates the corresponding
24
+ % member of the `plain' family, but with author-year citations.
25
+ %
26
+ % With version 6.0 of `natbib.sty', it may also be used for numerical
27
+ % citations, while retaining the commands \citeauthor, \citefullauthor,
28
+ % and \citeyear to print the corresponding information.
29
+ %
30
+ % For version 7.0 of `natbib.sty', the KEY field replaces missing
31
+ % authors/editors, and the date is left blank in \bibitem.
32
+ %
33
+ % Includes field EID for the sequence/citation number of electronic journals
34
+ % which is used instead of page numbers.
35
+ %
36
+ % Includes fields ISBN and ISSN.
37
+ %
38
+ % Includes field URL for Internet addresses.
39
+ %
40
+ % Includes field DOI for Digital Object Idenfifiers.
41
+ %
42
+ % Works best with the url.sty package of Donald Arseneau.
43
+ %
44
+ % Works with identical authors and year are further sorted by
45
+ % citation key, to preserve any natural sequence.
46
+ %
47
+ ENTRY
48
+ { address
49
+ arxiv
50
+ github
51
+ huggingface
52
+ author
53
+ booktitle
54
+ chapter
55
+ doi
56
+ eid
57
+ edition
58
+ editor
59
+ howpublished
60
+ institution
61
+ isbn
62
+ issn
63
+ journal
64
+ key
65
+ month
66
+ note
67
+ number
68
+ organization
69
+ pages
70
+ publisher
71
+ school
72
+ series
73
+ title
74
+ type
75
+ url
76
+ volume
77
+ year
78
+ }
79
+ {}
80
+ { label extra.label sort.label short.list }
81
+
82
+ INTEGERS { output.state before.all mid.sentence after.sentence after.block }
83
+
84
+ FUNCTION {init.state.consts}
85
+ { #0 'before.all :=
86
+ #1 'mid.sentence :=
87
+ #2 'after.sentence :=
88
+ #3 'after.block :=
89
+ }
90
+
91
+ STRINGS { s t }
92
+
93
+ FUNCTION {output.nonnull}
94
+ { 's :=
95
+ output.state mid.sentence =
96
+ { ", " * write$ }
97
+ { output.state after.block =
98
+ { add.period$ write$
99
+ newline$
100
+ "\newblock " write$
101
+ }
102
+ { output.state before.all =
103
+ 'write$
104
+ { add.period$ " " * write$ }
105
+ if$
106
+ }
107
+ if$
108
+ mid.sentence 'output.state :=
109
+ }
110
+ if$
111
+ s
112
+ }
113
+
114
+ FUNCTION {output}
115
+ { duplicate$ empty$
116
+ 'pop$
117
+ 'output.nonnull
118
+ if$
119
+ }
120
+
121
+ FUNCTION {output.check}
122
+ { 't :=
123
+ duplicate$ empty$
124
+ { pop$ "empty " t * " in " * cite$ * warning$ }
125
+ 'output.nonnull
126
+ if$
127
+ }
128
+
129
+ FUNCTION {fin.entry}
130
+ { add.period$
131
+ write$
132
+ arxiv empty$
133
+ 'skip$
134
+ { " \vpArxiv{" arxiv * "}" * write$ }
135
+ if$
136
+ github empty$
137
+ 'skip$
138
+ { " \vpGitHub{" github * "}" * write$ }
139
+ if$
140
+ huggingface empty$
141
+ 'skip$
142
+ { " \vpHuggingFace{" huggingface * "}" * write$ }
143
+ if$
144
+ newline$
145
+ }
146
+
147
+ FUNCTION {new.block}
148
+ { output.state before.all =
149
+ 'skip$
150
+ { after.block 'output.state := }
151
+ if$
152
+ }
153
+
154
+ FUNCTION {new.sentence}
155
+ { output.state after.block =
156
+ 'skip$
157
+ { output.state before.all =
158
+ 'skip$
159
+ { after.sentence 'output.state := }
160
+ if$
161
+ }
162
+ if$
163
+ }
164
+
165
+ FUNCTION {not}
166
+ { { #0 }
167
+ { #1 }
168
+ if$
169
+ }
170
+
171
+ FUNCTION {and}
172
+ { 'skip$
173
+ { pop$ #0 }
174
+ if$
175
+ }
176
+
177
+ FUNCTION {or}
178
+ { { pop$ #1 }
179
+ 'skip$
180
+ if$
181
+ }
182
+
183
+ FUNCTION {new.block.checka}
184
+ { empty$
185
+ 'skip$
186
+ 'new.block
187
+ if$
188
+ }
189
+
190
+ FUNCTION {new.block.checkb}
191
+ { empty$
192
+ swap$ empty$
193
+ and
194
+ 'skip$
195
+ 'new.block
196
+ if$
197
+ }
198
+
199
+ FUNCTION {new.sentence.checka}
200
+ { empty$
201
+ 'skip$
202
+ 'new.sentence
203
+ if$
204
+ }
205
+
206
+ FUNCTION {new.sentence.checkb}
207
+ { empty$
208
+ swap$ empty$
209
+ and
210
+ 'skip$
211
+ 'new.sentence
212
+ if$
213
+ }
214
+
215
+ FUNCTION {field.or.null}
216
+ { duplicate$ empty$
217
+ { pop$ "" }
218
+ 'skip$
219
+ if$
220
+ }
221
+
222
+ FUNCTION {emphasize}
223
+ { duplicate$ empty$
224
+ { pop$ "" }
225
+ { "\emph{" swap$ * "}" * }
226
+ if$
227
+ }
228
+
229
+ INTEGERS { nameptr namesleft numnames }
230
+
231
+ FUNCTION {format.names}
232
+ { 's :=
233
+ #1 'nameptr :=
234
+ s num.names$ 'numnames :=
235
+ numnames 'namesleft :=
236
+ { namesleft #0 > }
237
+ { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
238
+ nameptr #1 >
239
+ { namesleft #1 >
240
+ { ", " * t * }
241
+ { numnames #2 >
242
+ { "," * }
243
+ 'skip$
244
+ if$
245
+ t "others" =
246
+ { " et~al." * }
247
+ { " and " * t * }
248
+ if$
249
+ }
250
+ if$
251
+ }
252
+ 't
253
+ if$
254
+ nameptr #1 + 'nameptr :=
255
+ namesleft #1 - 'namesleft :=
256
+ }
257
+ while$
258
+ }
259
+
260
+ FUNCTION {format.key}
261
+ { empty$
262
+ { key field.or.null }
263
+ { "" }
264
+ if$
265
+ }
266
+
267
+ FUNCTION {format.authors}
268
+ { author empty$
269
+ { "" }
270
+ { author format.names }
271
+ if$
272
+ }
273
+
274
+ FUNCTION {format.editors}
275
+ { editor empty$
276
+ { "" }
277
+ { editor format.names
278
+ editor num.names$ #1 >
279
+ { ", editors" * }
280
+ { ", editor" * }
281
+ if$
282
+ }
283
+ if$
284
+ }
285
+
286
+ FUNCTION {format.isbn}
287
+ { isbn empty$
288
+ { "" }
289
+ { new.block "ISBN " isbn * }
290
+ if$
291
+ }
292
+
293
+ FUNCTION {format.issn}
294
+ { issn empty$
295
+ { "" }
296
+ { new.block "ISSN " issn * }
297
+ if$
298
+ }
299
+
300
+ FUNCTION {format.url}
301
+ { url empty$
302
+ { "" }
303
+ { new.block "URL \url{" url * "}" * }
304
+ if$
305
+ }
306
+
307
+ FUNCTION {format.doi}
308
+ { doi empty$
309
+ { "" }
310
+ { new.block "\doi{" doi * "}" * }
311
+ if$
312
+ }
313
+
314
+ FUNCTION {format.title}
315
+ { title empty$
316
+ { "" }
317
+ { title "t" change.case$ }
318
+ if$
319
+ }
320
+
321
+ FUNCTION {format.full.names}
322
+ {'s :=
323
+ #1 'nameptr :=
324
+ s num.names$ 'numnames :=
325
+ numnames 'namesleft :=
326
+ { namesleft #0 > }
327
+ { s nameptr
328
+ "{vv~}{ll}" format.name$ 't :=
329
+ nameptr #1 >
330
+ {
331
+ namesleft #1 >
332
+ { ", " * t * }
333
+ {
334
+ numnames #2 >
335
+ { "," * }
336
+ 'skip$
337
+ if$
338
+ t "others" =
339
+ { " et~al." * }
340
+ { " and " * t * }
341
+ if$
342
+ }
343
+ if$
344
+ }
345
+ 't
346
+ if$
347
+ nameptr #1 + 'nameptr :=
348
+ namesleft #1 - 'namesleft :=
349
+ }
350
+ while$
351
+ }
352
+
353
+ FUNCTION {author.editor.full}
354
+ { author empty$
355
+ { editor empty$
356
+ { "" }
357
+ { editor format.full.names }
358
+ if$
359
+ }
360
+ { author format.full.names }
361
+ if$
362
+ }
363
+
364
+ FUNCTION {author.full}
365
+ { author empty$
366
+ { "" }
367
+ { author format.full.names }
368
+ if$
369
+ }
370
+
371
+ FUNCTION {editor.full}
372
+ { editor empty$
373
+ { "" }
374
+ { editor format.full.names }
375
+ if$
376
+ }
377
+
378
+ FUNCTION {make.full.names}
379
+ { type$ "book" =
380
+ type$ "inbook" =
381
+ or
382
+ 'author.editor.full
383
+ { type$ "proceedings" =
384
+ 'editor.full
385
+ 'author.full
386
+ if$
387
+ }
388
+ if$
389
+ }
390
+
391
+ FUNCTION {output.bibitem}
392
+ { newline$
393
+ "\bibitem[" write$
394
+ label write$
395
+ ")" make.full.names duplicate$ short.list =
396
+ { pop$ }
397
+ { * }
398
+ if$
399
+ "]{" * write$
400
+ cite$ write$
401
+ "}" write$
402
+ newline$
403
+ ""
404
+ before.all 'output.state :=
405
+ }
406
+
407
+ FUNCTION {n.dashify}
408
+ { 't :=
409
+ ""
410
+ { t empty$ not }
411
+ { t #1 #1 substring$ "-" =
412
+ { t #1 #2 substring$ "--" = not
413
+ { "--" *
414
+ t #2 global.max$ substring$ 't :=
415
+ }
416
+ { { t #1 #1 substring$ "-" = }
417
+ { "-" *
418
+ t #2 global.max$ substring$ 't :=
419
+ }
420
+ while$
421
+ }
422
+ if$
423
+ }
424
+ { t #1 #1 substring$ *
425
+ t #2 global.max$ substring$ 't :=
426
+ }
427
+ if$
428
+ }
429
+ while$
430
+ }
431
+
432
+ FUNCTION {format.date}
433
+ { year duplicate$ empty$
434
+ { "empty year in " cite$ * warning$
435
+ pop$ "" }
436
+ 'skip$
437
+ if$
438
+ month empty$
439
+ 'skip$
440
+ { month
441
+ " " * swap$ *
442
+ }
443
+ if$
444
+ extra.label *
445
+ }
446
+
447
+ FUNCTION {format.btitle}
448
+ { title emphasize
449
+ }
450
+
451
+ FUNCTION {tie.or.space.connect}
452
+ { duplicate$ text.length$ #3 <
453
+ { "~" }
454
+ { " " }
455
+ if$
456
+ swap$ * *
457
+ }
458
+
459
+ FUNCTION {either.or.check}
460
+ { empty$
461
+ 'pop$
462
+ { "can't use both " swap$ * " fields in " * cite$ * warning$ }
463
+ if$
464
+ }
465
+
466
+ FUNCTION {format.bvolume}
467
+ { volume empty$
468
+ { "" }
469
+ { "volume" volume tie.or.space.connect
470
+ series empty$
471
+ 'skip$
472
+ { " of " * series emphasize * }
473
+ if$
474
+ "volume and number" number either.or.check
475
+ }
476
+ if$
477
+ }
478
+
479
+ FUNCTION {format.number.series}
480
+ { volume empty$
481
+ { number empty$
482
+ { series field.or.null }
483
+ { output.state mid.sentence =
484
+ { "number" }
485
+ { "Number" }
486
+ if$
487
+ number tie.or.space.connect
488
+ series empty$
489
+ { "there's a number but no series in " cite$ * warning$ }
490
+ { " in " * series * }
491
+ if$
492
+ }
493
+ if$
494
+ }
495
+ { "" }
496
+ if$
497
+ }
498
+
499
+ FUNCTION {format.edition}
500
+ { edition empty$
501
+ { "" }
502
+ { output.state mid.sentence =
503
+ { edition "l" change.case$ " edition" * }
504
+ { edition "t" change.case$ " edition" * }
505
+ if$
506
+ }
507
+ if$
508
+ }
509
+
510
+ INTEGERS { multiresult }
511
+
512
+ FUNCTION {multi.page.check}
513
+ { 't :=
514
+ #0 'multiresult :=
515
+ { multiresult not
516
+ t empty$ not
517
+ and
518
+ }
519
+ { t #1 #1 substring$
520
+ duplicate$ "-" =
521
+ swap$ duplicate$ "," =
522
+ swap$ "+" =
523
+ or or
524
+ { #1 'multiresult := }
525
+ { t #2 global.max$ substring$ 't := }
526
+ if$
527
+ }
528
+ while$
529
+ multiresult
530
+ }
531
+
532
+ FUNCTION {format.pages}
533
+ { pages empty$
534
+ { "" }
535
+ { pages multi.page.check
536
+ { "pages" pages n.dashify tie.or.space.connect }
537
+ { "page" pages tie.or.space.connect }
538
+ if$
539
+ }
540
+ if$
541
+ }
542
+
543
+ FUNCTION {format.eid}
544
+ { eid empty$
545
+ { "" }
546
+ { "art." eid tie.or.space.connect }
547
+ if$
548
+ }
549
+
550
+ FUNCTION {format.vol.num.pages}
551
+ { volume field.or.null
552
+ number empty$
553
+ 'skip$
554
+ { "\penalty0 (" number * ")" * *
555
+ volume empty$
556
+ { "there's a number but no volume in " cite$ * warning$ }
557
+ 'skip$
558
+ if$
559
+ }
560
+ if$
561
+ pages empty$
562
+ 'skip$
563
+ { duplicate$ empty$
564
+ { pop$ format.pages }
565
+ { ":\penalty0 " * pages n.dashify * }
566
+ if$
567
+ }
568
+ if$
569
+ }
570
+
571
+ FUNCTION {format.vol.num.eid}
572
+ { volume field.or.null
573
+ number empty$
574
+ 'skip$
575
+ { "\penalty0 (" number * ")" * *
576
+ volume empty$
577
+ { "there's a number but no volume in " cite$ * warning$ }
578
+ 'skip$
579
+ if$
580
+ }
581
+ if$
582
+ eid empty$
583
+ 'skip$
584
+ { duplicate$ empty$
585
+ { pop$ format.eid }
586
+ { ":\penalty0 " * eid * }
587
+ if$
588
+ }
589
+ if$
590
+ }
591
+
592
+ FUNCTION {format.chapter.pages}
593
+ { chapter empty$
594
+ 'format.pages
595
+ { type empty$
596
+ { "chapter" }
597
+ { type "l" change.case$ }
598
+ if$
599
+ chapter tie.or.space.connect
600
+ pages empty$
601
+ 'skip$
602
+ { ", " * format.pages * }
603
+ if$
604
+ }
605
+ if$
606
+ }
607
+
608
+ FUNCTION {format.in.ed.booktitle}
609
+ { booktitle empty$
610
+ { "" }
611
+ { editor empty$
612
+ { "In " booktitle emphasize * }
613
+ { "In " format.editors * ", " * booktitle emphasize * }
614
+ if$
615
+ }
616
+ if$
617
+ }
618
+
619
+ FUNCTION {empty.misc.check}
620
+ { author empty$ title empty$ howpublished empty$
621
+ month empty$ year empty$ note empty$
622
+ and and and and and
623
+ key empty$ not and
624
+ { "all relevant fields are empty in " cite$ * warning$ }
625
+ 'skip$
626
+ if$
627
+ }
628
+
629
+ FUNCTION {format.thesis.type}
630
+ { type empty$
631
+ 'skip$
632
+ { pop$
633
+ type "t" change.case$
634
+ }
635
+ if$
636
+ }
637
+
638
+ FUNCTION {format.tr.number}
639
+ { type empty$
640
+ { "Technical Report" }
641
+ 'type
642
+ if$
643
+ number empty$
644
+ { "t" change.case$ }
645
+ { number tie.or.space.connect }
646
+ if$
647
+ }
648
+
649
+ FUNCTION {format.article.crossref}
650
+ { key empty$
651
+ { journal empty$
652
+ { "need key or journal for " cite$ * " to crossref " * crossref *
653
+ warning$
654
+ ""
655
+ }
656
+ { "In \emph{" journal * "}" * }
657
+ if$
658
+ }
659
+ { "In " }
660
+ if$
661
+ " \citet{" * crossref * "}" *
662
+ }
663
+
664
+ FUNCTION {format.book.crossref}
665
+ { volume empty$
666
+ { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
667
+ "In "
668
+ }
669
+ { "Volume" volume tie.or.space.connect
670
+ " of " *
671
+ }
672
+ if$
673
+ editor empty$
674
+ editor field.or.null author field.or.null =
675
+ or
676
+ { key empty$
677
+ { series empty$
678
+ { "need editor, key, or series for " cite$ * " to crossref " *
679
+ crossref * warning$
680
+ "" *
681
+ }
682
+ { "\emph{" * series * "}" * }
683
+ if$
684
+ }
685
+ 'skip$
686
+ if$
687
+ }
688
+ 'skip$
689
+ if$
690
+ " \citet{" * crossref * "}" *
691
+ }
692
+
693
+ FUNCTION {format.incoll.inproc.crossref}
694
+ { editor empty$
695
+ editor field.or.null author field.or.null =
696
+ or
697
+ { key empty$
698
+ { booktitle empty$
699
+ { "need editor, key, or booktitle for " cite$ * " to crossref " *
700
+ crossref * warning$
701
+ ""
702
+ }
703
+ { "In \emph{" booktitle * "}" * }
704
+ if$
705
+ }
706
+ { "In " }
707
+ if$
708
+ }
709
+ { "In " }
710
+ if$
711
+ " \citet{" * crossref * "}" *
712
+ }
713
+
714
+ FUNCTION {article}
715
+ { output.bibitem
716
+ format.authors "author" output.check
717
+ author format.key output
718
+ new.block
719
+ format.title "title" output.check
720
+ new.block
721
+ crossref missing$
722
+ { journal emphasize "journal" output.check
723
+ eid empty$
724
+ { format.vol.num.pages output }
725
+ { format.vol.num.eid output }
726
+ if$
727
+ format.date "year" output.check
728
+ }
729
+ { format.article.crossref output.nonnull
730
+ eid empty$
731
+ { format.pages output }
732
+ { format.eid output }
733
+ if$
734
+ }
735
+ if$
736
+ format.issn output
737
+ format.doi output
738
+ format.url output
739
+ new.block
740
+ note output
741
+ fin.entry
742
+ }
743
+
744
+ FUNCTION {book}
745
+ { output.bibitem
746
+ author empty$
747
+ { format.editors "author and editor" output.check
748
+ editor format.key output
749
+ }
750
+ { format.authors output.nonnull
751
+ crossref missing$
752
+ { "author and editor" editor either.or.check }
753
+ 'skip$
754
+ if$
755
+ }
756
+ if$
757
+ new.block
758
+ format.btitle "title" output.check
759
+ crossref missing$
760
+ { format.bvolume output
761
+ new.block
762
+ format.number.series output
763
+ new.sentence
764
+ publisher "publisher" output.check
765
+ address output
766
+ }
767
+ { new.block
768
+ format.book.crossref output.nonnull
769
+ }
770
+ if$
771
+ format.edition output
772
+ format.date "year" output.check
773
+ format.isbn output
774
+ format.doi output
775
+ format.url output
776
+ new.block
777
+ note output
778
+ fin.entry
779
+ }
780
+
781
+ FUNCTION {booklet}
782
+ { output.bibitem
783
+ format.authors output
784
+ author format.key output
785
+ new.block
786
+ format.title "title" output.check
787
+ howpublished address new.block.checkb
788
+ howpublished output
789
+ address output
790
+ format.date output
791
+ format.isbn output
792
+ format.doi output
793
+ format.url output
794
+ new.block
795
+ note output
796
+ fin.entry
797
+ }
798
+
799
+ FUNCTION {inbook}
800
+ { output.bibitem
801
+ author empty$
802
+ { format.editors "author and editor" output.check
803
+ editor format.key output
804
+ }
805
+ { format.authors output.nonnull
806
+ crossref missing$
807
+ { "author and editor" editor either.or.check }
808
+ 'skip$
809
+ if$
810
+ }
811
+ if$
812
+ new.block
813
+ format.btitle "title" output.check
814
+ crossref missing$
815
+ { format.bvolume output
816
+ format.chapter.pages "chapter and pages" output.check
817
+ new.block
818
+ format.number.series output
819
+ new.sentence
820
+ publisher "publisher" output.check
821
+ address output
822
+ }
823
+ { format.chapter.pages "chapter and pages" output.check
824
+ new.block
825
+ format.book.crossref output.nonnull
826
+ }
827
+ if$
828
+ format.edition output
829
+ format.date "year" output.check
830
+ format.isbn output
831
+ format.doi output
832
+ format.url output
833
+ new.block
834
+ note output
835
+ fin.entry
836
+ }
837
+
838
+ FUNCTION {incollection}
839
+ { output.bibitem
840
+ format.authors "author" output.check
841
+ author format.key output
842
+ new.block
843
+ format.title "title" output.check
844
+ new.block
845
+ crossref missing$
846
+ { format.in.ed.booktitle "booktitle" output.check
847
+ format.bvolume output
848
+ format.number.series output
849
+ format.chapter.pages output
850
+ new.sentence
851
+ publisher "publisher" output.check
852
+ address output
853
+ format.edition output
854
+ format.date "year" output.check
855
+ }
856
+ { format.incoll.inproc.crossref output.nonnull
857
+ format.chapter.pages output
858
+ }
859
+ if$
860
+ format.isbn output
861
+ format.doi output
862
+ format.url output
863
+ new.block
864
+ note output
865
+ fin.entry
866
+ }
867
+
868
+ FUNCTION {inproceedings}
869
+ { output.bibitem
870
+ format.authors "author" output.check
871
+ author format.key output
872
+ new.block
873
+ format.title "title" output.check
874
+ new.block
875
+ crossref missing$
876
+ { format.in.ed.booktitle "booktitle" output.check
877
+ format.bvolume output
878
+ format.number.series output
879
+ format.pages output
880
+ address empty$
881
+ { organization publisher new.sentence.checkb
882
+ organization output
883
+ publisher output
884
+ format.date "year" output.check
885
+ }
886
+ { address output.nonnull
887
+ format.date "year" output.check
888
+ new.sentence
889
+ organization output
890
+ publisher output
891
+ }
892
+ if$
893
+ }
894
+ { format.incoll.inproc.crossref output.nonnull
895
+ format.pages output
896
+ }
897
+ if$
898
+ format.isbn output
899
+ format.doi output
900
+ format.url output
901
+ new.block
902
+ note output
903
+ fin.entry
904
+ }
905
+
906
+ FUNCTION {conference} { inproceedings }
907
+
908
+ FUNCTION {manual}
909
+ { output.bibitem
910
+ format.authors output
911
+ author format.key output
912
+ new.block
913
+ format.btitle "title" output.check
914
+ organization address new.block.checkb
915
+ organization output
916
+ address output
917
+ format.edition output
918
+ format.date output
919
+ format.url output
920
+ new.block
921
+ note output
922
+ fin.entry
923
+ }
924
+
925
+ FUNCTION {mastersthesis}
926
+ { output.bibitem
927
+ format.authors "author" output.check
928
+ author format.key output
929
+ new.block
930
+ format.title "title" output.check
931
+ new.block
932
+ "Master's thesis" format.thesis.type output.nonnull
933
+ school "school" output.check
934
+ address output
935
+ format.date "year" output.check
936
+ format.url output
937
+ new.block
938
+ note output
939
+ fin.entry
940
+ }
941
+
942
+ FUNCTION {misc}
943
+ { output.bibitem
944
+ format.authors output
945
+ author format.key output
946
+ title howpublished new.block.checkb
947
+ format.title output
948
+ howpublished new.block.checka
949
+ howpublished output
950
+ format.date output
951
+ format.issn output
952
+ format.url output
953
+ new.block
954
+ note output
955
+ fin.entry
956
+ empty.misc.check
957
+ }
958
+
959
+ FUNCTION {phdthesis}
960
+ { output.bibitem
961
+ format.authors "author" output.check
962
+ author format.key output
963
+ new.block
964
+ format.btitle "title" output.check
965
+ new.block
966
+ "PhD thesis" format.thesis.type output.nonnull
967
+ school "school" output.check
968
+ address output
969
+ format.date "year" output.check
970
+ format.url output
971
+ new.block
972
+ note output
973
+ fin.entry
974
+ }
975
+
976
+ FUNCTION {proceedings}
977
+ { output.bibitem
978
+ format.editors output
979
+ editor format.key output
980
+ new.block
981
+ format.btitle "title" output.check
982
+ format.bvolume output
983
+ format.number.series output
984
+ address output
985
+ format.date "year" output.check
986
+ new.sentence
987
+ organization output
988
+ publisher output
989
+ format.isbn output
990
+ format.doi output
991
+ format.url output
992
+ new.block
993
+ note output
994
+ fin.entry
995
+ }
996
+
997
+ FUNCTION {techreport}
998
+ { output.bibitem
999
+ format.authors "author" output.check
1000
+ author format.key output
1001
+ new.block
1002
+ format.title "title" output.check
1003
+ new.block
1004
+ format.tr.number output.nonnull
1005
+ institution "institution" output.check
1006
+ address output
1007
+ format.date "year" output.check
1008
+ format.url output
1009
+ new.block
1010
+ note output
1011
+ fin.entry
1012
+ }
1013
+
1014
+ FUNCTION {unpublished}
1015
+ { output.bibitem
1016
+ format.authors "author" output.check
1017
+ author format.key output
1018
+ new.block
1019
+ format.title "title" output.check
1020
+ new.block
1021
+ note "note" output.check
1022
+ format.date output
1023
+ format.url output
1024
+ fin.entry
1025
+ }
1026
+
1027
+ FUNCTION {default.type} { misc }
1028
+
1029
+
1030
+ MACRO {jan} {"January"}
1031
+
1032
+ MACRO {feb} {"February"}
1033
+
1034
+ MACRO {mar} {"March"}
1035
+
1036
+ MACRO {apr} {"April"}
1037
+
1038
+ MACRO {may} {"May"}
1039
+
1040
+ MACRO {jun} {"June"}
1041
+
1042
+ MACRO {jul} {"July"}
1043
+
1044
+ MACRO {aug} {"August"}
1045
+
1046
+ MACRO {sep} {"September"}
1047
+
1048
+ MACRO {oct} {"October"}
1049
+
1050
+ MACRO {nov} {"November"}
1051
+
1052
+ MACRO {dec} {"December"}
1053
+
1054
+
1055
+
1056
+ MACRO {acmcs} {"ACM Computing Surveys"}
1057
+
1058
+ MACRO {acta} {"Acta Informatica"}
1059
+
1060
+ MACRO {cacm} {"Communications of the ACM"}
1061
+
1062
+ MACRO {ibmjrd} {"IBM Journal of Research and Development"}
1063
+
1064
+ MACRO {ibmsj} {"IBM Systems Journal"}
1065
+
1066
+ MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
1067
+
1068
+ MACRO {ieeetc} {"IEEE Transactions on Computers"}
1069
+
1070
+ MACRO {ieeetcad}
1071
+ {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
1072
+
1073
+ MACRO {ipl} {"Information Processing Letters"}
1074
+
1075
+ MACRO {jacm} {"Journal of the ACM"}
1076
+
1077
+ MACRO {jcss} {"Journal of Computer and System Sciences"}
1078
+
1079
+ MACRO {scp} {"Science of Computer Programming"}
1080
+
1081
+ MACRO {sicomp} {"SIAM Journal on Computing"}
1082
+
1083
+ MACRO {tocs} {"ACM Transactions on Computer Systems"}
1084
+
1085
+ MACRO {tods} {"ACM Transactions on Database Systems"}
1086
+
1087
+ MACRO {tog} {"ACM Transactions on Graphics"}
1088
+
1089
+ MACRO {toms} {"ACM Transactions on Mathematical Software"}
1090
+
1091
+ MACRO {toois} {"ACM Transactions on Office Information Systems"}
1092
+
1093
+ MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
1094
+
1095
+ MACRO {tcs} {"Theoretical Computer Science"}
1096
+
1097
+
1098
+ READ
1099
+
1100
+ FUNCTION {sortify}
1101
+ { purify$
1102
+ "l" change.case$
1103
+ }
1104
+
1105
+ INTEGERS { len }
1106
+
1107
+ FUNCTION {chop.word}
1108
+ { 's :=
1109
+ 'len :=
1110
+ s #1 len substring$ =
1111
+ { s len #1 + global.max$ substring$ }
1112
+ 's
1113
+ if$
1114
+ }
1115
+
1116
+ FUNCTION {format.lab.names}
1117
+ { 's :=
1118
+ s #1 "{vv~}{ll}" format.name$
1119
+ s num.names$ duplicate$
1120
+ #2 >
1121
+ { pop$ " et~al." * }
1122
+ { #2 <
1123
+ 'skip$
1124
+ { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1125
+ { " et~al." * }
1126
+ { " and " * s #2 "{vv~}{ll}" format.name$ * }
1127
+ if$
1128
+ }
1129
+ if$
1130
+ }
1131
+ if$
1132
+ }
1133
+
1134
+ FUNCTION {author.key.label}
1135
+ { author empty$
1136
+ { key empty$
1137
+ { cite$ #1 #3 substring$ }
1138
+ 'key
1139
+ if$
1140
+ }
1141
+ { author format.lab.names }
1142
+ if$
1143
+ }
1144
+
1145
+ FUNCTION {author.editor.key.label}
1146
+ { author empty$
1147
+ { editor empty$
1148
+ { key empty$
1149
+ { cite$ #1 #3 substring$ }
1150
+ 'key
1151
+ if$
1152
+ }
1153
+ { editor format.lab.names }
1154
+ if$
1155
+ }
1156
+ { author format.lab.names }
1157
+ if$
1158
+ }
1159
+
1160
+ FUNCTION {author.key.organization.label}
1161
+ { author empty$
1162
+ { key empty$
1163
+ { organization empty$
1164
+ { cite$ #1 #3 substring$ }
1165
+ { "The " #4 organization chop.word #3 text.prefix$ }
1166
+ if$
1167
+ }
1168
+ 'key
1169
+ if$
1170
+ }
1171
+ { author format.lab.names }
1172
+ if$
1173
+ }
1174
+
1175
+ FUNCTION {editor.key.organization.label}
1176
+ { editor empty$
1177
+ { key empty$
1178
+ { organization empty$
1179
+ { cite$ #1 #3 substring$ }
1180
+ { "The " #4 organization chop.word #3 text.prefix$ }
1181
+ if$
1182
+ }
1183
+ 'key
1184
+ if$
1185
+ }
1186
+ { editor format.lab.names }
1187
+ if$
1188
+ }
1189
+
1190
+ FUNCTION {calc.short.authors}
1191
+ { type$ "book" =
1192
+ type$ "inbook" =
1193
+ or
1194
+ 'author.editor.key.label
1195
+ { type$ "proceedings" =
1196
+ 'editor.key.organization.label
1197
+ { type$ "manual" =
1198
+ 'author.key.organization.label
1199
+ 'author.key.label
1200
+ if$
1201
+ }
1202
+ if$
1203
+ }
1204
+ if$
1205
+ 'short.list :=
1206
+ }
1207
+
1208
+ FUNCTION {calc.label}
1209
+ { calc.short.authors
1210
+ short.list
1211
+ "("
1212
+ *
1213
+ year duplicate$ empty$
1214
+ short.list key field.or.null = or
1215
+ { pop$ "" }
1216
+ 'skip$
1217
+ if$
1218
+ *
1219
+ 'label :=
1220
+ }
1221
+
1222
+ FUNCTION {sort.format.names}
1223
+ { 's :=
1224
+ #1 'nameptr :=
1225
+ ""
1226
+ s num.names$ 'numnames :=
1227
+ numnames 'namesleft :=
1228
+ { namesleft #0 > }
1229
+ {
1230
+ s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
1231
+ nameptr #1 >
1232
+ {
1233
+ " " *
1234
+ namesleft #1 = t "others" = and
1235
+ { "zzzzz" * }
1236
+ { numnames #2 > nameptr #2 = and
1237
+ { "zz" * year field.or.null * " " * }
1238
+ 'skip$
1239
+ if$
1240
+ t sortify *
1241
+ }
1242
+ if$
1243
+ }
1244
+ { t sortify * }
1245
+ if$
1246
+ nameptr #1 + 'nameptr :=
1247
+ namesleft #1 - 'namesleft :=
1248
+ }
1249
+ while$
1250
+ }
1251
+
1252
+ FUNCTION {sort.format.title}
1253
+ { 't :=
1254
+ "A " #2
1255
+ "An " #3
1256
+ "The " #4 t chop.word
1257
+ chop.word
1258
+ chop.word
1259
+ sortify
1260
+ #1 global.max$ substring$
1261
+ }
1262
+
1263
+ FUNCTION {author.sort}
1264
+ { author empty$
1265
+ { key empty$
1266
+ { "to sort, need author or key in " cite$ * warning$
1267
+ ""
1268
+ }
1269
+ { key sortify }
1270
+ if$
1271
+ }
1272
+ { author sort.format.names }
1273
+ if$
1274
+ }
1275
+
1276
+ FUNCTION {author.editor.sort}
1277
+ { author empty$
1278
+ { editor empty$
1279
+ { key empty$
1280
+ { "to sort, need author, editor, or key in " cite$ * warning$
1281
+ ""
1282
+ }
1283
+ { key sortify }
1284
+ if$
1285
+ }
1286
+ { editor sort.format.names }
1287
+ if$
1288
+ }
1289
+ { author sort.format.names }
1290
+ if$
1291
+ }
1292
+
1293
+ FUNCTION {author.organization.sort}
1294
+ { author empty$
1295
+ { organization empty$
1296
+ { key empty$
1297
+ { "to sort, need author, organization, or key in " cite$ * warning$
1298
+ ""
1299
+ }
1300
+ { key sortify }
1301
+ if$
1302
+ }
1303
+ { "The " #4 organization chop.word sortify }
1304
+ if$
1305
+ }
1306
+ { author sort.format.names }
1307
+ if$
1308
+ }
1309
+
1310
+ FUNCTION {editor.organization.sort}
1311
+ { editor empty$
1312
+ { organization empty$
1313
+ { key empty$
1314
+ { "to sort, need editor, organization, or key in " cite$ * warning$
1315
+ ""
1316
+ }
1317
+ { key sortify }
1318
+ if$
1319
+ }
1320
+ { "The " #4 organization chop.word sortify }
1321
+ if$
1322
+ }
1323
+ { editor sort.format.names }
1324
+ if$
1325
+ }
1326
+
1327
+
1328
+ FUNCTION {presort}
1329
+ { calc.label
1330
+ label sortify
1331
+ " "
1332
+ *
1333
+ type$ "book" =
1334
+ type$ "inbook" =
1335
+ or
1336
+ 'author.editor.sort
1337
+ { type$ "proceedings" =
1338
+ 'editor.organization.sort
1339
+ { type$ "manual" =
1340
+ 'author.organization.sort
1341
+ 'author.sort
1342
+ if$
1343
+ }
1344
+ if$
1345
+ }
1346
+ if$
1347
+ " "
1348
+ *
1349
+ year field.or.null sortify
1350
+ *
1351
+ " "
1352
+ *
1353
+ cite$
1354
+ *
1355
+ #1 entry.max$ substring$
1356
+ 'sort.label :=
1357
+ sort.label *
1358
+ #1 entry.max$ substring$
1359
+ 'sort.key$ :=
1360
+ }
1361
+
1362
+ ITERATE {presort}
1363
+
1364
+ SORT
1365
+
1366
+ STRINGS { longest.label last.label next.extra }
1367
+
1368
+ INTEGERS { longest.label.width last.extra.num number.label }
1369
+
1370
+ FUNCTION {initialize.longest.label}
1371
+ { "" 'longest.label :=
1372
+ #0 int.to.chr$ 'last.label :=
1373
+ "" 'next.extra :=
1374
+ #0 'longest.label.width :=
1375
+ #0 'last.extra.num :=
1376
+ #0 'number.label :=
1377
+ }
1378
+
1379
+ FUNCTION {forward.pass}
1380
+ { last.label label =
1381
+ { last.extra.num #1 + 'last.extra.num :=
1382
+ last.extra.num int.to.chr$ 'extra.label :=
1383
+ }
1384
+ { "a" chr.to.int$ 'last.extra.num :=
1385
+ "" 'extra.label :=
1386
+ label 'last.label :=
1387
+ }
1388
+ if$
1389
+ number.label #1 + 'number.label :=
1390
+ }
1391
+
1392
+ FUNCTION {reverse.pass}
1393
+ { next.extra "b" =
1394
+ { "a" 'extra.label := }
1395
+ 'skip$
1396
+ if$
1397
+ extra.label 'next.extra :=
1398
+ extra.label
1399
+ duplicate$ empty$
1400
+ 'skip$
1401
+ { "{\natexlab{" swap$ * "}}" * }
1402
+ if$
1403
+ 'extra.label :=
1404
+ label extra.label * 'label :=
1405
+ }
1406
+
1407
+ EXECUTE {initialize.longest.label}
1408
+
1409
+ ITERATE {forward.pass}
1410
+
1411
+ REVERSE {reverse.pass}
1412
+
1413
+ FUNCTION {bib.sort.order}
1414
+ { sort.label 'sort.key$ :=
1415
+ }
1416
+
1417
+ ITERATE {bib.sort.order}
1418
+
1419
+ SORT
1420
+
1421
+ FUNCTION {begin.bib}
1422
+ { preamble$ empty$
1423
+ 'skip$
1424
+ { preamble$ write$ newline$ }
1425
+ if$
1426
+ "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1427
+ write$ newline$
1428
+ "\providecommand{\natexlab}[1]{#1}"
1429
+ write$ newline$
1430
+ "\providecommand{\url}[1]{\texttt{#1}}"
1431
+ write$ newline$
1432
+ "\expandafter\ifx\csname urlstyle\endcsname\relax"
1433
+ write$ newline$
1434
+ " \providecommand{\doi}[1]{doi: #1}\else"
1435
+ write$ newline$
1436
+ " \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi"
1437
+ write$ newline$
1438
+ }
1439
+
1440
+ EXECUTE {begin.bib}
1441
+
1442
+ EXECUTE {init.state.consts}
1443
+
1444
+ ITERATE {call.type$}
1445
+
1446
+ FUNCTION {end.bib}
1447
+ { newline$
1448
+ "\end{thebibliography}" write$ newline$
1449
+ }
1450
+
1451
+ EXECUTE {end.bib}