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