- edited description
Support for @software (and @patent?) entries in default styles?
I ran into the following exception while processing a bibtex file with pybtex:
File "./driver.py", line 70, in run
fmt = style.format_bibliography(bib)
File "…/pybtex/style/formatting/__init__.py", line 89, in format_bibliography
File "…/pybtex/style/__init__.py", line 39, in __init__
File "…/pybtex/style/formatting/__init__.py", line 58, in format_entries
File "…/pybtex/style/formatting/__init__.py", line 69, in format_entry
AttributeError: 'Style' object has no attribute 'format_software'
Apparently people online are also running into this error for @patent
entries? These are both standard biblatex formats: http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/biblatex/doc/biblatex.pdf
@software
is pretty common these days, since that's the default entry type that Zenodo creates. There is an example at https://zenodo.org/record/4501022/export/hx
It would be nice to support it out of the box!
Comments (5)
-
reporter -
This issue has impacted an upstream client of this lib as well (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/5). I’ve taken a look at the open PR, which solves this issue with minor modification. https://bitbucket.org/pybtex-devs/pybtex/pull-requests/36
-
The PR looks dormant so I’ve quickly made a commit with minimal changes to completely resolve this issue here: https://bitbucket.org/nullablevoidptr1/pybtex/commits/bed3660e2711d2a6a9dd02ad8d28a0931b0c78a6
I couldn’t create a PR here due to lack to permissions however.
-
If I may, in the same range of very useful improvements for downstream apps relying of pybtex, it could be great to support
@dataset
as well, which is also increasingly used and standard since biblatex 3.13 (see this discussion https://github.com/plk/biblatex/issues/880).I guess it would go quite well with
@software
;) -
I went ahead and also made the minimal changes needed to resolve this issue and also went ahead and opened a PR: https://bitbucket.org/pybtex-devs/pybtex/pull-requests/47
- Log in to comment