[racket] Reading bibtex files

From: Laurent (laurent.orseau at gmail.com)
Date: Mon May 21 10:36:48 EDT 2012

(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 <ianj at 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.orseau at gmail.com>
> To: Racket Mailing List <users at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120521/6683c2be/attachment.html>

Posted on the users mailing list.