-
-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bib: Failed to parse file, where month
equals Sep--Oct
#2849
Comments
BibLaTeX does not support month ranges like you have used here, and for bibtex, I cannot find anything about it neither. What is your expected behavior? What should the output be? |
To be honest those bibtex entries are not created by me, nor used by me. If it comes to it I would be fine if typst would just ignore their incorrect month field. For me personally it is just a problem, because the research group I am working for, is providing a huge bibtex library that I am obligated to use and there are a few entries like this. I could have a check later how latex handles these. But I can say that at least it would ignore them since my projects in latex work just fine even when including the bib library. |
Apart form this I also want to add that the error message reported by typst is totally useless. To find what was actually wrong I needed to go through my massive bib file and keep deleting entries until it compiled. I generally find this to be a problem with typst. Are there any plans to improve the typst error to actually report at the places where the error originate from and by also giving more useful information than this cryptic "line 1 and invalid number" I don't see why there is an invalid number and I also don't think that is line 1. |
@LasseRosenow There is no need to become offensive. The error messages for biblatex files aren't great yet because (a) the biblatex crate doesn't produce ideal error messages yet, and (b) there is no infrastructure to annotate errors in non-Typst files. All of these things take time to implement. |
Actually when writing my last post I didn't intend to be offensive at all. I am very sorry that this was received differently than intended. Maybe the terms But that doesn't mean, that I expect typst to give me super perfect error messages etc. especially considering how young this project is. I only intended to share this information without any further implications. But I think it is worth mentioning issues if I discover them. Especially since I had this problem on other areas of typst as well. So I am just hoping this is something to be improved in the future. |
Ah I see that is reasonable I better open an issue in their repository then if not already. Thanks for clarifying :) |
Closing in favor of typst/biblatex#47 |
Just reproduced with the following bibtex: `@Article{Pineda1997, Month = {APR-JUN}, ISSN = {0270-5214}, The use of two months separated by a '-' is important, without that it works as expected. |
Using "4-6" instead of "APR-JUN" is not problematic. |
@laurmaedje Is this minimal enough to reinvestigate? I found the problem using https://typst.app. |
As @DerDrodt mentioned, month ranges are fundamentally not supported by the format, so I don't think there's anything we can do. |
Thanks! I also see now that JabRef calls these fields deprecated. So I guess the best option is to remove them. |
Description
I have the following bibtex file:
But it results in the following error:
This is caused by the month field:
I am using a large bibtex library, that is maintained by a research group of my university.
The problem is, that this library has many entries that write the month like above.
Which causes me not to be able to use typst, except I find all the affected bib entries.
Reproduction URL
No response
Operating system
Linux
Typst version
The text was updated successfully, but these errors were encountered: