From m.han at gsf.de Mon May 23 10:51:52 2005 From: m.han at gsf.de (Michael Han) Date: Mon May 23 10:44:09 2005 Subject: [BioRuby] bibtex method in reference.rb Message-ID: I got some problems with the bibtex output from reference.rb: it puts commas between all but the last authors in the bibtex format which makes bibtex complain a lot :-( If i understand it correctly, it should place ' and ' between the authors something like: Author = {Imanishi, T. and Itoh, T. and Suzuki, Y. and O'Donovan, C. and Fukuchi, S. and Koyanagi, K.} instead it does now: Author = {Imanishi, T., Itoh, T., Suzuki, Y., O'Donovan, C., Fukuchi, S. and Koyanagi, K.} which makes BibTex complain about too many commas in the author list. (BibTeX 0.99c from fink) As far as i can see, a small change in the references.rb definition of the bibtex method fixes the thing. Could you check if i missed something? thanks in advance, Michael Han ------------> references.rb <------- 120c120 < authors = authors_join(' and ') --- > authors = authors_join(' and ',' and ') ------------> references.rb <------- From ktym at hgc.jp Thu May 26 09:04:18 2005 From: ktym at hgc.jp (Toshiaki Katayama) Date: Thu May 26 08:56:40 2005 Subject: [BioRuby] bibtex method in reference.rb In-Reply-To: References: Message-ID: <1BCB2DBA-CCEA-4AD2-B1EA-3695CB0FB47C@hgc.jp> Hi Michael, Thank you for your correction and sorry for the delay in responding. I have committed your patch into the CVS. Thanks, Toshiaki Katayama On 2005/05/23, at 23:51, Michael Han wrote: > I got some problems with the bibtex output from reference.rb: > it puts commas between all but the last authors in the bibtex > format which makes bibtex complain a lot :-( > > If i understand it correctly, it should place ' and ' between the > authors > something like: > Author = {Imanishi, T. and Itoh, T. and Suzuki, Y. and O'Donovan, > C. and Fukuchi, S. and Koyanagi, K.} > instead it does now: > Author = {Imanishi, T., Itoh, T., Suzuki, Y., O'Donovan, C., > Fukuchi, S. and Koyanagi, K.} > which makes BibTex complain about too many commas in the author > list. (BibTeX 0.99c from fink) > > As far as i can see, a small change in the references.rb definition > of the bibtex method fixes the thing. > > Could you check if i missed something? > > thanks in advance, > > Michael Han > > ------------> references.rb <------- > 120c120 > < authors = authors_join(' and ') > --- > > authors = authors_join(' and ',' and ') > ------------> references.rb <------- > > _______________________________________________ > BioRuby mailing list > BioRuby@open-bio.org > http://portal.open-bio.org/mailman/listinfo/bioruby >