martinec / grav-plugin-bibtexify

The BibTeXify plugin for Grav turn a list of BibTeX references into an interactive page
MIT License
9 stars 4 forks source link

Change the style of author entries #11

Closed bozzochet closed 3 years ago

bozzochet commented 3 years ago

I start saying that I really love this grav plugin!

I work in high energy physics and our papers are with a large number of authors:

https://www.fisgeo.unipg.it/~duranti/publications.html

would be nice to have an option to apply some Bibtex style. In particular I would like to have the first authors, my self and "et al."...

Thanks, Matteo

martinec commented 3 years ago

The changes introduced with v1.2.0 allows you to transform:

before

Into:

after

See the README for details.

bozzochet commented 3 years ago

Ciao,

really, really, thanks a lot!

Matteo

Il giorno 7 mag 2021, alle ore 17:38, Cristian Martinez @.***> ha scritto:

The changes introduced with v1.2.0 allows you to transform:

https://user-images.githubusercontent.com/800627/117473871-b5fb6100-af5a-11eb-9c0c-ac33b18e1bd2.png Into:

https://user-images.githubusercontent.com/800627/117473837-ada32600-af5a-11eb-8dc7-0d2b2b605c4c.png See the README https://github.com/martinec/grav-plugin-bibtexify#show-only-the-first-n-authors for details.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martinec/grav-plugin-bibtexify/issues/11#issuecomment-834542477, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEM7XVCIS472WSL47ERG623TMQCQHANCNFSM44HBTVPA.

-- PhD. Matteo Duranti
INFN - Sez. Perugia Mobile: +393298574103 Office (CERN): 73438, From Outside +41227673438 Office (PG): +390755852722 Fax: +390759691723 Work Mail: @. @.> Work Mail: @. @.> Private or Big Attachments Mail: @. @.> Skype: bozzochet <skype:bozzochet?call> -- A revolution is not a dinner party, or writing an essay, or painting a picture, or doing embroidery; it cannot be so refined, so leisurely and gentle, so temperate, kind, courteous, restrained and magnanimous. A revolution is an insurrection, an act of violence... (Mao Zedong)

bozzochet commented 3 years ago

Hi,

is normal that I cannot update the plugin to 1.2, however?

Thanks, Matteo

martinec commented 3 years ago

I just published the release.

bozzochet commented 3 years ago

Hi,

sorry if I write so late and after you closed the issue.

According to my tests it works only if I edit the plugin css, while, I think, would be better adding to the custom.css file of the theme. Isn't it?

However thanks for the feature! Is very helpful!

Ciao, Matteo

martinec commented 3 years ago

According to my tests it works only if I edit the plugin css, while, I think, would be better adding to the custom.css file of the theme. Isn't it?

In this case, one of the ways to use your custom.css is to prepending !important to the classes:

.bibtexify-authors li {
  display:none !important;
}

.bibtexify-authors li:nth-child(-n+2) {
  display: inline !important;
}