1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270 |
- % BibTeX standard bibliography style `aea' (one of the harvard family)
- % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- % Copyright (C) 2008, all rights reserved.
- % Melissa Rice ([email protected]), Full Moon Technical Solutions, LLC (dba FMTek)
- % last revised: 20 May 2009
- ENTRY
- { address
- author
- booktitle
- chapter
- edition
- editor
- howpublished
- institution
- journal
- key
- month
- note
- number
- organization
- pages
- presented
- publisher
- school
- series
- title
- type
- URL
- volume
- year
- }
- { field.used etal.allowed etal.required}
- { extra.label sort.label list.year }
- STRINGS { s t f }
- % BOOLEAN OPERATORS
- FUNCTION {not}
- { { #0 }
- { #1 }
- if$
- }
- FUNCTION {and}
- { 'skip$
- { pop$ #0 }
- if$
- }
- FUNCTION {or}
- { { pop$ #1 }
- 'skip$
- if$
- }
- % CHECKS
- FUNCTION {author.or.editor.check}
- { author empty$ editor empty$ and
- { "empty author and editor in " cite$ * warning$ }
- { skip$ }
- if$
- }
- FUNCTION {chapter.or.pages.check}
- { chapter empty$ pages empty$ and
- { "empty chapter and pages in " cite$ * warning$ }
- { skip$ }
- if$
- }
- FUNCTION {required}
- { 't := % name of variable
- empty$ % value of variable on stack
- { "empty " t * " in " * cite$ * warning$ }
- { skip$ }
- if$
- }
- FUNCTION {field.or.null}
- { duplicate$ empty$
- { pop$ "" }
- 'skip$
- if$
- }
- % GENERAL FORMATTING
- FUNCTION {emphasize}
- { duplicate$ empty$
- { pop$ "" }
- { "{\em " swap$ * "}" * }
- if$
- }
- FUNCTION {embolden}
- { duplicate$ empty$
- { pop$ "" }
- { "{\bf " swap$ * "}" * }
- if$
- }
- FUNCTION {quote}
- { duplicate$ empty$
- { pop$ "" }
- { "`" swap$ * "'" * }
- if$
- }
- FUNCTION {doublequote}
- { duplicate$ empty$
- { pop$ "" }
- { "``" swap$ * "''" * }
- if$
- }
- FUNCTION {join}
- { 't := % second string
- 'f := % join character
- 's := % first string
- s empty$
- { t empty$
- { "" }
- { t }
- if$
- }
- { t empty$
- { s }
- { f ". " =
- { s add.period$ " " * t * }
- { s f * t * }
- if$
- }
- if$
- }
- if$
- }
- FUNCTION {tie.or.space.connect}
- { duplicate$ text.length$ #3 <
- { "~" }
- { " " }
- if$
- swap$ * *
- }
- INTEGERS { len }
- FUNCTION {chop.word}
- { 's :=
- 'len :=
- s #1 len substring$ =
- { s len #1 + global.max$ substring$ }
- 's
- if$
- }
- INTEGERS { ind tsslen }
- STRINGS { tss ret rss istr }
- FUNCTION {replace.substring}{
- 'rss :=
- 'tss :=
- 'istr :=
- "" 'ret :=
- tss text.length$ 'tsslen :=
- #1 'ind :=
- { istr ind tsslen substring$ "" = not }
- { istr ind tsslen substring$ tss =
- { ret rss * 'ret :=
- ind tsslen + 'ind :=
- }
- { ret istr ind #1 substring$ * 'ret :=
- ind #1 + 'ind :=
- }
- if$
- }
- while$
- ret
- }
- 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$
- }
- 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
- }
- % OUTPUT FUNCTIONS
- FUNCTION {output} % writ
- { duplicate$ empty$
- { pop$ }
- { write$}
- if$
- }
- FUNCTION {output.year} % writ
- { list.year empty$
- { skip$ }
- { list.year ". " * write$}
- if$
- }
- FUNCTION {output.title.quoted}
- { title empty$
- { skip$ }
- { title add.period$ doublequote " " * write$ }
- if$
- }
- FUNCTION {output.title.italic}
- { title empty$
- { skip$ }
- { title add.period$ emphasize " " * write$ }
- if$
- }
- FUNCTION {output.entry}
- { duplicate$ "" =
- { pop$ }
- { add.period$
- write$
- }
- if$
- newline$
- }
- % FIELD FORMATTING
- FUNCTION {format.address.only}
- { address empty$
- { "" }
- { address }
- if$
- }
- FUNCTION {format.journal}
- { journal empty$
- { "" }
- { journal emphasize }
- if$
- }
- FUNCTION {format.type}
- { type empty$
- { "" }
- { type }
- if$
- }
- FUNCTION {format.number}
- { number empty$
- { "" }
- { number }
- if$
- }
- FUNCTION {format.school}
- { school empty$
- { "" }
- { school }
- if$
- }
- FUNCTION {format.institution}
- { institution empty$
- { "" }
- { institution }
- if$
- }
- FUNCTION {format.masters}
- { "Master's diss."
- }
- FUNCTION {format.phd}
- { "PhD diss."
- }
- FUNCTION {format.note}
- { note empty$
- { "" }
- { note }
- if$
- }
- FUNCTION {format.booktitle}
- { booktitle empty$
- { "" }
- { booktitle emphasize }
- if$
- }
- FUNCTION {format.booktitle.label}
- { booktitle empty$
- { "" }
- { booktitle embolden }
- if$
- }
- FUNCTION {format.title.bold}
- { title empty$
- { "" }
- { title add.period$ embolden }
- if$
- }
- FUNCTION {format.month}
- { month empty$
- { "" }
- { month }
- if$
- }
- FUNCTION {format.vol.num.pages} % writ
- { volume empty$
- { number empty$
- {""}
- { "there's a number but no volume in " cite$ * warning$ ", (" number * ")" *}
- if$
- }
- { number empty$
- { volume }
- { volume "(" * number * ")" *}
- if$
- }
- if$
- pages empty$
- { skip$ }
- { duplicate$ "" =
- { pages n.dashify * }
- { ":~" * pages n.dashify * }
- if$
- }
- if$
- }
- FUNCTION {format.edition} % writ
- { edition empty$
- { "" }
- { edition " ed." * }
- if$
- }
- FUNCTION {format.book.vol.series.ed} % writ
- { volume empty$
- { series empty$
- { "" }
- { series emphasize }
- if$
- }
- { "Vol." volume tie.or.space.connect
- series empty$
- 'skip$
- { " of " * series emphasize * }
- if$
- }
- if$
- edition empty$
- { skip$ }
- { ". " * edition * " ed." *}
- if$
- }
- FUNCTION {format.address.publisher} % writ
- { address empty$
- { publisher empty$
- { "" }
- { publisher }
- if$
- }
- { publisher empty$
- { address }
- { address ":" * publisher *}
- if$
- }
- if$
- }
- FUNCTION {format.howpublished}
- { howpublished empty$
- { "" }
- { howpublished emphasize }
- if$
- }
- FUNCTION {format.organization}
- { organization empty$
- { "" }
- { organization }
- if$
- }
- FUNCTION {format.organization.presented}
- { organization empty$
- { "" }
- { presented empty$
- { organization }
- { presented " " * organization * }
- if$
- }
- if$
- }
- FUNCTION {format.pages}
- { pages empty$
- { "" }
- { pages multi.page.check
- { pages n.dashify }
- { pages }
- if$
- }
- if$
- }
- FUNCTION {format.chapter.pages}
- { chapter empty$
- { pages empty$
- { "" }
- { format.pages }
- if$
- }
- { pages empty$
- { "Chapter " chapter * }
- { "Chapter " chapter * ", " * format.pages * }
- if$
- }
- if$
- }
- INTEGERS { nameptr namesleft numnames }
- % Format names so that first author is "last, first" and subsequent authors are "first last" with commas
- % separating authors whenever there are two or more and "and" precedes last author if 2 or more.
- FUNCTION {format.names}
- { 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { nameptr #1 =
- { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := }
- { s nameptr "{ff }{vv~}{ll}{, jj}" format.name$ 't := }
- if$
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { ", et~al." * }
- { ", and " * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
- }
- FUNCTION {format.names.forward}
- { 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{ff }{vv~}{ll}{, jj}" format.name$ 't :=
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { " et~al." * }
- { " and " * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
- }
- INTEGERS { author.field editor.field organization.field title.field key.field }
- FUNCTION {init.field.constants}
- { #0 'author.field :=
- #1 'editor.field :=
- #2 'organization.field :=
- #3 'title.field :=
- #4 'key.field :=
- }
- FUNCTION {format.names.label}
- { 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{ff }{vv~}{ll}{, jj}" format.name$ 't :=
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { " et~al." * }
- { " \harvardand\ " * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
- }
- FUNCTION {format.names.label.short}
- { 's :=
- #1 'nameptr :=
- s num.names$ 'numnames :=
- numnames #3 >
- { s #1 "{vv~}{ll}" format.name$ " et~al." *}
- { numnames 'namesleft :=
- { namesleft #0 > }
- { s nameptr "{vv~}{ll}" format.name$ 't :=
- nameptr #1 >
- { namesleft #1 >
- { ", " * t * }
- { t "others" =
- { " et~al." * }
- { " \harvardand\ " * t * }
- if$
- }
- if$
- }
- 't
- if$
- nameptr #1 + 'nameptr :=
- namesleft #1 - 'namesleft :=
- }
- while$
- }
- if$
- }
- FUNCTION {format.authors}
- { author empty$
- { "" }
- { author format.names add.period$ embolden}
- if$
- }
- FUNCTION {format.editors}
- { editor empty$
- { "" }
- { editor format.names add.period$ embolden}
- if$
- }
- FUNCTION {format.editors.primary}
- { editor empty$
- { "" }
- { editor format.names ", " * embolden " ed" *}
- if$
- }
- FUNCTION {format.editors.secondary}
- { editor empty$
- { "" }
- { ", ed. " editor format.names.forward *}
- if$
- }
- FUNCTION {make.list.label} % writ
- { author.field field.used =
- { format.authors }
- { editor.field field.used =
- { format.editors.primary }
- { organization.field field.used =
- { "The " #4 organization chop.word embolden }
- { title.field field.used =
- { format.title.bold }
- { key.field field.used =
- { key }
- { "Internal error :001 on " cite$ * " label" * warning$ }
- if$
- }
- if$
- }
- if$
- }
- if$
- }
- if$
- }
- FUNCTION {output.list.label} % writ
- { make.list.label add.period$ " " * write$
- }
- FUNCTION {make.label.short} % writ
- { author.field field.used =
- { author format.names.label.short }
- { editor.field field.used =
- { editor format.names.label.short }
- { organization.field field.used =
- { "The " #4 organization chop.word}
- { title.field field.used =
- { format.booktitle.label }
- { key.field field.used =
- { key }
- {"Internal error :001 on " cite$ * " label" * warning$ }
- if$
- }
- if$
- }
- if$
- }
- if$
- }
- if$
- }
- FUNCTION {make.label.full} % writ
- { author.field field.used =
- { author format.names.label }
- { editor.field field.used =
- { editor format.names.label }
- { organization.field field.used =
- { "The " #4 organization chop.word}
- { title.field field.used =
- { format.booktitle.label }
- { key.field field.used =
- { key }
- {"Internal error :001 on " cite$ * " label" * warning$ }
- if$
- }
- if$
- }
- if$
- }
- if$
- }
- if$
- }
- % bibitem syntax:
- % \harvarditem[abbr-citation]{full-citation}{citation-year}{cite-key}
- % abbr-citation: names for 2nd and subsequent citations
- % full-citation: names for 1st citation
- % Give full name (first name, middle initial, and last name) of author(s) and year of publication in the first citation.
- % Give the last name of author and year of publication in parentheses for each subsequent citation.
- % If there are four or more authors, refer to the first author, followed by et al. and the year.
- FUNCTION {output.bibitem} % writ
- { newline$
- "\harvarditem[" make.label.short * "]" *
- "{" make.label.full * "}" * *
- "{" list.year * "}" * *
- "{" cite$ * "}" * * write$
- newline$
- }
- FUNCTION {stack.show}
- { duplicate$ "stack top: " swap$ * " in " * cite$ * warning$
- duplicate$ "" =
- { "stack top is blank" warning$ }
- { "stack top is non-blank" warning$ }
- if$
- }
- FUNCTION {article} % writ
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- author "author" required
- title "title" required
- journal "journal" required
- year "year" required
- format.journal ", "
- % format.month join ", "
- format.vol.num.pages join ". "
- format.note join
- output.entry
- }
- FUNCTION {book}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.italic
- author.or.editor.check
- title "title" required
- publisher "publisher" required
- year "year" required
- % format.month ", "
- % format.book.vol.series.ed join ", "
- format.book.vol.series.ed ", "
- format.address.publisher join ". "
- format.note join
- output.entry
- }
- FUNCTION {booklet}
- { output.bibitem
- output.list.label % write author or surrogate label
- year empty$
- { skip$ }
- { output.year }
- if$
- author empty$
- { skip$ }
- { output.title.quoted }
- if$
- title "title" required
- format.howpublished ", "
- % format.month join ", "
- format.address.only join ". "
- format.note join
- output.entry
- }
- FUNCTION {inbook}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- author.or.editor.check
- chapter.or.pages.check
- title "title" required
- publisher "publisher" required
- year "year" required
- format.booktitle ", "
- format.editors.secondary join " "
- format.book.vol.series.ed join ", "
- format.chapter.pages join ". "
- format.address.publisher join ". "
- format.note join
- output.entry
- }
- FUNCTION {incollection}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- "In " format.booktitle * ". " * output
- author "author" required
- title "title" required
- booktitle "booktitle" required
- publisher "publisher" required
- year "year" required
- format.book.vol.series.ed ", "
- format.editors.secondary join ", "
- format.chapter.pages join ". "
- format.address.publisher join ". "
- format.note join
- output.entry
- }
- FUNCTION {inproceedings}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- author "author" required
- title "title" required
- booktitle "booktitle" required
- year "year" required
- format.book.vol.series.ed ", "
- format.pages join ", "
- format.organization.presented join ". "
- format.address.publisher join ". "
- format.note join
- output.entry
- }
- FUNCTION {conference} { inproceedings }
- FUNCTION {manual}
- { output.bibitem
- output.list.label % write author or surrogate label
- title "title" required
- year empty$
- { skip$ }
- { output.year }
- if$
- author empty$
- { skip$ }
- { output.title.quoted }
- if$
- format.edition ", "
- format.address.only join ", "
- format.organization join ", "
- % format.month join ", "
- format.note join
- output.entry
- }
- FUNCTION {mastersthesis}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- author "author" required
- title "title" required
- school "school" required
- year "year" required
- format.masters " "
- format.school join ", "
- format.address.only join ", "
- % format.month join ", "
- format.note join
- output.entry
- }
- FUNCTION {misc}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- author empty$
- { skip$ }
- { output.title.quoted }
- if$
- format.howpublished ", "
- % format.month join ". "
- format.note join
- output.entry
- }
- FUNCTION {phdthesis}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- author "author" required
- title "title" required
- school "school" required
- year "year" required
- format.phd " "
- format.school join ", "
- format.address.only join ", "
- % format.month join ". "
- format.note join
- output.entry
- }
- FUNCTION {proceedings}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- title "title" required
- year "year" required
- editor empty$ organization empty$ and
- { skip$ }
- { output.title.quoted }
- if$
- editor empty$
- { "" "" }
- { format.organization ", " }
- if$
- format.address.publisher join ", "
- format.note join
- output.entry
- }
- FUNCTION {techreport}
- { output.bibitem
- output.list.label % write author or surrogate label
- output.year
- output.title.quoted
- author "author" required
- title "title" required
- institution "institution" required
- year "year" required
- format.institution " "
- format.type join " "
- format.number join ", "
- % format.month join ", "
- format.address.publisher join ". "
- format.note join
- output.entry
- }
- FUNCTION {unpublished}
- { output.bibitem
- output.list.label % write author or surrogate label
- year empty$
- { skip$ }
- { output.year }
- if$
- output.title.quoted
- author "author" required
- title "title" required
- note "note" required
- format.note
- output.entry
- }
- FUNCTION {default.type} { misc }
- MACRO {jan} {"January"}
- MACRO {feb} {"February"}
- MACRO {mar} {"March"}
- MACRO {apr} {"April"}
- MACRO {may} {"May"}
- MACRO {jun} {"June"}
- MACRO {jul} {"July"}
- MACRO {aug} {"August"}
- MACRO {sep} {"September"}
- MACRO {oct} {"October"}
- MACRO {nov} {"November"}
- MACRO {dec} {"December"}
- READ
- EXECUTE {init.field.constants}
- FUNCTION {sortify}
- { purify$
- "l" change.case$
- }
- FUNCTION {sortify.names}
- { " \harvardand\ " " " replace.substring
- " et~al." " zzz" replace.substring
- sortify
- }
- FUNCTION {author.key.label}
- { author empty$
- { key empty$
- { title.field 'field.used := }
- { key.field 'field.used := }
- if$
- }
- { author.field 'field.used := }
- if$
- }
- FUNCTION {author.editor.key.label}
- { author empty$
- { editor empty$
- { key empty$
- { title.field 'field.used := }
- { key.field 'field.used := }
- if$
- }
- { editor.field 'field.used := }
- if$
- }
- { author.field 'field.used := }
- if$
- }
- FUNCTION {author.key.organization.label}
- { author empty$
- { key empty$
- { organization empty$
- { title.field 'field.used := }
- { organization.field 'field.used := }
- if$
- }
- { key.field 'field.used := }
- if$
- }
- { author.field 'field.used := }
- if$
- }
- FUNCTION {editor.key.organization.label}
- { editor empty$
- { key empty$
- { organization empty$
- { title.field 'field.used := }
- { organization.field 'field.used := }
- if$
- }
- { key.field 'field.used := }
- if$
- }
- { editor.field 'field.used := }
- if$
- }
- FUNCTION {sort.format.title}
- { 't :=
- "A " #2
- "An " #3
- "The " #4 t chop.word
- chop.word
- chop.word
- sortify
- #1 global.max$ substring$
- }
- FUNCTION {calc.label}
- { make.label.short
- title.field field.used =
- { sort.format.title }
- { sortify.names }
- if$
- year field.or.null purify$ #-1 #4 substring$ sortify
- *
- 'sort.label :=
- }
- FUNCTION {preliminaries}
- { type$ "book" =
- type$ "inbook" =
- or
- 'author.editor.key.label
- { type$ "proceedings" =
- 'editor.key.organization.label
- { type$ "manual" =
- 'author.key.organization.label
- 'author.key.label
- if$
- }
- if$
- }
- if$
- author.field field.used =
- {
- author num.names$ #2 >
- { #1 }
- { #0 }
- if$
- 'etal.required :=
- }
- {
- editor.field field.used =
- {
- editor num.names$ #2 >
- { #1 }
- { #0 }
- if$
- }
- { #0 }
- if$
- 'etal.required :=
- }
- if$
- #1 'etal.allowed :=
- }
- FUNCTION {first.presort}
- { calc.label
- sort.label
- title.field field.used =
- { skip$ }
- { " "
- *
- make.list.label sortify.names
- *
- " "
- *
- title field.or.null
- sort.format.title
- *
- }
- if$
- #1 entry.max$ substring$
- 'sort.key$ :=
- }
- ITERATE {preliminaries}
- ITERATE {first.presort}
- SORT
- STRINGS { last.sort.label next.extra last.full.label}
- INTEGERS { last.extra.num last.etal.allowed}
- FUNCTION {initialize.confusion}
- { #0 int.to.chr$ 'last.sort.label :=
- #0 int.to.chr$ 'last.full.label :=
- #1 'last.etal.allowed :=
- }
- FUNCTION {confusion.pass}
- { last.sort.label sort.label =
- { last.etal.allowed
- { last.full.label make.label.full sortify.names =
- { skip$ }
- { #0 'etal.allowed :=
- #0 'last.etal.allowed :=
- }
- if$
- }
- { #0 'etal.allowed := }
- if$
- }
- { sort.label 'last.sort.label :=
- make.label.full sortify.names 'last.full.label :=
- #1 'last.etal.allowed :=
- }
- if$
- }
- EXECUTE {initialize.confusion}
- ITERATE {confusion.pass}
- EXECUTE {initialize.confusion}
- REVERSE {confusion.pass}
- FUNCTION {initialize.last.extra.num}
- { #0 int.to.chr$ 'last.sort.label :=
- "" 'next.extra :=
- #0 'last.extra.num :=
- }
- FUNCTION {forward.pass}
- { last.sort.label sort.label =
- { last.extra.num #1 + 'last.extra.num :=
- last.extra.num int.to.chr$ 'extra.label :=
- }
- { "a" chr.to.int$ 'last.extra.num :=
- "" 'extra.label :=
- sort.label 'last.sort.label :=
- }
- if$
- }
- FUNCTION {reverse.pass}
- { next.extra "b" =
- { "a" 'extra.label := }
- 'skip$
- if$
- year empty$
- { "n.d." extra.label emphasize * 'list.year := }
- { year extra.label emphasize * 'list.year := }
- if$
- extra.label 'next.extra :=
- }
- ITERATE {first.presort}
- SORT
- EXECUTE {initialize.last.extra.num}
- ITERATE {forward.pass}
- REVERSE {reverse.pass}
- FUNCTION {second.presort}
- { make.list.label
- title.field field.used =
- { sort.format.title }
- { sortify.names }
- if$
- " "
- *
- list.year field.or.null sortify
- *
- " "
- *
- title.field field.used =
- { skip$ }
- { title field.or.null
- sort.format.title
- *
- }
- if$
- #1 entry.max$ substring$
- 'sort.key$ :=
- }
- ITERATE {second.presort}
- SORT
- FUNCTION {begin.bib}
- { newline$ newline$ "% Bibstyle aea.bst version 2009.05.20" write$ newline$ newline$
- preamble$ empty$
- 'skip$
- { "\harvardpreambledefs{%" write$ newline$
- preamble$ write$ "}" write$ newline$
- "\harvardpreambletext{%" write$ newline$
- preamble$ write$ "}" write$ newline$ }
- if$
- "\begin{thebibliography}{xx}" write$ newline$
- }
- EXECUTE {begin.bib}
- ITERATE {call.type$}
- FUNCTION {end.bib}
- { newline$
- "\end{thebibliography}" write$ newline$
- }
- EXECUTE {end.bib}
|