Highlight selected authors within Bibliography
Hello, and many thanks for all the work you've made around Zotero.
I want to highlight some of the authors in a selected bibliography (it is a report for my lab and all members of the lab need to be highlighted - bolded or underlined - in the bibliography - i.e. list of the published articles from the lab) giving a list of name that have to be higlighted.
For the following bibliography I would just have to give the names Beta and Epsilon and the result would be :
1. A. Alpha, B. Beta, G. Gamma & E. Epsilon . Journal etc...
2. D. Delta, T. Theta & B. Beta. Journal etc...
3. B. Beta and E. Epsilon . Journal etc...
4.....
It seemed to me obvious at the beginning taht editing the CSL by adding a choose option inside the names variable="author" within the CSL code but I wonder that the adding of the authors seem to be made in one shot not being able to analyse each author of one item independently.
Is anybody has an idea about that ?
Precision : I just began to watch @ CSL specification few days ago so I perhaps missed something in that language.
And thanks again for all your work!!
I want to highlight some of the authors in a selected bibliography (it is a report for my lab and all members of the lab need to be highlighted - bolded or underlined - in the bibliography - i.e. list of the published articles from the lab) giving a list of name that have to be higlighted.
For the following bibliography I would just have to give the names Beta and Epsilon and the result would be :
1. A. Alpha, B. Beta, G. Gamma & E. Epsilon . Journal etc...
2. D. Delta, T. Theta & B. Beta. Journal etc...
3. B. Beta and E. Epsilon . Journal etc...
4.....
It seemed to me obvious at the beginning taht editing the CSL by adding a choose option inside the names variable="author" within the CSL code but I wonder that the adding of the authors seem to be made in one shot not being able to analyse each author of one item independently.
Is anybody has an idea about that ?
Precision : I just began to watch @ CSL specification few days ago so I perhaps missed something in that language.
And thanks again for all your work!!
Why not just do this with Word (or LO) search&replace, though? That includes advanced options for formatting.
Ok then, It was just for me a nicer (and more easy-to-modify-hereafter and moreover quicker as I have to highlight around 30 authors among a 1000 of citations...) way of doing that.
Thanks for your time Adam.
Aurélien
The sticky points is that the distinction between "author" and "authorbis" should be irrelevant for existing styles and only be picked up in new styles that actually look for it.
I have no idea how this could be done in CSL...
Finally as proposed by Adam I just created a simple macro in LibreOffice which is doing the job. But still, my geek part is left hungry ;)
I even thought of "diverting" the "reviewed author" type, but this would break all existing styles.
I'll say that putting this in a macro really isn't very different from what bibtex does. There is not really a reason this needs to be in the citation style.
@toofikam - would be nice if you'd put your macro on github and put a link here, so people can use it
I tried, but I do not get anything to that Git stuff. It is totally impossible to understand anything within it!
Tried something here :
https://github.com/toofikam/HighlihtAuthors/
But seemed to be unreadable. So below is the macro (LibreOffice) :
[code removed — see below — D.S.]
Anyway here it hus the Gist link for the Macro :
https://gist.github.com/toofikam/9622188
FWIW - git is a version control system, i.e. it's incredibly useful if you work on larger projects and with multiple people as it keeps a detailed history of who did what when and with their comments. There is really no need to use it to share small snippets of code - that's what the gists are for.