You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bibtex fails on common strings that can be variables on latex #78
I had an issue where the download fails upon certain papers with month abbreviation. adding an option to parse common strings not as variables fixes it.
I've ran into this exact issue, and although enabling common_strings for the parser does help the majority of cases, any non abbreviated months or months using different non 3 character abbreviations (such as sept for september) produce download failures again.
File "./venv/lib/python3.12/site-packages/bibtexparser/bibdatabase.py", line 105, in expand_string
self.strings[name])
~~~~~~~~~~~~^^^^^^
KeyError: 'july'
so to add on to your solution, I propose to shorten months to their first 3 characters before parsing them:
I'll write both of our suggested changes into a new branch and I'll submit a pull request to solve the problem, but the repository seems to be mostly abandoned so forking the project is not a bad idea either
Activity
rimerinos commentedon May 15, 2026
I've ran into this exact issue, and although enabling common_strings for the parser does help the majority of cases, any non abbreviated months or months using different non 3 character abbreviations (such as sept for september) produce download failures again.
so to add on to your solution, I propose to shorten months to their first 3 characters before parsing them:
I'll write both of our suggested changes into a new branch and I'll submit a pull request to solve the problem, but the repository seems to be mostly abandoned so forking the project is not a bad idea either