% BibTeX standard bibliography style `plain' % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09. % Copyright (C) 1985, all rights reserved. % Copying of this file is authorized only if either % (1) you make absolutely no changes to your copy, including name, or % (2) if you do make changes, you name it something other than % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst. % This restriction helps ensure that all standard styles are identical. % The file btxbst.doc has the documentation for this style. ENTRY { address author booktitle chapter edition editor howpublished institution journal key month note number organization pages publisher school series title type volume year } { author.duplicate author.shared } { label } INTEGERS { output.state before.all mid.sentence after.sentence after.block after.title author.different author.last author.flast } % Rearranged such that true values require capital letters FUNCTION {init.consts} { #-1 'after.title := #0 'mid.sentence := #1 'before.all := #2 'after.sentence := #3 'after.block := #0 'author.different := #1 'author.last := #2 'author.flast := %#3 'author.firstlast := } STRINGS { s t u } % Added u % Puts the period inside any quotes FUNCTION {do.period} { duplicate$ #-1 #3 substring$ "'''" = { duplicate$ text.length$ #3 - text.prefix$ add.period$ "'\thinspace''" * } { duplicate$ #-1 #3 substring$ "''}" = { #2 global.max$ substring$ duplicate$ text.length$ #2 - text.prefix$ add.period$ "{" swap$ * "''}" * } { duplicate$ #-1 #2 substring$ "''" = { duplicate$ text.length$ #2 - text.prefix$ add.period$ "''" * } { add.period$ } if$ } if$ } if$ } % Switched to do.period and added after.title FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.block = { do.period write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.title = { " " * write$ } { do.period " " * write$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } % Switched to do.period FUNCTION {fin.entry} { do.period write$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { after.block 'output.state := } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { after.sentence 'output.state := } if$ } if$ } %FUNCTION {no.comma} %{ output.state after.block = % 'skip$ % { output.state before.all = % 'skip$ % { after.title 'output.state := } % if$ % } % if$ %} FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {new.sentence.checkb} { empty$ swap$ empty$ and 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "{\em " swap$ * "}" * } if$ } INTEGERS { nameptr namesleft numnames } FUNCTION {format.names.custom} { 'u := 's := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr u format.name$ 't := nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.names} { "{ff~}{vv~}{ll}{, jj}" format.names.custom } % Changed first author to last name first FUNCTION {format.names.beginning} { 's := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { nameptr #1 = { s nameptr "{vv~}{ll}{, ff}{, jj}" format.name$ duplicate$ #1 #1 substring$ "u" change.case$ swap$ duplicate$ #-1 swap$ text.length$ #1 - substring$ * 't := } { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := } if$ nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "," * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } 't if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } % Added check for duplicate authors FUNCTION {format.authors} { author empty$ { "" } { author.duplicate #1 = { "-{}-{}-" } { author format.names.beginning } if$ } if$ } % Changed to MLA editor abbreviations % author.duplicate also applies FUNCTION {format.editors} { editor empty$ { "" } { author empty$ author.duplicate #1 = and { "-{}-{}-" } { editor format.names.beginning } if$ editor num.names$ #1 > { ", eds." * } { ", ed." * } if$ } if$ } FUNCTION {format.editors.mid} { editor empty$ { "" } { editor num.names$ #1 > { "Eds.\ " } { "Ed.\ " } if$ editor format.names * } if$ } % Formats the address and publisher FUNCTION {format.publisher} { address empty$ { publisher } { address ": " * publisher * } if$ } % Changed to preserve case and use quotes FUNCTION {format.title} { title empty$ { "" } { title #1 text.prefix$ "`" = { "``\thinspace" title * "''" * } { "``" title * "''" *} if$ } if$ } FUNCTION {n.dashify} { 't := "" { t empty$ not } { t #1 #1 substring$ "-" = { t #1 #2 substring$ "--" = not { "--" * t #2 global.max$ substring$ 't := } { { t #1 #1 substring$ "-" = } { "-" * t #2 global.max$ substring$ 't := } while$ } if$ } { t #1 #1 substring$ * t #2 global.max$ substring$ 't := } if$ } while$ } FUNCTION {format.date} { year empty$ { month empty$ { "" } { "there's a month but no year in " cite$ * warning$ month } if$ } { month empty$ 'year { month " " * year * } if$ } if$ } FUNCTION {format.btitle} { title emphasize } FUNCTION {tie.or.space.connect} { duplicate$ text.length$ #3 < { "~" } { "\ " } if$ swap$ * * } FUNCTION {either.or.check} { empty$ 'pop$ { "can't use both " swap$ * " fields in " * cite$ * warning$ } if$ } FUNCTION {format.bvolume.or.num.series} { volume empty$ { number empty$ { series field.or.null } { series empty$ { number "there's a number but no series in " cite$ * warning$ } { series %output.state mid.sentence = %{ " Sers." * } %{ "Sers." * } %if$ number tie.or.space.connect } if$ } if$ } { "Vol." volume tie.or.space.connect series empty$ 'skip$ { " of " * series emphasize * add.period$ } if$ number empty$ 'skip$ { number * " vols." * } if$ %"volume and number" number either.or.check } if$ } FUNCTION {format.number.series} { volume empty$ { "" } { "" } if$ } % Changed edition to MLA abbreviation FUNCTION {format.edition} { edition empty$ { "" } { edition "l" change.case$ 's := edition 't := "" "9th" "ninth" "8th" "eighth" "7th" "seventh" "6th" "sixth" "5th" "fifth" "4th" "fourth" "3rd" "third" "2nd" "second" "1st" "first" {duplicate$ empty$ { pop$ #0 }{ #1 } if$ }{ s = { 't := }{ pop$ } if$ } while$ % output.state mid.sentence = % { edition "l" change.case$ " ed." * } % { edition "t" change.case$ " ed." * } % if$ t " ed." * } if$ } INTEGERS { multiresult } FUNCTION {multi.page.check} { 't := #0 'multiresult := { multiresult not t empty$ not and } { t #1 #1 substring$ duplicate$ "-" = swap$ duplicate$ "," = swap$ "+" = or or { #1 'multiresult := } { t #2 global.max$ substring$ 't := } if$ } while$ multiresult } FUNCTION {format.pages} { pages empty$ { "" } { %pages multi.page.check % { "pages" pages n.dashify tie.or.space.connect } % { "page" pages tie.or.space.connect } % if$ pages n.dashify } if$ } FUNCTION {format.vol.num.year.pages} { volume empty$ { number empty$ 'skip$ { "there's a number but no volume in " cite$ * warning$ } if$ format.date } { volume number empty$ 'skip$ { "." * number * } if$ " (" * format.date * ")" * } if$ edition empty$ 'skip$ { ", " * format.edition * } if$ pages empty$ 'skip$ { ": " * pages n.dashify * } if$ } FUNCTION {format.vol.num.pages} { volume field.or.null number empty$ 'skip$ { "(" number * ")" * * volume empty$ { "there's a number but no volume in " cite$ * warning$ } 'skip$ if$ } if$ pages empty$ 'skip$ { duplicate$ empty$ { pop$ format.pages } { ":" * pages n.dashify * } if$ } if$ } % chapter might be useful if type is set to "pars." FUNCTION {format.chapter.pages} { chapter empty$ 'format.pages { type empty$ { "Chapter" } { type "t" change.case$ } if$ chapter n.dashify tie.or.space.connect pages empty$ 'skip$ { ", " * format.pages * } if$ } if$ } FUNCTION {format.in.ed.booktitle} { booktitle empty$ { "" } { editor empty$ { "In " booktitle emphasize * } { booktitle emphasize add.period$ format.editors.mid * } if$ } if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ howpublished empty$ month empty$ year empty$ note empty$ and and and and and key empty$ not and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {format.thesis.type} { type empty$ 'skip$ { pop$ type "t" change.case$ } if$ } FUNCTION {format.tr.number} { type empty$ { "Technical Report" } 'type if$ number empty$ { "t" change.case$ } { number tie.or.space.connect } if$ } FUNCTION {format.article.crossref} { %key empty$ %{ journal empty$ %{ "need key or journal for " cite$ * " to crossref " * crossref * % warning$ % "" %} %{ "In {\em " journal * "\/}" * } %if$ %} %{ "In " key * } %if$ pages empty$ { " \citeN" } { " \citeN[" format.chapter.pages * "]" * } if$ "{" * crossref * "}" * } FUNCTION {format.crossref.editor} { editor #1 "{vv~}{ll}" format.name$ editor num.names$ duplicate$ #2 > { pop$ " et~al." * } { #2 < 'skip$ { editor #2 "{ff }{vv }{ll}{, jj}" format.name$ "others" = { " et~al." * } { " and " * editor #2 "{vv~}{ll}" format.name$ * } if$ } if$ } if$ } FUNCTION {format.book.crossref} {% volume empty$ % { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ % "In " % } % { "Vol." volume tie.or.space.connect add.period$ % } % if$ % editor empty$ % editor field.or.null author field.or.null = % or % { key empty$ % { series empty$ %{ "need editor, key, or series for " cite$ * " to crossref " * % crossref * warning$ % "" * %} %{ "{\em " * series * "\/}" * } %if$ % } % { key * } % if$ % } % { format.crossref.editor * } % if$ %" \citeN{" * crossref * "}" * pages empty$ { " \citeN" } { " \citeN[" format.chapter.pages * "]" * } if$ "{" * crossref * "}" * } FUNCTION {format.incoll.inproc.crossref} {% editor empty$ % editor field.or.null author field.or.null = % or % { key empty$ % { booktitle empty$ % { "need editor, key, or booktitle for " cite$ * " to crossref " * % crossref * warning$ % "" % } % { "In {\em " booktitle * "\/}" * } % if$ % } % { "In " key * } % if$ % } % { "In " format.crossref.editor * } % if$ % " \citeN{" * crossref * "}" * pages empty$ { " \citeN" } { " \citeN[" format.chapter.pages * "]" * } if$ "{" * crossref * "}" * } FUNCTION {cite.title} { title empty$ journal empty$ not and { key empty$ { journal }{ key } if$ emphasize } { title empty$ key empty$ and { "empty title and key in " cite$ * warning$ "" } { key empty$ {title}{key} if$ type$ "book" = type$ "inbook" = type$ "manual" = type$ "phdthesis" = type$ "proceedings" = or or or or { emphasize } { type$ "article" = %type$ "booklet" = type$ "incollection" = type$ "inproceedings" = type$ "mastersthesis" = type$ "misc" = type$ "techreport" = type$ "unpublished" = or or or or or or {"``" swap$ * "''" * } {} if$ } if$ } if$ } if$ } FUNCTION {cite.label} { %author empty$ % { editor empty$ { organization field.or.null 'a := }{ editor 'a :=} if$} % { author 'a := } %if$ %abbr empty$ { author empty$ { editor empty$ { "" } { editor } if$ } { author } if$ duplicate$ empty$ { pop$ cite.title } { author.shared author.different = { "{vv~}{ll}" format.names.custom } { author.shared author.last = { "{f.~}{vv~}{ll}{, jj}" format.names.custom } { author.shared author.flast = { "{ff~}{vv~}{ll}{, jj}" format.names.custom } { "{vv~}{ll}" format.names.custom ", " * cite.title * } if$ } if$ } if$ author.duplicate { ", " * cite.title * }{} if$ } if$ %} %if$ %} %{}% abbr } % if$ } % TODO FUNCTION {output.bibitem} { newline$ "\bibitem[" write$ cite.label write$ "]{" write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {article} { output.bibitem format.authors "author" output.check new.block format.title "title" output.check new.block crossref missing$ { journal emphasize "journal" output.check after.title 'output.state := %format.date "year" output.check %edition output format.vol.num.year.pages output } { format.article.crossref output.nonnull %format.pages output } if$ new.block note output fin.entry } FUNCTION {book} { output.bibitem author empty$ { format.editors "author and editor" output.check } { format.authors output.nonnull } if$ new.block format.btitle "title" output.check new.sentence crossref missing$ { author empty$ 'skip$ { format.editors.mid output new.sentence } if$ format.edition output new.sentence format.bvolume.or.num.series output new.block format.publisher "publisher" output.check format.date "year" output.check } {% format.date "year" output new.block format.book.crossref output.nonnull } if$ new.block note output fin.entry } FUNCTION {booklet} { output.bibitem format.authors output new.block format.title "title" output.check howpublished address new.block.checkb howpublished output address output format.date output new.block note output fin.entry } FUNCTION {inbook} { output.bibitem author empty$ { format.editors "author and editor" output.check } { format.authors output.nonnull } if$ new.block format.btitle "title" output.check new.block crossref missing$ { author empty$ 'skip$ { format.editors.mid output new.sentence } if$ format.edition output new.sentence format.bvolume.or.num.series output new.block format.publisher "publisher" output.check format.date "year" output.check new.sentence format.chapter.pages "chapter and pages" output.check %address output } {% format.chapter.pages "chapter and pages" output.check new.block format.book.crossref output.nonnull } if$ note output fin.entry } FUNCTION {incollection} { output.bibitem format.authors "author" output.check chapter empty$ { new.block type output } {} if$ new.block format.title "title" output.check new.block crossref missing$ { booktitle emphasize "booktitle" output.check new.sentence format.editors.mid "editor" output.check new.block format.edition output new.sentence format.bvolume.or.num.series output new.block format.publisher "publisher" output.check %address output format.date "year" output.check new.sentence format.chapter.pages output } { format.incoll.inproc.crossref output.nonnull %format.chapter.pages output } if$ new.block note output fin.entry } FUNCTION {inproceedings} { output.bibitem format.authors "author" output.check new.block format.title "title" output.check new.block crossref missing$ { %format.in.ed.booktitle "booktitle" output.check booktitle "booktitle" output.check new.sentence format.editors.mid output new.sentence format.edition output new.sentence format.bvolume.or.num.series output new.block format.edition output new.sentence format.publisher output format.date "year" output.check %address empty$ %{ organization publisher new.sentence.checkb % organization output % publisher output % format.date "year" output.check %} %{ address output.nonnull % format.date "year" output.check % new.sentence % organization output % publisher output %} %if$ new.sentence format.pages output } { format.incoll.inproc.crossref output.nonnull %format.pages output } if$ new.block note output fin.entry } FUNCTION {conference} { inproceedings } FUNCTION {manual} { output.bibitem author empty$ { organization empty$ 'skip$ { organization output.nonnull address output } if$ } { format.authors output.nonnull } if$ new.block format.btitle "title" output.check new.sentence format.edition output new.sentence author empty$ { organization empty$ { address new.block.checka address output } 'skip$ if$ } { organization address new.block.checkb organization output address output } if$ format.date output new.block note output fin.entry } FUNCTION {mastersthesis} { output.bibitem format.authors "author" output.check new.block format.title "title" output.check new.block "Diss." format.thesis.type output.nonnull after.title 'output.state := school "school" output.check address output format.date "year" output.check new.block note output fin.entry } FUNCTION {misc} { output.bibitem format.authors output title howpublished new.block.checkb format.title output after.sentence 'output.state := howpublished new.block.checka howpublished output format.date output new.block note output fin.entry empty.misc.check } FUNCTION {phdthesis} { output.bibitem format.authors "author" output.check new.block format.btitle "title" output.check new.block "Diss." format.thesis.type output.nonnull after.title 'output.state := school "school" output.check address output format.date "year" output.check new.block note output fin.entry } FUNCTION {proceedings} { output.bibitem editor empty$ { organization output } { format.editors output.nonnull } if$ new.block format.btitle "title" output.check new.sentence format.bvolume.or.num.series output address empty$ { editor empty$ { publisher new.sentence.checka } { organization publisher new.sentence.checkb organization output } if$ publisher output format.date "year" output.check } { address output.nonnull format.date "year" output.check new.sentence editor empty$ 'skip$ { organization output } if$ publisher output } if$ new.block note output fin.entry } FUNCTION {techreport} { output.bibitem format.authors "author" output.check new.block format.title "title" output.check new.block format.tr.number output.nonnull institution "institution" output.check address output format.date "year" output.check new.block note output fin.entry } FUNCTION {unpublished} { output.bibitem format.authors "author" output.check new.block format.title "title" output.check new.block note "note" output.check format.date output fin.entry } FUNCTION {default.type} { misc } MACRO {jan} {"Jan."} MACRO {feb} {"Feb."} MACRO {mar} {"Mar."} MACRO {apr} {"Apr."} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"Aug."} MACRO {sep} {"Sept."} MACRO {oct} {"Oct."} MACRO {nov} {"Nov."} MACRO {dec} {"Dec."} MACRO {acmcs} {"ACM Computing Surveys"} MACRO {acta} {"Acta Informatica"} MACRO {cacm} {"Communications of the ACM"} MACRO {ibmjrd} {"IBM Journal of Research and Development"} MACRO {ibmsj} {"IBM Systems Journal"} MACRO {ieeese} {"IEEE Transactions on Software Engineering"} MACRO {ieeetc} {"IEEE Transactions on Computers"} MACRO {ieeetcad} {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} MACRO {ipl} {"Information Processing Letters"} MACRO {jacm} {"Journal of the ACM"} MACRO {jcss} {"Journal of Computer and System Sciences"} MACRO {scp} {"Science of Computer Programming"} MACRO {sicomp} {"SIAM Journal on Computing"} MACRO {tocs} {"ACM Transactions on Computer Systems"} MACRO {tods} {"ACM Transactions on Database Systems"} MACRO {tog} {"ACM Transactions on Graphics"} MACRO {toms} {"ACM Transactions on Mathematical Software"} MACRO {toois} {"ACM Transactions on Office Information Systems"} MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} MACRO {tcs} {"Theoretical Computer Science"} READ FUNCTION {sortify} { purify$ "l" change.case$ } INTEGERS { len } FUNCTION {chop.word} { 's := 'len := s #1 len substring$ = { s len #1 + global.max$ substring$ } 's if$ } FUNCTION {sort.format.names} { 's := #1 'nameptr := "" s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { nameptr #1 > { " " * } 'skip$ if$ s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := nameptr numnames = t "others" = and { "et al" * } { t sortify * } if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {sort.format.title} { 't := "A " #2 "An " #3 "The " #4 t chop.word chop.word chop.word sortify #1 global.max$ substring$ } FUNCTION {author.sort} { author empty$ { key empty$ { "to sort, need author or key in " cite$ * warning$ "" } { key sortify } if$ } { author sort.format.names } if$ } FUNCTION {author.editor.sort} { author empty$ { editor empty$ { key empty$ { "to sort, need author, editor, or key in " cite$ * warning$ "" } { key sortify } if$ } { editor sort.format.names } if$ } { author sort.format.names } if$ } FUNCTION {author.organization.sort} { author empty$ { organization empty$ { key empty$ { "to sort, need author, organization, or key in " cite$ * warning$ "" } { key sortify } if$ } { "The " #4 organization chop.word sortify } if$ } { author sort.format.names } if$ } FUNCTION {editor.organization.sort} { editor empty$ { organization empty$ { key empty$ { "to sort, need editor, organization, or key in " cite$ * warning$ "" } { key sortify } if$ } { "The " #4 organization chop.word sortify } if$ } { editor sort.format.names } if$ } FUNCTION {presort} { type$ "book" = type$ "inbook" = or 'author.editor.sort { type$ "proceedings" = 'editor.organization.sort { type$ "manual" = 'author.organization.sort 'author.sort if$ } if$ } if$ duplicate$ empty$ 'skip$ { " " * } if$ key empty$ { title field.or.null sort.format.title * " " * booktitle field.or.null sort.format.title * } { key sortify * } if$ " " * year field.or.null sortify * #1 entry.max$ substring$ 'sort.key$ := } ITERATE {presort} SORT STRINGS {a b} INTEGERS {i j} FUNCTION {init.vars} { #0 int.to.chr$ 'a := #0 int.to.chr$ 'b := #0 'i := #0 'j := } FUNCTION {forward.author.dup.check} { author empty$ { editor empty$ { organization field.or.null 'a := }{ editor 'a :=} if$} { author 'a := } if$ %'a := a empty$ 'skip$ { b "{ff~}{vv~}{ll}{, jj}" format.names.custom purify$ a "{ff~}{vv~}{ll}{, jj}" format.names.custom purify$ = { #1 'author.duplicate := } { #0 'author.duplicate := } if$ a 'b := } if$ } FUNCTION {forward.author.share.check} % % Pass through all entries, comparing current author to last one. % { author.duplicate author empty$ or { author.duplicate { i 'author.shared := }{} if$} { b "{f.~}{vv~}{ll}{, jj}" format.names.custom purify$ author field.or.null "{f.~}{vv~}{ll}{, jj}" format.names.custom purify$ = { author.flast 'author.shared := } { b "{vv~}{ll}" format.names.custom purify$ author field.or.null "{vv~}{ll}" format.names.custom purify$ = { author.last 'author.shared := } { author.different 'author.shared := } if$ } if$ author.shared 'i := author field.or.null 'b := } if$ } FUNCTION {reverse.author} { author.duplicate { author.shared i < { i 'author.shared := } {} if$ } { author.shared i < { author.shared i 'author.shared := 'i := } { author.shared 'i := } if$ } if$ j #1 = author.duplicate not and { #2 'author.duplicate := } {} if$ author.duplicate 'j := } EXECUTE {init.consts} EXECUTE {init.vars} ITERATE {forward.author.dup.check} EXECUTE {init.vars} ITERATE {forward.author.share.check} EXECUTE {init.vars} REVERSE {reverse.author} %INTEGERS { number.label longest.label.width } %FUNCTION {initialize.longest.label} %{ "" 'longest.label := % #1 'number.label := % #0 'longest.label.width := %} %FUNCTION {longest.label.pass} %{ number.label int.to.str$ 'label := % number.label #1 + 'number.label := % label width$ longest.label.width > % { label 'longest.label := % label width$ 'longest.label.width := % } % 'skip$ % if$ %} %EXECUTE {initialize.longest.label} %ITERATE {longest.label.pass} FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ "\begin{thebibliography}{\rule{.5in}{0pt}}" write$ newline$ "\ifx\undefined\citeN\let\citeN\cite\fi" write$ newline$ } EXECUTE {begin.bib} ITERATE {call.type$} FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } EXECUTE {end.bib}