Debian Codegraph @

texmf-dist/bibtex/bst/unamthesis/UNAMThesis.bst

raw
1 %%
2 %% This is file `UNAMThesis.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% merlin.mbs (with options: `head,exlang,ay,nat,seq-lab,nm-rvvc,nmft,nmft-sc,keyxyr,yr-par,note-yr,atit-u,vol-bf,num-xser,ser-vol,jnm-x,pre-edn,edpar,fin-bare,spanish,pp,ord,jabr,etal-xc,etal-it,eprint,em-it,nfss,,{}')
8 %% spanish.mbs (with options: `exlang,ay,nat,seq-lab,nm-rvvc,nmft,nmft-sc,keyxyr,yr-par,note-yr,atit-u,vol-bf,num-xser,ser-vol,jnm-x,pre-edn,edpar,fin-bare,spanish,pp,ord,jabr,etal-xc,etal-it,eprint,em-it,nfss,,{}')
9 %% merlin.mbs (with options: `tail,exlang,ay,nat,seq-lab,nm-rvvc,nmft,nmft-sc,keyxyr,yr-par,note-yr,atit-u,vol-bf,num-xser,ser-vol,jnm-x,pre-edn,edpar,fin-bare,spanish,pp,ord,jabr,etal-xc,etal-it,eprint,em-it,nfss,,{}')
10 %% ----------------------------------------
11 %% *** Bibliographic style for Thesis at UNAM ***
12 %%
13 %% Copyright 1994-2007 Patrick W Daly
14 % ===============================================================
15 % IMPORTANT NOTICE:
16 % This bibliographic style (bst) file has been generated from one or
17 % more master bibliographic style (mbs) files, listed above.
18 %
19 % This generated file can be redistributed and/or modified under the terms
20 % of the LaTeX Project Public License Distributed from CTAN
21 % archives in directory macros/latex/base/lppl.txt; either
22 % version 1 of the License, or any later version.
23 % ===============================================================
24 % Name and version information of the main mbs file:
25 % \ProvidesFile{merlin.mbs}[2007/04/24 4.20 (PWD, AO, DPC)]
26 % For use with BibTeX version 0.99a or later
27 %-------------------------------------------------------------------
28 % This bibliography style file is intended for texts in
29 % SPANISH
30 % This is an author-year citation style bibliography. As such, it is
31 % non-standard LaTeX, and requires a special package file to function properly.
32 % Such a package is natbib.sty by Patrick W. Daly
33 % The form of the \bibitem entries is
34 % \bibitem[Jones et al.(1990)]{key}...
35 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
36 % The essential feature is that the label (the part in brackets) consists
37 % of the author names, as they should appear in the citation, with the year
38 % in parentheses following. There must be no space before the opening
39 % parenthesis!
40 % With natbib v5.3, a full list of authors may also follow the year.
41 % In natbib.sty, it is possible to define the type of enclosures that is
42 % really wanted (brackets or parentheses), but in either case, there must
43 % be parentheses in the label.
44 % The \cite command functions as follows:
45 % \citet{key} ==>> Jones et al. (1990)
46 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
47 % \citep{key} ==>> (Jones et al., 1990)
48 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
49 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
50 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
51 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
52 % \citeauthor{key} ==>> Jones et al.
53 % \citeauthor*{key} ==>> Jones, Baker, and Smith
54 % \citeyear{key} ==>> 1990
55 %---------------------------------------------------------------------
56
57 ENTRY
58 { address
59 archive
60 author
61 booktitle
62 chapter
63 edition
64 editor
65 eid
66 eprint
67 howpublished
68 institution
69 journal
70 key
71 month
72 note
73 number
74 organization
75 pages
76 publisher
77 school
78 series
79 title
80 type
81 volume
82 year
83 }
84 {}
85 { label extra.label sort.label short.list }
86 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
87 FUNCTION {init.state.consts}
88 { #0 'before.all :=
89 #1 'mid.sentence :=
90 #2 'after.sentence :=
91 #3 'after.block :=
92 }
93 STRINGS { s t}
94 FUNCTION {output.nonnull}
95 { 's :=
96 output.state mid.sentence =
97 { ", " * write$ }
98 { output.state after.block =
99 { add.period$ write$
100 newline$
101 "\newblock " write$
102 }
103 { output.state before.all =
104 'write$
105 { add.period$ " " * write$ }
106 if$
107 }
108 if$
109 mid.sentence 'output.state :=
110 }
111 if$
112 s
113 }
114 FUNCTION {output}
115 { duplicate$ empty$
116 'pop$
117 'output.nonnull
118 if$
119 }
120 FUNCTION {output.check}
121 { 't :=
122 duplicate$ empty$
123 { pop$ "empty " t * " in " * cite$ * warning$ }
124 'output.nonnull
125 if$
126 }
127 FUNCTION {fin.entry}
128 { duplicate$ empty$
129 'pop$
130 'write$
131 if$
132 newline$
133 }
134
135 FUNCTION {new.block}
136 { output.state before.all =
137 'skip$
138 { after.block 'output.state := }
139 if$
140 }
141 FUNCTION {new.sentence}
142 { output.state after.block =
143 'skip$
144 { output.state before.all =
145 'skip$
146 { after.sentence 'output.state := }
147 if$
148 }
149 if$
150 }
151 FUNCTION {add.blank}
152 { " " * before.all 'output.state :=
153 }
154
155 FUNCTION {date.block}
156 {
157 new.block
158 }
159
160 FUNCTION {not}
161 { { #0 }
162 { #1 }
163 if$
164 }
165 FUNCTION {and}
166 { 'skip$
167 { pop$ #0 }
168 if$
169 }
170 FUNCTION {or}
171 { { pop$ #1 }
172 'skip$
173 if$
174 }
175 FUNCTION {new.block.checkb}
176 { empty$
177 swap$ empty$
178 and
179 'skip$
180 'new.block
181 if$
182 }
183 FUNCTION {field.or.null}
184 { duplicate$ empty$
185 { pop$ "" }
186 'skip$
187 if$
188 }
189 FUNCTION {emphasize}
190 { duplicate$ empty$
191 { pop$ "" }
192 { "\textit{" swap$ * "}" * }
193 if$
194 }
195 FUNCTION {bolden}
196 { duplicate$ empty$
197 { pop$ "" }
198 { "\textbf{" swap$ * "}" * }
199 if$
200 }
201 FUNCTION {scaps}
202 { duplicate$ empty$
203 { pop$ "" }
204 { "\textsc{" swap$ * "}" * }
205 if$
206 }
207 FUNCTION {bib.name.font}
208 { scaps }
209 FUNCTION {bib.fname.font}
210 { bib.name.font }
211 FUNCTION {tie.or.space.prefix}
212 { duplicate$ text.length$ #3 <
213 { "~" }
214 { " " }
215 if$
216 swap$
217 }
218
219 FUNCTION {capitalize}
220 { "u" change.case$ "t" change.case$ }
221
222 FUNCTION {space.word}
223 { " " swap$ * " " * }
224 % Here are the language-specific definitions for explicit words.
225 % Each function has a name bbl.xxx where xxx is the English word.
226 %-------------------------------------------------------------------
227 % Begin module:
228 % \ProvidesFile{spanish.mbs}[2003/11/06 4.2 (PWD/TB)]
229
230 % The language selected here is SPANISH
231 FUNCTION {bbl.and}
232 { "y"}
233
234 FUNCTION {bbl.etal}
235 { "et~al." }
236
237 FUNCTION {bbl.editors}
238 { "editores" }
239
240 FUNCTION {bbl.editor}
241 { "editor" }
242
243 FUNCTION {bbl.edby}
244 { "editado por" }
245
246 FUNCTION {bbl.edition}
247 { "edici\'on" }
248
249 FUNCTION {bbl.volume}
250 { "tomo" }
251
252 FUNCTION {bbl.of}
253 { "de" }
254
255 FUNCTION {bbl.number}
256 { "n\'umero" }
257
258 FUNCTION {bbl.nr}
259 { "n\raise1ex\hbox{\underbar{\scriptsize o}}" }
260
261 FUNCTION {bbl.in}
262 { "en" }
263
264 FUNCTION {bbl.pages}
265 { "p\'ags." }
266
267 FUNCTION {bbl.page}
268 { "p\'ag." }
269
270 FUNCTION {bbl.chapter}
271 { "cap\'{\i}tulo" }
272
273 FUNCTION {bbl.techrep}
274 { "Informe T\'ecnico" }
275
276 FUNCTION {bbl.mthesis}
277 { "Proyecto Fin de Carrera" }
278
279 FUNCTION {bbl.phdthesis}
280 { "Tesis Doctoral" }
281
282 FUNCTION {bbl.first}
283 { "1\raise1ex\hbox{\underbar{\scriptsize a}}" }
284
285 FUNCTION {bbl.second}
286 { "2\raise1ex\hbox{\underbar{\scriptsize a}}" }
287
288 FUNCTION {bbl.third}
289 { "3\raise1ex\hbox{\underbar{\scriptsize a}}" }
290
291 FUNCTION {bbl.fourth}
292 { "4\raise1ex\hbox{\underbar{\scriptsize a}}" }
293
294 FUNCTION {bbl.fifth}
295 { "5\raise1ex\hbox{\underbar{\scriptsize a}}" }
296
297 FUNCTION {bbl.th}
298 { "\raise1ex\hbox{\underbar{\scriptsize a}}" }
299
300 MACRO {jan} {"enero"}
301
302 MACRO {feb} {"febrero"}
303
304 MACRO {mar} {"marzo"}
305
306 MACRO {apr} {"abril"}
307
308 MACRO {may} {"mayo"}
309
310 MACRO {jun} {"junio"}
311
312 MACRO {jul} {"julio"}
313
314 MACRO {aug} {"agosto"}
315
316 MACRO {sep} {"septiembre"}
317
318 MACRO {oct} {"octubre"}
319
320 MACRO {nov} {"noviembre"}
321
322 MACRO {dec} {"diciembre"}
323
324 % End module: spanish.mbs
325 %% Copyright 1994-2007 Patrick W Daly
326 MACRO {acmcs} {"ACM Comput. Surv."}
327
328 MACRO {acta} {"Acta Inf."}
329
330 MACRO {cacm} {"Commun. ACM"}
331
332 MACRO {ibmjrd} {"IBM J. Res. Dev."}
333
334 MACRO {ibmsj} {"IBM Syst.~J."}
335
336 MACRO {ieeese} {"IEEE Trans. Software Eng."}
337
338 MACRO {ieeetc} {"IEEE Trans. Comput."}
339
340 MACRO {ieeetcad}
341 {"IEEE Trans. Comput. Aid. Des."}
342
343 MACRO {ipl} {"Inf. Process. Lett."}
344
345 MACRO {jacm} {"J.~ACM"}
346
347 MACRO {jcss} {"J.~Comput. Syst. Sci."}
348
349 MACRO {scp} {"Sci. Comput. Program."}
350
351 MACRO {sicomp} {"SIAM J. Comput."}
352
353 MACRO {tocs} {"ACM Trans. Comput. Syst."}
354
355 MACRO {tods} {"ACM Trans. Database Syst."}
356
357 MACRO {tog} {"ACM Trans. Graphic."}
358
359 MACRO {toms} {"ACM Trans. Math. Software"}
360
361 MACRO {toois} {"ACM Trans. Office Inf. Syst."}
362
363 MACRO {toplas} {"ACM Trans. Progr. Lang. Syst."}
364
365 MACRO {tcs} {"Theor. Comput. Sci."}
366
367 FUNCTION {bibinfo.check}
368 { swap$
369 duplicate$ missing$
370 {
371 pop$ pop$
372 ""
373 }
374 { duplicate$ empty$
375 {
376 swap$ pop$
377 }
378 { swap$
379 pop$
380 }
381 if$
382 }
383 if$
384 }
385 FUNCTION {bibinfo.warn}
386 { swap$
387 duplicate$ missing$
388 {
389 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
390 ""
391 }
392 { duplicate$ empty$
393 {
394 swap$ "empty " swap$ * " in " * cite$ * warning$
395 }
396 { swap$
397 pop$
398 }
399 if$
400 }
401 if$
402 }
403 FUNCTION {format.eprint}
404 { eprint duplicate$ empty$
405 'skip$
406 { "\eprint"
407 archive empty$
408 'skip$
409 { "[" * archive * "]" * }
410 if$
411 "{" * swap$ * "}" *
412 }
413 if$
414 }
415 INTEGERS { nameptr namesleft numnames }
416
417
418 STRINGS { bibinfo}
419
420 FUNCTION {format.names}
421 { 'bibinfo :=
422 duplicate$ empty$ 'skip$ {
423 's :=
424 "" 't :=
425 #1 'nameptr :=
426 s num.names$ 'numnames :=
427 numnames 'namesleft :=
428 { namesleft #0 > }
429 { s nameptr
430 "{vv~}{ll}{, jj}{, f{.}.}"
431 format.name$
432 bibinfo bibinfo.check
433 't :=
434 nameptr #1 >
435 {
436 namesleft #1 >
437 { ", " * t * }
438 {
439 s nameptr "{ll}" format.name$ duplicate$ "others" =
440 { 't := }
441 { pop$ }
442 if$
443 numnames #2 >
444 t "others" = not and
445 { "," * }
446 'skip$
447 if$
448 t "others" =
449 {
450 bib.name.font
451 " " * bbl.etal emphasize *
452 }
453 {
454 bbl.and
455 space.word * t *
456 }
457 if$
458 }
459 if$
460 }
461 't
462 if$
463 nameptr #1 + 'nameptr :=
464 namesleft #1 - 'namesleft :=
465 }
466 while$
467 t "others" =
468 'skip$
469 { bib.name.font }
470 if$
471 } if$
472 }
473 FUNCTION {format.names.ed}
474 {
475 'bibinfo :=
476 duplicate$ empty$ 'skip$ {
477 's :=
478 "" 't :=
479 #1 'nameptr :=
480 s num.names$ 'numnames :=
481 numnames 'namesleft :=
482 { namesleft #0 > }
483 { s nameptr
484 "{f{.}.~}{vv~}{ll}{ jj}"
485 format.name$
486 bibinfo bibinfo.check
487 't :=
488 nameptr #1 >
489 {
490 namesleft #1 >
491 { ", " * t * }
492 {
493 s nameptr "{ll}" format.name$ duplicate$ "others" =
494 { 't := }
495 { pop$ }
496 if$
497 numnames #2 >
498 t "others" = not and
499 { "," * }
500 'skip$
501 if$
502 t "others" =
503 {
504
505 " " * bbl.etal emphasize *
506 }
507 {
508 bbl.and
509 space.word * t *
510 }
511 if$
512 }
513 if$
514 }
515 't
516 if$
517 nameptr #1 + 'nameptr :=
518 namesleft #1 - 'namesleft :=
519 }
520 while$
521 } if$
522 }
523 FUNCTION {format.key}
524 { empty$
525 { key field.or.null }
526 { "" }
527 if$
528 }
529
530 FUNCTION {format.authors}
531 { author "author" format.names
532 }
533 FUNCTION {get.bbl.editor}
534 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
535
536 FUNCTION {format.editors}
537 { editor "editor" format.names duplicate$ empty$ 'skip$
538 {
539 " " *
540 get.bbl.editor
541 "(" swap$ * ")" *
542 *
543 }
544 if$
545 }
546 FUNCTION {format.note}
547 {
548 note empty$
549 { "" }
550 { note #1 #1 substring$
551 duplicate$ "{" =
552 'skip$
553 { output.state mid.sentence =
554 { "l" }
555 { "u" }
556 if$
557 change.case$
558 }
559 if$
560 note #2 global.max$ substring$ * "note" bibinfo.check
561 }
562 if$
563 }
564
565 FUNCTION {format.title}
566 { title
567 "title" bibinfo.check
568 }
569 FUNCTION {format.full.names}
570 {'s :=
571 "" 't :=
572 #1 'nameptr :=
573 s num.names$ 'numnames :=
574 numnames 'namesleft :=
575 { namesleft #0 > }
576 { s nameptr
577 "{vv~}{ll}" format.name$
578 't :=
579 nameptr #1 >
580 {
581 namesleft #1 >
582 { ", " * t * }
583 {
584 s nameptr "{ll}" format.name$ duplicate$ "others" =
585 { 't := }
586 { pop$ }
587 if$
588 t "others" =
589 {
590 " " * bbl.etal emphasize *
591 }
592 {
593 numnames #2 >
594 { "," * }
595 'skip$
596 if$
597 bbl.and
598 space.word * t *
599 }
600 if$
601 }
602 if$
603 }
604 't
605 if$
606 nameptr #1 + 'nameptr :=
607 namesleft #1 - 'namesleft :=
608 }
609 while$
610 }
611
612 FUNCTION {author.editor.key.full}
613 { author empty$
614 { editor empty$
615 { key empty$
616 { cite$ #1 #3 substring$ }
617 'key
618 if$
619 }
620 { editor format.full.names }
621 if$
622 }
623 { author format.full.names }
624 if$
625 }
626
627 FUNCTION {author.key.full}
628 { author empty$
629 { key empty$
630 { cite$ #1 #3 substring$ }
631 'key
632 if$
633 }
634 { author format.full.names }
635 if$
636 }
637
638 FUNCTION {editor.key.full}
639 { editor empty$
640 { key empty$
641 { cite$ #1 #3 substring$ }
642 'key
643 if$
644 }
645 { editor format.full.names }
646 if$
647 }
648
649 FUNCTION {make.full.names}
650 { type$ "book" =
651 type$ "inbook" =
652 or
653 'author.editor.key.full
654 { type$ "proceedings" =
655 'editor.key.full
656 'author.key.full
657 if$
658 }
659 if$
660 }
661
662 FUNCTION {output.bibitem}
663 { newline$
664 "\bibitem[{" write$
665 label write$
666 ")" make.full.names duplicate$ short.list =
667 { pop$ }
668 { * }
669 if$
670 "}]{" * write$
671 cite$ write$
672 "}" write$
673 newline$
674 ""
675 before.all 'output.state :=
676 }
677
678 FUNCTION {n.dashify}
679 {
680 't :=
681 ""
682 { t empty$ not }
683 { t #1 #1 substring$ "-" =
684 { t #1 #2 substring$ "--" = not
685 { "--" *
686 t #2 global.max$ substring$ 't :=
687 }
688 { { t #1 #1 substring$ "-" = }
689 { "-" *
690 t #2 global.max$ substring$ 't :=
691 }
692 while$
693 }
694 if$
695 }
696 { t #1 #1 substring$ *
697 t #2 global.max$ substring$ 't :=
698 }
699 if$
700 }
701 while$
702 }
703
704 FUNCTION {word.in}
705 { bbl.in capitalize
706 " " * }
707
708 FUNCTION {format.date}
709 { year "year" bibinfo.check duplicate$ empty$
710 {
711 "empty year in " cite$ * "; set to ????" * warning$
712 pop$ "????"
713 }
714 'skip$
715 if$
716 extra.label *
717 before.all 'output.state :=
718 " (" swap$ * ")" *
719 }
720 FUNCTION {format.btitle}
721 { title "title" bibinfo.check
722 duplicate$ empty$ 'skip$
723 {
724 emphasize
725 }
726 if$
727 }
728 FUNCTION {either.or.check}
729 { empty$
730 'pop$
731 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
732 if$
733 }
734 FUNCTION {format.bvolume}
735 { volume empty$
736 { "" }
737 { bbl.volume volume tie.or.space.prefix
738 "volume" bibinfo.check * *
739 series "series" bibinfo.check
740 duplicate$ empty$ 'pop$
741 { emphasize ", " * swap$ * }
742 if$
743 "volume and number" number either.or.check
744 }
745 if$
746 }
747 FUNCTION {format.number.series}
748 { volume empty$
749 { number empty$
750 { series field.or.null }
751 { series empty$
752 { number "number" bibinfo.check }
753 { output.state mid.sentence =
754 { bbl.number }
755 { bbl.number capitalize }
756 if$
757 number tie.or.space.prefix "number" bibinfo.check * *
758 bbl.in space.word *
759 series "series" bibinfo.check *
760 }
761 if$
762 }
763 if$
764 }
765 { "" }
766 if$
767 }
768 FUNCTION {is.num}
769 { chr.to.int$
770 duplicate$ "0" chr.to.int$ < not
771 swap$ "9" chr.to.int$ > not and
772 }
773
774 FUNCTION {extract.num}
775 { duplicate$ 't :=
776 "" 's :=
777 { t empty$ not }
778 { t #1 #1 substring$
779 t #2 global.max$ substring$ 't :=
780 duplicate$ is.num
781 { s swap$ * 's := }
782 { pop$ "" 't := }
783 if$
784 }
785 while$
786 s empty$
787 'skip$
788 { pop$ s }
789 if$
790 }
791
792 FUNCTION {convert.edition}
793 { extract.num "l" change.case$ 's :=
794 s "first" = s "1" = or
795 { bbl.first 't := }
796 { s "second" = s "2" = or
797 { bbl.second 't := }
798 { s "third" = s "3" = or
799 { bbl.third 't := }
800 { s "fourth" = s "4" = or
801 { bbl.fourth 't := }
802 { s "fifth" = s "5" = or
803 { bbl.fifth 't := }
804 { s #1 #1 substring$ is.num
805 { s bbl.th * 't := }
806 { edition 't := }
807 if$
808 }
809 if$
810 }
811 if$
812 }
813 if$
814 }
815 if$
816 }
817 if$
818 t
819 }
820
821 FUNCTION {format.edition}
822 { edition duplicate$ empty$ 'skip$
823 {
824 convert.edition
825 output.state mid.sentence =
826 { "l" }
827 { "t" }
828 if$ change.case$
829 "edition" bibinfo.check
830 " " * bbl.edition *
831 }
832 if$
833 }
834 INTEGERS { multiresult }
835 FUNCTION {multi.page.check}
836 { 't :=
837 #0 'multiresult :=
838 { multiresult not
839 t empty$ not
840 and
841 }
842 { t #1 #1 substring$
843 duplicate$ "-" =
844 swap$ duplicate$ "," =
845 swap$ "+" =
846 or or
847 { #1 'multiresult := }
848 { t #2 global.max$ substring$ 't := }
849 if$
850 }
851 while$
852 multiresult
853 }
854 FUNCTION {format.pages}
855 { pages duplicate$ empty$ 'skip$
856 { duplicate$ multi.page.check
857 {
858 bbl.pages swap$
859 n.dashify
860 }
861 {
862 bbl.page swap$
863 }
864 if$
865 tie.or.space.prefix
866 "pages" bibinfo.check
867 * *
868 }
869 if$
870 }
871 FUNCTION {format.journal.pages}
872 { pages duplicate$ empty$ 'pop$
873 { swap$ duplicate$ empty$
874 { pop$ pop$ format.pages }
875 {
876 ":" *
877 swap$
878 n.dashify
879 "pages" bibinfo.check
880 *
881 }
882 if$
883 }
884 if$
885 }
886 FUNCTION {format.journal.eid}
887 { eid "eid" bibinfo.check
888 duplicate$ empty$ 'pop$
889 { swap$ duplicate$ empty$ 'skip$
890 {
891 ":" *
892 }
893 if$
894 swap$ *
895 }
896 if$
897 }
898 FUNCTION {format.vol.num.pages}
899 { volume field.or.null
900 duplicate$ empty$ 'skip$
901 {
902 "volume" bibinfo.check
903 }
904 if$
905 bolden
906 number "number" bibinfo.check duplicate$ empty$ 'skip$
907 {
908 swap$ duplicate$ empty$
909 { "there's a number but no volume in " cite$ * warning$ }
910 'skip$
911 if$
912 swap$
913 "(" swap$ * ")" *
914 }
915 if$ *
916 eid empty$
917 { format.journal.pages }
918 { format.journal.eid }
919 if$
920 }
921
922 FUNCTION {format.chapter.pages}
923 { chapter empty$
924 'format.pages
925 { type empty$
926 { bbl.chapter }
927 { type "l" change.case$
928 "type" bibinfo.check
929 }
930 if$
931 chapter tie.or.space.prefix
932 "chapter" bibinfo.check
933 * *
934 pages empty$
935 'skip$
936 { ", " * format.pages * }
937 if$
938 }
939 if$
940 }
941
942 FUNCTION {format.booktitle}
943 {
944 booktitle "booktitle" bibinfo.check
945 emphasize
946 }
947 FUNCTION {format.in.ed.booktitle}
948 { format.booktitle duplicate$ empty$ 'skip$
949 {
950 editor "editor" format.names.ed duplicate$ empty$ 'pop$
951 {
952 " " *
953 get.bbl.editor
954 "(" swap$ * "), " *
955 * swap$
956 * }
957 if$
958 word.in swap$ *
959 }
960 if$
961 }
962 FUNCTION {format.thesis.type}
963 { type duplicate$ empty$
964 'pop$
965 { swap$ pop$
966 "t" change.case$ "type" bibinfo.check
967 }
968 if$
969 }
970 FUNCTION {format.tr.number}
971 { number "number" bibinfo.check
972 type duplicate$ empty$
973 { pop$ bbl.techrep }
974 'skip$
975 if$
976 "type" bibinfo.check
977 swap$ duplicate$ empty$
978 { pop$ "t" change.case$ }
979 { tie.or.space.prefix * * }
980 if$
981 }
982 FUNCTION {format.article.crossref}
983 {
984 word.in
985 " \cite{" * crossref * "}" *
986 }
987 FUNCTION {format.book.crossref}
988 { volume duplicate$ empty$
989 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
990 pop$ word.in
991 }
992 { bbl.volume
993 capitalize
994 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
995 }
996 if$
997 " \cite{" * crossref * "}" *
998 }
999 FUNCTION {format.incoll.inproc.crossref}
1000 {
1001 word.in
1002 " \cite{" * crossref * "}" *
1003 }
1004 FUNCTION {format.org.or.pub}
1005 { 't :=
1006 ""
1007 address empty$ t empty$ and
1008 'skip$
1009 {
1010 t empty$
1011 { address "address" bibinfo.check *
1012 }
1013 { t *
1014 address empty$
1015 'skip$
1016 { ", " * address "address" bibinfo.check * }
1017 if$
1018 }
1019 if$
1020 }
1021 if$
1022 }
1023 FUNCTION {format.publisher.address}
1024 { publisher "publisher" bibinfo.warn format.org.or.pub
1025 }
1026
1027 FUNCTION {format.organization.address}
1028 { organization "organization" bibinfo.check format.org.or.pub
1029 }
1030
1031 FUNCTION {article}
1032 { output.bibitem
1033 format.authors "author" output.check
1034 author format.key output
1035 new.block
1036 format.title "title" output.check
1037 new.block
1038 crossref missing$
1039 {
1040 journal
1041 "journal" bibinfo.check
1042 emphasize
1043 "journal" output.check
1044 add.blank
1045 format.vol.num.pages output
1046 format.date "year" output.check
1047 }
1048 { format.article.crossref output.nonnull
1049 format.pages output
1050 }
1051 if$
1052 new.block
1053 format.note output
1054 format.eprint output
1055 fin.entry
1056 }
1057 FUNCTION {book}
1058 { output.bibitem
1059 author empty$
1060 { format.editors "author and editor" output.check
1061 editor format.key output
1062 }
1063 { format.authors output.nonnull
1064 crossref missing$
1065 { "author and editor" editor either.or.check }
1066 'skip$
1067 if$
1068 }
1069 if$
1070 new.block
1071 format.btitle "title" output.check
1072 crossref missing$
1073 { format.bvolume output
1074 new.block
1075 format.number.series output
1076 format.edition output
1077 new.sentence
1078 format.publisher.address output
1079 }
1080 {
1081 new.block
1082 format.book.crossref output.nonnull
1083 }
1084 if$
1085 format.date "year" output.check
1086 new.block
1087 format.note output
1088 format.eprint output
1089 fin.entry
1090 }
1091 FUNCTION {booklet}
1092 { output.bibitem
1093 format.authors output
1094 author format.key output
1095 new.block
1096 format.title "title" output.check
1097 new.block
1098 howpublished "howpublished" bibinfo.check output
1099 address "address" bibinfo.check output
1100 format.date "year" output.check
1101 new.block
1102 format.note output
1103 format.eprint output
1104 fin.entry
1105 }
1106
1107 FUNCTION {inbook}
1108 { output.bibitem
1109 author empty$
1110 { format.editors "author and editor" output.check
1111 editor format.key output
1112 }
1113 { format.authors output.nonnull
1114 crossref missing$
1115 { "author and editor" editor either.or.check }
1116 'skip$
1117 if$
1118 }
1119 if$
1120 new.block
1121 format.btitle "title" output.check
1122 crossref missing$
1123 {
1124 format.bvolume output
1125 format.chapter.pages "chapter and pages" output.check
1126 new.block
1127 format.number.series output
1128 format.edition output
1129 new.sentence
1130 format.publisher.address output
1131 }
1132 {
1133 format.chapter.pages "chapter and pages" output.check
1134 new.block
1135 format.book.crossref output.nonnull
1136 }
1137 if$
1138 format.date "year" output.check
1139 new.block
1140 format.note output
1141 format.eprint output
1142 fin.entry
1143 }
1144
1145 FUNCTION {incollection}
1146 { output.bibitem
1147 format.authors "author" output.check
1148 author format.key output
1149 new.block
1150 format.title "title" output.check
1151 new.block
1152 crossref missing$
1153 { format.in.ed.booktitle "booktitle" output.check
1154 format.bvolume output
1155 format.number.series output
1156 format.edition output
1157 format.chapter.pages output
1158 new.sentence
1159 format.publisher.address output
1160 format.date "year" output.check
1161 }
1162 { format.incoll.inproc.crossref output.nonnull
1163 format.chapter.pages output
1164 }
1165 if$
1166 new.block
1167 format.note output
1168 format.eprint output
1169 fin.entry
1170 }
1171 FUNCTION {inproceedings}
1172 { output.bibitem
1173 format.authors "author" output.check
1174 author format.key output
1175 new.block
1176 format.title "title" output.check
1177 new.block
1178 crossref missing$
1179 { format.in.ed.booktitle "booktitle" output.check
1180 format.bvolume output
1181 format.number.series output
1182 format.pages output
1183 new.sentence
1184 publisher empty$
1185 { format.organization.address output }
1186 { organization "organization" bibinfo.check output
1187 format.publisher.address output
1188 }
1189 if$
1190 format.date "year" output.check
1191 }
1192 { format.incoll.inproc.crossref output.nonnull
1193 format.pages output
1194 }
1195 if$
1196 new.block
1197 format.note output
1198 format.eprint output
1199 fin.entry
1200 }
1201 FUNCTION {conference} { inproceedings }
1202 FUNCTION {manual}
1203 { output.bibitem
1204 format.authors output
1205 author format.key output
1206 new.block
1207 format.btitle "title" output.check
1208 organization address new.block.checkb
1209 organization "organization" bibinfo.check output
1210 address "address" bibinfo.check output
1211 format.edition output
1212 format.date "year" output.check
1213 new.block
1214 format.note output
1215 format.eprint output
1216 fin.entry
1217 }
1218
1219 FUNCTION {mastersthesis}
1220 { output.bibitem
1221 format.authors "author" output.check
1222 author format.key output
1223 new.block
1224 format.btitle
1225 "title" output.check
1226 new.block
1227 bbl.mthesis format.thesis.type output.nonnull
1228 school "school" bibinfo.warn output
1229 address "address" bibinfo.check output
1230 format.date "year" output.check
1231 new.block
1232 format.note output
1233 format.eprint output
1234 fin.entry
1235 }
1236
1237 FUNCTION {misc}
1238 { output.bibitem
1239 format.authors output
1240 author format.key output
1241 new.block
1242 format.title output
1243 new.block
1244 howpublished "howpublished" bibinfo.check output
1245 format.date "year" output.check
1246 new.block
1247 format.note output
1248 format.eprint output
1249 fin.entry
1250 }
1251 FUNCTION {phdthesis}
1252 { output.bibitem
1253 format.authors "author" output.check
1254 author format.key output
1255 new.block
1256 format.btitle
1257 "title" output.check
1258 new.block
1259 bbl.phdthesis format.thesis.type output.nonnull
1260 school "school" bibinfo.warn output
1261 address "address" bibinfo.check output
1262 format.date "year" output.check
1263 new.block
1264 format.note output
1265 format.eprint output
1266 fin.entry
1267 }
1268
1269 FUNCTION {proceedings}
1270 { output.bibitem
1271 format.editors output
1272 editor format.key output
1273 new.block
1274 format.btitle "title" output.check
1275 format.bvolume output
1276 format.number.series output
1277 new.sentence
1278 publisher empty$
1279 { format.organization.address output }
1280 { organization "organization" bibinfo.check output
1281 format.publisher.address output
1282 }
1283 if$
1284 format.date "year" output.check
1285 new.block
1286 format.note output
1287 format.eprint output
1288 fin.entry
1289 }
1290
1291 FUNCTION {techreport}
1292 { output.bibitem
1293 format.authors "author" output.check
1294 author format.key output
1295 new.block
1296 format.title
1297 "title" output.check
1298 new.block
1299 format.tr.number output.nonnull
1300 institution "institution" bibinfo.warn output
1301 address "address" bibinfo.check output
1302 format.date "year" output.check
1303 new.block
1304 format.note output
1305 format.eprint output
1306 fin.entry
1307 }
1308
1309 FUNCTION {unpublished}
1310 { output.bibitem
1311 format.authors "author" output.check
1312 author format.key output
1313 new.block
1314 format.title "title" output.check
1315 format.date "year" output.check
1316 new.block
1317 format.note "note" output.check
1318 format.eprint output
1319 fin.entry
1320 }
1321
1322 FUNCTION {default.type} { misc }
1323 READ
1324 FUNCTION {sortify}
1325 { purify$
1326 "l" change.case$
1327 }
1328 INTEGERS { len }
1329 FUNCTION {chop.word}
1330 { 's :=
1331 'len :=
1332 s #1 len substring$ =
1333 { s len #1 + global.max$ substring$ }
1334 's
1335 if$
1336 }
1337 FUNCTION {format.lab.names}
1338 { 's :=
1339 "" 't :=
1340 s #1 "{vv~}{ll}" format.name$
1341 s num.names$ duplicate$
1342 #2 >
1343 { pop$
1344 " " * bbl.etal emphasize *
1345 }
1346 { #2 <
1347 'skip$
1348 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1349 {
1350 " " * bbl.etal emphasize *
1351 }
1352 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
1353 * }
1354 if$
1355 }
1356 if$
1357 }
1358 if$
1359 }
1360
1361 FUNCTION {author.key.label}
1362 { author empty$
1363 { key empty$
1364 { cite$ #1 #3 substring$ }
1365 'key
1366 if$
1367 }
1368 { author format.lab.names }
1369 if$
1370 }
1371
1372 FUNCTION {author.editor.key.label}
1373 { author empty$
1374 { editor empty$
1375 { key empty$
1376 { cite$ #1 #3 substring$ }
1377 'key
1378 if$
1379 }
1380 { editor format.lab.names }
1381 if$
1382 }
1383 { author format.lab.names }
1384 if$
1385 }
1386
1387 FUNCTION {editor.key.label}
1388 { editor empty$
1389 { key empty$
1390 { cite$ #1 #3 substring$ }
1391 'key
1392 if$
1393 }
1394 { editor format.lab.names }
1395 if$
1396 }
1397
1398 FUNCTION {calc.short.authors}
1399 { type$ "book" =
1400 type$ "inbook" =
1401 or
1402 'author.editor.key.label
1403 { type$ "proceedings" =
1404 'editor.key.label
1405 'author.key.label
1406 if$
1407 }
1408 if$
1409 'short.list :=
1410 }
1411
1412 FUNCTION {calc.label}
1413 { calc.short.authors
1414 short.list
1415 "("
1416 *
1417 year duplicate$ empty$
1418 short.list key field.or.null = or
1419 { pop$ "" }
1420 'skip$
1421 if$
1422 *
1423 'label :=
1424 }
1425
1426 FUNCTION {sort.format.names}
1427 { 's :=
1428 #1 'nameptr :=
1429 ""
1430 s num.names$ 'numnames :=
1431 numnames 'namesleft :=
1432 { namesleft #0 > }
1433 { s nameptr
1434 "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}"
1435 format.name$ 't :=
1436 nameptr #1 >
1437 {
1438 " " *
1439 namesleft #1 = t "others" = and
1440 { "zzzzz" * }
1441 { numnames #2 > nameptr #2 = and
1442 { "zz" * year field.or.null * " " * }
1443 'skip$
1444 if$
1445 t sortify *
1446 }
1447 if$
1448 }
1449 { t sortify * }
1450 if$
1451 nameptr #1 + 'nameptr :=
1452 namesleft #1 - 'namesleft :=
1453 }
1454 while$
1455 }
1456
1457 FUNCTION {sort.format.title}
1458 { 't :=
1459 "A " #2
1460 "An " #3
1461 "The " #4 t chop.word
1462 chop.word
1463 chop.word
1464 sortify
1465 #1 global.max$ substring$
1466 }
1467 FUNCTION {author.sort}
1468 { author empty$
1469 { key empty$
1470 { "to sort, need author or key in " cite$ * warning$
1471 ""
1472 }
1473 { key sortify }
1474 if$
1475 }
1476 { author sort.format.names }
1477 if$
1478 }
1479 FUNCTION {author.editor.sort}
1480 { author empty$
1481 { editor empty$
1482 { key empty$
1483 { "to sort, need author, editor, or key in " cite$ * warning$
1484 ""
1485 }
1486 { key sortify }
1487 if$
1488 }
1489 { editor sort.format.names }
1490 if$
1491 }
1492 { author sort.format.names }
1493 if$
1494 }
1495 FUNCTION {editor.sort}
1496 { editor empty$
1497 { key empty$
1498 { "to sort, need editor or key in " cite$ * warning$
1499 ""
1500 }
1501 { key sortify }
1502 if$
1503 }
1504 { editor sort.format.names }
1505 if$
1506 }
1507 FUNCTION {presort}
1508 { calc.label
1509 label sortify
1510 " "
1511 *
1512 type$ "book" =
1513 type$ "inbook" =
1514 or
1515 'author.editor.sort
1516 { type$ "proceedings" =
1517 'editor.sort
1518 'author.sort
1519 if$
1520 }
1521 if$
1522 #1 entry.max$ substring$
1523 'sort.label :=
1524 sort.label
1525 *
1526 " "
1527 *
1528 title field.or.null
1529 sort.format.title
1530 *
1531 #1 entry.max$ substring$
1532 'sort.key$ :=
1533 }
1534
1535 ITERATE {presort}
1536 SORT
1537 STRINGS { last.label next.extra }
1538 INTEGERS { last.extra.num number.label }
1539 FUNCTION {initialize.extra.label.stuff}
1540 { #0 int.to.chr$ 'last.label :=
1541 "" 'next.extra :=
1542 #0 'last.extra.num :=
1543 #0 'number.label :=
1544 }
1545 FUNCTION {forward.pass}
1546 { last.label label =
1547 { last.extra.num #1 + 'last.extra.num :=
1548 last.extra.num int.to.chr$ 'extra.label :=
1549 }
1550 { "a" chr.to.int$ 'last.extra.num :=
1551 "" 'extra.label :=
1552 label 'last.label :=
1553 }
1554 if$
1555 number.label #1 + 'number.label :=
1556 }
1557 FUNCTION {reverse.pass}
1558 { next.extra "b" =
1559 { "a" 'extra.label := }
1560 'skip$
1561 if$
1562 extra.label 'next.extra :=
1563 extra.label
1564 duplicate$ empty$
1565 'skip$
1566 { "{\natexlab{" swap$ * "}}" * }
1567 if$
1568 'extra.label :=
1569 label extra.label * 'label :=
1570 }
1571 EXECUTE {initialize.extra.label.stuff}
1572 ITERATE {forward.pass}
1573 REVERSE {reverse.pass}
1574 FUNCTION {bib.sort.order}
1575 { sort.label
1576 " "
1577 *
1578 year field.or.null sortify
1579 *
1580 " "
1581 *
1582 title field.or.null
1583 sort.format.title
1584 *
1585 #1 entry.max$ substring$
1586 'sort.key$ :=
1587 }
1588 ITERATE {bib.sort.order}
1589 SORT
1590 FUNCTION {begin.bib}
1591 { preamble$ empty$
1592 'skip$
1593 { preamble$ write$ newline$ }
1594 if$
1595 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1596 write$ newline$
1597 "\providecommand{\natexlab}[1]{#1}"
1598 write$ newline$
1599 "\providecommand{\url}[1]{\texttt{#1}}"
1600 write$ newline$
1601 "\providecommand{\urlprefix}{URL }"
1602 write$ newline$
1603 "\providecommand{\eprint}[2][]{\url{#2}}"
1604 write$ newline$
1605 }
1606 EXECUTE {begin.bib}
1607 EXECUTE {init.state.consts}
1608 ITERATE {call.type$}
1609 FUNCTION {end.bib}
1610 { newline$
1611 "\end{thebibliography}" write$ newline$
1612 }
1613 EXECUTE {end.bib}
1614 %% End of customized bst file
1615 %%
1616 %% End of file `UNAMThesis.bst'.