typst / biblatex

A Rust crate for parsing and writing BibTeX and BibLaTeX files.
Apache License 2.0
120 stars 15 forks source link

Pages and volume parse errors #29

Closed ivomac closed 1 year ago

ivomac commented 1 year ago

I'm moving here the issue typst/typst#210.

Compilation fails if the bibliography (.bib) file has an entry such as this:

@article{1,
    title = {A},
    number = {B4},
    pages = {B97},
    volume = {40-42},
    price = {$76.60}
}

Parse errors due to letters ("B") in pages and "-" in volume. Also fails on price with unexpected end of file due to the dollar. No error due to "B" in number.

I think this entry should be valid as I have official bib entries with ranges on volume and letters on pages.

reknih commented 1 year ago

The date field should also allow text

rudolfsg commented 1 year ago

Came across this issue as I had problems with dollar signs in the bib file myself. I just tried the example .bib entry that @ivomac posted and typst fails with unexpected end of file so I think it should be reopened