If I delete all the newlines and spaces (aside from spaces around "=" signs) it works... Maybe there's some feature to ignore whitespace?
On Mon, May 21, 2012 at 10:36 AM, Laurent <laurent.ors...@gmail.com> wrote: > (replying to list) > > Thanks, that was a good idea, but conversion to unix format (I'm on linux) > did not help unfortunately. > Now the message is "...got #\newline;..." instead. > > Laurent > > On Mon, May 21, 2012 at 4:28 PM, J. Ian Johnson <i...@ccs.neu.edu> wrote: > >> Not a user of this library, but this looks like a crlf issue. Are you in >> windows? >> -Ian >> ----- Original Message ----- >> From: Laurent <laurent.ors...@gmail.com> >> To: Racket Mailing List <us...@lists.racket-lang.org> >> Sent: Mon, 21 May 2012 09:46:54 -0400 (EDT) >> Subject: [racket] Reading bibtex files >> >> Hi, >> >> I would like to use scriblib/bibtex which looks like a wonderful tool, but >> I can't seem to have it work: >> >> #lang racket >> (require scriblib/bibtex) >> >> (define-bibtex-cite >> "biblio.bib" >> ~cite citet generate-bibliography) >> >> fails with: >> >> ../../usr/lib/racket-5.3.0.8/collects/scriblib/bibtex.rkt:84:9: >> read-entry: >> Parsing entry, expected , or }, got #\return; label is >> "hochreiter_long_1997"; atag is "pages"; aval is "1735--1780" @ line 9 >> column 0 byte 219 >> >> The offending bib entry, which is the first in the file, is: >> @article{hochreiter_long_1997, >> author = {Hochreiter, S. and Schmidhuber, J.}, >> title = {Long {Short-Term} Memory}, >> volume = {9}, >> number = {8}, >> journal = {Neural Computation}, >> year = {1997}, >> pages = {1735--1780} >> } >> >> but all other entries I tested alone failed too. >> I tried adding "," after the pages, after the last "}", change {} to "", >> but no success. >> >> Do I use it incorrectly? >> >> (Plus I'd like to use it in slideshow, if anyone has something for >> that...) >> >> Laurent >> >> > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > >
____________________ Racket Users list: http://lists.racket-lang.org/users