llew@wpi.WPI.EDU (Lew Yan Voon) (04/28/91)
hi, i've tried customizing a style file *.bst used by bibtex without too much understanding of the language. as expected i messed things up; i'd appreciate if someone can explain to me what's wrong. my aim: in an article reference, i'd like the year to be formatted as follows: (1991) the 2 main changes i've made are the foll: 1) i've defined a new function format.ayear : FUNCTION {format.ayear} {year empty$ { "" } { "(" year * ")" } if$ } and 2) i've removed the line 'format.date "year" output.check' and replaced it by 'format.ayear "year" output.check' as follows: FUNCTION {article} { output.bibitem format.authors "author" output.check new.block format.title "title" output.check new.block crossref missing$ { journal "journal" output.check format.vol.num.pages output format.ayear "year" output.check } { format.article.crossref output.nonnull format.pages output } if$ new.block note output fin.entry } ------------- The foll. are the relevant error messages: This is BibTeX, C Version 0.99c The style file: lcite.bst if is an illegal style-file command---line 288 of file lcite.bst : if : $ Database file #1: algaas.bib ptr=1, stack= {\bf 21}, 3334 ---the literal stack isn't empty for entry acprb80 while executing---line 1093 of file lcite.bst ..... (There were 7 error messages) ------------ and in the output, i had the authors, title, journal but no journal number. also the year appeared as (1991 ) ,i.e., with an extra space after the numbers. hope there's somebody out there who can help me solve the above problems. thanks in advance, lok.