<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi!  I&#39;m trying to use path-&gt;bibdb and/or bibtex-parse on a bibtex file, and I&#39;m getting a bibdb where bibdb-raw looks good, but bibdb-bibs is an empty hash.  I&#39;m not missing some initialization step, am I?  Am I supposed to be constructing the bib structs on my own or something?  A little confused...</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">(Note: Alternatively, if I could use #:number-style with define-bibtex-cite, I&#39;d be all set as well, because *that* seems to parse and generate the right bibliography and ~cite works, but doesn&#39;t format the citations the way I want.)<br>
<div><br></div><div>Code:</div><div><br></div><div>======</div><div><div>#lang racket/base</div><div><br></div><div>(require scriblib/autobib scriblib/bibtex)</div><div><br></div><div>(provide generate-bib ~cite)</div><div>
<br></div><div>(define-cite _~cite citet generate-bib #:style number-style)</div><div><br></div><div>(define db (bibtex-parse (open-input-file &quot;joe.bib&quot;)))</div><div><br></div><div>(define (~cite key)</div><div>
  (_~cite (hash-ref (bibdb-bibs db) key (λ () (error &#39;cite (format &quot;No bib entry: ~a\n&quot; key))))))</div></div><div><br></div><div>======</div><div><br></div><div>&gt; (bibdb-bibs db)</div><div>#hash()</div><div>
&gt; (bibdb-raw db)</div><div>&#39;#hash((... lots of stuff ...))</div><div><br></div><div><br></div><div>Here&#39;s joe.bib (could certainly be ill-formed, I notice some encoding issues viewing it in my browser, but I use it with bibtex just fine.  Maybe some sadness in the formatting is causing a bad parse?  But I&#39;d expect an error message if that&#39;s the case...)</div>
<div><br></div><div><a href="http://cs.brown.edu/~joe/public/joe.bib" target="_blank">http://cs.brown.edu/~joe/public/joe.bib</a><br><div><br></div><div>Thanks!</div></div></div></div>