1 | % UT Physics bibliographic style, ver. 1.2. Based on: |
---|
2 | % |
---|
3 | %X IEEE Transactions bibliography style (29-Jan-88 version) |
---|
4 | %X numeric labels, order-of-reference, IEEE abbreviations, |
---|
5 | %X quotes around article titles, commas separate all fields |
---|
6 | %X except after book titles and before "notes". Otherwise, |
---|
7 | %X much like the "plain" family, from which this is adapted. |
---|
8 | %X |
---|
9 | %X History |
---|
10 | %X 9/30/85 (HWT) Original version, by Howard Trickey. |
---|
11 | %X 1/29/88 (OP&HWT) Updated for BibTeX version 0.99a, Oren Patashnik; |
---|
12 | %X THIS `ieeetr' VERSION DOES NOT WORK WITH BIBTEX 0.98i. |
---|
13 | % |
---|
14 | % Modifications: 1) added hypertex support and "archive" and "eprint" fields. |
---|
15 | % 2) parentheses around dates, and no "pp." for article entries |
---|
16 | % 3) "publisher, address" instead of "address: publisher" |
---|
17 | % 4) added "report" field for article entries. |
---|
18 | % 5) particle physics-oriented abbreviations, rather than ieee. |
---|
19 | % 6) added "collaboration" field, as per |
---|
20 | % Jonathan Flynn' suggestion. SPIRES now supports this field. |
---|
21 | % |
---|
22 | % Modified by Jacques Distler, 7/97 |
---|
23 | % History: ver 1.0 9/96 |
---|
24 | % ver 1.1 10/96 - added "collaboration" field |
---|
25 | % ver 1.2 7/97 - added a "\providecommand{\href}[2]{#2}" |
---|
26 | % to handle case where \href is not defined |
---|
27 | % |
---|
28 | % HyperTeX Wizardry: |
---|
29 | % |
---|
30 | % The following are equivalent: |
---|
31 | % archive = "hep-th" |
---|
32 | % eprint = "9605023" |
---|
33 | % and |
---|
34 | % eprint = "hep-th/9605023" |
---|
35 | % both produce |
---|
36 | % \href{http://arXiv.org/abs/hep-th/9605023}{{\tt hep-th/9605023}} |
---|
37 | % in the bibliographic output at the appropriate point. If you are using a |
---|
38 | % hypertex macropackage, like hyperref.sty, this will create a link to Los |
---|
39 | % Alamos. |
---|
40 | % |
---|
41 | % The bibtex output produced by SPIRES, while far from perfect, is pretty |
---|
42 | % suitable for use with this style. Indeed, this style was designed with |
---|
43 | % SPIRES in mind. |
---|
44 | % |
---|
45 | % modified by jonivar skullerud, october 2001 |
---|
46 | % 1) added SLACcitation field (with SPIRES in mind). |
---|
47 | % 2) removed comma before square brackets enclosing eprint number |
---|
48 | % 3) changed xxx.lanl.gov to arXiv.org |
---|
49 | % 4) removed comma before and in author lists |
---|
50 | |
---|
51 | ENTRY |
---|
52 | { address |
---|
53 | author |
---|
54 | booktitle |
---|
55 | chapter |
---|
56 | edition |
---|
57 | editor |
---|
58 | howpublished |
---|
59 | institution |
---|
60 | journal |
---|
61 | key |
---|
62 | month |
---|
63 | note |
---|
64 | number |
---|
65 | organization |
---|
66 | pages |
---|
67 | publisher |
---|
68 | school |
---|
69 | series |
---|
70 | title |
---|
71 | type |
---|
72 | volume |
---|
73 | year |
---|
74 | archive |
---|
75 | eprint |
---|
76 | report |
---|
77 | collaboration |
---|
78 | SLACcitation |
---|
79 | } |
---|
80 | {} |
---|
81 | { label } |
---|
82 | |
---|
83 | INTEGERS { output.state before.all mid.sentence after.quote after.sentence |
---|
84 | after.quoted.block after.block } |
---|
85 | |
---|
86 | FUNCTION {init.state.consts} |
---|
87 | { #0 'before.all := |
---|
88 | #1 'mid.sentence := |
---|
89 | #2 'after.quote := |
---|
90 | #3 'after.sentence := |
---|
91 | #4 'after.quoted.block := |
---|
92 | #5 'after.block := |
---|
93 | } |
---|
94 | |
---|
95 | STRINGS { s t } |
---|
96 | |
---|
97 | FUNCTION {output.nonnull} |
---|
98 | { 's := |
---|
99 | output.state mid.sentence = |
---|
100 | { ", " * write$ } |
---|
101 | { output.state after.quote = |
---|
102 | { " " * write$ } |
---|
103 | { output.state after.block = |
---|
104 | { add.period$ write$ |
---|
105 | newline$ |
---|
106 | "\newblock " write$ |
---|
107 | } |
---|
108 | { output.state before.all = |
---|
109 | 'write$ |
---|
110 | { output.state after.quoted.block = |
---|
111 | { write$ |
---|
112 | newline$ |
---|
113 | "\newblock " write$ |
---|
114 | } |
---|
115 | { add.period$ " " * write$ } |
---|
116 | if$ |
---|
117 | } |
---|
118 | if$ |
---|
119 | } |
---|
120 | if$ |
---|
121 | } |
---|
122 | if$ |
---|
123 | mid.sentence 'output.state := |
---|
124 | } |
---|
125 | if$ |
---|
126 | s |
---|
127 | } |
---|
128 | |
---|
129 | FUNCTION {output} |
---|
130 | { duplicate$ empty$ |
---|
131 | 'pop$ |
---|
132 | 'output.nonnull |
---|
133 | if$ |
---|
134 | } |
---|
135 | |
---|
136 | FUNCTION {output.check} |
---|
137 | { 't := |
---|
138 | duplicate$ empty$ |
---|
139 | { pop$ "empty " t * " in " * cite$ * warning$ } |
---|
140 | 'output.nonnull |
---|
141 | if$ |
---|
142 | } |
---|
143 | |
---|
144 | FUNCTION {output.bibitem} |
---|
145 | { newline$ |
---|
146 | "\bibitem{" write$ |
---|
147 | cite$ write$ |
---|
148 | "}" write$ |
---|
149 | newline$ |
---|
150 | "" |
---|
151 | before.all 'output.state := |
---|
152 | } |
---|
153 | |
---|
154 | FUNCTION {blank.sep} |
---|
155 | { after.quote 'output.state := |
---|
156 | } |
---|
157 | |
---|
158 | FUNCTION {fin.entry} |
---|
159 | { output.state after.quoted.block = |
---|
160 | 'skip$ |
---|
161 | 'add.period$ |
---|
162 | if$ |
---|
163 | write$ |
---|
164 | % modified to add SLACcitation field if present |
---|
165 | SLACcitation empty$ |
---|
166 | 'skip$ |
---|
167 | { newline$ SLACcitation write$ } |
---|
168 | if$ |
---|
169 | % end of modification |
---|
170 | newline$ |
---|
171 | } |
---|
172 | |
---|
173 | FUNCTION {new.block} |
---|
174 | { output.state before.all = |
---|
175 | 'skip$ |
---|
176 | { output.state after.quote = |
---|
177 | { after.quoted.block 'output.state := } |
---|
178 | { after.block 'output.state := } |
---|
179 | if$ |
---|
180 | } |
---|
181 | if$ |
---|
182 | } |
---|
183 | |
---|
184 | FUNCTION {new.sentence} |
---|
185 | { output.state after.block = |
---|
186 | 'skip$ |
---|
187 | { output.state before.all = |
---|
188 | 'skip$ |
---|
189 | { after.sentence 'output.state := } |
---|
190 | if$ |
---|
191 | } |
---|
192 | if$ |
---|
193 | } |
---|
194 | |
---|
195 | FUNCTION {not} |
---|
196 | { { #0 } |
---|
197 | { #1 } |
---|
198 | if$ |
---|
199 | } |
---|
200 | |
---|
201 | FUNCTION {and} |
---|
202 | { 'skip$ |
---|
203 | { pop$ #0 } |
---|
204 | if$ |
---|
205 | } |
---|
206 | |
---|
207 | FUNCTION {or} |
---|
208 | { { pop$ #1 } |
---|
209 | 'skip$ |
---|
210 | if$ |
---|
211 | } |
---|
212 | |
---|
213 | FUNCTION {new.block.checka} |
---|
214 | { empty$ |
---|
215 | 'skip$ |
---|
216 | 'new.block |
---|
217 | if$ |
---|
218 | } |
---|
219 | |
---|
220 | FUNCTION {new.block.checkb} |
---|
221 | { empty$ |
---|
222 | swap$ empty$ |
---|
223 | and |
---|
224 | 'skip$ |
---|
225 | 'new.block |
---|
226 | if$ |
---|
227 | } |
---|
228 | |
---|
229 | FUNCTION {new.sentence.checka} |
---|
230 | { empty$ |
---|
231 | 'skip$ |
---|
232 | 'new.sentence |
---|
233 | if$ |
---|
234 | } |
---|
235 | |
---|
236 | FUNCTION {field.or.null} |
---|
237 | { duplicate$ empty$ |
---|
238 | { pop$ "" } |
---|
239 | 'skip$ |
---|
240 | if$ |
---|
241 | } |
---|
242 | |
---|
243 | FUNCTION {emphasize} |
---|
244 | { duplicate$ empty$ |
---|
245 | { pop$ "" } |
---|
246 | { "{\em " swap$ * "}" * } |
---|
247 | if$ |
---|
248 | } |
---|
249 | |
---|
250 | INTEGERS { nameptr namesleft numnames } |
---|
251 | |
---|
252 | FUNCTION {format.names} |
---|
253 | { 's := |
---|
254 | #1 'nameptr := |
---|
255 | s num.names$ 'numnames := |
---|
256 | numnames 'namesleft := |
---|
257 | { namesleft #0 > } |
---|
258 | { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := |
---|
259 | nameptr #1 > |
---|
260 | { namesleft #1 > |
---|
261 | { ", " * t * } |
---|
262 | { |
---|
263 | % numnames #2 > |
---|
264 | % { "," * } |
---|
265 | % 'skip$ |
---|
266 | % if$ |
---|
267 | t "others" = |
---|
268 | { " {\em et.~al.}" * } |
---|
269 | { " and " * t * } |
---|
270 | if$ |
---|
271 | } |
---|
272 | if$ |
---|
273 | } |
---|
274 | 't |
---|
275 | if$ |
---|
276 | nameptr #1 + 'nameptr := |
---|
277 | namesleft #1 - 'namesleft := |
---|
278 | } |
---|
279 | while$ |
---|
280 | } |
---|
281 | |
---|
282 | FUNCTION {format.authors} |
---|
283 | { author empty$ |
---|
284 | { "" } |
---|
285 | { author format.names } |
---|
286 | if$ |
---|
287 | } |
---|
288 | |
---|
289 | FUNCTION {format.eprint} |
---|
290 | { eprint empty$ |
---|
291 | { ""} |
---|
292 | { archive empty$ |
---|
293 | {"\href{http://arXiv.org/abs/" eprint * "}" * |
---|
294 | "{{\tt " * eprint * "}}" *} |
---|
295 | {"\href{http://arXiv.org/abs/" archive * "/" * eprint * "}" * |
---|
296 | "{{\tt " * archive * "/" * eprint * "}}" *} |
---|
297 | if$ |
---|
298 | } |
---|
299 | if$ |
---|
300 | } |
---|
301 | |
---|
302 | FUNCTION {format.eprint.paren} |
---|
303 | { eprint missing$ { "" } { eprint empty$ { "" } |
---|
304 | {"[" format.eprint * "]" *} |
---|
305 | if$ |
---|
306 | } |
---|
307 | if$ |
---|
308 | } |
---|
309 | |
---|
310 | |
---|
311 | |
---|
312 | FUNCTION {format.report} |
---|
313 | { report empty$ |
---|
314 | { ""} |
---|
315 | { report} |
---|
316 | if$ |
---|
317 | } |
---|
318 | |
---|
319 | |
---|
320 | |
---|
321 | FUNCTION {format.editors} |
---|
322 | { editor empty$ |
---|
323 | { "" } |
---|
324 | { editor format.names |
---|
325 | editor num.names$ #1 > |
---|
326 | { ", eds." * } |
---|
327 | { ", ed." * } |
---|
328 | if$ |
---|
329 | } |
---|
330 | if$ |
---|
331 | } |
---|
332 | |
---|
333 | FUNCTION {format.title} |
---|
334 | { title empty$ |
---|
335 | { "" } |
---|
336 | { "{\it " title "t" change.case$ * "}, " * } |
---|
337 | if$ |
---|
338 | } |
---|
339 | |
---|
340 | FUNCTION {format.title.p} |
---|
341 | { title empty$ |
---|
342 | { "" } |
---|
343 | { "``" title "t" change.case$ * ".''" * } |
---|
344 | if$ |
---|
345 | } |
---|
346 | |
---|
347 | FUNCTION {n.dashify} |
---|
348 | { 't := |
---|
349 | "" |
---|
350 | { t empty$ not } |
---|
351 | { t #1 #1 substring$ "-" = |
---|
352 | { t #1 #2 substring$ "--" = not |
---|
353 | { "--" * |
---|
354 | t #2 global.max$ substring$ 't := |
---|
355 | } |
---|
356 | { { t #1 #1 substring$ "-" = } |
---|
357 | { "-" * |
---|
358 | t #2 global.max$ substring$ 't := |
---|
359 | } |
---|
360 | while$ |
---|
361 | } |
---|
362 | if$ |
---|
363 | } |
---|
364 | { t #1 #1 substring$ * |
---|
365 | t #2 global.max$ substring$ 't := |
---|
366 | } |
---|
367 | if$ |
---|
368 | } |
---|
369 | while$ |
---|
370 | } |
---|
371 | |
---|
372 | FUNCTION {format.date} |
---|
373 | { year empty$ |
---|
374 | { month empty$ |
---|
375 | { "" } |
---|
376 | { "there's a month but no year in " cite$ * warning$ |
---|
377 | month |
---|
378 | } |
---|
379 | if$ |
---|
380 | } |
---|
381 | { month empty$ |
---|
382 | 'year |
---|
383 | { month ", " * year * } |
---|
384 | if$ |
---|
385 | } |
---|
386 | if$ |
---|
387 | } |
---|
388 | |
---|
389 | FUNCTION {format.date.paren} |
---|
390 | { year empty$ |
---|
391 | { month empty$ |
---|
392 | { "" } |
---|
393 | { "there's a month but no year in " cite$ * warning$ |
---|
394 | month |
---|
395 | } |
---|
396 | if$ |
---|
397 | } |
---|
398 | { month empty$ |
---|
399 | {"(" year * ")" *} |
---|
400 | {"(" month * ", " * year * ")" *} |
---|
401 | if$ |
---|
402 | } |
---|
403 | if$ |
---|
404 | } |
---|
405 | |
---|
406 | FUNCTION {format.collaboration} |
---|
407 | { collaboration empty$ |
---|
408 | { "" } |
---|
409 | { "{\bf " collaboration * "} " * "Collaboration" * } |
---|
410 | if$ |
---|
411 | } |
---|
412 | |
---|
413 | |
---|
414 | FUNCTION {format.btitle} |
---|
415 | { title emphasize |
---|
416 | } |
---|
417 | |
---|
418 | FUNCTION {tie.or.space.connect} |
---|
419 | { duplicate$ text.length$ #3 < |
---|
420 | { "~" } |
---|
421 | { " " } |
---|
422 | if$ |
---|
423 | swap$ * * |
---|
424 | } |
---|
425 | |
---|
426 | FUNCTION {either.or.check} |
---|
427 | { empty$ |
---|
428 | 'pop$ |
---|
429 | { "can't use both " swap$ * " fields in " * cite$ * warning$ } |
---|
430 | if$ |
---|
431 | } |
---|
432 | |
---|
433 | FUNCTION {format.bvolume} |
---|
434 | { volume empty$ |
---|
435 | { "" } |
---|
436 | { "vol.~" volume * |
---|
437 | series empty$ |
---|
438 | 'skip$ |
---|
439 | { " of " * series emphasize * } |
---|
440 | if$ |
---|
441 | "volume and number" number either.or.check |
---|
442 | } |
---|
443 | if$ |
---|
444 | } |
---|
445 | |
---|
446 | FUNCTION {format.number.series} |
---|
447 | { volume empty$ |
---|
448 | { number empty$ |
---|
449 | { series field.or.null } |
---|
450 | { output.state mid.sentence = |
---|
451 | { "no.~" } |
---|
452 | { "No.~" } |
---|
453 | if$ |
---|
454 | number * |
---|
455 | series empty$ |
---|
456 | { "there's a number but no series in " cite$ * warning$ } |
---|
457 | { " in " * series * } |
---|
458 | if$ |
---|
459 | } |
---|
460 | if$ |
---|
461 | } |
---|
462 | { "" } |
---|
463 | if$ |
---|
464 | } |
---|
465 | |
---|
466 | FUNCTION {format.edition} |
---|
467 | { edition empty$ |
---|
468 | { "" } |
---|
469 | { edition "l" change.case$ "~ed." * } |
---|
470 | if$ |
---|
471 | } |
---|
472 | |
---|
473 | INTEGERS { multiresult } |
---|
474 | |
---|
475 | FUNCTION {multi.page.check} |
---|
476 | { 't := |
---|
477 | #0 'multiresult := |
---|
478 | { multiresult not |
---|
479 | t empty$ not |
---|
480 | and |
---|
481 | } |
---|
482 | { t #1 #1 substring$ |
---|
483 | duplicate$ "-" = |
---|
484 | swap$ duplicate$ "," = |
---|
485 | swap$ "+" = |
---|
486 | or or |
---|
487 | { #1 'multiresult := } |
---|
488 | { t #2 global.max$ substring$ 't := } |
---|
489 | if$ |
---|
490 | } |
---|
491 | while$ |
---|
492 | multiresult |
---|
493 | } |
---|
494 | |
---|
495 | FUNCTION {format.pages} |
---|
496 | { pages empty$ |
---|
497 | { "" } |
---|
498 | { pages multi.page.check |
---|
499 | { "pp.~" pages n.dashify * } |
---|
500 | { "p.~" pages * } |
---|
501 | if$ |
---|
502 | } |
---|
503 | if$ |
---|
504 | } |
---|
505 | |
---|
506 | FUNCTION {format.pages.nopp} |
---|
507 | { pages empty$ |
---|
508 | { "" } |
---|
509 | { pages multi.page.check |
---|
510 | { pages n.dashify } |
---|
511 | { pages } |
---|
512 | if$ |
---|
513 | } |
---|
514 | if$ |
---|
515 | } |
---|
516 | |
---|
517 | |
---|
518 | FUNCTION {format.volume} |
---|
519 | { volume empty$ |
---|
520 | { "" } |
---|
521 | { "{\bf " volume * "}" * } |
---|
522 | if$ |
---|
523 | } |
---|
524 | |
---|
525 | FUNCTION {format.number} |
---|
526 | { number empty$ |
---|
527 | { "" } |
---|
528 | { "no.~" number * } |
---|
529 | if$ |
---|
530 | } |
---|
531 | |
---|
532 | FUNCTION {format.chapter.pages} |
---|
533 | { chapter empty$ |
---|
534 | 'format.pages |
---|
535 | { type empty$ |
---|
536 | { "ch.~" chapter * } |
---|
537 | { type "l" change.case$ chapter tie.or.space.connect } |
---|
538 | if$ |
---|
539 | pages empty$ |
---|
540 | 'skip$ |
---|
541 | { ", " * format.pages * } |
---|
542 | if$ |
---|
543 | } |
---|
544 | if$ |
---|
545 | } |
---|
546 | |
---|
547 | FUNCTION {format.in.ed.booktitle} |
---|
548 | { booktitle empty$ |
---|
549 | { "" } |
---|
550 | { "in " booktitle emphasize * |
---|
551 | editor empty$ |
---|
552 | 'skip$ |
---|
553 | { " (" * format.editors * ")" * } |
---|
554 | if$ |
---|
555 | } |
---|
556 | if$ |
---|
557 | } |
---|
558 | |
---|
559 | FUNCTION {format.thesis.type} |
---|
560 | { type empty$ |
---|
561 | 'skip$ |
---|
562 | { pop$ |
---|
563 | output.state after.block = |
---|
564 | { type "t" change.case$ } |
---|
565 | { type "l" change.case$ } |
---|
566 | if$ |
---|
567 | } |
---|
568 | if$ |
---|
569 | } |
---|
570 | |
---|
571 | FUNCTION {empty.misc.check} |
---|
572 | { author empty$ title empty$ howpublished empty$ |
---|
573 | month empty$ year empty$ note empty$ |
---|
574 | and and and and and |
---|
575 | { "all relevant fields are empty in " cite$ * warning$ } |
---|
576 | 'skip$ |
---|
577 | if$ |
---|
578 | } |
---|
579 | |
---|
580 | FUNCTION {format.tr.number} |
---|
581 | { type empty$ |
---|
582 | { "Tech. Rep." } |
---|
583 | 'type |
---|
584 | if$ |
---|
585 | number empty$ |
---|
586 | { "l" change.case$ } |
---|
587 | { number tie.or.space.connect } |
---|
588 | if$ |
---|
589 | } |
---|
590 | |
---|
591 | FUNCTION {format.paddress} |
---|
592 | { address empty$ |
---|
593 | { "" } |
---|
594 | { "(" address * ")" * } |
---|
595 | if$ |
---|
596 | } |
---|
597 | |
---|
598 | FUNCTION {format.article.crossref} |
---|
599 | { key empty$ |
---|
600 | { journal empty$ |
---|
601 | { "need key or journal for " cite$ * " to crossref " * crossref * |
---|
602 | warning$ |
---|
603 | "" |
---|
604 | } |
---|
605 | { "in {\em " journal * "\/}" * } |
---|
606 | if$ |
---|
607 | } |
---|
608 | { "in " key * } |
---|
609 | if$ |
---|
610 | " \cite{" * crossref * "}" * |
---|
611 | } |
---|
612 | |
---|
613 | FUNCTION {format.crossref.editor} |
---|
614 | { editor #1 "{vv~}{ll}" format.name$ |
---|
615 | editor num.names$ duplicate$ |
---|
616 | #2 > |
---|
617 | { pop$ " {\em et.~al.}" * } |
---|
618 | { #2 < |
---|
619 | 'skip$ |
---|
620 | { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
---|
621 | { " {\em et.~al.}" * } |
---|
622 | { " and " * editor #2 "{vv~}{ll}" format.name$ * } |
---|
623 | if$ |
---|
624 | } |
---|
625 | if$ |
---|
626 | } |
---|
627 | if$ |
---|
628 | } |
---|
629 | |
---|
630 | FUNCTION {format.book.crossref} |
---|
631 | { volume empty$ |
---|
632 | { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ |
---|
633 | "In " |
---|
634 | } |
---|
635 | { "Vol.~" volume * |
---|
636 | " of " * |
---|
637 | } |
---|
638 | if$ |
---|
639 | editor empty$ |
---|
640 | editor field.or.null author field.or.null = |
---|
641 | or |
---|
642 | { key empty$ |
---|
643 | { series empty$ |
---|
644 | { "need editor, key, or series for " cite$ * " to crossref " * |
---|
645 | crossref * warning$ |
---|
646 | "" * |
---|
647 | } |
---|
648 | { "{\em " * series * "\/}" * } |
---|
649 | if$ |
---|
650 | } |
---|
651 | { key * } |
---|
652 | if$ |
---|
653 | } |
---|
654 | { format.crossref.editor * } |
---|
655 | if$ |
---|
656 | " \cite{" * crossref * "}" * |
---|
657 | } |
---|
658 | |
---|
659 | FUNCTION {format.incoll.inproc.crossref} |
---|
660 | { editor empty$ |
---|
661 | editor field.or.null author field.or.null = |
---|
662 | or |
---|
663 | { key empty$ |
---|
664 | { booktitle empty$ |
---|
665 | { "need editor, key, or booktitle for " cite$ * " to crossref " * |
---|
666 | crossref * warning$ |
---|
667 | "" |
---|
668 | } |
---|
669 | { "in {\em " booktitle * "\/}" * } |
---|
670 | if$ |
---|
671 | } |
---|
672 | { "in " key * } |
---|
673 | if$ |
---|
674 | } |
---|
675 | { "in " format.crossref.editor * } |
---|
676 | if$ |
---|
677 | " \cite{" * crossref * "}" * |
---|
678 | } |
---|
679 | |
---|
680 | FUNCTION {article} |
---|
681 | { output.bibitem |
---|
682 | format.collaboration output |
---|
683 | format.authors "author" output.check |
---|
684 | format.title "title" output.check |
---|
685 | blank.sep |
---|
686 | crossref missing$ |
---|
687 | { journal missing$ |
---|
688 | { format.eprint output } |
---|
689 | { journal empty$ { format.eprint output } { |
---|
690 | journal emphasize "journal" output.check |
---|
691 | blank.sep |
---|
692 | format.volume output |
---|
693 | blank.sep |
---|
694 | format.date.paren "year" output.check |
---|
695 | month empty$ { format.number output } |
---|
696 | 'skip$ if$ |
---|
697 | blank.sep |
---|
698 | format.pages.nopp output } |
---|
699 | if$ |
---|
700 | } |
---|
701 | if$ |
---|
702 | report missing$ |
---|
703 | { journal empty$ {} { blank.sep format.eprint.paren output} if$ } |
---|
704 | {blank.sep format.report output format.eprint.paren output} |
---|
705 | if$ |
---|
706 | } |
---|
707 | { format.article.crossref output.nonnull |
---|
708 | format.pages output |
---|
709 | format.eprint.paren output |
---|
710 | } |
---|
711 | if$ |
---|
712 | new.sentence |
---|
713 | note output |
---|
714 | fin.entry |
---|
715 | } |
---|
716 | |
---|
717 | FUNCTION {book} |
---|
718 | { output.bibitem |
---|
719 | format.collaboration output |
---|
720 | author empty$ |
---|
721 | { format.editors "author and editor" output.check } |
---|
722 | { format.authors output.nonnull |
---|
723 | crossref missing$ |
---|
724 | { "author and editor" editor either.or.check } |
---|
725 | 'skip$ |
---|
726 | if$ |
---|
727 | } |
---|
728 | if$ |
---|
729 | format.btitle "title" output.check |
---|
730 | crossref missing$ |
---|
731 | { format.bvolume output |
---|
732 | new.block |
---|
733 | format.number.series output |
---|
734 | new.sentence |
---|
735 | publisher "publisher" output.check |
---|
736 | address output |
---|
737 | } |
---|
738 | { new.block |
---|
739 | format.book.crossref output.nonnull |
---|
740 | } |
---|
741 | if$ |
---|
742 | format.edition output |
---|
743 | format.date "year" output.check |
---|
744 | new.block |
---|
745 | note output |
---|
746 | fin.entry |
---|
747 | } |
---|
748 | |
---|
749 | FUNCTION {booklet} |
---|
750 | { output.bibitem |
---|
751 | format.collaboration output |
---|
752 | format.authors output |
---|
753 | title empty$ |
---|
754 | { "empty title in " cite$ * warning$ |
---|
755 | howpublished new.sentence.checka |
---|
756 | } |
---|
757 | { howpublished empty$ not |
---|
758 | address empty$ month empty$ year empty$ and and |
---|
759 | or |
---|
760 | { format.title.p output.nonnull } |
---|
761 | { format.title output.nonnull } |
---|
762 | if$ |
---|
763 | blank.sep |
---|
764 | } |
---|
765 | if$ |
---|
766 | howpublished output |
---|
767 | address output |
---|
768 | format.date output |
---|
769 | new.block |
---|
770 | note output |
---|
771 | fin.entry |
---|
772 | } |
---|
773 | |
---|
774 | FUNCTION {inbook} |
---|
775 | { output.bibitem |
---|
776 | format.collaboration output |
---|
777 | author empty$ |
---|
778 | { format.editors "author and editor" output.check } |
---|
779 | { format.authors output.nonnull |
---|
780 | crossref missing$ |
---|
781 | { "author and editor" editor either.or.check } |
---|
782 | 'skip$ |
---|
783 | if$ |
---|
784 | } |
---|
785 | if$ |
---|
786 | format.btitle "title" output.check |
---|
787 | crossref missing$ |
---|
788 | { format.bvolume output |
---|
789 | format.chapter.pages "chapter and pages" output.check |
---|
790 | new.block |
---|
791 | format.number.series output |
---|
792 | new.block |
---|
793 | publisher "publisher" output.check |
---|
794 | address output |
---|
795 | } |
---|
796 | { format.chapter.pages "chapter and pages" output.check |
---|
797 | new.block |
---|
798 | format.book.crossref output.nonnull |
---|
799 | } |
---|
800 | if$ |
---|
801 | format.edition output |
---|
802 | format.date "year" output.check |
---|
803 | new.block |
---|
804 | format.eprint output |
---|
805 | new.block |
---|
806 | note output |
---|
807 | fin.entry |
---|
808 | } |
---|
809 | |
---|
810 | FUNCTION {incollection} |
---|
811 | { output.bibitem |
---|
812 | format.collaboration output |
---|
813 | format.authors "author" output.check |
---|
814 | format.title "title" output.check |
---|
815 | blank.sep |
---|
816 | crossref missing$ |
---|
817 | { format.in.ed.booktitle "booktitle" output.check |
---|
818 | format.bvolume output |
---|
819 | format.number.series output |
---|
820 | format.chapter.pages output |
---|
821 | new.block |
---|
822 | publisher "publisher" output.check |
---|
823 | address output |
---|
824 | format.edition output |
---|
825 | format.date "year" output.check |
---|
826 | } |
---|
827 | { format.incoll.inproc.crossref output.nonnull |
---|
828 | format.chapter.pages output |
---|
829 | } |
---|
830 | if$ |
---|
831 | new.block |
---|
832 | format.eprint output |
---|
833 | new.block |
---|
834 | note output |
---|
835 | fin.entry |
---|
836 | } |
---|
837 | |
---|
838 | FUNCTION {inproceedings} |
---|
839 | { output.bibitem |
---|
840 | format.collaboration output |
---|
841 | format.authors "author" output.check |
---|
842 | format.title "title" output.check |
---|
843 | blank.sep |
---|
844 | crossref missing$ |
---|
845 | { format.in.ed.booktitle "booktitle" output.check |
---|
846 | format.bvolume output |
---|
847 | format.number.series output |
---|
848 | format.paddress output |
---|
849 | format.pages output |
---|
850 | organization output |
---|
851 | publisher output |
---|
852 | format.date "year" output.check |
---|
853 | } |
---|
854 | { format.incoll.inproc.crossref output.nonnull |
---|
855 | format.pages output |
---|
856 | } |
---|
857 | if$ |
---|
858 | new.block |
---|
859 | format.eprint output |
---|
860 | new.block |
---|
861 | note output |
---|
862 | fin.entry |
---|
863 | } |
---|
864 | |
---|
865 | FUNCTION {conference} { inproceedings } |
---|
866 | |
---|
867 | FUNCTION {manual} |
---|
868 | { output.bibitem |
---|
869 | format.collaboration output |
---|
870 | author empty$ |
---|
871 | { organization empty$ |
---|
872 | 'skip$ |
---|
873 | { organization output.nonnull |
---|
874 | address output |
---|
875 | } |
---|
876 | if$ |
---|
877 | } |
---|
878 | { format.authors output.nonnull } |
---|
879 | if$ |
---|
880 | format.btitle "title" output.check |
---|
881 | author empty$ |
---|
882 | { organization empty$ |
---|
883 | { address new.block.checka |
---|
884 | address output |
---|
885 | } |
---|
886 | 'skip$ |
---|
887 | if$ |
---|
888 | } |
---|
889 | { organization address new.block.checkb |
---|
890 | organization output |
---|
891 | address output |
---|
892 | } |
---|
893 | if$ |
---|
894 | format.edition output |
---|
895 | format.date output |
---|
896 | new.block |
---|
897 | note output |
---|
898 | fin.entry |
---|
899 | } |
---|
900 | |
---|
901 | FUNCTION {mastersthesis} |
---|
902 | { output.bibitem |
---|
903 | format.authors "author" output.check |
---|
904 | format.title "title" output.check |
---|
905 | blank.sep |
---|
906 | "Master's thesis" format.thesis.type output.nonnull |
---|
907 | school "school" output.check |
---|
908 | address output |
---|
909 | format.date "year" output.check |
---|
910 | new.block |
---|
911 | note output |
---|
912 | fin.entry |
---|
913 | } |
---|
914 | |
---|
915 | FUNCTION {misc} |
---|
916 | { output.bibitem |
---|
917 | format.collaboration output |
---|
918 | format.authors output |
---|
919 | title empty$ |
---|
920 | { howpublished new.sentence.checka } |
---|
921 | { howpublished empty$ not |
---|
922 | month empty$ year empty$ and |
---|
923 | or |
---|
924 | { format.title.p output.nonnull } |
---|
925 | { format.title output.nonnull } |
---|
926 | if$ |
---|
927 | blank.sep |
---|
928 | } |
---|
929 | if$ |
---|
930 | howpublished output |
---|
931 | format.date output |
---|
932 | new.block |
---|
933 | note output |
---|
934 | fin.entry |
---|
935 | empty.misc.check |
---|
936 | } |
---|
937 | |
---|
938 | FUNCTION {phdthesis} |
---|
939 | { output.bibitem |
---|
940 | format.authors "author" output.check |
---|
941 | format.btitle "title" output.check |
---|
942 | new.block |
---|
943 | "PhD thesis" format.thesis.type output.nonnull |
---|
944 | school "school" output.check |
---|
945 | address output |
---|
946 | format.date "year" output.check |
---|
947 | new.block |
---|
948 | format.eprint output |
---|
949 | new.block |
---|
950 | note output |
---|
951 | fin.entry |
---|
952 | } |
---|
953 | |
---|
954 | FUNCTION {proceedings} |
---|
955 | { output.bibitem |
---|
956 | editor empty$ |
---|
957 | { organization output } |
---|
958 | { format.editors output.nonnull } |
---|
959 | if$ |
---|
960 | format.btitle "title" output.check |
---|
961 | format.bvolume output |
---|
962 | format.number.series output |
---|
963 | format.paddress output |
---|
964 | editor empty$ |
---|
965 | 'skip$ |
---|
966 | { organization output } |
---|
967 | if$ |
---|
968 | publisher output |
---|
969 | format.date "year" output.check |
---|
970 | new.block |
---|
971 | note output |
---|
972 | fin.entry |
---|
973 | } |
---|
974 | |
---|
975 | FUNCTION {techreport} |
---|
976 | { output.bibitem |
---|
977 | format.collaboration output |
---|
978 | format.authors "author" output.check |
---|
979 | format.title "title" output.check |
---|
980 | blank.sep |
---|
981 | format.tr.number output.nonnull |
---|
982 | institution "institution" output.check |
---|
983 | address output |
---|
984 | format.date "year" output.check |
---|
985 | new.block |
---|
986 | note output |
---|
987 | fin.entry |
---|
988 | } |
---|
989 | |
---|
990 | FUNCTION {unpublished} |
---|
991 | { output.bibitem |
---|
992 | format.collaboration output |
---|
993 | format.authors "author" output.check |
---|
994 | format.title.p "title" output.check |
---|
995 | blank.sep |
---|
996 | note "note" output.check |
---|
997 | format.date output |
---|
998 | fin.entry |
---|
999 | } |
---|
1000 | |
---|
1001 | FUNCTION {default.type} { misc } |
---|
1002 | |
---|
1003 | MACRO {jan} {"Jan."} |
---|
1004 | |
---|
1005 | MACRO {feb} {"Feb."} |
---|
1006 | |
---|
1007 | MACRO {mar} {"Mar."} |
---|
1008 | |
---|
1009 | MACRO {apr} {"Apr."} |
---|
1010 | |
---|
1011 | MACRO {may} {"May"} |
---|
1012 | |
---|
1013 | MACRO {jun} {"June"} |
---|
1014 | |
---|
1015 | MACRO {jul} {"July"} |
---|
1016 | |
---|
1017 | MACRO {aug} {"Aug."} |
---|
1018 | |
---|
1019 | MACRO {sep} {"Sept."} |
---|
1020 | |
---|
1021 | MACRO {oct} {"Oct."} |
---|
1022 | |
---|
1023 | MACRO {nov} {"Nov."} |
---|
1024 | |
---|
1025 | MACRO {dec} {"Dec."} |
---|
1026 | |
---|
1027 | MACRO {nup} {"Nucl. Phys."} |
---|
1028 | |
---|
1029 | MACRO {cmp} {"Comm. Math. Phys."} |
---|
1030 | |
---|
1031 | MACRO {prl} {"Phys. Rev. Lett."} |
---|
1032 | |
---|
1033 | MACRO {pl} {"Phys. Lett."} |
---|
1034 | |
---|
1035 | MACRO {rmp} {"Rev. Mod. Phys."} |
---|
1036 | |
---|
1037 | MACRO {ijmp} {"Int. Jour. Mod. Phys."} |
---|
1038 | |
---|
1039 | MACRO {mpl} {"Mod. Phys. Lett."} |
---|
1040 | |
---|
1041 | MACRO {pr} {"Phys. Rev."} |
---|
1042 | |
---|
1043 | READ |
---|
1044 | |
---|
1045 | STRINGS { longest.label } |
---|
1046 | |
---|
1047 | INTEGERS { number.label longest.label.width } |
---|
1048 | |
---|
1049 | FUNCTION {initialize.longest.label} |
---|
1050 | { "" 'longest.label := |
---|
1051 | #1 'number.label := |
---|
1052 | #0 'longest.label.width := |
---|
1053 | } |
---|
1054 | |
---|
1055 | FUNCTION {longest.label.pass} |
---|
1056 | { number.label int.to.str$ 'label := |
---|
1057 | number.label #1 + 'number.label := |
---|
1058 | label width$ longest.label.width > |
---|
1059 | { label 'longest.label := |
---|
1060 | label width$ 'longest.label.width := |
---|
1061 | } |
---|
1062 | 'skip$ |
---|
1063 | if$ |
---|
1064 | } |
---|
1065 | |
---|
1066 | EXECUTE {initialize.longest.label} |
---|
1067 | |
---|
1068 | ITERATE {longest.label.pass} |
---|
1069 | |
---|
1070 | FUNCTION {begin.bib} |
---|
1071 | { preamble$ empty$ |
---|
1072 | 'skip$ |
---|
1073 | { preamble$ write$ newline$ } |
---|
1074 | if$ |
---|
1075 | "\providecommand{\href}[2]{#2}" |
---|
1076 | "\begingroup\raggedright\begin{thebibliography}{" * longest.label * |
---|
1077 | "}" * write$ newline$ } |
---|
1078 | |
---|
1079 | EXECUTE {begin.bib} |
---|
1080 | |
---|
1081 | EXECUTE {init.state.consts} |
---|
1082 | |
---|
1083 | ITERATE {call.type$} |
---|
1084 | |
---|
1085 | FUNCTION {end.bib} |
---|
1086 | { newline$ |
---|
1087 | "\end{thebibliography}\endgroup" write$ newline$ |
---|
1088 | } |
---|
1089 | |
---|
1090 | EXECUTE {end.bib} |
---|
1091 | |
---|
1092 | --Boundary_(ID_83ETiXpi6fr1CohpRcMVUQ)-- |
---|
1093 | |
---|