getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
59 stars 95 forks source link

[publication_list] subgroup of publications within individual years #262

Open bishesh opened 6 years ago

bishesh commented 6 years ago

Can we create subgroups of publications within the each individual year subtitle ? I would like the pages to be rendered sth like:

2018

Category A

pub1 pub2 ... pubN

Category B

pub1 pub2 ... pubN

Categor C

pub1 pub2 ... pubN

2017

Category A

...

xuhdev commented 6 years ago

I can look into this. Instead of merely adding this feature, I would like to come up with more generalized filtering commands. What do you think of putting "Category A/B/C" outside the years?

Category A

2018

2017

...

Category B

2018

2017

bishesh commented 6 years ago

Yes, that is also quite useful. If we can allow the user to choose the hierarchy (including year) that would be general, and awesome!

xuhdev commented 6 years ago

I plan to make the whole list a customizable template which users can specify. However, I'm really busy this month. I'v marked this work for next month. Are you good with using it as it is for now?

bishesh commented 6 years ago

Yes, I'm using the plugin as it is for now; it is already quite nice and easy to use. Having the customization next month will be awesome! Thanks

xuhdev commented 6 years ago

@bishesh Sorry for the delay. Unfortunately, I got trapped into job hunting, which took way longer time than what I expected. I have to move this work to a place on calendar at which time I will have received a job offer. (I probably will have some free time at that time.) For now, as a workaround, is it possible for you to put publications into different bibfiles, and format them as my previous comments for your institute? Please let me know if you need help. Again, sorry for the inconvenience.

bishesh commented 6 years ago

No worries, best wishes with the job hunting! I've publications of different authors in different bibfiles, but I'm not sure which previous comments are you referring to for which format ?

xuhdev commented 6 years ago

I meant to have this form:

Category A

2018

2017

...

Category B

2018

2017

You can achieve this by simply group publications from different categories to different bib files, and use a few publication list directives:

Category A
----------
... publication_list: categorya.bib

Category B
----------
... publication_list: categoryb.bib
bishesh commented 6 years ago

All right. Well with many different authors having their bibs on different files, this is not so convenient, but still doable.