pcooksey / bibtex-js

BibTeX-js can parse a BibTeX-file and render it as part of an HTML file. This way, you can easily add a list of publications to your private homepage or display a list of recommended publications for a seminar. The way the entries are display can be customized using a simple template system and CSS.
MIT License
270 stars 68 forks source link

Add first_initial option to author format #34

Closed tobiasdiez closed 6 years ago

tobiasdiez commented 6 years ago

Add the option first_inital which prints only the initial of the first name (instead of the whole first name). The usage is similar to the first option:

<span class="author"><span class="first_initial"></span><span class="von">&nbsp;</span><span class="last">&nbsp;</span></span>

prints names in the format F. von Last.

(For some reason I keep reformatting the file, sorry for that: see changeset without whitespace).

pcooksey commented 6 years ago

Okay, I've implemented a similar version 9903b99f7e60b90bc5ab98b7d6adcfd77e311f7e.

Thank you for contributing. But for future reference, I won't accept pull request that change formatting on lines not involved in the actual changes. It makes the commit history unclear when I am looking at the blame history for certain lines and I would end up having to reformat the whole file again anyways.