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
Entries without author #267
Comments
Many thanks for the report and for including a detailed trace. It depends on the style template for the specific entry type as to whether an author is required or not, but IIRC the standard pybtex templates require it for most entry types. For textual citations then an author is currently required. Which is the bibtex entry (or entries) that is causing the problem? |
I just did some quick digging and misc entries without an author should work, as should books with only an editor: https://bitbucket.org/pybtex-devs/pybtex/src/509d7682987c8d7bfce221ead0e606f1bd88aa72/pybtex/style/formatting/unsrt.py#lines-318 Is the problem only tripping when using textual citations? |
Thanks for getting back so quickly! One of the bibtex entries that is causing the problem is: @book{themstrom:1980,
editor = {Themstrom, Stephan and Orlov, Ann and Handlin, Oscar},
publisher = {Cambridge, MA: Belknap},
title = {Harvard encyclopedia of American ethnic groups},
year = 1980
} This entry was referred to using I just found out that the problem indeed only occurs with textual ( |
Thanks for the report. I'm looking to improve the citation reference handling when the year and/or author fields are missing. |
… title when there's no author. See issue #267.
Fixed in #268. Thanks again for the report and for the help with testing! |
For information, I've just pushed a minor release including the fix since it seemed quite useful. |
I'm playing around with this nice package using Jupyter Book. I ran into an issue with entries missing authors (such as books with only an editor, or misc entries with no know author). Can you tell me whether this is supported, or do all entries require an author? Apologies if I need to post my question elsewhere. Thanks!
Full log of the error
The text was updated successfully, but these errors were encountered: