-
Notifications
You must be signed in to change notification settings - Fork 2
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
:groupby: for sphinx bib directives + improvement of __doc__ #7
base: master
Are you sure you want to change the base?
Conversation
All bib directives now should accept :groupby: option to group present entries. e.g. .. bibmatching:: example.bib :style: demo :filter: author: \bTheGod\b howpublished: \b(Talk|Poster)\b :groupby: entry_type, subtype, year :sort: Should group all the entries first by entry_type (e.g. articles vs inbook), subtype (custom field I introduced to categorize e.g. between talks and posters in 'misc'), and year (here needs more work to provide reverse sorting, but works otherwise)
Hi @matthew-brett -- so what do you think about this PR? |
Oops - sorry - am more or less offline in Cuba. Can you get someone else to review? I will make sure you can merge... |
ok -- if there is any live expert in bibstuff ;) when are you coming back to the hyber-land On Tue, 16 Jul 2013, Matthew Brett wrote:
|
Back on the 24th I hope... |
Sorry - reviewing offline and pasting into the web form - forgive the On a meta level - should we be abandoning this code and moving it to the
This is the definition of the section levels that Python uses, where the first
So: the second-from-top level heading uses "=" with no overline. Around line 307 ( Found this code hard to read - any chance of unpacking it into loops rather Around line 351 'groupped' mis-spelled. A little confused by the check if 'plural' is a number; how would that happen? In Can you think of any tests? I see that I didn't do a good job of that. |
otherwise it would fail to work on any bib file with a @comment
Yarik - any comments on my review? |
Hi @matthew-brett |
BF: spelling error in miscelaneous
This one does need some code polish and making it less ad-hoc but not sure if I would have time... seems to work though. It has potential to break things -- so would be nice if you could try/review.
But otherwise -- it should be very handy to automatically provide reasonably structured bibliographies. See e.g.
http://haxbylab.dartmouth.edu/publications.html
which was generated from a single bibmatching entry with groupby