texworld / betterbib

:green_book: Command-line tools for bibliographies.
816 stars 42 forks source link

possible to get option to output [firstname lastname] .bib file instead of only [lastname, firstname] #181

Closed emilBeBri closed 2 years ago

emilBeBri commented 3 years ago

Hi, thank you for a great piece of software, has made my life easier.

I was wondering wether you could implement an option so that an entry edited by betterbib could look like this:

@Article{chu2016who,
  author    = {Johan S. G. Chu and Gerald F. Davis},
  title     = {Who Killed the Inner Circle? The Decline of the American Corporate Interlock Network},
}

instead of :

@article{chu2016who,
 author = {Chu, Johan S.G. and Davis, Gerald F.},
 title = {Who Killed the Inner Circle? The Decline of the {American} Corporate Interlock Network},
}
nschloe commented 3 years ago

That's not very "bibtexy". Why would you need that?

emilBeBri commented 3 years ago

I don't think you can say that the latter style is any more bibtexy than the former - it's a matter of more superficial convention than that. overleaf recommends the style that I prefer, for example:

https://www.overleaf.com/blog/532-creating-and-managing-bibliographies-with-bibtex-on-overleaf

I find it alot easier to read at a glanse.

nschloe commented 3 years ago

Okay, fair enough. Can you prepare a PR? You're looking at https://github.com/nschloe/betterbib/blob/main/betterbib/tools.py#L182.

emilBeBri commented 3 years ago

Sorry, but I'm not proficient in Python (yet - I'm an autodidact R user, Python is on my to-do list for 2021). If you don't want to spend the time on it, that's quite alright, I'll just change it by hand as I've done so far, better than not having the program is all, that's for sure.

nschloe commented 2 years ago

This suggestion hasn't picked up enough interest in a year for me to get active. I'll close it for now.

If anyone else is interested in this, let me know by commenting here.